:root {
  --brand-1: #8b5cf6;
  --brand-2: #7c3aed;
  --brand-grad: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --accent: #a78bfa;
  --bg: #0a0a0f;
  --bg-2: #0f172a;
  --surface: #1e293b;
  --surface-input: #0f172a;
  --line: rgba(255, 255, 255, 0.09);
  --heading: #f8fafc;
  --ink: #cbd5e1;
  --muted: #94a3b8;
  --muted-soft: #64748b;
  --footer-bg: linear-gradient(180deg, #0a0a14 0%, #12121f 100%);
  --hero-grad: linear-gradient(160deg, #14102b 0%, #1f1840 60%, #161226 100%);
  --err: #f87171;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-card: 0 28px 70px -24px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 10px 30px -16px rgba(0, 0, 0, 0.6);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; color: var(--heading); }
p { margin: 0; }
a { color: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 620px; }

/* Header */
.site-header {
  position: relative; z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: saturate(160%) blur(10px);
}
.has-hero .site-header { border-bottom: 0; background: transparent; backdrop-filter: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 30px; height: 30px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-weight: 800; font-size: 1.06rem; color: #fff; }
.brand-by { font-size: 0.66rem; font-weight: 500; color: var(--muted); margin-top: 1px; white-space: nowrap; }
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.lang-switch a { text-decoration: none; font-size: 0.82rem; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; transition: all 0.15s ease; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: var(--brand-grad); color: #fff; }

/* Hero */
.hero {
  position: relative; margin-top: -72px; padding: 134px 0 92px;
  background: var(--hero-grad);
  color: #fff; overflow: hidden; text-align: center;
}
.hero-glow { position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(118, 75, 162, 0.5), transparent 65%); filter: blur(20px); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 2; max-width: 740px; margin: 0 auto; }
.hero-inner::before { content: ""; position: absolute; inset: -44px -64px; z-index: -1; background: radial-gradient(ellipse at center, rgba(10, 8, 20, 0.75) 0%, rgba(10, 8, 20, 0.5) 45%, rgba(10, 8, 20, 0) 78%); pointer-events: none; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #e9e4ff; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 800; margin-bottom: 18px; color: #fff; }
.hero .lead { font-size: 1.12rem; color: rgba(255, 255, 255, 0.82); margin: 0 auto 30px; max-width: 620px; }
.hero-reassurance { margin-top: 16px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

/* Matrix rain (fond anime du hero, repris du site principal) */
.matrix-rain {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; opacity: 0.5;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 74%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 74%, transparent 100%);
}
.matrix-rain .col {
  position: absolute; top: -100vh;
  font-family: 'Courier New', 'Lucida Console', monospace; font-size: 14px; line-height: 1.5;
  color: #8b5cf6; writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap;
  animation: matrixFall linear infinite; will-change: transform; text-shadow: 0 0 8px rgba(139, 92, 246, 0.25);
}
@keyframes matrixFall {
  0% { transform: translateY(-10vh); }
  100% { transform: translateY(calc(100vh + 100%)); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-grad); color: #fff; border: 0; border-radius: 11px;
  padding: 13px 26px; font-size: 0.98rem; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(102, 126, 234, 0.55);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 16px 34px -10px rgba(102, 126, 234, 0.65); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 34px; font-size: 1.04rem; border-radius: 12px; }
.btn-white { background: #fff; color: #312560; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6); }
.btn-white:hover { background: #f1effb; filter: none; }

/* Section heads */
.section-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* Cards generic */
.diy, .deliverables, .steps { padding: 72px 0; border-bottom: 1px solid var(--line); }
.diy { background: var(--bg); }
.deliverables { background: var(--bg-2); }
.steps { background: var(--bg); }

.diy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 880px; margin: 0 auto; }
.diy-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-soft); }
.diy-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.diy-card p { color: var(--muted); font-size: 0.96rem; padding: 8px 0; border-top: 1px solid var(--line); }
.diy-card p:first-of-type { border-top: 0; padding-top: 0; }
.diy-card.is-radar { background: linear-gradient(160deg, #20283d 0%, #2a2148 100%); border-color: rgba(167, 139, 250, 0.4); box-shadow: var(--shadow-card); }
.diy-card.is-radar h3 { color: var(--accent); }
.diy-card.is-radar p { color: #d8d2ec; border-top-color: rgba(167, 139, 250, 0.2); }

.deliver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.deliver-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-soft); }
.deliver-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.deliver-card p { color: var(--muted); font-size: 0.95rem; }
.deliver-card.featured { background: linear-gradient(160deg, #20283d 0%, #2a2148 100%); border-color: rgba(167, 139, 250, 0.4); box-shadow: var(--shadow-card); }
.deliver-card.featured h3 { color: var(--accent); }
.deliver-card.featured p { color: #d8d2ec; }
.deliver-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 30px; }

.steps-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 38px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-soft); }
.step-tag { position: absolute; top: 16px; right: 16px; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* FAQ */
.faq { padding: 72px 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-soft); }
.faq-item h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  padding: 76px 0; text-align: center; color: #fff;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(139, 92, 246, 0.4), transparent 60%),
    linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; color: #fff; margin: 0 auto 14px; max-width: 680px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto 28px; }

/* Form page */
.form-page { padding: 56px 0 72px; background: var(--bg); }
.form-page-head { text-align: center; max-width: 560px; margin: 0 auto 28px; }
.form-page-head h1 { font-size: 1.7rem; font-weight: 700; margin-bottom: 10px; }
.form-page-head p { color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 30px 30px 26px; }

/* Form fields */
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; color: #cbd5e1; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field select {
  width: 100%; padding: 12px 13px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
  font-size: 0.96rem; font-family: inherit; color: var(--heading); background: var(--surface-input);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--muted-soft); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.22); }
.field select { color-scheme: dark; }
.field select option { color: #f8fafc; background: #0f172a; }
.field select:invalid, .field select option[value=""] { color: var(--muted-soft); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
fieldset.field legend { padding: 0; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.radio { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 500; color: var(--ink); padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.radio:hover { border-color: rgba(167, 139, 250, 0.5); }
.radio input { accent-color: var(--brand-1); }
.radio:has(input:checked) { border-color: var(--brand-1); background: rgba(102, 126, 234, 0.12); }
.err { color: var(--err); font-size: 0.82rem; margin-top: 6px; }
.field-help { color: var(--muted-soft); font-size: 0.8rem; margin-top: 6px; line-height: 1.45; }
.gdpr { color: var(--muted); font-size: 0.78rem; margin-top: 16px; line-height: 1.5; }
.gdpr a { color: var(--accent); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Centered cards (confirm, auth) */
.centered-section { padding: 80px 0; background: var(--bg); min-height: 60vh; display: flex; align-items: center; }
.state-card, .auth-card { max-width: 480px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 40px 36px; text-align: center; }
.auth-card { text-align: left; }
.auth-card h1 { font-size: 1.4rem; margin-bottom: 20px; }
.state-card h1 { font-size: 1.5rem; margin-bottom: 12px; }
.state-card p { color: var(--muted); margin-bottom: 26px; }
.alert { background: rgba(248, 113, 113, 0.12); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); border-radius: 10px; padding: 10px 13px; font-size: 0.88rem; margin-bottom: 16px; }

/* Admin */
.admin { padding: 44px 0 72px; background: var(--bg); min-height: 70vh; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-head h1 { font-size: 1.5rem; font-weight: 700; }
.admin-head .link { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.empty-state { background: var(--surface); border: 1px dashed rgba(255, 255, 255, 0.15); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; color: var(--ink); }
.admin-table th, .admin-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table thead th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; background: var(--bg-2); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.nowrap { white-space: nowrap; color: var(--muted); }
.strong { font-weight: 600; color: var(--heading); }
.status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.status-nouveau { background: rgba(102, 126, 234, 0.2); color: #b6c0f7; }
.status-traite { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.btn-sm { background: var(--brand-grad); color: #fff; border: 0; border-radius: 8px; padding: 7px 13px; font-size: 0.82rem; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap; }
.btn-sm.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

/* Footer */
.site-footer { background: var(--footer-bg); color: #fff; padding: 52px 0 26px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 380px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; margin-bottom: 12px; }
.footer-brand-row span { color: #fff; }
.footer-tag { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; line-height: 1.55; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.78); transition: all 0.15s ease; }
.footer-social a:hover { background: var(--brand-grad); color: #fff; transform: translateY(-1px); }
.footer-links-col h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.45); margin: 0 0 14px; }
.footer-links-col a { display: block; color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.92rem; margin-bottom: 9px; transition: color 0.15s ease; }
.footer-links-col a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.5); font-size: 0.84rem; }

/* Responsive */
@media (max-width: 880px) {
  .diy-grid, .deliver-grid { grid-template-columns: 1fr; }
  .deliver-grid { max-width: 460px; margin-left: auto; margin-right: auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .header-inner { height: 64px; }
  .brand { gap: 8px; }
  .brand-logo { width: 26px; height: 26px; }
  .brand-name { font-size: 0.96rem; }
  .brand-by { font-size: 0.62rem; }
  .lang-switch { gap: 2px; padding: 3px; }
  .lang-switch a { padding: 5px 8px; font-size: 0.78rem; }
  .hero { padding: 104px 0 60px; }
  .hero h1 { font-size: 1.9rem; }
  .steps-grid { grid-template-columns: 1fr; max-width: 420px; }
  .field-row, .radio-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .diy, .deliverables, .steps { padding: 52px 0; }
  .cta-band { padding: 56px 0; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
