/* Site NodeGW : mêmes teintes que le dashboard. */
:root {
  --bg: #f4f3f0; --surface: #fcfcfb; --border: #e3e2de;
  --text: #0b0b0b; --text2: #52514e; --muted: #858480;
  --accent: #2a78d6; --accent-soft: #e4eefb; --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111110; --surface: #1a1a19; --border: #2e2e2c;
    --text: #ffffff; --text2: #c3c2b7; --muted: #8d8c85;
    --accent: #3987e5; --accent-soft: #1b2a3f;
  }
}
:root[data-theme="dark"] {
  --bg: #111110; --surface: #1a1a19; --border: #2e2e2c;
  --text: #ffffff; --text2: #c3c2b7; --muted: #8d8c85;
  --accent: #3987e5; --accent-soft: #1b2a3f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Une seule langue affichée à la fois. */
html[lang="fr"] [lang="en"], html[lang="en"] [lang="fr"] { display: none; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow > * { max-width: 44rem; }
a { color: var(--accent); }

.top { position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand small, footer small { font-weight: 400; font-size: .62rem; color: var(--muted); letter-spacing: .02em; }
nav { display: flex; gap: 1.1rem; }
nav a { color: var(--text2); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }
.theme { border: 1px solid var(--border); border-radius: 6px; background: none; color: var(--text2); font: inherit; font-size: .95rem; line-height: 1; padding: .28rem .5rem; cursor: pointer; }
.theme:hover { color: var(--text); }
.langs { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.langs button { border: 0; background: none; color: var(--text2); font: inherit; font-size: .8rem; padding: .2rem .55rem; cursor: pointer; }
html[lang="fr"] .langs [data-set-lang="fr"], html[lang="en"] .langs [data-set-lang="en"] { background: var(--accent); color: var(--on-accent); }

section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--border); }
.hero { padding: 4.5rem 0 4rem; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.15; margin: 0 0 1.2rem; max-width: 22em; letter-spacing: -.01em; }
h2 { font-size: 1.7rem; margin: 0 0 1.2rem; }
h3 { font-size: 1.15rem; margin: 2.6rem 0 1rem; }
h4 { font-size: 1rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--text2); max-width: 40em; }
.intro { max-width: 46em; color: var(--text2); }

.cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.8rem; }
.btn {
  display: inline-block; padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.archi { margin: 2rem 0 0; padding: 1rem; background: #ffffff; border: 1px solid var(--border); border-radius: 10px; }
.archi img { display: block; width: 100%; height: auto; }

.shots { margin-top: 2rem; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); margin-bottom: .8rem; }
.shots figure { margin: 0; }
.shots .wide { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; }
.shots figcaption { margin-top: .5rem; font-size: .9rem; color: var(--text2); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; }
.grid p { margin: 0; color: var(--text2); font-size: .95rem; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: etape; max-width: 46em; }
.steps li { counter-increment: etape; position: relative; padding: .55rem 0 .55rem 2.8rem; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(etape); position: absolute; left: 0; top: .5rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; display: grid; place-items: center;
}

.plain { margin: 0; padding-left: 1.2rem; max-width: 46em; color: var(--text2); }
.plain li { margin-bottom: .5rem; }
.panel { margin-top: 2.8rem; padding: 1.4rem 1.4rem 1rem; background: var(--accent-soft); border-radius: 12px; }
.panel h3 { margin-top: 0; }
.panel p, .panel .plain { color: var(--text); }

form { display: grid; gap: .9rem; margin-top: 1.5rem; }
label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
input, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: .6rem .7rem; width: 100%;
}
input:focus, textarea:focus, .btn:focus-visible, .theme:focus-visible, .langs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form .btn { justify-self: start; }
.note { font-size: .85rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -999rem; }

.qr { display: inline-block; margin-top: .8rem; padding: .5rem; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; line-height: 0; }
.qr img { display: block; width: 13rem; height: 13rem; }

footer { border-top: 1px solid var(--border); padding: 1.4rem 0; font-size: .9rem; color: var(--text2); }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 34rem) {
  nav { order: 3; width: 100%; padding-bottom: .6rem; }
  section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
}
