@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

/* ── FOND ── */
body {
  min-height: 100vh;
  background: #07111f;
  color: #f8fafc;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Grille de points */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(59,130,246,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Orbe bleu top-left */
body::after {
  content: ''; position: fixed; z-index: 0; pointer-events: none;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.14) 0%, transparent 65%);
  filter: blur(80px); top: -280px; left: -280px;
  animation: drift 16s ease-in-out infinite alternate;
}
/* Orbe violet bottom-right via main */
.orb-purple {
  position: fixed; z-index: 0; pointer-events: none;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.11) 0%, transparent 65%);
  filter: blur(80px); bottom: -220px; right: -220px;
  animation: drift 16s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px,45px) scale(1.12); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes stripeSheen {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}
@keyframes payPulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(59,130,246,0.45); }
  50%       { box-shadow: 0 10px 44px rgba(99,102,241,0.65); }
}
@keyframes shimmerSweep {
  from { transform: translateX(-100%) skewX(-18deg); }
  to   { transform: translateX(300%) skewX(-18deg); }
}

/* ── TOPNAV ── */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(7,17,31,0.85); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 100;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: #93c5fd; text-decoration: none; font-size: 0.8rem; font-weight: 600;
  padding: 0.42rem 1rem; border-radius: 2rem;
  border: 1px solid rgba(96,165,250,0.35);
  background: rgba(59,130,246,0.1); backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s,
              transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
}
.back-btn:hover {
  color: #bfdbfe; border-color: rgba(96,165,250,0.6);
  background: rgba(59,130,246,0.16);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transform: translateX(-4px);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 1.05rem; font-weight: 800; color: #f8fafc;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-logo {
  width: 26px; height: 26px; object-fit: contain; border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.6));
}
.nav-auth { display: flex; gap: 0.5rem; align-items: center; }
.nav-link {
  font-size: 0.82rem; color: #f1f5f9; text-decoration: none;
  padding: 0.4rem 0.8rem; border-radius: 0.45rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: #f8fafc; background: rgba(255,255,255,0.06); }
.nav-link.primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white; font-weight: 600;
  box-shadow: 0 2px 10px rgba(59,130,246,0.3);
}
.nav-link.primary:hover { filter: brightness(1.1); }

/* ── LAYOUT ── */
.page {
  max-width: 90rem; margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid; grid-template-columns: 1fr 380px;
  gap: 2rem; align-items: start;
  position: relative; z-index: 1;
}
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; }
  .sticky-panel { position: static !important; }
}
@media (max-width: 520px) {
  .nav-brand { display: none; }
  .nav-auth { gap: 0.25rem; }
  .nav-link:not(.primary) { display: none; }
  .input-row { flex-direction: column; }
  .page { padding: 2rem 1rem 3rem; }
}
@media (max-width: 380px) {
  .back-btn span { display: none; }
  .plan-card { padding: 1.1rem 1.1rem; }
  .plan-price { font-size: 1.55rem; }
}

