/* ===== PIVUS — Landing ===== */
:root {
  --bg: #070c18;
  --bg-2: #0b1224;
  --bg-3: #0f1830;
  --ink: #eaf0ff;
  --ink-dim: #9aabce;
  --ink-faint: #5d6c8f;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #2f6df0;
  --accent-2: #19c5e0;
  --navy: #1a2b54;
  --light-bg: #f3f5fb;
  --light-bg-2: #ffffff;
  --light-ink: #0c1426;
  --light-dim: #51618a;
  --light-line: #dfe4f0;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
canvas { display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- typographic helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent-2);
  opacity: 0.7;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
h2.section-title { font-size: clamp(30px, 4vw, 50px); margin-bottom: 20px; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-dim); max-width: 60ch; text-wrap: pretty; }

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15.5px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px -8px var(--accent);
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent), white 10%); box-shadow: 0 10px 32px -8px var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent-2); color: #fff; background: rgba(255,255,255,0.03); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 12, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding: 12px 28px;
}
.nav-logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .96; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; color: var(--ink-dim); transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 10px 18px; font-size: 14.5px; }
.nav-burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-grad { position: absolute; inset: 0; z-index: -1; }

/* full-bleed variant */
.hero.full { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero.full .hero-grad {
  background:
    radial-gradient(120% 90% at 15% 30%, rgba(7,12,24,0.62), rgba(7,12,24,0.30) 45%, rgba(7,12,24,0.78) 100%),
    linear-gradient(180deg, rgba(7,12,24,0.55) 0%, rgba(7,12,24,0.20) 40%, rgba(7,12,24,0.92) 100%);
}
.hero.full .hero-inner { max-width: 760px; }

/* panel variant */
.hero.panel { padding: 130px 0 70px; background: var(--bg); }
.hero.panel .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero.panel .hero-canvas { position: relative; inset: auto; height: 460px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.hero.panel .hero-grad { display: none; }
.hero.panel .hero-inner { max-width: none; }

/* sobre variant */
.hero.sobre { padding: 150px 0 0; text-align: center; background: var(--bg); }
.hero.sobre .hero-inner { max-width: 820px; margin: 0 auto; }
.hero.sobre .hero-canvas { position: relative; inset: auto; height: 340px; margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 0; }
.hero.sobre .hero-grad { display: none; }
.hero.sobre .hero-cta { justify-content: center; }

.hero h1 { font-size: clamp(40px, 6.6vw, 84px); letter-spacing: -0.035em; margin-bottom: 26px; text-wrap: balance; }
.hero h1 .grad { color: var(--accent-2); }
.hero .hero-sub { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-dim); max-width: 56ch; margin-bottom: 38px; text-wrap: pretty; }
.hero.sobre .hero-sub { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; margin-bottom: 30px;
  white-space: nowrap;
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

.hero-stats { display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap; }
.hero.sobre .hero-stats { justify-content: center; }
.hero-stat .num { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: #fff; }
.hero-stat .lab { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-top: 4px; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section.tight { padding: 80px 0; }

/* method */
.method { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.method-head { max-width: 760px; margin-bottom: 60px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative; padding: 30px 26px 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0));
}
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); letter-spacing: 0.1em; }
.step h3 { font-size: 21px; margin: 16px 0 10px; }
.step p { color: var(--ink-dim); font-size: 15.5px; margin: 0; }
.step-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(47,109,240,0.14); border: 1px solid rgba(47,109,240,0.3); margin-bottom: 20px; }
.step-ico svg { width: 22px; height: 22px; stroke: var(--accent-2); }

.method-note { margin-top: 40px; display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px; border-radius: 12px; background: rgba(25,197,224,0.06); border: 1px solid rgba(25,197,224,0.2); }
.method-note svg { width: 22px; height: 22px; stroke: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.method-note p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }
.method-note strong { color: var(--ink); font-weight: 500; }

