/* ============================================================
   NEXSAS — ACQUISITION CSS (corrigé)
   Corrections :
   - Suppression overflow:hidden sur body et sidebar (scroll réparé)
   - Règles body dupliquées/conflictuelles fusionnées par page
   - Layout principal aligné à gauche
   - Thème éclairci (sidebar moins sombre, surfaces plus claires)
   - Problème noir sur noir résolu (variables de couleurs cohérentes)
============================================================ */

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

/* ── DESIGN TOKENS ────────────────────────────────────── */
:root {
  --ink:         #1a1a2e;
  --ink-mid:     #4a4a6a;
  --ink-light:   #8e8ea8;
  --surface:     #ffffff;
  --surface-2:   #f4f4f9;
  --surface-3:   #eeeef6;
  --border:      #dcdcec;
  --accent:      #5b5ef4;
  --accent-dim:  rgba(91,94,244,0.09);
  --accent-glow: rgba(91,94,244,0.22);
  --sidebar-bg:  #1e1e38;        /* anciennement #0f0f13, éclairci */
  --success:     #10b981;
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --r:           14px;
  --r-sm:        9px;
  --shadow:      0 4px 24px rgba(26,26,46,0.07);
  --shadow-lg:   0 16px 48px rgba(26,26,46,0.12);
}

/* ── BASE ─────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* Corps par défaut — pages candidat & recommandant */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface-2);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  /* PAS de overflow:hidden ici — laisse le scroll fonctionner */
}

/* ── CTA ACQUISITION (section marketing) ─────────────── */
.acquisition-cta {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #1e1e38 0%, #252550 60%, #1a1a3e 100%);
  position: relative;
  overflow: hidden;
}

.acquisition-cta::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,94,244,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.acquisition-cta::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.acquisition-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.acquisition-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 16px;
  background: rgba(91,94,244,0.18);
  border: 1px solid rgba(91,94,244,0.35);
  border-radius: 999px;
  color: #c7cbff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.acquisition-cta-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.acquisition-cta-title span { color: #c7cbff; }

.acquisition-cta-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.acquisition-cta-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.acq-feat {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.acq-feat i { color: #6ee7b7; font-size: 0.85rem; flex-shrink: 0; }

.acquisition-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(91,94,244,0.4);
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.acquisition-cta-btn:hover {
  background: #4a4de0;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(91,94,244,0.5);
  color: white;
}

.acquisition-cta-link { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

.acquisition-cta-url {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 4px;
  letter-spacing: 0.02em;
  cursor: text;
  user-select: all;
}

/* ╔═══════════════════════════════════════════════════════╗
   PAGE CANDIDAT — formulaire multi-étapes
╚═══════════════════════════════════════════════════════╝ */

/* ── LAYOUT ──────────────────────────────────────────── */
.acq-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;   /* sidebar un peu moins large */
  min-height: 100vh;
  align-items: start;                  /* empêche l'étirement forcé */
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.acq-sidebar {
  background: var(--sidebar-bg);
  color: white;
  padding: 3rem 2.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* CORRECTION : overflow-y auto pour que la sidebar soit scrollable si besoin */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.acq-sidebar::-webkit-scrollbar { width: 5px; }
.acq-sidebar::-webkit-scrollbar-track { background: transparent; }
.acq-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.acq-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

.acq-sidebar::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,94,244,0.28) 0%, transparent 70%);
  pointer-events: none;
}

.acq-sidebar::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,94,244,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.acq-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  color: white;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  display: block;
  position: relative;
  z-index: 1;
}

.acq-logo span { color: #a5b4fc; }

.acq-sidebar-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.acq-sidebar-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Steps nav */
.acq-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
  flex: 1;
}

.acq-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
  cursor: default;
}

.acq-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 52px;
  width: 2px;
  height: calc(100% - 20px);
  background: rgba(255,255,255,0.1);
}

.acq-step-item.done::after { background: rgba(91,94,244,0.4); }

.acq-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.acq-step-item.active .acq-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 0 6px rgba(91,94,244,0.2);
}

.acq-step-item.done .acq-step-num {
  background: rgba(91,94,244,0.25);
  border-color: #a5b4fc;
  color: #a5b4fc;
}

.acq-step-label { padding-top: 6px; }

.acq-step-label strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  transition: color 0.3s ease;
}

.acq-step-item.active .acq-step-label strong,
.acq-step-item.done .acq-step-label strong { color: white; }

.acq-step-label span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.28);
}

/* Reco badge sidebar */
.acq-reco-badge {
  margin-top: auto;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  position: relative;
  z-index: 1;
}