/* ── PAGE TITLE ── */
.checkout-title {
  grid-column: 1 / -1;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 900;
  letter-spacing: -0.03em; color: #f8fafc; margin-bottom: 0.5rem;
  animation: fadeUp 0.6s cubic-bezier(.22,1,.36,1) both;
}
.hero-title-grad {
  background: linear-gradient(270deg, #93c5fd 0%, #a78bfa 25%, #f472b6 50%, #a78bfa 75%, #93c5fd 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradShift 5s ease infinite;
  display: inline-block;
}
@keyframes heroGradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: linear-gradient(90deg, #60a5fa, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1rem;
  animation: fadeUp 0.5s cubic-bezier(.22,1,.36,1) both;
}

/* ── PLAN CARDS ── */
.plans { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 2rem; }

.plan-card {
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 1.1rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  overflow: hidden; position: relative;
  transition: border-color 0.25s, background 0.25s,
              transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s;
  animation: fadeUp 0.5s 0.05s cubic-bezier(.22,1,.36,1) both;
}
/* padding sur les enfants directs pour pas couper le ::before stripe */
.plan-left, .plan-right { padding: 1.4rem 0; }
.plan-left { padding-left: 1.6rem; padding-right: 0.5rem; flex: 1; }
.plan-right { padding-right: 1.6rem; text-align: right; flex-shrink: 0; }

/* Stripe top */
.plan-card::before {
  content: ''; display: block; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.plan-card.selected::before {
  background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6, #3b82f6);
  background-size: 300% auto;
  animation: stripeSheen 2.5s linear infinite;
}

.plan-card:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.plan-card.selected {
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.06);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 10px 32px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}
.plan-card.selected:hover {
  box-shadow: 0 0 0 1px rgba(59,130,246,0.35), 0 14px 40px rgba(59,130,246,0.22);
}

/* Shimmer hover overlay */
.plan-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.plan-card:hover::after { opacity: 1; }

/* Plan content */
.plan-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem; }
.radio-dot {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color 0.2s, box-shadow 0.2s;
}
.plan-card.selected .radio-dot {
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59,130,246,0.4);
}
.radio-dot::after {
  content: ''; width: 0.45rem; height: 0.45rem;
  border-radius: 50%; background: #3b82f6; display: none;
}
.plan-card.selected .radio-dot::after { display: block; }
.plan-name {
  font-size: 1rem; font-weight: 700; color: #f8fafc;
  transition: color 0.2s;
}
.plan-card.selected .plan-name { color: #93c5fd; }
.badge {
  font-size: 0.58rem; font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white; padding: 0.18rem 0.55rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(59,130,246,0.4);
}
.plan-features { display: flex; flex-direction: column; gap: 0.35rem; padding-left: 1.6rem; }
.plan-features li {
  list-style: none; font-size: 0.86rem; color: #f1f5f9;
  display: flex; align-items: flex-start; gap: 0.45rem;
}
.plan-features li::before {
  content: '✓';
  color: #22c55e; font-weight: 900; font-size: 0.7rem; flex-shrink: 0;
  margin-top: 0.05rem;
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 50%; width: 1rem; height: 1rem;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.plan-card.selected .plan-features li { color: #f1f5f9; }
.plan-price {
  font-size: 2rem; font-weight: 900; white-space: nowrap; letter-spacing: -0.03em;
  transition: all 0.3s;
}
.plan-card.selected .plan-price {
  background: linear-gradient(135deg, #e2e8f0, #93c5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.plan-vat { font-size: 0.72rem; color: #f1f5f9; }
.plan-sub { font-size: 0.72rem; font-weight: 600; color: #60a5fa; margin-top: 0.3rem; white-space: nowrap; }

/* ── FORM CARD ── */
.form-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.1rem; padding: 1.6rem;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.5s 0.1s cubic-bezier(.22,1,.36,1) both;
  position: relative; overflow: hidden;
}
.form-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #3b82f6, #6366f1, #3b82f6);
  opacity: 0; transition: opacity 0.3s;
}
.form-card:focus-within::before { opacity: 1; }

.form-group { margin-bottom: 1.25rem; }
label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: #f1f5f9; margin-bottom: 0.4rem;
}
.required { color: #f87171; }
.input-row { display: flex; gap: 0.5rem; }
input[type="text"], input[type="email"] {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f8fafc; font-size: 0.9rem; font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input::placeholder { color: #64748b; }
input:focus {
  border-color: rgba(99,160,255,0.5);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.04);
}
.hint { font-size: 0.74rem; color: #f1f5f9; margin-top: 0.4rem; line-height: 1.5; }

/* ── PANNEAU STICKY ── */
.sticky-panel { position: sticky; top: 5rem; }

.summary-card {
  background: rgba(13,24,41,0.9);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 1.35rem; padding: 1.75rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, 0 24px 60px rgba(0,0,0,0.45);
  position: relative; overflow: hidden;
  animation: fadeUp 0.5s 0.15s cubic-bezier(.22,1,.36,1) both;
}
/* Ligne lumineuse en haut */
.summary-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6 30%, #6366f1 60%, #8b5cf6, transparent);
}
/* Glow interne */
.summary-card::after {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}

.summary-title {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #f1f5f9; margin-bottom: 1.25rem;
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.875rem; color: #f1f5f9; margin-bottom: 0.55rem;
}
.summary-row.total {
  font-weight: 800; color: #f8fafc; font-size: 1.2rem; letter-spacing: -0.02em;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.85rem; margin-top: 0.35rem; margin-bottom: 0;
}

.error-box {
  background: rgba(127,29,29,0.25); border: 1px solid rgba(239,68,68,0.4);
  border-radius: 0.6rem; padding: 0.65rem 1rem;
  color: #fca5a5; font-size: 0.82rem; margin-top: 1rem; display: none;
}

/* ── BOUTON PAYER ── */
.btn-pay {
  position: relative; overflow: hidden; width: 100%; padding: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: white; border: none; border-radius: 0.9rem;
  font-size: 1.05rem; font-weight: 800; font-family: inherit;
  cursor: pointer; letter-spacing: 0.01em;
  box-shadow: 0 6px 28px rgba(59,130,246,0.45);
  animation: payPulse 2.8s ease-in-out infinite;
  transition: transform 0.2s, filter 0.2s;
  margin-top: 1.5rem;
}
/* Shimmer sweep en boucle */
.btn-pay::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shimmerSweep 2.2s linear infinite;
}
/* Reflet haut */
.btn-pay::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.btn-pay:hover:not(:disabled) {
  transform: translateY(-3px); filter: brightness(1.1);
  animation: none;
  box-shadow: 0 12px 44px rgba(99,102,241,0.6);
}
.btn-pay:disabled { opacity: 0.45; cursor: not-allowed; animation: none; }

.secure-note {
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  font-size: 0.71rem; color: #f1f5f9; margin-top: 0.85rem;
}

.auth-prompt {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem; color: #f1f5f9; text-align: center; line-height: 1.6;
}
.auth-prompt a { color: #60a5fa; text-decoration: none; transition: color 0.2s; }
.auth-prompt a:hover { color: #93c5fd; }

.achat-faq-link { font-size: 0.8rem; color: #f1f5f9; text-decoration: none; transition: color 0.2s; }
.achat-faq-link:hover { color: #93c5fd; }

/* ── PREFERS-REDUCED-MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
