/* Nocta — site vitrine. Couleurs du logo : bleu nuit + ambre ; bleu de l'application pour les liens */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; src: url(fonts/archivo.woff2) format('woff2'); }
@font-face { font-family: 'Red Hat Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(https://nocta-securite.fr/fonts/red-hat-mono.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --night: #0c1830;
  --night-2: #13233a;
  --night-3: #1b2f4d;
  --night-line: #2a4166;
  --night-ink: #e8edf6;
  --night-muted: #9fb0cc;
  --amber: #f2a01a;
  --amber-soft: #f7c46a;
  --amber-ink: #1f1405;
  --paper: #f4f6fa;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #55627a;
  --line: #dde2ea;
  --blue: #2f5bea;
  --blue-soft: #eaf0ff;
  --ok: #15803d;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Red Hat Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0b1020; --surface: #121a2e; --ink: #e6ebf5; --muted: #9aa6bf; --line: #26324d;
    --blue: #7c9bff; --blue-soft: #1a2544; --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1020; --surface: #121a2e; --ink: #e6ebf5; --muted: #9aa6bf; --line: #26324d;
  --blue: #7c9bff; --blue-soft: #1a2544; --ok: #4ade80;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; font-stretch: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: .5rem .8rem; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- En-tête ---------- */
.top { background: var(--night); color: var(--night-ink); }
.top .bar { display: flex; align-items: center; gap: 1rem; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.15rem; letter-spacing: .16em; }
.brand small { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; color: var(--amber); margin-top: -.15rem; white-space: nowrap; }
@media (max-width: 440px) { .top .brand small { display: none; } }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a { color: var(--night-ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: #fff; text-decoration: underline; }
.nav .login { border: 1px solid var(--night-line); padding: .45rem .9rem; border-radius: 999px; white-space: nowrap; }
.nav .login:hover { border-color: var(--amber); text-decoration: none; }
@media (max-width: 760px) { .nav a:not(.login) { display: none; } }

/* ---------- Ouverture : une ronde de nuit ---------- */
.hero { background: var(--night); color: var(--night-ink); padding-block: 28px 64px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 940px) { .hero .grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero .eyebrow { color: var(--amber); }
.hero h1 { color: #fff; font-stretch: 118%; font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: var(--night-ink); font-size: 1.12rem; margin-top: 20px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .8rem 1.3rem; font-weight: 650; text-decoration: none; font-size: 1rem; border: 1px solid transparent; cursor: pointer; font-family: var(--body); }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: var(--amber-soft); }
.btn-line { color: #fff; border-color: var(--night-line); background: transparent; }
.btn-line:hover { border-color: var(--amber); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: .8rem; color: var(--night-muted); }
.facts li::before { content: '▸ '; color: var(--amber); }

/* La fiche de ronde : plan du site + journal horodaté */
.round { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.round-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--night-line); font-family: var(--mono); font-size: .78rem; color: var(--night-muted); }
.round-head b { color: #fff; font-weight: 600; }
.round-head .live { color: var(--amber); white-space: nowrap; }
.plan { display: block; width: 100%; height: auto; background: var(--night-2); }
.plan .grid-line { stroke: #1f3556; stroke-width: 1; }
.plan .bldg { fill: #182b47; stroke: #2c4670; stroke-width: 1.5; }
.plan .bldg-label { fill: #6f86ad; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.plan .route { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; }
.plan .cp circle { fill: var(--night); stroke: var(--amber); stroke-width: 2.5; }
.plan .cp text { fill: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.plan .cp.warn circle { stroke: #ff6b57; }
.plan .walker { fill: var(--amber); }
.plan .walker-halo { fill: var(--amber); opacity: .25; }
@media (prefers-reduced-motion: reduce) { .plan .walker, .plan .walker-halo { display: none; } }
.log { list-style: none; margin: 0; padding: 8px 0; font-family: var(--mono); font-size: .82rem; font-variant-numeric: tabular-nums; }
.log li { display: grid; grid-template-columns: 1.7rem 3.4rem 1fr auto; gap: 8px; align-items: baseline; padding: 7px 18px; border-top: 1px solid rgba(255, 255, 255, .05); }
.log li:first-child { border-top: 0; }
.log .n { color: var(--amber); font-weight: 700; }
.log .t { color: var(--night-muted); }
.log .w { color: #fff; }
.log .w small { display: block; color: #ffb4a8; font-size: .76rem; }
.log .m { color: var(--night-muted); font-size: .72rem; border: 1px solid var(--night-line); border-radius: 6px; padding: 0 .35rem; }
.log .ok { color: #7ee2a0; }
@media (max-width: 560px) { .log { font-size: .78rem; } .log li { grid-template-columns: 1.2rem 2.9rem 1fr; padding: 7px 14px; } .log .m { grid-column: 3; justify-self: start; } }

/* ---------- Bandeau terrain ---------- */
.origin { border-bottom: 1px solid var(--line); background: var(--surface); }
.origin p { padding-block: 22px; max-width: 60em; color: var(--muted); }
.origin b { color: var(--ink); }

/* ---------- Sections ---------- */
section.block { padding-block: 72px; }
section.block.tight { padding-top: 0; }
.block-head { max-width: 46em; }
.block-head h2 { font-stretch: 112%; font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 10px; }
.block-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Trois espaces */
.spaces { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
@media (min-width: 900px) { .spaces { grid-template-columns: repeat(3, 1fr); } }
.space { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.space h3 { font-stretch: 108%; font-weight: 750; font-size: 1.3rem; margin-top: 8px; }
.space ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.space li { padding-left: 1.1rem; position: relative; }
.space li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }
.space li b { display: block; font-weight: 650; }
.space li span { color: var(--muted); font-size: .95rem; }

/* Captures */
.shots { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; align-items: start; }
@media (min-width: 900px) { .shots { grid-template-columns: 1.55fr 1fr; } }
.phones { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.phones figure { margin: 0; flex: 0 0 auto; width: min(200px, 44vw); scroll-snap-align: start; }
.phone { border: 7px solid #0f1522; border-radius: 26px; overflow: hidden; background: #0f1522; box-shadow: var(--shadow); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.screen { margin: 0; }
.screen .frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.screen .frame::before { content: ''; display: block; height: 22px; background: var(--paper); border-bottom: 1px solid var(--line); background-image: radial-gradient(circle at 12px 11px, #f87171 4px, transparent 5px), radial-gradient(circle at 28px 11px, #fbbf24 4px, transparent 5px), radial-gradient(circle at 44px 11px, #34d399 4px, transparent 5px); }
.shots .stack { display: grid; gap: 28px; }

/* Démarrer */
.start { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 820px) { .start { grid-template-columns: repeat(3, 1fr); } }
.start li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 22px; }
.start li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: var(--amber); font-family: var(--mono); font-weight: 700; margin-bottom: 12px; }
.start b { display: block; font-size: 1.05rem; }
.start span { color: var(--muted); font-size: .95rem; }

/* Tarifs */
.prices { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
@media (min-width: 640px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .prices { grid-template-columns: repeat(5, 1fr); } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.price h3 { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price .amount { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 2.1rem; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.price .per { font-size: .85rem; color: var(--muted); }
.price .agents { font-weight: 650; margin-top: 8px; }
.price .note { font-size: .88rem; color: var(--muted); }
.price.trial { background: var(--night); border-color: var(--night); color: var(--night-ink); }
.price.trial h3, .price.trial .per, .price.trial .note { color: var(--night-muted); }
.price.trial .amount { color: var(--amber); }
.prices-note { margin-top: 18px; color: var(--muted); font-size: .92rem; max-width: 60em; }
@media (min-width: 760px) { .prices.three { grid-template-columns: repeat(3, 1fr); } }

/* Questions */
.faq { display: grid; grid-template-columns: 1fr; gap: 12px 40px; margin: 36px 0 0; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; } }
.faq div { border-top: 1px solid var(--line); padding-top: 16px; }
.faq dt { font-weight: 700; font-size: 1.05rem; }
.faq dd { margin: 6px 0 12px; color: var(--muted); }

/* Contact */
.contact { background: var(--night); color: var(--night-ink); border-radius: 22px; padding: 36px 28px; display: grid; gap: 20px; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 48px; } }
.contact h2 { color: #fff; font-stretch: 112%; font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.contact p { color: var(--night-muted); margin-top: 12px; }
.contact p a { color: #fff; }
.mailbox { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 18px; }
.mailbox .addr { font-family: var(--mono); font-size: 1.05rem; color: #fff; user-select: all; word-break: break-all; }
.mailbox .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mailbox .done { font-family: var(--mono); font-size: .8rem; color: var(--amber); min-height: 1.2em; margin-top: 8px; }

/* Pied de page */
.foot { background: var(--night); color: var(--night-muted); margin-top: 72px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-block: 30px; font-size: .9rem; }
.foot a { color: var(--night-ink); }
.foot .brand b { font-size: 1rem; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }

/* Focus gardiennage */
.grid-gard { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 940px) { .grid-gard { grid-template-columns: 1fr 1fr; gap: 48px; } }
.gard-lead { color: var(--muted); font-size: 1.08rem; margin-top: 14px; max-width: 34em; }
.gard-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.gard-list li { padding-left: 1.1rem; position: relative; }
.gard-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }
.gard-list li b { display: block; font-weight: 650; }
.gard-list li span { color: var(--muted); font-size: .95rem; }
.gard-card { margin: 0; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 44px rgba(0, 0, 0, .18); }
.gard-card .log .n { font-size: .9rem; }
.gard-card .log .w small { color: var(--night-muted); }

/* Page mentions légales */
.legal { padding-block: 48px 24px; }
.legal article { max-width: 46em; }
.legal h1 { font-stretch: 112%; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-stretch: 108%; font-weight: 750; font-size: 1.3rem; margin-top: 36px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 1.2rem; }
.legal .todo { background: #fff4e0; color: #7a4a00; border-radius: 4px; padding: 0 .3rem; }
