:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --ink: #14161f;
  --muted: #5a6072;
  --line: #e4e6ef;
  --brand: #2f4bd7;
  --brand-ink: #ffffff;
  --brand-soft: #eef1ff;
  --accent: #0f9d8a;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --ok: #067647;
  --ok-soft: #e7f6ee;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 31, .06), 0 8px 24px rgba(20, 22, 31, .06);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 720; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .95rem;
}
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: var(--brand-ink); }
.nav-links a.btn-ghost { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; padding: 5px 11px; font: inherit; font-size: .82rem;
  cursor: pointer; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #263ead; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c9cddd; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- héros ---------- */
.hero { padding: 68px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

.preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.preview-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #e0e2ec; }
.preview-body { padding: 20px; }
.chat-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.avatar { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; }
.bubble { background: #f2f3f9; border-radius: 12px; padding: 10px 13px; font-size: .9rem; }
.bubble.me { background: var(--brand); color: #fff; margin-left: auto; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card.recommended { border-color: var(--brand); box-shadow: 0 10px 30px rgba(47, 75, 215, .14); }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.card > .badge { align-self: flex-start; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.price strong { font-size: 2.1rem; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: .95rem; }
.card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.card li { display: flex; gap: 10px; font-size: .94rem; }
.tick { color: var(--ok); font-weight: 700; flex: none; }
.card .btn { margin-top: auto; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }

.faq { display: grid; gap: 10px; max-width: 780px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
details[open] { border-color: #ccd2ea; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid p { margin: 0; }
.legal { margin-top: 18px; font-size: .82rem; color: var(--muted); }

/* ---------- rendez-vous ---------- */
.booking > * { min-width: 0; }
.booking { display: grid; grid-template-columns: 1.4fr .6fr; gap: 28px; align-items: start; padding-top: 40px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.day {
  flex: none; min-width: 84px; text-align: center; padding: 12px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit;
}
.day[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.day .dw { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day .dn { display: block; font-size: 1.3rem; font-weight: 700; }
.day .ds { display: block; font-size: .72rem; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 16px; }
.slot { padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .93rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fcfcff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.status { margin-top: 14px; font-size: .92rem; }
.status.error { color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: 10px; }
.status.ok { color: var(--ok); background: var(--ok-soft); padding: 12px 14px; border-radius: 10px; }
.aside-note { font-size: .9rem; color: var(--muted); }
.confirmation { display: none; }
.confirmation.visible { display: block; }
.booking-form.hidden { display: none; }
.chosen { font-weight: 700; }

/* ---------- suivi de projet (interne) ---------- */
.admin { padding: 32px 0 64px; }
.admin-head { display: flex; gap: 18px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 26px; }
.progressbar { height: 10px; border-radius: 999px; background: #e6e8f2; overflow: hidden; }
.progressbar > div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 24px 0 30px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi .v { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; }
.kpi .l { font-size: .82rem; color: var(--muted); }
.kpi .c { font-size: .75rem; color: var(--muted); }

.blockers { display: grid; gap: 10px; margin-bottom: 30px; }
.blocker { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); border: 1px solid #f3ddb7; }
.blocker strong { color: var(--warn); }

.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.phase > header { padding: 18px 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.phase h3 { margin: 0; }
.phase .pmeta { margin-left: auto; font-size: .85rem; color: var(--muted); }
.tasks { display: grid; }
.task { display: grid; grid-template-columns: 74px 1fr 130px 96px; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); align-items: start; }
.task:last-child { border-bottom: 0; }
.task .id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; color: var(--muted); }
.task .t { font-weight: 600; }
.task .r { font-size: .87rem; color: var(--muted); margin-top: 3px; }
.task .files { font-size: .8rem; color: var(--muted); margin-top: 6px; word-break: break-word; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.pill.fait { background: var(--ok-soft); color: var(--ok); }
.pill.en_cours { background: var(--brand-soft); color: var(--brand); }
.pill.a_faire { background: #eef0f6; color: var(--muted); }
.pill.bloque { background: var(--danger-soft); color: var(--danger); }
.pill.agent { background: #eef7ff; color: #0b63b6; }
.pill.humain { background: var(--warn-soft); color: var(--warn); }
.timeline { display: grid; gap: 10px; }
.timeline li { list-style: none; display: flex; gap: 14px; font-size: .92rem; }
.timeline time { color: var(--muted); font-family: ui-monospace, monospace; font-size: .82rem; flex: none; }

@media (max-width: 900px) {
  .hero-grid, .booking { grid-template-columns: 1fr; }
  .task { grid-template-columns: 64px 1fr; }
  .task .pill { grid-column: 2; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .row { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
