:root {
  --bg: #060607;
  --surface: #0d0d10;
  --line: #1f1f24;
  --text: #ececf1;
  --muted: #9a9aa5;
  --faint: #5f5f6a;
  --accent: #b18cff;
  --accent-ink: #160b2b;
  --ok: #34d17a;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 34px; } }

/* En-tête */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 600; font-size: 15px; }
.logo i { font-style: normal; color: var(--accent); }
.btn-light { background: var(--text); color: #0a0a0c; text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 6px; }
.back { font-family: var(--mono); font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover, .btn-light:hover { opacity: .85; }

/* Fond pointillé */
.dots {
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Accueil */
.hero .wrap { display: grid; gap: 40px; padding-top: 72px; padding-bottom: 72px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1fr 1fr; padding-top: 96px; padding-bottom: 84px; } }
h1 { font-size: clamp(44px, 8vw, 66px); line-height: 1; letter-spacing: -.045em; font-weight: 800; margin: 0 0 22px; }
h1 i { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.btn-accent { display: inline-block; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 14px; font-weight: 500; text-decoration: none; padding: 11px 17px; border-radius: 6px; }
.btn-accent:hover { filter: brightness(1.08); }

.term { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-family: var(--mono); font-size: 13px; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.term-bar b { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.term-bar span { margin-left: 10px; }
.term-body { padding: 18px 18px 20px; display: grid; gap: 4px; }
.term-body .p { color: var(--accent); margin-right: 6px; }
.term-body .ok { color: var(--ok); margin-right: 6px; }
.term-body .dim { color: var(--faint); }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--text); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* Grille */
.grid { border: 1px solid var(--line); border-top: 0; }
.row { display: grid; border-top: 1px solid var(--line); }
.cell { padding: 24px 21px; }
.row > .cell + .cell { border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .row.c3 { grid-template-columns: repeat(3, 1fr); }
  .row.c2 { grid-template-columns: 1fr 1fr; }
  .row.c4 { grid-template-columns: repeat(4, 1fr); }
  .row > .cell + .cell { border-top: 0; border-left: 1px solid var(--line); }
}
.num { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.num.grey { color: var(--faint); }
.cell h3 { font-size: 19px; letter-spacing: -.02em; margin: 0; }
.cell p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; padding: 14px 21px; }
h2 { font-size: clamp(28px, 4vw, 34px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; }
.big { padding: 40px 21px; }
.big p { color: var(--muted); font-size: 15px; max-width: 500px; margin: 0; }
.checks { padding: 0; }
.check { display: flex; gap: 14px; padding: 20px 21px; }
.check + .check { border-top: 1px solid var(--line); }
.check svg { flex: none; margin-top: 4px; color: var(--accent); }
.check strong { display: block; font-size: 15px; }
.check span { color: var(--muted); font-size: 13px; }

.cta { text-align: center; padding: 84px 16px 84px; }
.cta p { color: var(--muted); margin: 0 0 18px; }
.mail { display: inline-block; font-family: var(--mono); font-size: 14px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 20px; overflow-wrap: anywhere; }
.mail:hover { border-color: var(--faint); }

/* Pied de page */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; padding-top: 22px; padding-bottom: 40px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); }

/* Pages de texte */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 16px 90px; }
.doc h1 { font-size: clamp(34px, 6vw, 46px); margin-bottom: 22px; }
.doc .date { font-family: var(--mono); font-size: 13px; color: var(--faint); margin: 0 0 40px; }
.doc h2 { font-size: 21px; letter-spacing: -.02em; margin: 40px 0 10px; }
.doc p, .doc li { color: #c9c9d1; font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc a { text-underline-offset: 3px; }
.doc address { font-style: normal; color: #c9c9d1; }

/* Évite tout débordement horizontal sur petit écran */
.row > *, .hero .wrap > * { min-width: 0; }

/* ===== Améliorations (27.10.2026) ===== */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* En-tête fixe translucide + menu */
.sticky { position: sticky; top: 0; z-index: 10; background: rgba(6,6,7,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.menu { display: none; gap: 26px; font-size: 14px; }
.menu a { color: var(--muted); text-decoration: none; transition: color .15s; }
.menu a:hover { color: var(--text); }
@media (min-width: 720px) { .menu { display: flex; } }

/* Héro */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.glow { position: absolute; width: 720px; height: 520px; right: -160px; top: -140px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(177,140,255,.20), rgba(255,95,168,.06) 55%, transparent 75%); filter: blur(10px); }
.badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(13,13,16,.8); border-radius: 999px; padding: 5px 12px 5px 10px; margin: 0 0 26px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,209,122,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(52,209,122,0); } 100% { box-shadow: 0 0 0 0 rgba(52,209,122,0); } }
.hero .lead { max-width: 440px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-accent { transition: transform .15s, box-shadow .15s, filter .15s; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 26px -8px rgba(177,140,255,.65); }
.btn-ghost { font-size: 14px; color: var(--muted); text-decoration: none; padding: 11px 6px; transition: color .15s; }
.btn-ghost:hover { color: var(--text); }
.term { box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(177,140,255,.04); min-height: 168px; }
.term-body { min-height: 118px; }

/* Cartes de services */
.card { position: relative; transition: background .2s; }
.card:hover { background: linear-gradient(180deg, rgba(177,140,255,.06), transparent 70%); }
.ico { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; margin-bottom: 18px; }
.card p { margin-top: 8px; }
.steps .cell { transition: background .2s; }
.steps .cell:hover { background: rgba(255,255,255,.02); }

/* Fiche entreprise */
.facts { margin: 0; padding: 12px 0; font-size: 14px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 21px; }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 2px; }
.facts dd { margin: 0; color: var(--text); }
@media (min-width: 720px) { .facts { border-left: 1px solid var(--line); } }
@media (max-width: 719px) { .facts { border-top: 1px solid var(--line); } .facts div { grid-template-columns: 1fr; gap: 0; } }

/* Contact */
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mailbox { display: inline-flex; }
.mailbox .mail { border-radius: 6px 0 0 6px; }
.copy { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-left: 0;
  border-radius: 0 6px 6px 0; padding: 0 14px; cursor: pointer; transition: color .15s; }
.copy:hover { color: var(--accent); }
.mail { transition: border-color .15s, transform .15s; }

/* Apparition au défilement */
.anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.anim .reveal.vu { opacity: 1; transform: none; }
.row .reveal:nth-child(2) { transition-delay: .07s; }
.row .reveal:nth-child(3) { transition-delay: .14s; }
.row .reveal:nth-child(4) { transition-delay: .21s; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.2fr .8fr; } }
.term-bar .r { background: #ff5f57; } .term-bar .y { background: #febc2e; } .term-bar .g { background: #28c840; }
.notfound { min-height: calc(100vh - 130px); }

/* Page 404 */
.nf { position: relative; overflow: hidden; min-height: calc(100vh - 118px); display: grid; place-items: center; padding: 56px 16px 72px; }
.nf .glow { right: auto; left: 50%; top: -120px; transform: translateX(-50%); }
.nf-in { position: relative; width: 100%; max-width: 560px; text-align: center; }
.nf-code { margin: 0 0 6px; font-family: var(--mono); font-weight: 600; font-size: clamp(96px, 22vw, 168px); line-height: 1; letter-spacing: -.06em;
  background: linear-gradient(180deg, var(--text) 10%, rgba(177,140,255,.55) 70%, rgba(177,140,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: clamp(30px, 6vw, 42px); margin-bottom: 12px; }
.nf .lead { margin: 0 auto 30px; }
.nf-term { text-align: left; margin: 0 auto 30px; min-height: 0; }
.nf-term .term-body { min-height: 0; }
.term-body .err { color: #ff6b6b; margin-right: 6px; }
#chemin { color: var(--accent); overflow-wrap: anywhere; }
.nf .actions { justify-content: center; }