/* applications — alternating rows */
.apps-head { max-width: 760px; margin-bottom: 70px; }
.appRow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 46px 0; }
.appRow + .appRow { border-top: 1px solid var(--line-soft); }
.appRow:nth-child(even) .appRow-media { order: 2; }
.appRow-media { position: relative; }
.field-panel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16 / 11; background: var(--bg);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.field-panel canvas { width: 100%; height: 100%; }
.field-frame {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.field-cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.field-cap .read {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink); background: rgba(7,12,24,0.55); backdrop-filter: blur(4px);
  padding: 6px 10px; border-radius: 7px; border: 1px solid var(--line-soft);
  text-transform: none;
}
.colorbar { width: 120px; flex-shrink: 0; }
.colorbar .bar { height: 7px; border-radius: 4px; background: linear-gradient(90deg, #0a1024, #162a68, #2f6df0, #28c4e6, #d8f6ff); }
.colorbar .lbls { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-dim); margin-top: 4px; letter-spacing: 0.04em; }
.field-tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent-2); background: rgba(7,12,24,0.5); border: 1px solid var(--line-soft); padding: 5px 9px; border-radius: 6px; }

.appRow-body .idx { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.12em; }
.appRow-body h3 { font-size: clamp(24px, 2.6vw, 33px); margin: 14px 0 16px; }
.appRow-body p { color: var(--ink-dim); margin: 0 0 18px; }
.read-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.read-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.read-list svg { width: 18px; height: 18px; stroke: var(--accent-2); flex-shrink: 0; margin-top: 3px; }
.read-list .lead-in { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-dim); text-transform: uppercase; }

/* products (light section) */
.products { background: var(--light-bg); color: var(--light-ink); }
.products .eyebrow { color: var(--accent); }
.products .eyebrow::before { background: var(--accent); }
.products .section-title { color: var(--light-ink); }
.products .lead { color: var(--light-dim); }
.products-head { max-width: 720px; margin-bottom: 56px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: var(--light-bg-2); border: 1px solid var(--light-line); border-radius: var(--radius);
  padding: 30px 28px 32px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(26,43,84,0.4); border-color: #c5cee4; }
.prod-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.prod-card h3 { font-size: 23px; margin: 14px 0 12px; color: var(--light-ink); }
.prod-card p { color: var(--light-dim); font-size: 15.5px; margin: 0 0 22px; flex: 1; }
.prod-feat { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 9px; }
.prod-feat li { font-size: 14.5px; color: #34406a; display: flex; gap: 10px; align-items: flex-start; }
.prod-feat svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; margin-top: 3px; }
.prod-num { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--light-line); position: absolute; top: 22px; right: 26px; }
.prod-card { position: relative; }

/* positioning band */
.positioning { background: var(--light-bg-2); color: var(--light-ink); border-top: 1px solid var(--light-line); }
.pos-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.pos-grid .eyebrow { color: var(--accent); }
.pos-grid .eyebrow::before { background: var(--accent); }
.pos-grid h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--light-ink); margin-bottom: 18px; text-wrap: balance; }
.pos-grid p { color: var(--light-dim); }
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sector {
  border: 1px solid var(--light-line); border-radius: 12px; padding: 22px 20px; background: var(--light-bg);
}
.sector .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(47,109,240,0.1); display: grid; place-items: center; margin-bottom: 14px; }
.sector .ico svg { width: 21px; height: 21px; stroke: var(--accent); }
.sector h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0 0 4px; color: var(--light-ink); }
.sector p { font-size: 13.5px; color: var(--light-dim); margin: 0; }

/* contact / CTA */
.contact { background: var(--bg); position: relative; overflow: hidden; }
.contact-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.contact-intro .eyebrow { color: var(--accent-2); }
.contact-intro h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 22px; text-wrap: balance; }
.contact-intro p { color: var(--ink-dim); margin: 0 0 26px; max-width: 46ch; }
.contact-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); }
.contact-points .n { font-family: var(--font-mono); color: var(--accent-2); font-size: 13px; margin-top: 3px; }

