/* Skibrief — feuille de style du site vitrine. Polices système : aucun appel à un service tiers. */

:root {
  --night: #070d1c;
  --night-2: #0e1830;
  --night-3: #16233f;
  --snow: #f5f8fc;
  --paper: #ffffff;
  --ink: #0d1526;
  --ink-soft: #4a5872;
  --ink-faint: #8391a8;
  --line: #e1e7f0;
  --line-dark: rgba(255, 255, 255, 0.1);
  --glacier: #7dd3fc;
  --glacier-strong: #0284c7;
  --alpenglow: #ff8552;
  --alpenglow-strong: #f2672e;
  --ok: #16a34a;
  --wip: #d97706;
  --todo: #64748b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 21, 38, 0.04), 0 8px 24px rgba(13, 21, 38, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--glacier-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.9em; }
img, svg { max-width: 100%; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 13, 28, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav .container { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, 0.72); font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; text-decoration: none; }
.nav .btn { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--alpenglow); color: #1a0d05; box-shadow: 0 6px 20px rgba(255, 133, 82, 0.35); }
.btn-primary:hover { background: #ff956a; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(125, 211, 252, 0.18), transparent 60%),
    radial-gradient(900px 400px at 0% 10%, rgba(255, 133, 82, 0.12), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  padding: 84px 0 150px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.05; letter-spacing: -0.035em; margin: 18px 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--glacier), #c4b5fd 55%, var(--alpenglow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.18rem; color: rgba(255, 255, 255, 0.74); max-width: 34em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 190px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--glacier);
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.25);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }

/* ---------- Maquette de conversation ---------- */

.chat {
  background: rgba(14, 24, 48, 0.8);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-size: 0.93rem;
}
.chat-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }
.chat-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.chat-bar span { margin-left: 8px; }
.chat-body { padding: 20px; display: grid; gap: 14px; min-height: 340px; align-content: start; transition: opacity 0.35s ease; }
.chat-body.is-fading { opacity: 0; }
.msg-user { justify-self: end; max-width: 85%; background: var(--night-3); padding: 11px 15px; border-radius: 16px 16px 4px 16px; color: rgba(255, 255, 255, 0.92); }
.tool-call { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.78rem; color: var(--glacier); background: rgba(125, 211, 252, 0.07); border: 1px dashed rgba(125, 211, 252, 0.3); padding: 8px 12px; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.tool-call b { color: #fff; font-weight: 600; }
.msg-ai { color: rgba(255, 255, 255, 0.86); }
.msg-ai p { margin: 0 0 8px; }
.msg-ai ul { margin: 0; padding-left: 18px; }
.msg-ai li { margin-bottom: 4px; }
.msg-ai strong { color: #fff; }
.chat-caption { text-align: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.4); margin-top: 8px; }
.chat-dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }
.chat-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, 0.25); transition: width 0.3s ease, background 0.3s ease; }
.chat-dots button[aria-current="true"] { width: 24px; background: var(--glacier); }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark { background: var(--night); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.wide { max-width: none; }
.section-head.medium { max-width: 820px; }
.kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glacier-strong); }
.section-dark .kicker { color: var(--glacier); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.03em; margin: 10px 0 16px; font-weight: 780; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 700; }
.muted { color: var(--ink-soft); }
.section-dark .muted { color: rgba(255, 255, 255, 0.65); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: #e0f2fe; color: var(--glacier-strong); }
.card .icon svg { width: 22px; height: 22px; }
.card-dark { background: var(--night-2); border-color: var(--line-dark); box-shadow: none; }
.card-dark p { color: rgba(255, 255, 255, 0.66); }
.card-dark .icon { background: rgba(125, 211, 252, 0.12); color: var(--glacier); }

/* ---------- Étapes ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.95rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.url-box { margin-top: 14px; font-family: var(--mono); font-size: 0.82rem; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--snow); border: 1px solid var(--line); overflow-x: auto; white-space: nowrap; }

/* ---------- Badges de statut ---------- */

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); background: #dcfce7; }
.badge-wip { color: var(--wip); background: #fef3c7; }
.badge-todo { color: var(--todo); background: #eef2f7; }

/* ---------- Pile technique ---------- */

.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.88); }
.chip small { font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.chip-light { background: var(--paper); border-color: var(--line); color: var(--ink); }
.chip-light small { color: var(--ink-faint); }

.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.showcase a.card { display: block; color: inherit; transition: transform 0.15s ease, border-color 0.15s ease; }
.showcase a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(125, 211, 252, 0.45); }
.showcase .arrow { margin-top: 16px; font-weight: 650; color: var(--glacier); font-size: 0.92rem; }

