/* Wizard de création d'entreprise — Phase 3 refonte
   Charte Panda Panda : variables CSS de main.css réutilisées (var(--accent), --text…). */

#page-wizard { padding: 0; }

.wiz-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  font-family: 'Syne', sans-serif;
  color: var(--text);
  position: relative; /* permet à .wiz-prefill-overlay (inset:0) de se contenir */
}

/* ── Header + dots ─────────────────────────────────────────── */
.wiz-header {
  position: relative;
  text-align: center;
  margin-bottom: 36px;
}

.wiz-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wiz-dots {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.wiz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all .25s ease;
}
.wiz-dot--active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  transform: scale(1.3);
}
.wiz-dot--done {
  background: var(--accent);
}
.wiz-dot--final {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  background: transparent;
}
.wiz-dot--final.wiz-dot--active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.wiz-close {
  position: absolute;
  top: 0; right: 0;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s ease;
}
.wiz-close:hover { background: var(--surface2); color: var(--text); }

/* ── Steps ──────────────────────────────────────────────────── */
.wiz-step {
  display: none;
  animation: wizFadeIn .25s ease;
}
.wiz-step--active { display: block; }

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

.wiz-step-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--text);
}
.wiz-step-title--center { text-align: center; }

.wiz-step-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}
.wiz-step-subtitle--center { text-align: center; }

/* ── Champs ─────────────────────────────────────────────────── */
.wiz-field {
  position: relative;
  margin-bottom: 20px;
}
.wiz-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.wiz-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.wiz-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.wiz-input--error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.wiz-textarea {
  min-height: 70px;
  resize: vertical;
  line-height: 1.45;
}
.wiz-textarea--small { min-height: 60px; }

select.wiz-input { cursor: pointer; }

.wiz-file { padding: 8px 10px; }

/* Badge "Suggéré par Panda" sous un champ */
.wiz-suggested-badge {
  display: none;
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent2);
  font-weight: 500;
}
.wiz-suggested-badge--visible { display: inline-block; }

/* ── Zone de chalandise (4 cards) ──────────────────────────── */
.wiz-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.wiz-zone-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
  font: inherit;
}
.wiz-zone-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.wiz-zone-card--selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.wiz-zone-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.wiz-zone-hint {
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Encart optionnel (réseaux) ────────────────────────────── */
.wiz-optional {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 24px 0;
}
.wiz-optional-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  list-style: none;
  outline: none;
}
.wiz-optional-summary::-webkit-details-marker { display: none; }
.wiz-optional[open] .wiz-optional-summary { margin-bottom: 12px; }
.wiz-optional-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.wiz-optional-hint {
  font-size: 13px;
  color: var(--muted);
}

/* Phase 8.1/1 — Opt-in analyses Apify */
.wiz-analyze-optin {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.wiz-analyze-optin[hidden] { display: none; }
.wiz-analyze-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.wiz-analyze-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}
.wiz-analyze-label input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.5; }
.wiz-analyze-hint {
  margin: 6px 0 0 28px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.wiz-analyze-hint[data-state="warn"] { color: #B45309; }

/* ── Boutons d'action ───────────────────────────────────────── */
.wiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}
/* Phase 2F.2 : phase validation a 3 boutons → wrap propre + justify-end */
.wiz-bb-phase--validation .wiz-actions {
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .wiz-bb-phase--validation .wiz-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .wiz-bb-phase--validation .wiz-actions .wiz-btn {
    width: 100%;
  }
}
.wiz-actions--centered {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.wiz-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
}
.wiz-btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #FFF;
}
.wiz-btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 127, 255, .25);
}
.wiz-btn--primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.wiz-btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.wiz-btn--ghost:hover {
  background: var(--surface2);
  color: var(--text);
}
.wiz-btn--large {
  padding: 14px 32px;
  font-size: 15px;
  min-width: 280px;
}

/* ── Spinner Haiku ──────────────────────────────────────────── */
.wiz-haiku-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 16px;
}
.wiz-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: wizSpin .8s linear infinite;
}
@keyframes wizSpin { to { transform: rotate(360deg); } }

