/* ─────────────────────────────────────────────────────────────────────────────
   PROSPECT QUALIFIER — Design System astr.studio
   Palette : #2574F0 (primary) / #000 (text) / #FFF (bg)
   Fonts   : Inter (body) + Plus Jakarta Sans (headings)
───────────────────────────────────────────────────────────────────────────── */

/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:        #2574F0;
  --primary-dark:   #1A5FD4;
  --primary-light:  #EEF4FF;
  --primary-hover:  #1e6ae0;
  --text:           #0D0D0D;
  --text-muted:     #6C757D;
  --text-light:     #9CA3AF;
  --bg:             #FFFFFF;
  --bg-soft:        #F8F9FA;
  --bg-subtle:      #F0F2F5;
  --border:         #E8EAED;
  --border-focus:   #2574F0;
  --error:          #DC2626;
  --error-bg:       #FEF2F2;
  --success:        #16A34A;

  --radius-sm:      5px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-pill:    999px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:         0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);

  --font-body:      'Inter', Arial, Helvetica, sans-serif;
  --font-heading:   'Plus Jakarta Sans', Arial, Helvetica, sans-serif;

  --transition:     0.2s ease;
  --transition-md:  0.3s ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-subtle);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.header-pill {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

/* ── Screens ───────────────────────────────────────────────────────────────── */
.screen {
  min-height: calc(100vh - 57px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── INTRO SCREEN ──────────────────────────────────────────────────────────── */
.screen-intro {
  background: var(--bg);
  padding: 64px 24px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.intro-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.intro-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}

.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.intro-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.badge-icon {
  font-size: 15px;
  line-height: 1;
}

.btn-cta {
  font-size: 16px;
  padding: 16px 32px;
  margin-bottom: 16px;
}

.intro-note {
  font-size: 12px;
  color: var(--text-light);
}

/* ── Illustration browser ──────────────────────────────────────────────────── */
.intro-visual {
  position: relative;
}

.visual-browser {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.browser-dot:nth-child(1) { background: #FF5F57; }
.browser-dot:nth-child(2) { background: #FEBC2E; }
.browser-dot:nth-child(3) { background: #28C840; }

.browser-body {
  padding: 20px;
}

.browser-hero {
  height: 110px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #DBEAFE 100%);
  border-radius: var(--radius);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.browser-hero::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 12px;
  background: rgba(37,116,240,0.25);
  border-radius: 6px;
}

.browser-lines {
  margin-bottom: 16px;
}

.browser-line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
}
.browser-line.w-70 { width: 70%; }
.browser-line.w-50 { width: 50%; }

.browser-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.browser-card {
  height: 60px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.visual-badge-sent {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: #DCFCE7;
  color: #16A34A;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid white;
  box-shadow: var(--shadow);
}

/* ── FORM SCREEN ───────────────────────────────────────────────────────────── */
.screen-form {
  background: var(--bg-subtle);
  padding: 0 0 80px;
  justify-content: flex-start;
}

/* Progress bar */
.progress-bar-wrapper {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 57px;
  z-index: 50;
}

.progress-bar-inner {
  max-width: 640px;
  margin: 0 auto;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 13px;
  color: var(--text-muted);
}

.progress-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 9%;
}

/* Form container */
.form-container {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 0 24px;
}

/* ── Step ──────────────────────────────────────────────────────────────────── */
.form-step {
  animation: step-in 0.3s ease forwards;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Step header */
.step-header {
  margin-bottom: 28px;
}

.step-num-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}

.step-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Choice cards ──────────────────────────────────────────────────────────── */
.choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.choices-2col {
  grid-template-columns: repeat(2, 1fr);
}

.choices-colors {
  grid-template-columns: repeat(2, 1fr);
}

/* Radio/checkbox card */
.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  user-select: none;
}

.choice-card input[type="radio"],
.choice-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.choices-multi .choice-check {
  border-radius: 5px;
}

.choice-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.choice-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

.choice-sublabel {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}

/* Card selected state */
.choice-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(37,116,240,0.08);
}

.choice-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.choice-card:has(input:checked) .choice-check {
  background: var(--primary);
  border-color: var(--primary);
}

.choice-card:has(input:checked) .choice-check::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.choices-multi .choice-card:has(input:checked) .choice-check::after {
  content: '✓';
  font-size: 11px;
  font-weight: 700;
  color: white;
  border-radius: 0;
  width: auto;
  height: auto;
  background: transparent;
}

.choice-card:has(input:checked) .choice-label {
  color: var(--primary);
  font-weight: 600;
}

/* Large card variant (step 10) */
.choice-card-lg {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
}

.choice-card-lg .choice-check {
  margin-bottom: 4px;
}

.choice-card-lg .choice-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.choice-card-lg .choice-label {
  font-size: 15px;
  font-weight: 600;
}

/* Color swatch variant */
.choice-color-card {
  flex-direction: row;
  align-items: center;
}

.choice-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.choice-swatch-bw {
  background: linear-gradient(135deg, #000 50%, #fff 50%);
  border: 1.5px solid var(--border);
}

.choice-swatch-neutral {
  background: linear-gradient(135deg, #D1D5DB 50%, #F9FAFB 50%);
}

/* ── Field inputs ──────────────────────────────────────────────────────────── */
.field-group {
  margin-bottom: 20px;
}

.field-group.field-span-2 {
  grid-column: 1 / -1;
}

.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.field-required {
  color: var(--primary);
  margin-left: 3px;
}

.field-optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 4px;
}

.field-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.field-input::placeholder {
  color: var(--text-light);
}

.field-input:hover {
  border-color: #C0C8D8;
}

.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,116,240,0.12);
}

.field-input.has-error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.08);
}

.field-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field-textarea-lg {
  min-height: 160px;
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
}

/* Conditional fields */
.conditional-wrap {
  margin-top: -8px;
  margin-bottom: 24px;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Upload zone ───────────────────────────────────────────────────────────── */
.upload-zone {
  margin-top: 24px;
  margin-bottom: 8px;
}

.upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.upload-zone-inner.is-drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.upload-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.upload-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 20px;
  line-height: 1.6;
}

#file-input {
  display: none;
}