/* form */
.form-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: 20px; padding: 34px;
  backdrop-filter: blur(6px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: rgba(7,12,24,0.6); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #5d6c8f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,109,240,0.18); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aabce' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field.err input, .field.err select, .field.err textarea { border-color: #ff6b6b; }
.field .err-msg { font-size: 12.5px; color: #ff8585; font-family: var(--font-mono); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  font-family: var(--font-body); font-size: 14px; color: var(--ink-dim);
  background: rgba(7,12,24,0.5); border: 1px solid var(--line); border-radius: 9px; padding: 9px 15px; cursor: pointer;
  transition: all .18s ease;
}
.seg button.on { background: rgba(47,109,240,0.16); border-color: var(--accent); color: #fff; }
.seg button:hover { border-color: var(--accent-2); }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; font-size: 16px; padding: 16px; }
.form-foot { font-size: 12.5px; color: var(--ink-dim); margin: 16px 0 0; text-align: center; }

/* success */
.form-success { text-align: center; padding: 30px 10px; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: rgba(25,197,224,0.14); border: 1px solid var(--accent-2); display: grid; place-items: center; margin: 0 auto 22px; }
.form-success .check svg { width: 30px; height: 30px; stroke: var(--accent-2); }
.form-success h3 { font-size: 26px; margin-bottom: 12px; }
.form-success p { color: var(--ink-dim); margin: 0 auto; max-width: 38ch; }

/* footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding: 60px 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-logo { height: 30px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px; }
.footer-tag { color: var(--ink-dim); font-size: 14.5px; max-width: 34ch; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 16px; font-weight: 400; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 10px; opacity: .82; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; color: var(--accent-2); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); letter-spacing: 0.04em; }

/* ============================================================
 *  ÉDITION EN LIGNE / ADMIN
 * ============================================================ */
.ed { outline: none; }
.ed-on {
  position: relative;
  cursor: text;
  border-radius: 5px;
  outline: 1px dashed rgba(25, 197, 224, 0.45);
  outline-offset: 3px;
  transition: outline-color .15s ease, background .15s ease;
}
.ed-on:hover { outline-color: var(--accent-2); background: rgba(25, 197, 224, 0.07); }
.ed-on:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  background: rgba(25, 197, 224, 0.10);
}
.ed-on::after {
  content: "";
  position: absolute;
  top: -9px; right: -9px;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--accent-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23061018' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center/12px no-repeat;
  opacity: 0; transform: scale(.6); transform-origin: center;
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.ed-on:hover::after, .ed-on:focus::after { opacity: 1; transform: scale(1); }
/* champ vidé : reste une cible cliquable visible en mode édition */
.ed-on:empty { display: inline-block; min-width: 64px; min-height: 1.05em; vertical-align: middle; }
.ed-on:empty::before { content: "vide"; color: var(--ink-faint); opacity: .55; font-style: italic; font-size: .85em; }
.products .ed-on::after, .positioning .ed-on::after { background-color: var(--accent); }

/* ---- Overlay de connexion ---- */
.admin-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(4, 8, 18, 0.86);
  backdrop-filter: blur(10px);
  padding: 24px;
  animation: admin-fade .25s ease;
}
@keyframes admin-fade { from { opacity: 0; } to { opacity: 1; } }
.admin-login {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 32px 28px;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9);
}
.admin-login-mark { display: flex; justify-content: center; margin-bottom: 22px; }
.admin-login-mark img { height: 30px; filter: brightness(0) invert(1); opacity: .95; }
.admin-login h2 { font-family: var(--font-display); font-size: 22px; text-align: center; margin: 0 0 6px; }
.admin-login-sub { text-align: center; color: var(--ink-dim); font-size: 14px; margin: 0 0 24px; }
.admin-login label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 7px; }
.admin-login input {
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: rgba(4,8,18,0.7); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px; transition: border-color .2s, box-shadow .2s;
}
.admin-login input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,109,240,0.18); }
.admin-login .btn { justify-content: center; margin-top: 4px; }
.admin-login .btn:disabled { opacity: .5; cursor: not-allowed; }
.admin-err { color: #ff8585; font-family: var(--font-mono); font-size: 12.5px; margin-bottom: 12px; }
.admin-lock { color: #f3c969; font-family: var(--font-mono); font-size: 12.5px; margin-bottom: 12px; }
.admin-cancel {
  background: none; border: none; color: var(--ink-dim); font-family: var(--font-body);
  font-size: 13.5px; margin-top: 16px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.admin-cancel:hover { color: var(--ink); }

/* ---- Barre admin ---- */
.admin-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  font-family: var(--font-body); font-size: 14px;
  box-shadow: 0 -10px 40px -20px rgba(0,0,0,0.8);
}
.admin-bar.editing { border-top-color: var(--accent-2); box-shadow: 0 -2px 0 0 var(--accent-2), 0 -10px 40px -20px rgba(0,0,0,0.8); }
.admin-brand { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; }
.admin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.admin-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink-dim); user-select: none; }
.admin-switch input { position: absolute; opacity: 0; pointer-events: none; }
.admin-switch-ui { width: 38px; height: 21px; border-radius: 20px; background: rgba(255,255,255,0.12); border: 1px solid var(--line); position: relative; transition: background .2s; }
.admin-switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .2s; }
.admin-switch input:checked + .admin-switch-ui { background: var(--accent-2); }
.admin-switch input:checked + .admin-switch-ui::after { transform: translateX(17px); }
.admin-count { color: var(--ink-dim); font-family: var(--font-mono); font-size: 12px; }
.admin-count.saving { color: var(--accent-2); }
.admin-count.ok { color: #57d9a3; }
.admin-count.warn { color: #f3c969; }
.admin-count.err { color: #ff8585; }
.admin-mode { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; padding: 2px 7px; border-radius: 100px; margin-left: 4px; }
.admin-mode.live { background: rgba(87,217,163,.16); color: #57d9a3; border: 1px solid rgba(87,217,163,.4); }
.admin-mode.local { background: rgba(243,201,105,.14); color: #f3c969; border: 1px solid rgba(243,201,105,.35); }
.admin-actions { margin-left: auto; display: flex; gap: 8px; }
.admin-actions button {
  font-family: var(--font-body); font-size: 13.5px; cursor: pointer;
  padding: 8px 15px; border-radius: 8px; border: 1px solid transparent;
  background: var(--accent); color: #fff; transition: all .18s;
}
.admin-actions button.ghost { background: transparent; border-color: var(--line); color: var(--ink-dim); }
.admin-actions button.ghost:hover { color: var(--ink); border-color: var(--accent-2); }
.admin-actions button:disabled { opacity: .4; cursor: not-allowed; }
body:has(.admin-bar) { padding-bottom: 56px; }

@media (max-width: 640px) {
  .admin-bar { gap: 10px 14px; font-size: 13px; }
  .admin-count { display: none; }
  .admin-actions { margin-left: 0; width: 100%; }
  .admin-actions button { flex: 1; }
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .appRow { grid-template-columns: 1fr; gap: 28px; padding: 34px 0; }
  .appRow:nth-child(even) .appRow-media { order: 0; }
  .prod-grid { grid-template-columns: 1fr; }
  .pos-grid, .contact-grid, .hero.panel .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero.panel .hero-canvas { height: 320px; }
  .form-row { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .contact-canvas { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 76px 0; }
  .form-card { padding: 24px; }
  .sectors { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}

/* ============================================================
 *  PAGES LÉGALES (mentions-legales / cgv / cgu)
 * ============================================================ */
.legal-body { background: var(--bg); }
.legal-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(7, 12, 24, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.legal-nav img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .95; display: block; }
.legal-back { font-size: 14.5px; color: var(--ink-dim); transition: color .2s ease; }
.legal-back:hover { color: var(--ink); }
.legal { max-width: 820px; margin: 0 auto; padding: 72px 28px 96px; }
.legal .eyebrow { color: var(--accent-2); }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; line-height: 1.05; margin: 14px 0 10px; text-wrap: balance; }
.legal-updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-dim); letter-spacing: .04em; margin: 0 0 28px; }
.legal-notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px; margin-bottom: 44px;
  background: rgba(25, 197, 224, 0.06); border: 1px solid rgba(25, 197, 224, 0.2);
  color: var(--ink-dim); font-size: 14.5px; line-height: 1.6;
}
.legal-notice svg { width: 20px; height: 20px; stroke: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.legal section { margin-bottom: 34px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 12px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-dim); font-size: 16px; line-height: 1.75; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal .todo { color: var(--accent-2); font-style: italic; }
.legal a.inline { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-foot { border-top: 1px solid var(--line-soft); padding: 30px 28px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); letter-spacing: .04em; }
.legal-foot a { color: var(--ink-dim); }
.legal-foot a:hover { color: var(--accent-2); }