/* Overlay bloquant transition step1 → step2 pendant extract-url + prefill */
.wiz-prefill-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: inherit;
  animation: wizFadeIn .15s ease-out;
}
.wiz-prefill-overlay[hidden] { display: none; }
.wiz-prefill-overlay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
  font-size: 15px;
  color: var(--text, #0f172a);
}
.wiz-prefill-overlay-card .wiz-spinner {
  width: 22px; height: 22px;
  border-width: 3px;
}
.wiz-prefill-overlay-text {
  margin: 0;
}

/* Modale "Plusieurs activités détectées" — réutilise .wiz-prefill-overlay */
.wiz-multi-activites-card {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  max-width: 560px;
  width: min(90%, 560px);
  padding: 24px 26px;
  text-align: left;
}
.wiz-multi-activites-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #0f172a);
}
.wiz-multi-activites-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #64748b);
  line-height: 1.45;
}
.wiz-multi-activites-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
}
.wiz-multi-activite-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.wiz-multi-activite-item:hover {
  background: var(--surface2, #f8fafc);
}
.wiz-multi-activite-item--checked {
  border-color: var(--accent, #2b7fff);
  background: var(--accent-soft, rgba(43,127,255,.06));
}
.wiz-multi-activite-item input[type="checkbox"] {
  margin-top: 2px;
  width: 18px; height: 18px;
  accent-color: var(--accent, #2b7fff);
  cursor: pointer;
}
.wiz-multi-activite-content {
  flex: 1;
  min-width: 0;
}
.wiz-multi-activite-sector {
  font-weight: 600;
  font-size: 14px;
  color: var(--text, #0f172a);
  margin-bottom: 4px;
}
.wiz-multi-activite-confidence {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  vertical-align: 1px;
}
.wiz-multi-activite-confidence--high   { background: #dcfce7; color: #166534; }
.wiz-multi-activite-confidence--medium { background: #fef3c7; color: #92400e; }
.wiz-multi-activite-confidence--low    { background: #f1f5f9; color: #64748b; }
.wiz-multi-activite-desc {
  font-size: 13px;
  color: var(--muted, #475569);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wiz-multi-activites-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.wiz-haiku-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 20px;
}
.wiz-haiku-icon {
  font-size: 16px;
  line-height: 1;
}

/* ── Score profil ───────────────────────────────────────────── */
.wiz-score {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface2);
  font-size: 13px;
  color: var(--muted);
}
.wiz-score-value { color: var(--accent); font-size: 14px; }
.wiz-score-guaranteed {
  margin-left: auto;
  font-size: 12px;
  color: var(--success);
}

/* ── Ton (10 boutons) ──────────────────────────────────────── */
.wiz-tone-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.wiz-tone-btn {
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all .15s ease;
}
.wiz-tone-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.wiz-tone-btn--selected {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #FFF;
  border-color: transparent;
}
@media (max-width: 600px) {
  .wiz-tone-grid { grid-template-columns: repeat(2, 1fr); }
  .wiz-zone-grid { grid-template-columns: 1fr; }
}

/* ── Couleurs ───────────────────────────────────────────────── */
.wiz-colors {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.wiz-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wiz-color input[type="color"] {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 2px;
  background: var(--surface);
}
.wiz-color-label {
  font-size: 12px;
  color: var(--muted);
}

/* ── Logo ───────────────────────────────────────────────────── */
.wiz-logo-preview {
  margin-top: 10px;
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.wiz-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface2);
}
.wiz-logo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .65);
  color: #FFF;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* ── Étape 4 — confirmation ────────────────────────────────── */
.wiz-confirm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--success);
  color: #FFF;
  font-size: 32px;
  font-weight: 700;
}
.wiz-final-score {
  text-align: center;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.wiz-final-score-value {
  color: var(--accent);
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  margin-left: 8px;
}
.wiz-more-later {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}
.wiz-more-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wiz-more-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.wiz-more-list li { margin: 4px 0; }

/* ── Phase 9.3 — Multi-activités étape 2 ───────────────────────── */
.wiz-profil-mode[hidden] { display: none; }

.wiz-multi-link {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wiz-multi-link:hover  { color: var(--accent-hover); }
.wiz-multi-link:focus  { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 4px; }
.wiz-multi-link--back  { margin-top: 18px; color: var(--muted); }
.wiz-multi-link--back:hover { color: var(--text); }

.wiz-multi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 10px;
}
.wiz-multi-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.wiz-multi-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wiz-multi-card {
  position: relative;
  padding: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.wiz-multi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wiz-multi-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wiz-multi-card-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.wiz-multi-card-remove:hover { background: rgba(220,38,38,.08); color: var(--error); }
.wiz-multi-card-remove:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; }

.wiz-multi-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: start;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}
.wiz-multi-toggle input[type="checkbox"] {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.wiz-multi-toggle-label {
  font-weight: 600;
  color: var(--text);
}
.wiz-multi-toggle-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

.wiz-multi-add {
  margin-top: 12px;
}
.wiz-multi-add:disabled { opacity: 0.55; cursor: not-allowed; }


/* ───────────────────────────────────────────────────────────────────
   Phase 2B refonte entreprise — étape 2 Activités v2
   Repeater multi-activités enrichi (secteur + sous-secteurs picker
   + autre tags + description + cible + offres + radio default)
   ─────────────────────────────────────────────────────────────────── */

.wiz-activites-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.wiz-activites-empty {
  padding: 24px 16px;
  text-align: center;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}
.wiz-activites-empty[hidden] { display: none; }

.wiz-activites-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 8px;
  gap: 12px;
}
.wiz-activites-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.wiz-activites-add {
  white-space: nowrap;
}
.wiz-activites-add:disabled { opacity: 0.55; cursor: not-allowed; }

.wiz-activites-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 10px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--error, #b91c1c);
}
.wiz-activites-error[hidden] { display: none; }
.wiz-activites-error-msg { flex: 1; }
.wiz-activites-retry {
  flex: 0 0 auto;
}

/* Card individuelle d'activité */
.wiz-activite {
  position: relative;
  padding: 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: wizActFadeIn .2s ease-out;
}
.wiz-activite[data-removing="true"] {
  animation: wizActFadeOut .2s ease-in forwards;
}
@keyframes wizActFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wizActFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-4px); }
}