.acq-reco-badge p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.acq-reco-badge strong {
  display: block;
  font-size: 0.85rem;
  color: white;
  margin-bottom: 0.3rem;
}

/* ── MAIN CONTENT (aligné à GAUCHE, pas centré) ─────── */
.acq-main {
  padding: 3rem 3.5rem 4rem;   /* padding gauche harmonieux */
  max-width: 760px;
  /* PAS de margin:auto — reste collé à gauche du conteneur */
}

/* Progress bar */
.acq-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 3rem;
  overflow: hidden;
}

.acq-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

/* Step header */
.acq-step-header { margin-bottom: 2.5rem; }

.acq-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.acq-step-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.acq-step-header p {
  color: var(--ink-light);
  font-size: 0.94rem;
}

/* ── FORM ELEMENTS ───────────────────────────────────── */
.acq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.acq-grid.full  { grid-template-columns: 1fr; }
.acq-grid.three { grid-template-columns: 1fr 1fr 1fr; }

.acq-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.acq-field.span-2 { grid-column: span 2; }

.acq-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.acq-label .req { color: var(--accent); }

.acq-hint { font-size: 0.75rem; color: var(--ink-light); margin-top: 2px; }

.acq-input, .acq-select, .acq-textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);          /* CORRECTION : texte sombre sur fond blanc */
  background: var(--surface); /* fond blanc explicite */
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.acq-input:focus, .acq-select:focus, .acq-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.acq-textarea { resize: vertical; min-height: 100px; }

/* Upload zone */
.acq-upload {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  position: relative;
}

.acq-upload:hover, .acq-upload.drag {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.acq-upload input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}

.acq-upload i { font-size: 2rem; color: var(--accent); margin-bottom: 0.5rem; display: block; }
.acq-upload strong { display: block; font-size: 0.9rem; color: var(--ink-mid); margin-bottom: 0.25rem; }
.acq-upload span { font-size: 0.78rem; color: var(--ink-light); }

/* Radio pills */
.acq-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.acq-pill { position: relative; }

.acq-pill input[type="radio"],
.acq-pill input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.acq-pill label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  user-select: none;
}

.acq-pill input:checked + label {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

/* Toggle yes/no */
.acq-toggle-group { display: flex; gap: 0.75rem; }

.acq-toggle { flex: 1; position: relative; }

.acq-toggle input { position: absolute; opacity: 0; width: 0; }

.acq-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-mid);
  transition: all 0.2s;
  background: var(--surface);
}

.acq-toggle input:checked + label {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

/* Section divider */
.acq-divider { height: 1px; background: var(--border); margin: 2rem 0; }

.acq-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

/* ── RECO STEP ───────────────────────────────────────── */
.acq-reco-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.acq-reco-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.acq-reco-status.pending {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  color: #78350f;
}

.acq-reco-status.received {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  color: #064e3b;
}

.acq-reco-status.none {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-light);
}

.acq-reco-status i { font-size: 1.1rem; flex-shrink: 0; }

.acq-reco-mandatory {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(91,94,244,0.05);
  border: 1px solid rgba(91,94,244,0.18);
  border-radius: var(--r-sm);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.5;
}

.acq-reco-mandatory i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.acq-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.acq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.acq-btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(91,94,244,0.3);
}

.acq-btn-primary:hover {
  background: #4a4de0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(91,94,244,0.38);
}

.acq-btn-ghost {
  background: transparent;
  color: var(--ink-mid);
  border: 1.5px solid var(--border);
}

.acq-btn-ghost:hover {
  border-color: var(--ink-mid);
  color: var(--ink);
}

.acq-btn-send {
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 16px rgba(26,26,46,0.18);
}

.acq-btn-send:hover {
  background: #2a2a4e;
  transform: translateY(-1px);
}

.acq-btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}

/* ── COMPLETION SCREEN ───────────────────────────────── */
.acq-complete { text-align: center; padding: 4rem 2rem; }

.acq-complete-icon {
  width: 80px; height: 80px;
  background: rgba(16,185,129,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--success);
  animation: pop 0.5s cubic-bezier(.34,1.56,.64,1) both;
}

