﻿:root {
  --bg: #070b14;
  --panel: rgba(17, 27, 48, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f2f6ff;
  --muted: #a6b3cf;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --bg-gradient-1: rgba(37, 99, 235, 0.2);
  --bg-gradient-2: rgba(59, 130, 246, 0.14);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f6fb;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(15, 26, 46, 0.14);
  --text: #0f1a2e;
  --muted: #566583;
  --bg-gradient-1: rgba(37, 99, 235, 0.1);
  --bg-gradient-2: rgba(59, 130, 246, 0.07);
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 14% 12%, var(--bg-gradient-1), transparent 34%),
    radial-gradient(circle at 88% 18%, var(--bg-gradient-2), transparent 30%),
    var(--bg);
  color: var(--text);
  transition: background-color .3s ease, color .3s ease;
}

.container {
  width: min(980px, calc(100% - 24px));
  margin: 30px auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

h1, h2, h3, p { margin: 0; }

.muted { color: var(--muted); }

.grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

input, select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #f4f7ff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-stripe {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #eef2ff;
}

.btn-paypal {
  background: #ffc439;
  color: #003087;
  border-color: #e9ac22;
}

.switch {
  display: inline-flex;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  gap: 6px;
}

.switch-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.switch-btn.is-active {
  background: rgba(37, 99, 235, 0.28);
  color: var(--text);
}

.hidden { display: none !important; }

.notice {
  margin-top: 12px;
  color: #ff9ea9;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.plan-summary {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.features-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.payment-summary {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.summary-main {
  font-size: 1.25rem;
  font-weight: 700;
}

.provider-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.provider-actions .btn {
  width: 100%;
}

/* --- Protection anti-robot du formulaire d'inscription --- */

/* Champ piege : hors ecran plutot que display:none, que certains robots ignorent. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.captcha-block {
  display: grid;
  gap: 6px;
}

.captcha-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.captcha-question {
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.captcha-box input[type="text"] {
  width: auto;
  flex: 1 1 120px;
  min-width: 100px;
}

.captcha-refresh {
  padding: 10px 14px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .grid,
  .provider-actions {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }
}
