/* ===========================
   ZYRVANO — main.css
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0b0d14;
  --bg-2:     #111420;
  --bg-3:     #161926;
  --border:   #1f2335;
  --border-2: #2a2e45;
  --accent:   #6366f1;
  --accent-2: #818cf8;
  --accent-bg:#6366f114;
  --text:     #e2e8f0;
  --text-2:   #94a3b8;
  --text-3:   #4b5563;
  --success:  #10b981;
  --warning:  #f59e0b;
  --danger:   #ef4444;
  --radius:   6px;
  --max:      860px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; border-bottom: 0.5px solid var(--border); }
.section:last-of-type { border-bottom: none; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,13,20,.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; background: var(--accent);
  border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 16px; height: 16px; }
.logo-type { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.logo-type span { color: var(--accent-2); }
.nav-badge {
  font-size: 11px; color: var(--text-3); border: 0.5px solid var(--border-2);
  padding: 3px 10px; border-radius: 20px; letter-spacing: .04em;
}
.lang-switcher { display: flex; gap: 4px; flex-wrap: wrap; }
.lang-btn {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  border: 0.5px solid var(--border-2); background: transparent;
  color: var(--text-3); cursor: pointer; font-family: inherit; transition: all .15s;
}
.lang-btn:hover { color: var(--text-2); border-color: var(--border-2); }
.lang-btn.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-2); }

/* ── HERO ── */
.hero {
  padding: 88px 0 72px;
  border-bottom: 0.5px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-img {
  width: 100%; max-height: 220px; object-fit: cover;
  border-radius: 10px; margin-bottom: 40px;
  border: 0.5px solid var(--border-2);
  display: block;
}
.eyebrow {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; display: block; width: 18px; height: 1px; background: var(--accent-2); }
h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; color: #fff; line-height: 1.25; margin-bottom: 16px; }
.hero-sub { font-size: 16px; color: var(--text-2); line-height: 1.7; max-width: 620px; margin-bottom: 32px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 11px; padding: 5px 12px; border-radius: 20px;
  border: 0.5px solid var(--border-2); color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ── METRICS ── */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.metric-card { background: var(--bg-2); padding: 24px 20px; }
.metric-value { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.metric-label { font-size: 12px; color: var(--text-3); letter-spacing: .03em; }
.metric-icon { font-size: 18px; color: var(--accent-2); margin-bottom: 10px; }

/* ── SECTIONS GÉNÉRIQUES ── */
.section-eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 12px; }
.section-intro { font-size: 15px; color: var(--text-2); line-height: 1.7; max-width: 620px; margin-bottom: 40px; }

/* ── CARDS AVANTAGES ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg-2); padding: 24px; }
.card-icon { font-size: 20px; color: var(--accent-2); margin-bottom: 14px; }
.card h3 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── ILLUSTRATION ── */
.illus-wrap { margin: 40px 0 0; }
.illus-img { width: 100%; border-radius: 10px; border: 0.5px solid var(--border-2); display: block; }

/* ── BONNES PRATIQUES ── */
.practices-list { display: flex; flex-direction: column; gap: 0; border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.practice-item { display: flex; gap: 20px; padding: 20px 24px; background: var(--bg-2); border-bottom: 0.5px solid var(--border); align-items: flex-start; }
.practice-item:last-child { border-bottom: none; }
.practice-num { font-size: 11px; font-weight: 700; color: var(--accent-2); background: var(--accent-bg); border: 0.5px solid var(--accent); border-radius: 4px; padding: 3px 8px; flex-shrink: 0; margin-top: 2px; font-family: monospace; }
.practice-item h3 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.practice-item p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── ENGAGEMENTS ── */
.commits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.commit-card { background: var(--bg-2); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.commit-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--accent-bg); border: 0.5px solid var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent-2); font-size: 14px; }
.commit-card h3 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.commit-card p { font-size: 12px; color: var(--text-2); line-height: 1.55; }

/* ── SCHÉMA ── */
.schema-wrap { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.schema-step { flex: 1; min-width: 180px; background: var(--bg-2); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.schema-arrow { color: var(--border-2); font-size: 20px; padding: 0 8px; flex-shrink: 0; }
.schema-num { font-size: 10px; font-weight: 700; color: var(--accent-2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.schema-icon { font-size: 28px; color: var(--accent-2); margin-bottom: 12px; }
.schema-step h3 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.schema-step p { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* ── DISCLAIMER RGPD ── */
.rgpd-box {
  background: var(--bg-2); border: 0.5px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
}
.rgpd-box h3 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.rgpd-box h3 i { color: var(--accent-2); }
.rgpd-body { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.rgpd-body strong { color: var(--text); font-weight: 500; }
.rights-list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.rights-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); list-style: none; }
.rights-list li::before { content: '→'; color: var(--accent-2); flex-shrink: 0; }

/* ── FORMULAIRE ── */
.form-wrap { background: var(--bg-2); border: 0.5px solid var(--border); border-radius: 10px; padding: 32px; }
.form-header { margin-bottom: 24px; }
.form-header h2 { font-size: 20px; margin-bottom: 6px; }
.form-header p { font-size: 13px; color: var(--text-2); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-3); border: 0.5px solid var(--border-2);
  border-radius: var(--radius); color: var(--text); font-family: inherit;
  font-size: 14px; padding: 10px 14px; outline: none; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field textarea { resize: vertical; min-height: 80px; }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-opt {
  flex: 1; min-width: 200px; background: var(--bg-3); border: 0.5px solid var(--border-2);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: all .15s;
  display: flex; gap: 12px; align-items: flex-start;
}
.radio-opt:hover { border-color: var(--border-2); background: var(--bg); }
.radio-opt.selected { border-color: var(--accent); background: var(--accent-bg); }
.radio-dot {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-2);
  margin-top: 2px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.radio-opt.selected .radio-dot { border-color: var(--accent); background: var(--accent); }
.radio-dot-inner { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: none; }
.radio-opt.selected .radio-dot-inner { display: block; }
.radio-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.radio-desc { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.warning-box {
  display: none; margin-top: 10px; background: rgba(245,158,11,.07);
  border: 0.5px solid rgba(245,158,11,.3); border-radius: var(--radius);
  padding: 12px 16px; font-size: 12px; color: #fcd34d; line-height: 1.55;
}
.submit-btn {
  width: 100%; padding: 12px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius); background: var(--accent); color: #fff;
  border: none; cursor: pointer; font-family: inherit; margin-top: 6px; transition: background .15s;
}
.submit-btn:hover { background: #4f46e5; }
.success-msg {
  display: none; padding: 14px 18px;
  background: rgba(16,185,129,.08); border: 0.5px solid rgba(16,185,129,.3);
  border-radius: var(--radius); color: #6ee7b7; font-size: 13px; margin-top: 14px; line-height: 1.55;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-2); border-top: 0.5px solid var(--border);
  padding: 40px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 24px; margin-bottom: 28px; }
.footer-item { font-size: 12px; color: var(--text-2); line-height: 1.7; }
.footer-item span { display: block; font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.footer-item a { color: var(--accent-2); text-decoration: none; }
.footer-item a:hover { text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 0.5px solid var(--border); }
.footer-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.footer-copy { font-size: 11px; color: var(--text-3); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav-badge { display: none; }
  .schema-wrap { flex-direction: column; }
  .schema-arrow { transform: rotate(90deg); }
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
  .form-wrap { padding: 22px 18px; }
}

/* ── TABLER ICONS CDN ── */
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