.acq-complete h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.acq-complete p {
  color: var(--ink-light);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ── STEP VISIBILITY ─────────────────────────────────── */
.acq-step-panel { display: none; }
.acq-step-panel.active { display: block; animation: fadeSlide 0.35s ease; }

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── RESPONSIVE (candidat) ───────────────────────────── */
@media (max-width: 900px) {
  .acq-wrap { grid-template-columns: 1fr; }
  .acq-sidebar {
    position: static;
    height: auto;
    padding: 2rem 1.5rem;
    overflow: visible;
  }
  .acq-steps { display: none; }
  .acq-main { padding: 2rem 1.5rem; max-width: 100%; }
  .acq-grid { grid-template-columns: 1fr; }
  .acq-field.span-2 { grid-column: span 1; }
}

@media (max-width: 480px) {
  .acq-sidebar-title { font-size: 1.3rem; }
  .acq-step-header h2 { font-size: 1.5rem; }
  .acq-actions { flex-direction: column; gap: 0.75rem; }
  .acq-btn { width: 100%; justify-content: center; }
}

/* ╔═══════════════════════════════════════════════════════╗
   PAGE RECOMMANDANT
   Corps dédié via .rec-page (ajouté dans recommandant.html)
╚═══════════════════════════════════════════════════════╝ */

/* Utiliser .rec-page sur <body> dans recommandant.html
   pour éviter le conflit avec les styles candidat */
body.rec-page {
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 0 4rem;
  /* CORRECTION : pas d'overflow:hidden */
}

/* ── HEADER RECOMMANDANT ─────────────────────────────── */
.rec-header {
  background: var(--sidebar-bg);
  color: white;
  padding: 2.5rem 2rem 3rem;
  text-align: left;            /* CORRECTION : aligné à gauche */
  position: relative;
  overflow: hidden;
}

.rec-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,94,244,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.rec-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.rec-logo span { color: #a5b4fc; }

.rec-candidate-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  max-width: 460px;           /* CORRECTION : limité, pas centré */
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.rec-candidate-avatar {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.rec-candidate-info { display: flex; flex-direction: column; gap: 0.2rem; }

.rec-candidate-info strong {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.rec-candidate-info span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.rec-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  line-height: 1.3;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.rec-header h1 em { color: #a5b4fc; font-style: normal; }

.rec-header p {
  color: rgba(255,255,255,0.55);
  font-size: 0.94rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  max-width: 500px;
}

/* ── CARD FORMULAIRE RECOMMANDANT ────────────────────── */
.rec-card {
  max-width: 680px;           /* CORRECTION : alignée à gauche */
  margin: 2.5rem 2rem;        /* marge gauche fixe, pas auto */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

/* ── SECTIONS ────────────────────────────────────────── */
.rec-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.rec-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.rec-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

/* ── GRID ────────────────────────────────────────────── */
.rec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.rec-field { display: flex; flex-direction: column; gap: 0.4rem; }
.rec-field.full { grid-column: 1 / -1; }

.rec-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-mid);
}

.rec-label .req { color: var(--accent); }

/* ── INPUTS ──────────────────────────────────────────── */
.rec-input, .rec-select, .rec-textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);           /* CORRECTION : texte sombre lisible */
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.rec-input:focus, .rec-select:focus, .rec-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.rec-textarea { resize: vertical; min-height: 120px; }

/* ── STARS ───────────────────────────────────────────── */
.rec-stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  width: fit-content;
}

.rec-stars input { display: none; }

.rec-stars label {
  font-size: 2rem;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}

.rec-stars input:checked ~ label,
.rec-stars label:hover,
.rec-stars label:hover ~ label { color: #f59e0b; }

/* ── CONSENT ─────────────────────────────────────────── */
.rec-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rec-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent);
}

.rec-consent label {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.5;
  cursor: pointer;
}

.rec-hint { font-size: 0.75rem; color: var(--ink-light); margin-top: 3px; }

/* ── SUBMIT ──────────────────────────────────────────── */
.rec-submit-wrap { margin-top: 2rem; text-align: center; }

.rec-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(91,94,244,0.32);
  transition: all 0.2s;
}

.rec-btn:hover { background: #4a4de0; transform: translateY(-1px); }
.rec-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.rec-submit-note { font-size: 0.78rem; color: var(--ink-light); margin-top: 0.75rem; }

/* ── SUCCESS STATE ───────────────────────────────────── */
.rec-success { text-align: center; padding: 3rem 2rem; }

.rec-success-icon {
  width: 72px; height: 72px;
  background: rgba(16,185,129,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--success);
  animation: pop 0.5s cubic-bezier(.34,1.56,.64,1) both;
}

.rec-success h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.rec-success p { color: var(--ink-light); font-size: 0.92rem; line-height: 1.6; max-width: 380px; margin: 0 auto; }

/* ── EXPIRED STATE ───────────────────────────────────── */
.rec-expired { text-align: center; padding: 3rem 2rem; }

.rec-expired i { font-size: 2.5rem; color: var(--ink-light); margin-bottom: 1rem; display: block; }
.rec-expired h2 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--ink); }
.rec-expired p { color: var(--ink-light); font-size: 0.9rem; }

