:root {
  --bg: #0b0b0d;
  --bg-alt: #141417;
  --card: #1a1a1e;
  --border: #2a2a2f;
  --text: #f2f2f3;
  --text-muted: #a3a3ab;
  --red: #e11d2e;
  --red-dark: #a3121f;
  --red-glow: rgba(225, 29, 46, 0.35);
  --blue: #2f6fed;
  --blue-glow: rgba(47, 111, 237, 0.35);
  --orange: #f2994a;
  --orange-glow: rgba(242, 153, 74, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand__logo { height: 38px; width: auto; }
.brand__name {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 1.2rem;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav a { color: var(--text-muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn--primary {
  background: var(--red);
  color: #fff !important;
  box-shadow: 0 0 16px var(--red-glow);
}
.btn--primary:hover { background: var(--red-dark); text-decoration: none; }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted) !important;
}
.btn--ghost:hover { border-color: var(--red); color: var(--text) !important; text-decoration: none; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--lg { padding: 14px 28px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, var(--red-glow), transparent 60%),
    var(--bg);
}
.hero__logo { height: 120px; width: auto; margin-bottom: 24px; filter: drop-shadow(0 0 30px var(--red-glow)); }
.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 16px;
  letter-spacing: 1px;
}
.hero h1 span { color: var(--red); }
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.15rem;
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 64px 24px; }
section.alt { background: var(--bg-alt); }
h2.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
p.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.feature-card h3 { margin-top: 0; color: var(--text); }
.feature-card p { color: var(--text-muted); margin-bottom: 0; }
.feature-card__icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.screenshots figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.screenshots img { display: block; width: 100%; height: auto; }
.screenshots figcaption { padding: 10px 14px; color: var(--text-muted); font-size: 0.9rem; }
.screenshot-placeholder {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background:
    repeating-linear-gradient(45deg, #202024, #202024 10px, #1a1a1e 10px, #1a1a1e 20px);
}

/* ---------- Cards / forms ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 440px;
  margin: 48px auto;
}
.card h1, .card h2 { margin-top: 0; text-align: center; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 0.9rem; }
.field input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--red); }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.alert--error { background: rgba(225,29,46,0.12); border: 1px solid var(--red-dark); color: #ff9aa3; }
.alert--success { background: rgba(46,160,67,0.12); border: 1px solid #2ea043; color: #7ee787; }
.alert--info { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text-muted); }

.form-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Carte "clé unique" mise en avant seule au-dessus de la grille, pour rassurer avant
   de montrer les tarifs dégressifs : 29 € à vie, sans abonnement ni pub. */
.price-card--hero {
  max-width: 380px;
  margin: 0 auto 48px;
  padding: 36px 32px;
}
.price-card--hero .price-card__qty { font-size: 1.2rem; }
.price-card--hero .price-card__total { font-size: 2.8rem; }
.price-card--hero .price-card__unit { margin-bottom: 24px; }
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
}
.price-card--featured,
.price-card--red { border-color: var(--red); box-shadow: 0 0 24px var(--red-glow); }
.price-card--blue { border-color: var(--blue); box-shadow: 0 0 24px var(--blue-glow); }
.price-card--orange { border-color: var(--orange); box-shadow: 0 0 24px var(--orange-glow); }
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 5px 14px; border-radius: 14px; letter-spacing: 0.3px;
  width: max-content; max-width: 90%; text-align: center; line-height: 1.3;
}
.price-card__badge--blue { background: var(--blue); }
.price-card__badge--orange { background: var(--orange); }

.resale-info {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.resale-info strong { color: var(--text); }
.price-card__qty { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 4px; }
.price-card__total { font-size: 2rem; font-weight: 800; }
.price-card__unit { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.price-card__vat { color: var(--text-muted); font-size: 0.75rem; margin-top: 10px; }

.contact-tier {
  text-align: center;
  max-width: 640px;
  margin: 48px auto 0;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
}

/* ---------- Tables ---------- */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
table.data-table th, table.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.data-table th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
table.data-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge--active { background: rgba(46,160,67,0.15); color: #7ee787; }
.badge--unassigned { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.badge--revoked { background: rgba(225,29,46,0.15); color: #ff9aa3; }

/* ---------- Page de présentation (vitrine publicitaire) ---------- */
.video-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto 8px;
  padding-top: 56.25%; /* ratio 16:9 */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-wrap__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}
.video-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 0 0 40px; }

.presentation-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.final-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.final-cta .price-card { max-width: 340px; margin: 0 auto 24px; }
.final-cta__secondary { margin-top: 8px; }

/* ---------- Dashboard ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.dash-card h3 { margin: 0 0 6px; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-card .value { font-size: 1.6rem; font-weight: 800; }
.dash-card a { font-size: 0.9rem; }

.mono { font-family: "Cascadia Code", Consolas, monospace; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 24px; }
.legal h1 { margin-bottom: 4px; }
.legal .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 32px; }
.legal h2 { margin-top: 36px; font-size: 1.2rem; }
.legal p, .legal li { color: #d8d8db; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 28px 24px;
  margin-top: 40px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer__links { display: flex; gap: 18px; }

@media (max-width: 640px) {
  .site-header__inner { flex-direction: column; gap: 12px; }
  .hero h1 { font-size: 2rem; }
}