/* ---------- Encadrés ---------- */

.callout { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.callout svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--alpenglow-strong); }
.callout p { margin: 0; }
.callout-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.callout-info svg { color: var(--glacier-strong); }

/* ---------- CTA final ---------- */

.cta { text-align: center; padding: 72px 32px; border-radius: 28px; color: #fff; background: radial-gradient(700px 300px at 50% 0%, rgba(125, 211, 252, 0.22), transparent 70%), var(--night-2); }
.cta h2 { margin-top: 0; }
.cta p { color: rgba(255, 255, 255, 0.7); max-width: 36em; margin: 0 auto 28px; }

/* ---------- En-tête de page intérieure ---------- */

.page-head { color: #fff; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); padding: 64px 0 56px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.1; margin: 12px 0 14px; font-weight: 800; }
.page-head p { color: rgba(255, 255, 255, 0.7); max-width: 44em; margin: 0; font-size: 1.08rem; }
.page-head .kicker { color: var(--glacier); }

/* Onglets « Comment ça marche » : vrais liens entre les trois pages. */
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 6px; max-width: 860px; margin-top: 36px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); }
.tab { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 13px; transition: background 0.2s ease; }
.tab:hover { text-decoration: none; background: rgba(255, 255, 255, 0.07); }
.tab-num { font-weight: 800; font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--glacier); border: 1px solid rgba(125, 211, 252, 0.4); border-radius: 8px; padding: 4px 7px; }
.tab-text { display: flex; flex-direction: column; gap: 2px; }
.tab-title { color: #fff; font-weight: 650; }
.tab-desc { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }
.tab[aria-current="page"] { background: rgba(125, 211, 252, 0.14); box-shadow: inset 0 0 0 1px var(--glacier); }
.tab[aria-current="page"] .tab-num { color: var(--night); background: var(--glacier); border: none; padding: 5px 8px; }
.tab[aria-current="page"] .tab-title { font-weight: 700; }
.tab[aria-current="page"] .tab-desc { color: #bae6fd; }

/* ---------- Architecture ---------- */

.diagram { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); overflow-x: auto; }
.diagram svg { display: block; min-width: 860px; width: 100%; height: auto; }
.diagram-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); }
.diagram-legend span { display: inline-flex; align-items: center; gap: 8px; }
.diagram-legend i { width: 22px; height: 0; border-top: 2px solid var(--ink-soft); }
.diagram-legend i.dashed { border-top-style: dashed; }

.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; background: #fafbfd; }
tr:last-child td { border-bottom: none; }
td strong { white-space: nowrap; }
td code { background: var(--snow); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

.timeline { display: grid; gap: 14px; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline-item .badge { margin: 3px 0 0; }
.timeline-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Blocs outil (page Comment ça marche) ---------- */

.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.feature.reverse { grid-template-columns: 1.1fr 1fr; }
.section-tint { background: #e8f1fa; border-block: 1px solid #d6e5f3; }
.feature.reverse .feature-text { order: 2; }
.feature h2 { margin-top: 8px; }
.feature + .feature { margin-top: 88px; }
.feature-text > p { margin: 0 0 18px; }
.feature-media { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.feature-media svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; color: var(--ink-soft); font-size: 0.97rem; }
.points li { position: relative; padding-left: 28px; }
.points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: var(--glacier-strong); background: #e0f2fe; margin-top: 3px; }
.points strong { color: var(--ink); }
.feature-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; font-weight: 600; font-size: 0.95rem; }
.feature-links .btn { padding: 10px 18px; font-size: 0.93rem; box-shadow: var(--shadow); }
/* Bouton double : lien interne · lien externe. */
.feature-links .btn-split { gap: 0; padding: 0; overflow: hidden; }
.btn-split a { color: inherit; padding: 12px 16px 12px 22px; }
.btn-split a + span + a { color: var(--glacier-strong); padding: 12px 22px 12px 16px; }
.btn-split a:hover { text-decoration: none; }
.btn-split span { color: #94a3b8; }

/* ---------- Cadres intégrés (dbt docs, dbt Charts) ---------- */

.frame-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.frame { width: 100%; height: 82vh; min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }

/* ---------- Formulaire ---------- */

.form-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 650; font-size: 0.92rem; margin-bottom: 7px; }
.field label small { font-weight: 500; color: var(--ink-faint); }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--glacier-strong); box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12); background: #fff; }
.field.has-error input, .field.has-error select { border-color: #dc2626; }
.error { display: block; margin-top: 6px; font-size: 0.85rem; color: #dc2626; }
.field label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; font-weight: 400; color: var(--ink-soft); }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--glacier-strong); }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.demo-banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 24px; border-radius: var(--radius-sm); font-size: 0.87rem; background: #fef3c7; color: #78350f; border: 1px solid #fde68a; }

