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

:root {
  /* Palette — bleu Dokatel assouplie pour lisibilité */
  --bg:         #07090F;        /* fond page quasi-noir bleuté */
  --card-bg:    #0F1623;        /* card principale */
  --input-bg:   #161E2E;        /* inputs & step items */
  --input-focus:#1B2640;        /* input focus */
  --border:     #1F2E46;        /* bordures subtiles */
  --border-mid: #4A6080;        /* bordures medium — PLUS VISIBLES */
  --accent:     #4A8CFF;        /* bleu Dokatel légèrement éclairci */
  --accent-h:   #6BA3FF;        /* hover */
  --accent-a:   #3070E0;        /* active */
  --accent-dim: rgba(74,140,255,0.10);
  --accent-glow:rgba(74,140,255,0.18);
  --white:      #F0F4FF;        /* blanc légèrement bleuté, plus doux */
  --text:       #8FA8CC;        /* corps de texte */
  --muted:      #506080;        /* labels, placeholders */
  --sep:        #1A2538;
  --radius:     10px;
  --radius-lg:  16px;
  --font-head: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px;
}

/* ── PROGRESS ────────────────────────────── */
.progress-wrap {
  width: 100%;
  max-width: 780px;
  padding: 28px 24px 0;
}
.progress-label {
  font-size: 13px; /* agrandi */
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: var(--font-head);
}
.progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px var(--accent-glow);
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.ps {
  font-size: 13px; /* agrandi */
  font-family: var(--font-head);
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s;
  letter-spacing: .04em;
}
.ps.active { color: var(--white); }
.ps.done   { color: var(--accent); }

/* ── CARD ────────────────────────────────── */
.card-wrap {
  width: 100%;
  max-width: 780px;
  padding: 24px 24px 80px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 20px;
  padding: 40px 44px;
  animation: fadeUp 0.35s ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
.card-eyebrow {
  font-family: var(--font-head);
  font-size: 12px; /* agrandi */
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 27px; /* agrandi */
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card-desc {
  font-size: 16px; /* agrandi */
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 30px;
}

/* ── FORM ELEMENTS ───────────────────────── */
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media(max-width:540px){ .field-row { grid-template-columns:1fr; } }

label {
  display: block;
  font-size: 14px; /* agrandi */
  font-weight: 600;
  color: #C8D8EE; /* plus clair pour meilleure lisibilité */
  margin-bottom: 7px;
  font-family: var(--font-head);
  letter-spacing: .03em;
  text-transform: uppercase;
}
label .opt {
  font-size: 12px; /* agrandi */
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.req { color: var(--accent); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 13px 17px; /* légèrement plus grand */
  border: 1.5px solid rgba(255,255,255,0.5); /* bordure blanche visible */
  border-radius: var(--radius);
  background: var(--input-bg);
  font-family: var(--font-body);
  font-size: 15px; /* agrandi */
  color: #FFFFFF; /* texte blanc pur */
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.40); /* placeholder blanc à 30% */
  font-size: 14px; /* agrandi */
}
input:focus, textarea:focus {
  border-color: var(--accent);
  background: var(--input-focus);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
input.error, textarea.error {
  border-color: #E24B4A;
  box-shadow: 0 0 0 3px rgba(226,75,74,0.08);
}
textarea { resize: vertical; min-height: 108px; line-height: 1.65; }

.error-msg {
  font-size: 13px; /* agrandi */
  color: #E05050;
  margin-top: 5px;
  display: none;
}
.error-msg.show { display: block; }

/* ── GUIDE BOX ───────────────────────────── */
.guide {
  background: rgba(74,140,255,0.05);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 14px; /* agrandi */
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}
.guide strong { color: var(--accent-h); font-weight: 500; }

/* ── SECTION SEPARATOR ───────────────────── */
.section-sep {
  border: none;
  border-top: 1px solid var(--sep);
  margin: 30px 0;
}
.section-head {
  font-family: var(--font-head);
  font-size: 12px; /* agrandi */
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sep);
}
.section-sub {
  font-size: 14px; /* agrandi */
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* ── STEP ITEMS ──────────────────────────── */
.step-item {
  background: var(--input-bg);
  border: 1px solid rgba(255,255,255,0.18); /* bordure blanche visible */
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 10px;
  animation: fadeUp 0.22s ease both;
}
.step-num {
  font-family: var(--font-head);
  font-size: 12px; /* agrandi */
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 12px;
  border-radius: 20px;
}
.btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.btn-remove:hover { color: #E05050; background: rgba(226,75,74,0.07); }
.step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:520px){ .step-grid { grid-template-columns:1fr; } }
.step-grid .field { margin-bottom: 0; }

.btn-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px dashed rgba(255,255,255,0.22); /* bordure blanche visible */
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 13px; /* agrandi */
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 4px;
}
.btn-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-add-icon { font-size: 16px; font-weight: 300; }

/* ── RÉSULTATS ───────────────────────────── */
.results-inline {
  margin-top: 4px;
}

/* Bloc détaché "Votre point de départ" */
.aside-bloc {
  margin-top: 36px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.18); /* bordure blanche visible */
  border-radius: var(--radius-lg);
  padding: 26px 28px 24px;
  background: linear-gradient(135deg, rgba(74,140,255,0.04) 0%, rgba(74,140,255,0.01) 100%);
}
.aside-bloc::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(74,140,255,0.25) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.aside-bloc > * { position: relative; z-index: 1; }
.aside-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 11px; /* agrandi */
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.aside-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.aside-title {
  font-family: var(--font-head);
  font-size: 18px; /* agrandi */
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.aside-desc {
  font-size: 14px; /* agrandi */
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
}
/* Conseil style B2B */
.conseil-bloc {
  background: var(--input-bg);
  border-left: 2px solid rgba(74,140,255,0.4);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 13px; /* agrandi */
  color: var(--muted);
  line-height: 1.7;
}
.conseil-bloc strong { color: var(--text); font-weight: 500; }

/* ── NAVIGATION ──────────────────────────── */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}
.btn-back {
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,0.22); /* bordure blanche visible */
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 14px; /* agrandi */
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  letter-spacing: .03em;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); }
.btn-back:disabled { opacity: 0.3; cursor: default; }