.upload-specs {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
}

/* File list */
.file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  animation: fade-in 0.2s ease;
}

.file-item-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.file-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-size {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.file-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color var(--transition);
}

.file-item-remove:hover {
  color: var(--error);
}

/* ── RGPD ──────────────────────────────────────────────────────────────────── */
.rgpd-block {
  margin-top: 4px;
  margin-bottom: 8px;
}

.rgpd-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.rgpd-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rgpd-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  margin-top: 1px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rgpd-label:has(input:checked) .rgpd-box {
  background: var(--primary);
  border-color: var(--primary);
}

.rgpd-label:has(input:checked) .rgpd-box::after {
  content: '✓';
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.rgpd-label:hover .rgpd-box {
  border-color: var(--primary);
}

.rgpd-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Step error ────────────────────────────────────────────────────────────── */
.step-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--error-bg);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--error);
  margin-top: 8px;
  animation: fade-in 0.2s ease;
}

.step-error::before {
  content: '⚠';
  flex-shrink: 0;
}

/* ── Form navigation ───────────────────────────────────────────────────────── */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 12px 22px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,116,240,0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-back {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

.btn-back:hover {
  background: var(--border);
  color: var(--text);
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 10px 20px;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon {
  font-style: normal;
  transition: transform var(--transition);
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

.btn-submit {
  min-width: 200px;
  justify-content: center;
}

/* Loading state */
.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── CONFIRMATION SCREEN ───────────────────────────────────────────────────── */
.screen-confirm {
  background: var(--bg);
  padding: 64px 24px;
}

.confirm-container {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.confirm-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: #DCFCE7;
  border-radius: 50%;
  margin: 0 auto 28px;
}

.confirm-icon {
  font-size: 32px;
  color: var(--success);
  font-style: normal;
}

.confirm-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.confirm-message {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.confirm-delay {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.confirm-id-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 24px;
  margin-bottom: 32px;
}

.confirm-id-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.confirm-id-value {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

/* ── Responsive — Tablet ───────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-visual {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  .intro-title {
    font-size: 36px;
  }
}

/* ── Responsive — Mobile ───────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .header-inner {
    padding: 12px 16px;
  }

  .header-pill {
    font-size: 11px;
    padding: 3px 10px;
  }

  .screen-intro {
    padding: 40px 20px;
  }

  .intro-title {
    font-size: 28px;
  }

  .intro-subtitle {
    font-size: 15px;
  }

  .intro-badges {
    gap: 8px;
  }

  .intro-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }

  .intro-visual {
    display: none; /* cache sur mobile très étroit */
  }

  .progress-bar-wrapper {
    padding: 12px 16px;
    top: 53px;
  }

  .form-container {
    padding: 0 16px;
    margin-top: 28px;
  }

  .choices-grid {
    grid-template-columns: 1fr;
  }

  .choices-2col {
    grid-template-columns: 1fr;
  }

  .choices-colors {
    grid-template-columns: 1fr;
  }

  .fields-grid {
    grid-template-columns: 1fr;
  }

  .field-group.field-span-2 {
    grid-column: 1;
  }

  .form-nav {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .step-title {
    font-size: 22px;
  }

  .choice-card-lg {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .choice-card-lg .choice-icon {
    font-size: 20px;
  }

  .choice-card-lg .choice-label {
    font-size: 14px;
  }

  .confirm-title {
    font-size: 26px;
  }
}

/* ── Focus ring global ─────────────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ── Sélection texte ───────────────────────────────────────────────────────── */
::selection {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   ORBITAL PREMIUM THEME (astr.studio)
   ========================================================================== */

:root {
  --primary: #2574F0;
  --primary-dark: #1756CC;
  --primary-light: #102546;
  --primary-hover: #3b88ff;
  --text: #ebf1ff;
  --text-muted: #abc0e3;
  --text-light: #7b93bc;
  --bg: #030714;
  --bg-soft: #0b1630;
  --bg-subtle: #040a1c;
  --border: #1a2a4d;
  --border-focus: #4f9dff;
  --error: #ff8a9d;
  --error-bg: rgba(255, 77, 109, 0.12);
  --success: #62f5b3;
  --shadow-sm: 0 2px 12px rgba(4, 10, 28, 0.4);
  --shadow: 0 12px 40px rgba(4, 10, 28, 0.55);
  --shadow-lg: 0 20px 70px rgba(0, 0, 0, 0.6);
}

body {
  background:
    radial-gradient(circle at 20% -10%, rgba(37, 116, 240, 0.2), transparent 48%),
    radial-gradient(circle at 85% 8%, rgba(97, 161, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #040a1c 0%, #02050f 55%, #01030a 100%);
  color: var(--text);
}

#app {
  position: relative;
  z-index: 2;
}

.space-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.space-nebula {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.55;
  animation: nebulaShift 20s ease-in-out infinite;
}

.nebula-a {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(91, 173, 255, 0.5), rgba(91, 173, 255, 0) 68%);
}

.nebula-b {
  width: 460px;
  height: 460px;
  right: -80px;
  top: 25%;
  background: radial-gradient(circle at 60% 40%, rgba(37, 116, 240, 0.45), rgba(37, 116, 240, 0) 70%);
  animation-delay: -8s;
}

.nebula-c {
  width: 560px;
  height: 560px;
  left: 35%;
  bottom: -260px;
  background: radial-gradient(circle at 50% 50%, rgba(51, 130, 255, 0.3), rgba(51, 130, 255, 0) 72%);
  animation-delay: -12s;
}

.space-grid {
  position: absolute;
  inset: -30%;
  background-image:
    linear-gradient(rgba(69, 113, 179, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 113, 179, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(600px) rotateX(72deg);
  transform-origin: center top;
  opacity: 0.5;
}

.space-scanline {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(170, 205, 255, 0) 0%, rgba(170, 205, 255, 0.18) 48%, rgba(170, 205, 255, 0) 100%);
  mix-blend-mode: screen;
  opacity: 0.15;
  animation: scanline 8.5s linear infinite;
}

.space-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-header {
  background: rgba(5, 11, 29, 0.72);
  border-bottom: 1px solid rgba(87, 130, 196, 0.2);
  box-shadow: 0 12px 28px rgba(3, 7, 20, 0.45);
}

.header-pill {
  color: #dcebff;
  background: linear-gradient(135deg, rgba(37, 116, 240, 0.26), rgba(79, 157, 255, 0.18));
  border: 1px solid rgba(124, 180, 255, 0.3);
}

.screen-intro,
.screen-form,
.screen-confirm {
  background: transparent;
}

.intro-layout {
  max-width: 1120px;
  gap: 54px;
}

.intro-content {
  padding: 34px;
  border-radius: 22px;
  border: 1px solid rgba(102, 149, 224, 0.28);
  background:
    linear-gradient(145deg, rgba(9, 20, 47, 0.82), rgba(7, 15, 36, 0.72));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.intro-eyebrow {
  color: #8ec1ff;
}

.eyebrow-dot {
  background: #8ec1ff;
}

.intro-title {
  color: #f5f8ff;
  text-shadow: 0 12px 40px rgba(66, 141, 255, 0.25);
}

.intro-subtitle {
  color: #b7c9e8;
}

.intro-badge {
  color: #c4d8f9;
  background: rgba(11, 23, 50, 0.72);
  border: 1px solid rgba(123, 164, 228, 0.24);
}

.intro-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.mission-card {
  border-radius: 14px;
  border: 1px solid rgba(120, 169, 245, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 157, 255, 0.22), transparent 45%),
    linear-gradient(150deg, rgba(10, 24, 56, 0.88), rgba(5, 14, 35, 0.8));
  padding: 14px 14px 12px;
  box-shadow: inset 0 0 0 1px rgba(163, 201, 255, 0.08);
}

.mission-card-wide {
  grid-column: span 2;
}

.mission-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8ea8cf;
  margin-bottom: 8px;
}

.mission-value {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: #ecf3ff;
  margin-bottom: 12px;
}

.mission-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(121, 160, 222, 0.3);
  overflow: hidden;
}

.mission-bar span {
  display: block;
  height: 100%;
  width: var(--bar);
  background: linear-gradient(90deg, #2f7cff, #78b7ff);
  box-shadow: 0 0 18px rgba(76, 149, 255, 0.65);
}

.mission-video {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  min-height: 46px;
  align-items: end;
}

.mission-video span {
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(126, 185, 255, 0.95), rgba(33, 113, 247, 0.18));
  animation: audioBar 1.45s ease-in-out infinite;
}

.mission-video span:nth-child(1) { height: 36px; animation-delay: 0s; }
.mission-video span:nth-child(2) { height: 24px; animation-delay: 0.14s; }
.mission-video span:nth-child(3) { height: 44px; animation-delay: 0.25s; }
.mission-video span:nth-child(4) { height: 18px; animation-delay: 0.38s; }
.mission-video span:nth-child(5) { height: 30px; animation-delay: 0.52s; }

.mission-note {
  color: #9eb6db;
  font-size: 12px;
}

.intro-note {
  color: #7f97be;
}

.btn-primary {
  background: linear-gradient(135deg, #2574F0, #4e9eff);
  box-shadow: 0 12px 28px rgba(40, 126, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3582ff, #67abff);
}

.visual-browser {
  border: 1px solid rgba(116, 167, 243, 0.3);
  background: linear-gradient(150deg, rgba(11, 23, 50, 0.92), rgba(6, 14, 33, 0.92));
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  background: rgba(14, 28, 62, 0.9);
  border-bottom: 1px solid rgba(121, 162, 228, 0.24);
}

.browser-hero {
  background: radial-gradient(circle at 20% 20%, rgba(137, 190, 255, 0.46), rgba(37, 116, 240, 0.12) 65%);
}

.browser-line {
  background: rgba(139, 181, 240, 0.24);
}

.browser-card {
  background: rgba(10, 21, 47, 0.88);
  border-color: rgba(103, 148, 217, 0.22);
}

.intro-visual {
  transform: translateY(8px);
}

.visual-badge-sent {
  background: linear-gradient(120deg, rgba(63, 188, 149, 0.24), rgba(52, 148, 239, 0.18));
  color: #b7ffe4;
  border-color: rgba(103, 241, 193, 0.33);
}

.orbit-hud {
  position: absolute;
  left: -36px;
  bottom: 40px;
  width: 190px;
  border-radius: 14px;
  border: 1px solid rgba(107, 162, 244, 0.34);
  background: rgba(6, 18, 43, 0.84);
  padding: 12px 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.orbit-hud-title {
  color: #9cd0ff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
}

.orbit-hud-line {
  font-size: 12px;
  color: #c3d8f7;
  margin: 2px 0;
}

.orbit-hud-line strong {
  color: #e8f2ff;
}

.visual-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(132, 183, 255, 0.3);
  animation: orbitSpin 16s linear infinite;
}

.orbit-1 {
  width: 420px;
  height: 420px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.orbit-2 {
  width: 500px;
  height: 500px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  animation-direction: reverse;
  animation-duration: 24s;
  border-color: rgba(120, 169, 245, 0.2);
}

.launch-pulse {
  position: absolute;
  inset: 46% auto auto 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8bc6ff;
  box-shadow: 0 0 14px #8bc6ff;
  animation: pulseLaunch 2.1s ease-in-out infinite;
}

.screen-form {
  position: relative;
}

.progress-bar-wrapper {
  background: rgba(6, 16, 38, 0.8);
  border-bottom: 1px solid rgba(109, 160, 237, 0.2);
  backdrop-filter: blur(10px);
}

.progress-kicker {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #7fa9de;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-label {
  color: #b4c9ea;
}

.progress-pct {
  color: #9ec9ff;
}

.progress-track {
  height: 5px;
  background: rgba(112, 157, 224, 0.2);
}

.form-container {
  max-width: 700px;
}

.form-step {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(104, 153, 232, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(63, 126, 214, 0.18), transparent 44%),
    linear-gradient(160deg, rgba(9, 20, 47, 0.9), rgba(5, 13, 33, 0.86));
  box-shadow: var(--shadow);
}

.step-title {
  color: #f3f7ff;
}

.step-subtitle {
  color: #9eb5d7;
}

.choice-card {
  background: rgba(9, 21, 48, 0.76);
  border-color: rgba(110, 155, 228, 0.24);
}

.choice-label {
  color: #dce8fb;
}

.choice-sublabel {
  color: #88a3c8;
}

.choice-card:hover {
  border-color: rgba(121, 186, 255, 0.8);
  background: rgba(16, 35, 74, 0.8);
  box-shadow: 0 0 0 4px rgba(57, 131, 239, 0.18);
}

.choice-card:has(input:checked) {
  border-color: rgba(112, 184, 255, 0.95);
  background: linear-gradient(145deg, rgba(19, 46, 97, 0.92), rgba(11, 28, 65, 0.9));
}

.choice-card:has(input:checked) .choice-label {
  color: #eaf4ff;
}

.field-label {
  color: #d9e7ff;
}

.field-input {
  color: #e4efff;
  background: rgba(6, 17, 41, 0.78);
  border-color: rgba(103, 149, 223, 0.3);
}

.field-input::placeholder {
  color: #7894bc;
}

.field-input:hover {
  border-color: rgba(130, 176, 245, 0.45);
}

.field-input:focus {
  box-shadow: 0 0 0 4px rgba(80, 158, 255, 0.22);
}

.upload-zone-inner {
  background: rgba(9, 21, 48, 0.72);
  border-color: rgba(109, 160, 237, 0.4);
}

.upload-zone-inner.is-drag-over {
  border-color: rgba(141, 194, 255, 0.95);
  background: rgba(20, 45, 92, 0.82);
}

.upload-title {
  color: #e7f1ff;
}

.upload-desc,
.upload-specs,
.file-item-size,
.rgpd-text {
  color: #95afcf;
}

.file-item {
  background: rgba(8, 18, 43, 0.75);
  border-color: rgba(102, 149, 223, 0.28);
}

.file-item-name {
  color: #d9e7ff;
}

.form-nav {
  border-top-color: rgba(97, 146, 224, 0.24);
}

.btn-back,
.btn-secondary {
  color: #c1d7f7;
  background: rgba(9, 20, 47, 0.66);
  border-color: rgba(100, 148, 223, 0.35);
}

.btn-back:hover,
.btn-secondary:hover {
  color: #e6f1ff;
  background: rgba(21, 42, 85, 0.82);
  border-color: rgba(135, 185, 255, 0.55);
}

.screen-confirm {
  padding-top: 88px;
}

.confirm-container {
  border-radius: 20px;
  border: 1px solid rgba(105, 151, 228, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 157, 255, 0.2), transparent 40%),
    linear-gradient(155deg, rgba(9, 20, 47, 0.9), rgba(4, 11, 27, 0.9));
  box-shadow: var(--shadow);
  padding: 34px 26px;
}

.confirm-title {
  color: #f4f8ff;
}

.confirm-message,
.confirm-delay {
  color: #adc3e2;
}

.confirm-id-block {
  background: rgba(11, 23, 50, 0.74);
  border-color: rgba(107, 153, 229, 0.34);
}

.confirm-id-label {
  color: #88a6d0;
}

.confirm-id-value {
  color: #9ec9ff;
}

@media (max-width: 980px) {
  .intro-layout {
    gap: 30px;
  }

  .intro-content {
    padding: 24px;
  }

  .orbit-hud {
    left: 14px;
    bottom: -18px;
  }
}

@media (max-width: 800px) {
  .intro-mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-card-wide {
    grid-column: span 1;
  }

  .intro-visual {
    max-width: 400px;
    margin: 10px auto 0;
  }

  .orbit-1 {
    width: 320px;
    height: 320px;
  }

  .orbit-2 {
    width: 390px;
    height: 390px;
  }

  .form-step {
    padding: 22px;
  }
}

@media (max-width: 540px) {
  .space-grid,
  .space-scanline {
    opacity: 0.18;
  }

  .screen-intro,
  .screen-confirm {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro-content {
    padding: 20px;
  }

  .intro-visual {
    display: block;
    max-width: 100%;
  }

  .orbit-hud,
  .visual-orbit,
  .launch-pulse {
    display: none;
  }

  .progress-kicker {
    font-size: 10px;
    line-height: 1.4;
  }

  .form-step {
    padding: 18px;
    border-radius: 16px;
  }
}

@keyframes nebulaShift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(20px, -16px, 0) scale(1.08);
    opacity: 0.7;
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(180%);
  }
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulseLaunch {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.55);
    opacity: 0.28;
  }
}

@keyframes audioBar {
  0%, 100% {
    transform: scaleY(0.5);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .space-nebula,
  .space-scanline,
  .visual-orbit,
  .launch-pulse,
  .mission-video span,
  .eyebrow-dot {
    animation: none !important;
  }
}