.key-box { display: flex; align-items: center; gap: 12px; margin: 10px 0 24px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--night); color: var(--glacier); font-family: var(--mono); font-size: 0.88rem; }
.key-box code { flex: 1; overflow-x: auto; white-space: nowrap; }
.key-box button { flex: none; font: inherit; font-family: var(--font); font-size: 0.8rem; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; cursor: pointer; }
.key-box button:hover { background: rgba(255, 255, 255, 0.1); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--ink-soft); }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.checklist strong { color: var(--ink); }

/* ---------- Pied de page ---------- */

.footer { background: var(--night); color: rgba(255, 255, 255, 0.6); padding: 56px 0 40px; font-size: 0.9rem; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 0.92rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 12px; }
.footer-bottom { grid-column: 1 / -1; padding-top: 28px; margin-top: 8px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }
.footer-contact { display: inline-flex; align-items: center; gap: 6px; }
.footer-contact svg { flex: none; width: 14px; height: 14px; }

/* ---------- Cartes-liens ---------- */

.card-link { display: flex; flex-direction: column; gap: 6px; color: inherit; transition: transform 0.15s ease, border-color 0.15s ease; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); border-color: #bae6fd; }
.card-link h3, .card-link p { margin: 0; }
.card-link.large { gap: 10px; padding: 32px; }
.card-link.large h3 { font-size: 1.5rem; }
.card-link .arrow { margin-top: 6px; font-weight: 700; color: var(--glacier-strong); }
.card .kicker.center { display: block; text-align: center; }
.card .kicker + p { margin-top: 8px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.table-wrap.sources { margin-top: 36px; }
.grid-4.after-diagram { margin-top: 32px; }

/* ---------- Atelier des données ---------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.split.top { align-items: start; }
.split .points { margin: 0; }
.stack-v { display: flex; flex-direction: column; gap: 24px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.status .badge { margin: 0; }
.status .muted, .status a { font-size: 0.92rem; }
.split + .status { margin-top: 24px; }
.card-col { display: flex; flex-direction: column; gap: 12px; }
.card-col h3 { margin: 0; }
.steps-plain .card { display: flex; flex-direction: column; gap: 8px; }
.steps-plain .card h3 { margin: 0; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.risk-cell { background: var(--snow); border-radius: 12px; padding: 14px; }
.risk-cell .muted { font-size: 0.85rem; }
.risk-value { font-size: 1.6rem; font-weight: 800; }
.schema { margin: 0; }
.schema svg { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.schema figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container, .form-layout { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 150px; }
  .grid-3, .grid-4, .steps, .showcase { grid-template-columns: 1fr 1fr; }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .nav .container { flex-wrap: wrap; height: auto; padding: 12px 0; row-gap: 8px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 20px; }
  .nav .btn { margin-left: auto; }
  .feature { gap: 32px; grid-template-columns: 1fr 1.3fr; }
  .feature.reverse { grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .showcase, .footer .container { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-text { order: 0; }
  .frame { height: 75vh; }
}

/* ---------- Prompt à copier (page Démarrer) ---------- */

.prompt-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); box-shadow: var(--shadow); background: var(--night); }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }
.prompt-bar button { font: inherit; font-size: 0.8rem; font-weight: 650; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; cursor: pointer; }
.prompt-bar button:hover { background: rgba(255, 255, 255, 0.1); }
.prompt-box pre { margin: 0; padding: 20px 22px; max-height: 520px; overflow: auto; white-space: pre-wrap; font-family: var(--mono); font-size: 0.84rem; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