/* ── RESPONSIVE (recommandant) ───────────────────────── */
@media (max-width: 640px) {
  .rec-card { padding: 1.75rem 1.25rem; margin: 1.5rem 1rem; }
  .rec-grid { grid-template-columns: 1fr; }
  .rec-field.full { grid-column: span 1; }
  .rec-header { padding: 2rem 1.25rem 2.5rem; }
  .rec-header h1 { font-size: 1.4rem; }
}

/* ╔═══════════════════════════════════════════════════════╗
   PAGE CONFIRMATION
   Corps dédié via .confirm-page sur <body>
╚═══════════════════════════════════════════════════════╝ */

/* CORRECTION : les styles de fond sombre sont scoped à .confirm-page
   et non plus à body directement — évite le noir-sur-noir */
body.confirm-page {
  background: linear-gradient(135deg, #1e1e38 0%, #252550 60%, #1a1a3e 100%);
  min-height: 100vh;
  color: white;
  /* CORRECTION : overflow visible pour permettre le scroll */
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

body.confirm-page::before {
  content: '';
  position: fixed;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,94,244,0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body.confirm-page::after {
  content: '';
  position: fixed;
  bottom: -100px; left: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* CORRECTION : confirmation alignée à gauche, pas centrée */
.confirm-wrap {
  width: 100%;
  max-width: 700px;
  position: relative;
  z-index: 1;
  text-align: left;
  /* PAS de margin:auto — reste à gauche */
}

.confirm-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.confirm-logo span { color: #a5b4fc; }

.confirm-card {
  background: rgba(255,255,255,0.97);
  color: var(--ink);            /* CORRECTION : texte sombre sur fond clair */
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(14px);
}

.confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(91,94,244,0.18);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.confirm-icon {
  width: 84px; height: 84px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--success);
  font-size: 2rem;
  box-shadow: 0 0 0 10px rgba(16,185,129,0.05);
  animation: pop 0.5s cubic-bezier(.34,1.56,.64,1) both;
}

/* Titre à l'intérieur de la card — hérite de var(--ink) */
.confirm-card h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--ink);           /* CORRECTION : noir sur fond blanc */
}

.confirm-sub {
  max-width: 560px;
  margin: 0 0 2rem;            /* CORRECTION : aligné à gauche */
  color: var(--ink-light);
  font-size: 0.97rem;
  line-height: 1.7;
}

.confirm-highlight {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  margin: 0 0 2rem;
  text-align: left;
}

.confirm-highlight-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.confirm-list { display: grid; gap: 0.8rem; }

.confirm-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink-mid);       /* CORRECTION : texte lisible */
  font-size: 0.93rem;
  line-height: 1.55;
}

.confirm-item i { color: var(--success); margin-top: 0.15rem; flex-shrink: 0; }

.confirm-note {
  font-size: 0.87rem;
  color: var(--ink-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-start; /* CORRECTION : gauche */
}

.confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.confirm-btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 24px rgba(91,94,244,0.32);
}

.confirm-btn-primary:hover {
  background: #4a4de0;
  transform: translateY(-1px);
  color: white;
}

.confirm-btn-secondary {
  background: transparent;
  color: var(--ink-mid);
  border: 1.5px solid var(--border);
}

.confirm-btn-secondary:hover {
  border-color: var(--ink-mid);
  color: var(--ink);
  transform: translateY(-1px);
}

.confirm-footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-light);
}

/* ── RESPONSIVE (confirmation) ───────────────────────── */
@media (max-width: 640px) {
  body.confirm-page { padding: 1.25rem; }

  .confirm-card { padding: 2rem 1.25rem; border-radius: 16px; }

  .confirm-card h1 { font-size: 1.6rem; }

  .confirm-actions { flex-direction: column; }
  .confirm-btn { width: 100%; }
}

/* ── MARKETING CTA — RESPONSIVE ──────────────────────── */
@media (max-width: 640px) {
  .acquisition-cta { padding: 4rem 1.5rem; }
  .acquisition-cta-title { font-size: 1.75rem; }
  .acquisition-cta-features { flex-direction: column; align-items: center; gap: 0.75rem; }
  .acquisition-cta-btn { width: 100%; justify-content: center; }
}