.wiz-activite-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.wiz-act-label-block {
  display: block;
  min-width: 0;
}
/* Phase 4-fixes (2026-05-09) : champ Label visible uniquement en multi.
   En mono (1 activité), le label n'apporte rien de pertinent. */
.wiz-activites-list:not(.wiz-multi) .wiz-act-label-block {
  display: none;
}
/* Si label caché, le bouton supprimer doit pas occuper toute la largeur
   visuellement — on garde le grid identique (le slot 1fr reste) */
.wiz-act-label {
  font-weight: 600;
  font-size: 15px;
  width: 100%;
}
/* Phase post-2B : .wiz-act-default-wrap, .wiz-act-default,
   .wiz-act-default-label retirés (radio "active par défaut" supprimé). */
.wiz-act-delete {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.wiz-act-delete:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--error, #b91c1c);
}
.wiz-act-delete:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

/* Secteur dropdown */
.wiz-act-secteur {
  font-size: 14px;
}
.wiz-act-label-secteur,
.wiz-act-label-sous-secteurs,
.wiz-act-label-autre,
.wiz-act-label-description,
.wiz-act-label-cible,
.wiz-act-label-offres {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* Phase 4-fixes (2026-05-09) : suggestions chips de label retirées
   (.wiz-act-suggestions, .wiz-act-suggestions-hint, .wiz-act-suggestions-chips,
   .wiz-act-suggestions-chip). Étaient contre-productives — écrasaient ce
   que l'user avait tapé. */


/* ───────────────────────────────────────────────────────────────────
   Phase 2C+2D refonte entreprise — étape 3 (profil métier) + step 4
   ─────────────────────────────────────────────────────────────────── */

/* Toggles "no tirets" / "no asterisques" en step 3 */
.wiz-step3-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.wiz-step3-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}
.wiz-step3-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Hint info en bas du step 3 */
.wiz-hint--info {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* Actions avec bouton "Sauver et terminer" intermédiaire (3 boutons) */
.wiz-actions--with-save {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.wiz-actions--with-save .wiz-save-terminate {
  justify-self: center;
  font-size: 13px;
}
@media (max-width: 600px) {
  .wiz-actions--with-save {
    grid-template-columns: 1fr;
  }
  .wiz-actions--with-save .wiz-save-terminate {
    justify-self: stretch;
  }
}


/* ───────────────────────────────────────────────────────────────────
   Phase 2E-bis (2026-05-09) — étape 5 Brand Brief conversationnel
   Remplace l'ancien formulaire Phase 2E (radios/photos/format/etc).
   ─────────────────────────────────────────────────────────────────── */

/* Bandeau warning si brief existe déjà */
.wiz-bb-existing-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}
.wiz-bb-existing-warning[hidden] { display: none; }
.wiz-bb-existing-warning p {
  flex: 1;
  margin: 0;
  color: var(--text);
}

/* Phases (visibilité pilotée par data-bb-phase + .hidden) */
.wiz-bb-phase[hidden] { display: none; }

/* Activités multi-checkbox (phase intro, identique step3 toggles style) */
.wiz-bb-activites {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.wiz-bb-activite-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 13px;
}
.wiz-bb-activite-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Bulle question style chat */
.wiz-bb-question-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.wiz-bb-question-bubble {
  padding: 16px 20px;
  background: rgba(124, 111, 214, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 14px;
  animation: wizBbBubbleIn .25s ease-out;
}
@keyframes wizBbBubbleIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Compteur caractères textarea */
.wiz-bb-chars-counter {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

/* Animation "thinking" — 3 dots pulsants */
.wiz-bb-thinking {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.wiz-bb-thinking[hidden] { display: none; }
.wiz-bb-thinking-dots {
  display: inline-flex;
  gap: 4px;
}
.wiz-bb-thinking-dots span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: wizBbDot 1.2s infinite ease-in-out;
}
.wiz-bb-thinking-dots span:nth-child(2) { animation-delay: 0.15s; }
.wiz-bb-thinking-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wizBbDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40%           { opacity: 1;   transform: scale(1.05); }
}

/* Phase finalizing — animation centrée plus grande */
.wiz-bb-finalizing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 20px;
  text-align: center;
}
.wiz-bb-finalizing .wiz-bb-thinking-dots span {
  width: 12px;
  height: 12px;
}
.wiz-bb-finalizing-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* Brief textarea phase validation */
.wiz-bb-brief-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.wiz-bb-brief-textarea {
  min-height: 400px;
  max-height: 600px;
  resize: vertical;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}

/* Responsive < 600px */
@media (max-width: 600px) {
  .wiz-bb-question-bubble {
    padding: 12px 14px;
    font-size: 14px;
  }
  .wiz-bb-finalizing {
    padding: 40px 14px;
  }
  .wiz-bb-brief-textarea {
    min-height: 320px;
  }
}

/* Multi-checkbox sous-secteurs : grille responsive */
.wiz-act-sous-secteurs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 48px;
}
@media (max-width: 600px) {
  .wiz-act-sous-secteurs {
    grid-template-columns: 1fr;
  }
}
.wiz-act-sous-secteurs-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 4px 0;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.wiz-act-sous-secteur-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s ease;
}
.wiz-act-sous-secteur-item:hover {
  background: var(--surface2);
}
.wiz-act-sous-secteur-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex: 0 0 auto;
}
.wiz-act-sous-secteur-item span {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

/* Sous-secteur "autre" : input + bouton + tags */
.wiz-act-autre-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}
.wiz-act-autre-input {
  font-size: 14px;
}
.wiz-act-autre-add {
  white-space: nowrap;
}
.wiz-act-autre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.wiz-act-autre-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  animation: wizActFadeIn .15s ease-out;
}
.wiz-act-autre-tag-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  padding: 0;
}
.wiz-act-autre-tag-remove:hover {
  background: rgba(220, 38, 38, 0.12);
  color: var(--error, #b91c1c);
}

/* Responsive : stack header sur mobile */
@media (max-width: 600px) {
  .wiz-activite-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wiz-activites-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .wiz-activites-add {
    width: 100%;
  }
}