.btn-next {
  padding: 13px 32px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px; /* agrandi */
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  flex: 1;
  max-width: 280px;
  letter-spacing: .04em;
  box-shadow: 0 4px 18px rgba(74,140,255,0.25);
}
.btn-next:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(74,140,255,0.35); }
.btn-next:active { background: var(--accent-a); transform: translateY(0); }

/* ── CONFIRMATION ────────────────────────── */
.merci-icon {
  width: 62px;
  height: 62px;
  background: var(--accent-dim);
  border: 1px solid rgba(74,140,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
}
.merci-title {
  font-family: var(--font-head);
  font-size: 30px; /* agrandi */
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.merci-sub {
  font-size: 16px; /* agrandi */
  color: var(--text);
  text-align: center;
  line-height: 1.75;
  margin-bottom: 10px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.merci-highlight {
  font-size: 15px; /* agrandi */
  color: var(--accent);
  text-align: center;
  font-weight: 500;
  margin-bottom: 30px;
  font-family: var(--font-head);
  letter-spacing: .02em;
}
.calendly-box {
  background: var(--input-bg);
  border: 1px solid rgba(255,255,255,0.18); /* bordure blanche visible */
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
}
.calendly-box .cal-label {
  font-family: var(--font-head);
  font-size: 16px; /* agrandi */
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.calendly-box .cal-sub {
  font-size: 14px; /* agrandi */
  color: var(--text);
  margin-bottom: 22px;
  line-height: 1.6;
}
.btn-calendly {
  display: inline-block;
  padding: 13px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 14px; /* agrandi */
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(74,140,255,0.25);
}
.btn-calendly:hover { background: var(--accent-h); transform: translateY(-1px); }
.merci-footer {
  margin-top: 20px;
  font-size: 13px; /* agrandi */
  color: var(--muted);
  text-align: center;
  line-height: 1.75;
}

/* ── RESPONSIVE ──────────────────────────── */
@media(max-width:620px){
  .card { padding: 28px 22px; }
  .card-title { font-size: 22px; }
  .progress-wrap { padding: 22px 16px 0; }
  .card-wrap { padding: 20px 16px 60px; }
  .aside-bloc { padding: 22px 20px; }
}

/* --- STYLE DU MODAL PROFESSIONNEL --- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-family: 'Roboto', sans-serif;
  text-align: center;
  transform: translateY(0);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-icon-circle {
  width: 56px;
  height: 56px;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-card h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.modal-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 32px 0;
}

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-modal-primary {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-primary:hover {
  background: #334155;
  transform: translateY(-1px);
}

.btn-modal-secondary {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-secondary:hover {
  color: #ef4444;
  border-color: #fecaca;
  background: #fef2f2;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 480px) {
  .modal-footer {
    flex-direction: row-reverse;
  }
  .btn-modal-primary, .btn-modal-secondary {
    flex: 1;
  }
}

.warning-icon { background: #fef2f2 !important; }
.btn-modal-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-modal-danger:hover { background: #dc2626; transform: translateY(-1px); }

.step-item {
    background: #121826;
    border: 1px solid rgba(255,255,255,0.18); /* bordure blanche visible */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.step-grid-dynamic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.sub-fields-list {
    margin-bottom: 10px;
}

.sub-field-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.sub-field-row input {
    flex: 1;
    background: #1a202c;
    border: 1px solid rgba(255,255,255,0.22); /* bordure blanche visible */
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
}

.btn-add-sub {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.22); /* bordure blanche visible */
    color: #a0aec0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-add-sub:hover {
    border-color: #63b3ed;
    color: #63b3ed;
}

.btn-remove-sub {
    background: #2d3748;
    border: none;
    color: #e53e3e;
    padding: 0 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* --- État de chargement des boutons --- */
.btn-loading {
    position: relative;
    pointer-events: none; /* Empêche de cliquer à nouveau */
    opacity: 0.8;
}

/* Le petit cercle qui tourne */
.loader-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

/* Style quand le bouton est désactivé */
button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.5);
}