/* Badge score (rouge si <60%) */
.step-meta .score-badge { padding:2px 6px; border-radius:6px; border:1px solid var(--border); }
.step-meta .score-badge.red { color:#fff; background:#8b1c1c; border-color:#a02828; }
.step-meta .score-badge.orange { color:#1b1b1b; background:#ffc107; border-color:#fd7e14; }
.step-meta .score-badge.green { color:#fff; background:#28a745; border-color:#20c997; }

/* "Exemple appliqué" : fond gris foncé + texte blanc */
.inline-step-example,
.example-suggestion,
.inline-step-reco {
  background:#0f0f0f !important;
  color:#fff !important;
  border:1px solid var(--border) !important;
}

/* Example suggestion container with margins */
.example-suggestion{
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}
.example-suggestion .actions{ display:flex; gap:8px; margin-top:8px; }
.example-suggestion pre{
  white-space: pre-wrap;
  overflow-wrap: anywhere; /* wrap very long words/URLs */
  word-break: break-word;
  max-width: 100%;
}

/* Légère translation du container ~75px vers la gauche */
:root { --content-left-shift: 75px; }
@media (min-width:1025px){
  .container {
    margin-left: calc(var(--sidebar-w) + max(0px, (100vw - var(--sidebar-w) - 860px)/2) - var(--content-left-shift));
  }
}

/* Textareas autogrow parents */
.onboarding .form-group { position:static; display:block; overflow:visible; }
/* Right sidebar for revision history */
.onb-side-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  background: #0f0f10;
  border-left: 1px solid #2a2a2a;
  padding: 14px;
  overflow-y: auto;
  z-index: 150;
}
.onb-side-panel .side-section{ margin-bottom: 16px; }
.onb-side-panel .side-section h4{ margin: 8px 0 10px; font-weight: 700; }
.onb-side-panel .rev-list{ display: flex; flex-direction: column; gap: 8px; }
.onb-side-panel .rev-item{ border:1px solid #2a2a2a; border-radius: 8px; padding: 8px; background:#121214; }
.onb-side-panel .rev-item .meta{ color:#9ca3af; font-size: .85rem; margin-bottom: 6px; }
.onb-side-panel .rev-item .actions{ display:flex; gap:8px; }
.onb-side-panel .rev-empty{ color:#6b7280; font-style: italic; }
.rev-title{ font-weight:700; margin-bottom:8px; }
.rev-item{ padding:8px 10px; border:1px solid #e5e7eb; border-radius:8px; margin-bottom:6px; background:#0f0f0f0d; }
.rev-meta{ color:#6b7280; font-size:.85rem; }
.rev-empty{ color:#9ca3af; font-style:italic; }
/* Auto-grow textareas */
.onboarding textarea[data-autogrow]{
  display:block;
  width:100%;
  box-sizing:border-box;
  min-height:240px;
  max-height:480px;
  padding:12px 14px;
  line-height:1.45;
  resize:none;
  overflow-y:hidden; /* prevent double scrollbar with autogrow */
  border-radius:12px;
}
.onboarding .form-row,
.onboarding .form-group{
  position:static;
  display:block;
}
.onboarding .form-row{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
/* Inline example block (Exemple appliqué) */
.inline-step-example{
  background:#f3f4f6; /* gris clair */
  color:#111827;
}
/* Default textarea height doubled for non-autogrow too */
.onboarding textarea{ min-height:240px; }
/* === Tokens =============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Monochrome theme */
  --bg: #0b0b0b;
  --panel: #111111;
  --text: #e5e5e5;
  --muted: #9ca3af;
  --border: #2a2a2a;
  --accent: #ffffff;

  /* Alias for components that expect "primary" */
  --primary: var(--accent);
  --primary-dark: var(--accent);

  /* Layout */
  --sidebar-w: 380px;

  /* Optional background image (set to none to disable) */
  --bg-image: url('fluent_web_dark_2_bf5f23287bc9f60c9be2 (1).png');
}

/* === Base / Reset ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: .2px;
  color: var(--text);
  background:
    var(--bg-image) center/cover no-repeat fixed,
    radial-gradient(1200px 800px at 10% -10%, rgba(118,75,162,.15), transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, rgba(102,126,234,.18), transparent 60%),
    linear-gradient(135deg, #0b0b14 0%, #0f0b1e 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark-scheme tweak for the accent glows only */
@media (prefers-color-scheme: dark) {
  body {
    background:
      var(--bg-image) center/cover no-repeat fixed,
      radial-gradient(1200px 800px at 10% -10%, rgba(118,75,162,.18), transparent 60%),
      radial-gradient(1000px 700px at 110% 10%, rgba(102,126,234,.22), transparent 60%),
      linear-gradient(135deg, #0b0b14 0%, #0f0b1e 100%);
  }
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* === Utilities ============================================================ */
.surface {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: 20px;
}
.text-muted { color: var(--muted); }
.hidden { display: none !important; }

/* === Layout =============================================================== */
.container {
    max-width: 1200px;
  margin-left: var(--sidebar-w);
  margin-right: auto;
    padding: 2rem 1rem;
  background: rgba(17, 17, 17, 0.85);
}
@media (min-width: 1025px) {
  .container {
    max-width: 860px;
    margin-left: calc(var(--sidebar-w) + max(0px, (100vw - var(--sidebar-w) - 860px)/2));
  }
}
@media (max-width: 1024px) {
  .container { margin: 0 auto; max-width: 860px; padding: 1rem; }
}

/* Sticky header */
.header, .sticky-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border);
}
.header { text-align: center; margin-bottom: 3rem; animation: fadeInDown .8s ease; }
.header h1 { background: transparent !important; color: var(--text); letter-spacing: -0.02em; font-weight: 800; }
.header p { color: var(--muted); }

/* Step header save button positioning */
.step-header { position: relative; padding-right: 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-header .step-title { margin: 0.2rem 0 0.25rem 0; }
.step-header .step-description { margin: 0; }
.step-save-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #0f0f0f;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* Sidebar */
.step-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - 60px);
  background: var(--panel);
  color: var(--text);
  padding: 30px 20px;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  overflow-y: auto;
  z-index: 100;
}
.sidebar-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.step-nav-list { display: flex; flex-direction: column; gap: 12px; }
.nav-step {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #121212; color: var(--text); border: 1px solid var(--border); border-radius: 12px;
  transition: transform .3s ease;
}
.nav-step.accessible:hover { transform: translateX(-5px); }
.nav-step.current { background: #0f0f0f; color: #fff; }
.nav-step.completed { background: #141414; }
.step-number {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: #0f0f0f; border: 1px solid var(--border); border-radius: 50%; font-weight: 700;
}
.step-name { flex: 1; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-meta { font-size: .8rem; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; opacity: .9; }
.step-check { color: #fff; font-weight: 700; }

@media (max-width: 1024px) { .step-sidebar { display: none; } }

/* Ensure content doesn't go under the fixed left sidebar */
:root { --sidebar-w: 280px; }
.container { margin-left: calc(var(--sidebar-w) + 24px); margin-right: calc(var(--sidebar-w) + 24px); max-width: 980px; }
@media (max-width: 1024px){ .container { margin: 0 auto; max-width: 860px; } }

/* Right revision sidebar reusing left sidebar visuals */
.step-sidebar--right {
  left: auto;
  right: 0;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}

/* === Cards / Sections ===================================================== */
.container,
.step-container,
.summary-container,
.modal-content,
.ai-agent,
.mock-calls-section,
.progress-container { /* shared surface */
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid var(--border);
  box-shadow: none;
}
.ai-agent,
.mock-calls-section,
.progress-container,
.step-container,
.summary-container {
  border-radius: 20px; padding: 2rem; margin-bottom: 1.5rem;
}

/* Analysis / summary blocks */
.analysis-section,
.summary-section,
.transcript-item,
.inline-step-reco {
  background: #0f0f0f;
  border-left: 1px solid var(--border);
  box-shadow: none;
  border-radius: 16px;
  color: #fff;
  padding: 1.5rem;
  transition: transform .3s ease;
}
.summary-section:hover { transform: translateX(5px); }
.analysis-section:hover { transform: translateY(-5px); }

/* Progress */
.progress-bar { width: 100%; height: 10px; background: #1a1a1a; border-radius: 9999px; overflow: hidden; margin-bottom: 1rem; }
.progress-fill { height: 100%; background: #667eea; width: 0%; transition: width .6s cubic-bezier(.4,0,.2,1); border-radius: 9999px; }
.progress-text { text-align: center; font-weight: 600; color: #fff; font-size: .95rem; }

/* Buttons */
.btn {
  background: #0f0f0f; color: var(--text); border: 1px solid var(--border);
  padding: .875rem 2rem; border-radius: 9999px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: transform .2s ease, border-color .2s ease;
}
.btn:hover { border-color: #444; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn-primary { background: #000; color: #fff; border: 1px solid #fff; }
.btn-secondary { background: #0f0f0f; color: var(--text); border: 1px solid var(--border); }
.btn-outline { background: #0f0f0f; color: #fff; border: 1px solid #fff; }
.btn-mock-call { background: #000; color: #fff; border: 1px solid #fff; }

/* Subtle pressed effect on click */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Ripple animation */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
@keyframes ripple {
  to {
    transform: scale(14);
    opacity: 0;
  }
}

/* Forms */
.form-group { margin-bottom: 1.75rem; }
.form-group label { display: block; margin-bottom: .625rem; font-weight: 600; color: var(--text); font-size: .95rem; }
input, select, textarea,
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .875rem 1rem; background: #1a1a1a; color: #ffffff;
  border: 1px solid #2a2a2a; border-radius: 12px; font-size: 16px; caret-color: #ffffff;
}
::placeholder { color: #d1d5db; opacity: .85; }
.form-group select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 2.25rem; }
.form-group select option { background: #1a1a1a; color: #f1f5f9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #444; box-shadow: none; }
.file-upload {
  border: 1px dashed #f59e0b; border-radius: 16px; padding: 2rem; text-align: center;
  background: #1f1a00; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.file-upload:hover { background: #291f00; border-color: #fbbf24; }
.file-upload.dragover { background: #3a2d00; border-color: #fcd34d; }
.file-upload p, .file-upload small { color: #fff; }

/* Modal */
.modal {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background-color: rgba(0,0,0,0.7); backdrop-filter: blur(4px); animation: fadeIn .3s ease;
}
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content { width: 90%; max-width: 800px; border-radius: 24px; }
.modal-header { background: #000; color: #fff; padding: 1.5rem 2rem; border-radius: 24px 24px 0 0; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.modal-body { padding: 2rem; }
.close { color: #fff; font-size: 32px; font-weight: 700; cursor: pointer; line-height: 1; transition: transform .2s ease; }
.close:hover { transform: scale(1.1) rotate(90deg); }

/* Progress list inside modals */
.progress-steps { display: flex; flex-direction: column; gap: 14px; }
.progress-steps .step-item {
  display: flex; align-items: center; gap: 12px;
  background: #0f0f0f; border-left: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.progress-steps .step-item .label { font-weight: 600; color: var(--text); }
.progress-steps .step-item .status { width: 26px; display: grid; place-items: center; color: #fff; }
.progress-steps .step-item.done { border-left-color: #fff; }
.progress-steps .step-item.current { border-left-color: #fff; }

/* Misc. */
.company-name { margin: .25rem 0 .5rem; font-weight: 700; font-size: 1.05rem; color: #e5e5e5; opacity: .9; }
.feedback-container, .mock-instructions { background: #0f0f0f; border: 1px solid var(--border); box-shadow: none; }
.feedback-button {
  position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%;
  background: #000; color: #fff; border: 1px solid #fff; font-size: 24px; cursor: pointer; z-index: 1000;
}

/* Floating revision (clock) button styled like agent box trigger */
.revision-button {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #000; color: #fff; border: 1px solid #fff; font-size: 22px; cursor: pointer; z-index: 1000;
  display: grid; place-items: center;
}
.revision-button:hover { background:#111; }

/* Hidden by default; opened when body has .show-revisions */
.step-sidebar--right { transform: translateX(100%); transition: transform .25s ease; }
.show-revisions .step-sidebar--right { transform: translateX(0); }
.show-revisions .container { margin-right: calc(var(--sidebar-w) + 24px); }

/* Floating save button below clock */
.save-floating {
  position: fixed;
  top: 150px;
  right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #000; color: #fff; border: 1px solid #fff; font-size: 22px; cursor: pointer; z-index: 999;
  display: grid; place-items: center;
}
.save-floating:hover { background:#111; }

/* File items */
.file-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .875rem 1.25rem; background: #0f0f0f; border: 1px solid var(--border);
  border-radius: 12px; margin: .5rem 0; transition: transform .2s ease, background .2s ease;
}
.file-item:hover { background: #121212; transform: translateX(5px); }
.file-item button {
  background: #ef4444; color: #fff; border: none; border-radius: 8px; padding: .5rem 1rem;
  cursor: pointer; font-weight: 600; transition: transform .2s ease, background .2s ease;
}
.file-item button:hover { background: #dc2626; transform: scale(1.05); }

/* Upload notice */
.upload-notice {
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px; background:#0f0f0f; color: var(--text);
  border:1px solid var(--border); border-radius:10px; margin:10px 0;
}
.upload-notice.success { border-color:#166534; color:#bbf7d0; }
.upload-notice.error { border-color:#7f1d1d; color:#fecaca; }
.upload-notice svg { flex:0 0 auto; }

/* Score card */
.score-container { text-align: center; margin-bottom: 3rem; padding: 2rem; background: #0f0f0f; color: #fff; border: 1px solid var(--border); border-radius: 20px; }
.score-circle {
  width: 180px; height: 180px; margin: 1.5rem auto; border-radius: 50%;
  background: #0f0f0f; border: 1px solid var(--border); display: grid; place-items: center;
}
.score-circle span { color: #fff; font-size: 3.5rem; font-weight: 800; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .ai-agent, .mock-calls-section, .progress-container, .summary-container, .feedback-container { padding: 1.5rem; border-radius: 16px; }
  .feedback-button { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 20px; }
  .modal-content { width: 95%; margin: 1rem; }
  input, textarea, select { font-size: 16px !important; }
  .score-circle { width: 150px; height: 150px; }
  .score-circle span { font-size: 2.5rem; }
}

/* === Animations =========================================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { 0% { transform: scale(.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* === Optional: widget z-index ============================================ */
elevenlabs-convai { z-index: 9999; }
/* === 1) Fonts: enforce Grotesk everywhere =============================== */
/* Load Space Grotesk once. If you already import it, keep only one import. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-grotesk: 'Space Grotesk', system-ui, -apple-system, "Segoe UI",
                  Roboto, Helvetica, Arial, sans-serif;
}

/* Apply Grotesk to all UI, then optionally keep body text on Inter if you want */
html, body, input, select, textarea, button,
.header h1, .step-title, .nav-step, .btn, .company-name {
  font-family: var(--font-grotesk) !important;
  letter-spacing: .2px;
}

/* === 2) Step visibility: only current step shows ======================== */
/* Ensures old behavior: one step at a time, unless explicitly expanded */
.step-container { display: none !important; }
.step-container.active { display: block !important; }

/* If you also have a summary/feedback view that should be single-visibility */
.summary-container,
.feedback-container { display: none; }
.summary-container.active,
.feedback-container.active { display: block; }

/* === 3) Headings and “box” sizing/spacing =============================== */
/* Stronger hierarchy */
.header h1 {
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
}

.step-title {
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-description,
.summary-section p,
.analysis-section li,
.transcript-item p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Card boxes: larger, airier, consistent */
.ai-agent,
.mock-calls-section,
.progress-container,
.step-container,
.summary-container,
.feedback-container {
  padding: 2.25rem 2rem !important;       /* more breathing room */
  border-radius: 20px !important;
  min-height: 140px;                      /* stop cramped look on small content */
}

/* Lists inside analysis/summary look tight without cramming */
.analysis-section,
.summary-section,
.transcript-item,
.inline-step-reco {
  padding: 1.5rem 1.5rem;
  border-radius: 16px;
}

/* Inputs feel bigger and more premium */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem 1.1rem !important;
  font-size: 1rem !important;
  border-radius: 14px !important;
}

/* Step sidebar items a bit taller for readability */
.nav-step { padding: 16px 18px; }
.step-number { width: 34px; height: 34px; font-weight: 700; }

/* === 4) Buttons at the bottom: consistent and sticky option ============= */
/* Base buttons */
.btn {
  padding: 0.95rem 2.1rem !important;
  border-radius: 9999px !important;
  font-weight: 600;
}

/* Step navigation area at bottom of each step */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  margin-top: 2rem;
}

/* Make it sticky if desired on long steps */
.navigation.is-sticky {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background: linear-gradient(to top, var(--panel) 80%, transparent);
  z-index: 50;
}

/* Mobile full-width buttons */
@media (max-width: 768px) {
  .navigation { flex-direction: column; }
  .navigation .btn { width: 100%; }
}

/* === 5) Container layout vs sidebar: consistent offsets ================= */
:root { --sidebar-w: 380px; } /* keep in sync with your sidebar width */

.container {
  max-width: 1200px;
  margin-left: var(--sidebar-w) !important;
  margin-right: auto;
  padding: 2rem 1rem;
  background: rgba(17, 17, 17, 0.60);
}

@media (min-width: 1025px) {
  .container {
    max-width: 860px;
    margin-left: calc(var(--sidebar-w) + max(0px, (100vw - var(--sidebar-w) - 860px)/2)) !important;
  }
}

@media (max-width: 1024px) {
  .step-sidebar { display: none !important; }
  .container { margin: 0 auto !important; max-width: 860px; padding: 1rem; }
}

/* === 6) Small polish: titles, summaries, progress ======================= */
.summary-section h3,
.analysis-section h3,
.transcript-item h4 {
  font-size: 1.3rem;
    font-weight: 700;
  margin-bottom: .75rem;
}

/* Improve blocks and readable rich text */
.summary-section, .analysis-section, .recommendation-card, .inline-step-reco {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f0f0f;
}
.rt { white-space: pre-wrap; line-height: 1.65; }
.rt p { margin: 6px 0; }
.rt ul { margin: 6px 0 6px 18px; padding: 0; list-style: disc; }
.rt-heading { font-weight: 800; color: #e2e8f0; margin: 10px 0 6px 0; }

.progress-text { font-size: 1rem; }

/* === 7) Safety: ensure modals and overlays use Grotesk and spacing ====== */
.modal-header h2 { font-family: var(--font-grotesk) !important; }
.modal-body { font-size: 1.02rem; line-height: 1.65; }

/* === 8) Optional: if any element still renders the wrong font, force it == */
[class*="card"], [class*="box"], [class*="section"], [class*="panel"] {
  font-family: var(--font-grotesk) !important;
}
/* 1) Checkboxes side by side (responsive) */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 2–4 per row depending on space */
    gap: 10px 18px;
    align-items: center;
}
.checkbox-group.radio-inline { display: inline-flex; grid-template-columns: none; gap: 24px; align-items: center; }
.checkbox-group.radio-inline .checkbox-item { width: auto; font-weight: 600; color: #e5e7eb; }
.checkbox-group.radio-inline input[type="radio"] { margin: 0; }
.checkbox-group.radio-inline label, .checkbox-group.radio-inline .checkbox-item { cursor: pointer; }

/* Force vertical stacking */
.checkbox-group.radio-vertical { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.checkbox-group.radio-vertical .checkbox-item { width: auto; }
  .checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
  
  /* If your markup is just inputs + labels without .checkbox-item wrappers,
     you can also use this helper on the parent: */
  .checkbox-inline > * {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 18px;
  }
  
  /* 2) Center the step title and description */
  .step-header,
  .step-title,
  .step-description { text-align: center; }
  
  .step-description {
    max-width: 860px;          /* keeps lines readable */
    margin: 0 auto 16px;
    margin-bottom: 32px;       /* center + a bit of bottom space */
  }
  
  /* 3) White divider (75% width) after the description */
  .step-description::after {
    content: "";
    display: block;
    width: 75%;
    max-width: 960px;
    height: 1px;
    background: rgba(255,255,255,.9); /* white divider in dark theme */
    margin: 16px auto 0;
    margin-bottom: 20px;              /* centered */
  }

/* Generic modal progress bar */
.progress-bar { width: 100%; height: 10px; background: #0f0f0f; border:1px solid var(--border); border-radius: 8px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(135deg, #667eea, #764ba2); transition: width .25s ease; }

/* Background analysis toast */
.bg-analysis-toast{
  position: fixed; top:16px; right:16px; z-index:99999; background:#0f0f0f; color:#fff; border:1px solid var(--border);
  border-radius:12px; padding:10px 12px; display:flex; align-items:center; gap:10px; box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.bg-analysis-toast .bar{ width:140px; height:8px; background:#111; border:1px solid var(--border); border-radius:999px; overflow:hidden; }
.bg-analysis-toast .fill{ height:100%; width:0%; background:linear-gradient(135deg,#667eea,#764ba2); transition: width .25s ease; }

/* Bottom-middle variant */
#bgStepToast{ display:none; }

/* Notification dropdown list styling (match rev item card) */
#notifMenu{ background:#0b0b0b; border:1px solid var(--border); z-index:10000; }
#notifList{ list-style:none; padding:8px 0; margin:0; }
#notifList li{ margin:8px 12px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#0f0f0f; cursor:pointer; display:flex; align-items:center; gap:10px; }
#notifList li:hover{ background:#121212; }
#notifList .dot{ width:10px; height:10px; border-radius:3px; background:#ffc107; flex:0 0 auto; }
#notifList .notif-title{ font-weight:700; }

/* Buttons - neutral grey hover for all buttons (including .btn-outline) */
button[type="button"].btn:hover,
button[type="submit"].btn:hover,
.btn:hover{
  background:#2a2a2a !important;
  border-color:#3a3a3a !important;
  color:#fff !important;
}

/* Petit triangle jaune d'avertissement à côté du label */
.field-notice{
  display:inline-block;
  width: 16px;
  height: 16px;
  margin-left:8px;
  vertical-align: text-bottom;
  cursor: help;
  position: relative;
}

/* Icône: triangle jaune avec ! (SVG inline via background-image) */
.field-notice::before{
  content:"";
  display:block;
  width:100%;
  height:100%;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  /* SVG triangle jaune avec point d'exclamation */
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='%23FFC107' d='M1 21h22L12 2 1 21z'/>\
    <path fill='%23000' d='M12 9c.55 0 1 .45 1 1v4a1 1 0 0 1-2 0v-4c0-.55.45-1 1-1zm0 8a1.25 1.25 0 1 0 0-2.5A1.25 1.25 0 0 0 12 17z'/>\
  </svg>");
}

/* Tooltip simple via data-attr (au survol) */
.field-notice[data-tooltip]::after{
  content: attr(data-tooltip);
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 300px;
  max-width: calc(100vw - 48px);
  background: #0f0f0f;
  color:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  padding:8px 10px;
  font-size:.85rem;
  line-height:1.35;
  white-space:normal;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
  z-index: 5;
}
.field-notice:hover::after{ opacity:.98; }
  
  /* Optional: smaller checkbox visuals so rows stay compact */
  input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #fff; /* modern browsers, uses your monochrome accent */
  }
    .header h1 {
    background: transparent !important;
  }