html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

:root {
  --bg: #f4f4f5;
  --card: #ffffff;
  --ink: #1f232b;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2f6bff;
  --shadow: 0 18px 40px rgba(31, 35, 43, 0.08);
}

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

.hidden {
  display: none;
}

body {
  font-family: "Manrope", "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100svh;
  font-size: 30px;
}

.auth-page {
  background: #f2efea;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
}

.auth-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 6vw;
  gap: 14px;
}

.auth-card {
  width: min(780px, 94vw);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
  border: 1px solid #e5e7eb;
  padding: 44px 42px 48px;
  position: relative;
  overflow: visible;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 260px;
  background: #111111;
  border-radius: 0 0 28px 28px;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.1), transparent 45%),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.05), transparent 50%);
  pointer-events: none;
}

.auth-header {
  position: relative;
  z-index: 1;
  color: #ffffff;
  display: grid;
  gap: 10px;
  padding: 10px 10px 40px;
}

.logo.mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.auth-header h1 {
  font-size: 1.9rem;
}

.back {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
}

.auth-form {
  position: relative;
  z-index: 1;
  background: #ffffff;
  margin-top: -20px;
  border-radius: 22px;
  padding: 30px;
  display: grid;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.auth-form #reset-password {
  justify-self: end;
  font-size: 0.95rem;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 1rem;
  color: #667085;
}

.auth-form input {
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.auth-btn {
  background: var(--accent);
  color: #ffffff;
  padding: 20px 28px;
  border-radius: 12px;
  width: 100%;
}

.auth-footer {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

.auth-footer a {
  color: #111111;
  font-weight: 600;
  text-decoration: none;
}

.auth-error {
  display: block;
  margin-top: 10px;
  color: #dc2626;
  font-size: 0.85rem;
  text-align: center;
}

.dash-page {
  background: #f4f4f5;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo {
  height: clamp(120px, 12vw, 156px);
  width: auto;
  display: block;
}

.app-logo.compact {
  height: clamp(100px, 10vw, 138px);
}

.app-logo.xl {
  height: clamp(220px, 28vw, 480px);
}

.auth-logo {
  margin-top: 6px;
}

.title-logo {
  height: clamp(56px, 6vw, 80px);
  width: auto;
  display: block;
}

.top-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.dash-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dash-main {
  padding: 28px 6vw 60px;
}

.dash-header h1 {
  font-size: 1.8rem;
  margin-top: 32px;
}

.dash-header p {
  color: var(--muted);
  margin-top: 6px;
}

.dash-controls {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.08);
}

.dash-controls input,
.dash-controls select {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

.search-field {
  flex: 1 1 320px;
}

.search-field input {
  width: 100%;
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 21L16.65 16.65' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='11' cy='11' r='7' stroke='%2394A3B8' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  position: relative;
}

.filter-trigger {
  min-width: 190px;
  padding: 12px 44px 12px 16px;
  border-radius: 999px;
  border: 1px solid #dbe5ff;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  color: #1f2a44;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
  cursor: pointer;
  text-align: left;
  position: relative;
}

.filter-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #dbe5ff;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
  padding: 10px;
  display: grid;
  gap: 6px;
  min-width: 200px;
  z-index: 10;
}

.filter-menu.hidden {
  display: none;
}

.filter-menu button {
  background: #f5f8ff;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #1f2a44;
  cursor: pointer;
}

.filter-menu button:hover {
  background: #e0ebff;
}

.form-grid {
  margin-top: 24px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 20px rgba(37, 99, 235, 0.55);
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.form-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 26px rgba(37, 99, 235, 0.65);
}

.form-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

@media (max-width: 1400px) {
  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-top: 6px;
}

.status.published {
  background: #dcfce7;
  color: #15803d;
}

.status.draft {
  background: #f1f5f9;
  color: #475569;
}

.menu {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 36px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  gap: 6px;
  padding: 8px;
  min-width: 140px;
  z-index: 10;
}

.menu-dropdown.show {
  display: grid;
}

.menu-dropdown button {
  border: none;
  text-align: left;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.empty-state {
  margin-top: 44px;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.empty-state p {
  color: var(--muted);
}

.results-kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 20px;
}

.results-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 100px;

}

.results-header {
  align-items: flex-start;
}

.results-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 50px;
  margin-bottom: 50px;

}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: transparent;
  padding: 0;
  border: none;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: #1d4ed8;
  stroke-width: 2;
  fill: none;
  display: block;
}

.icon-btn.plain {
  color: #1d4ed8;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.icon-btn.plain:hover {
  transform: scale(1.08);
  color: #2563eb;
}

.chart-card canvas {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  background: #f8fafc;
}

.chart-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 4vh 4vw;
}

.chart-modal.hidden {
  display: none;
}

.chart-modal-card {
  width: min(1600px, 92vw);
  height: min(80vh, 900px);
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 20px;
  grid-template-rows: auto 1fr;
}

.chart-modal-card canvas {
  width: 100%;
  height: 100%;
}

.kpi {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.kpi span {
  color: var(--muted);
}

.results-grid {
  margin-top: 24px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.results-filters {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;

  /* ❌ suppression du style "card" */
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.results-filters label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.date-filter {
  position: relative;
}

.date-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #d4d4d8;
  background: #f8fafc;
  color: #3f3f46;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.date-filter-trigger:hover {
  background: #f1f5f9;
  border-color: #cbd5f5;
}

.date-filter-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4.5' width='14' height='12' rx='2.5' stroke='%236B7280' stroke-width='1.5'/%3E%3Cpath d='M6 2.75V5.25M14 2.75V5.25' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M3 7.5H17' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.date-filter-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 620px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 20;
}

.date-filter.is-open .date-filter-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.date-filter-presets {
  display: grid;
  gap: 8px;
}

.preset-btn {
  border: none;
  background: #f8fafc;
  color: #3f3f46;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.preset-btn.is-active {
  background: #ede9fe;
  color: #4c1d95;
  font-weight: 600;
}

.date-filter-calendar {
  background: #fafafa;
  border-radius: 16px;
  padding: 14px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #3f3f46;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: capitalize;
}

.calendar-nav {
  border: none;
  background: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 6px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  border: none;
  background: #f3f4f6;
  border-radius: 10px;
  height: 36px;
  font-size: 0.9rem;
  color: #3f3f46;
  cursor: pointer;
}

.calendar-day.is-empty {
  background: transparent;
  cursor: default;
}

.calendar-day.is-in-range {
  background: #e5e7eb;
}

.calendar-day.is-start,
.calendar-day.is-end {
  background: #4b5563;
  color: #ffffff;
}

.date-filter-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.results-filters input,
.results-filters select {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.92rem;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

.results-filters input:focus,
.results-filters select:focus {
  outline: none;
  border-color: #4bc2fc;
  box-shadow: 0 0 0 3px rgba(75, 194, 252, 0.18);
}

.results-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.results-list {
  display: grid;
  gap: 12px;
}

.result-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.result-card {
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  display: grid;
  gap: 8px;
}

.response-card {
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.response-card:hover {
  background: #f1f5f9;
}

.response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.response-header h4,
.response-header p {
  margin: 0;
}

.response-status {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.response-status.status-complete {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.response-status.status-abandoned {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
}

.response-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

.response-card.is-open .response-details {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
}

.result-answers {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.workflow-page {
  background: #f4f4f5;
  min-height: 100svh;
}

.workflow-stage {
  position: relative;
  min-height: calc(100svh - 70px);
  overflow: visible;
  background: #f8fafc;
}

.workflow-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 40px;
}

.workflow-placeholder-card {
  max-width: 520px;
  text-align: center;
  padding: 36px 38px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.workflow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  font-size: 0.9rem;
}

.workflow-placeholder-card h1 {
  margin: 16px 0 8px;
  font-size: 1.8rem;
}

.workflow-placeholder-card p {
  margin: 0;
  color: #64748b;
}

.workflow-canvas {
  position: absolute;
  width: 1400px;
  height: 600px;
  transform: translate(0, 0);
  cursor: grab;
}

.workflow-canvas.dragging {
  cursor: grabbing;
}

.workflow-lines {
  position: absolute;
  inset: 0;
  stroke: #cbd5f5;
  stroke-width: 3;
  fill: none;
}

.workflow-node {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
}

.workflow-node.start,
.workflow-node.end {
  background: #111827;
  color: #ffffff;
  border: none;
}

.public-page {
  background: #f8fafc;
}

.public-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 6vw;
  width: 100%;
  max-width: 100%;
}

.public-card {
  width: min(720px, 92vw);
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 24px;
}

.public-slide {
  display: grid;
  gap: 12px;
  position: relative;
}

.public-slide .next-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  border: none;
  background: #111111;
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  cursor: pointer;
}

button,
input {
  font: inherit;
}

button,
input,
select,
textarea {
  font-size: 1.1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
  position: sticky;
  top: 0;
  z-index: 20;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.crumbs .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9ca3af;
  display: inline-block;
}

.crumbs .sep {
  opacity: 0.6;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 0.75rem;
}

.publish-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.8rem;
  font-weight: 700;
}

.pill {
  border: none;
  background: #ececec;
  padding: 14px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.pill.active {
  background: #111827;
  color: #ffffff;
}

.btn {
  border: none;
  padding: 16px 24px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.top-actions .btn.primary {
  padding: 14px 20px;
  font-size: 1rem;
  line-height: 1;
}

.btn.dark {
  background: #2b2f36;
  color: #ffffff;
}

.ghost {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#publish-btn {
  background: #f97316;
  color: #ffffff;
  font-weight: 700;
  border: none;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.28);
}

.left-panel #add-ending,
.right-panel #add-media,
.right-panel #option-add-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 32px;
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
}

.brand-page {
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.15), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.2), transparent 50%),
    #f8fafc;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
}

.brand-main {
  padding: 40px 32px 70px;
}

.brand-hero {
  position: relative;
  overflow: visible;
}

.brand-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, rgba(37, 99, 235, 0.2), rgba(249, 115, 22, 0.25), rgba(14, 165, 233, 0.18), transparent 70%);
  filter: blur(80px);
  animation: glowShift 12s ease-in-out infinite;
  pointer-events: none;
}

.brand-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-header h1 {
  margin: 0 0 6px;
}

.brand-badge {
  background: #eef2ff;
  color: #4338ca;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.brand-badge.pulse {
  box-shadow: 0 0 0 10px rgba(79, 70, 229, 0.12);
  transition: box-shadow 0.6s ease;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 26px;
}

.brand-panel {
  background: #f8fafc;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid #e5e7eb;
}

.brand-panel h3 {
  margin-top: 0;
}

.brand-field {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.brand-logo {
  display: grid;
  gap: 16px;
}

.logo-preview {
  width: 160px;
  height: 160px;
  border-radius: 26px;
  background: #eef2ff;
  color: #4f46e5;
  display: grid;
  place-items: center;
  font-weight: 700;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.2);
}

.logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.swatch {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease;
}

.swatch:hover {
  transform: translateY(-3px);
}

.color-picker {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.color-picker input[type="text"] {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.color-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.color-swatch {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #2563eb;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.6);
}

.brand-ideas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.idea-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(249, 115, 22, 0.08));
  border: 1px dashed rgba(37, 99, 235, 0.3);
}

@keyframes glowShift {
  0% {
    transform: rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: rotate(12deg);
    opacity: 1;
  }
  100% {
    transform: rotate(0deg);
    opacity: 0.7;
  }
}

.toolbar-left,
.toolbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.view-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f0f0f0;
  border: 1px solid var(--line);
}

.view-toggle {
  position: static;
}

.view-btn.active {
  background: #111827;
  color: #ffffff;
}

.dropdown {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f0f0f0;
  border: 1px solid var(--line);
}

.layout {
  display: grid;
  grid-template-columns: 360px minmax(700px, 1.6fr) 380px;
  gap: 20px;
  padding: 30px 32px 50px;
}

.left-panel,
.right-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 22px;
  min-height: calc(100svh - 200px);
  overflow: auto;
  gap: 22px;
}

.panel-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.editable-title {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}


.type-badge {
  display: inline-flex;
  align-self: center;
  background: #e7efff;
  color: #1d4ed8;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.editable {
  outline: none;
  border-radius: 8px;
  padding: 2px 4px;
}

.editable:focus {
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.35);
}

.editable-btn {
  border-radius: 999px;
}

.question-list {
  display: grid;
  gap: 8px;
}

.q-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: #f7f7f7;
  cursor: pointer;
  position: relative;
}

.q-item.dragging {
  opacity: 0.5;
}

.q-delete {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 0.9rem;
}

.q-item.active {
  background: #e7efff;
  border: 1px solid #c7d8ff;
}

.q-icon {
  background: #e5e7eb;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.left-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
  color: var(--muted);
}

.ending-list {
  display: grid;
  gap: 10px;
}

.center-panel {
  display: grid;
  gap: 16px;
}

.canvas {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--line);
  min-height: calc(100svh - 380px);
  display: grid;
  justify-items: center;
  align-items: start;
  box-shadow: var(--shadow);
  position: relative;
  padding: 250px 250px 80px;
  overflow-y: auto;
}

.canvas-content {
  text-align: center;
  max-width: 980px;
  display: grid;
  gap: 16px;
  font-size: 1.3rem;
  margin: 0 auto;
}

.canvas-content h1 {
  font-size: 1.8rem;
}

.canvas-content h2 {
  font-size: 2rem;
}

.canvas-content p,
.canvas-content small {
  font-size: 1rem;
}


.canvas-input {
  font-size: 1.25rem;
  padding: 18px 12px;
}


.canvas .btn.primary {
  font-size: 1.05rem;
  padding: 14px 22px;
}

.canvas.mobile {
  width: min(430px, 90vw);
  min-height: clamp(520px, 70vh, 720px);
  max-height: clamp(720px, 90vh, 1000px);
  margin: 0 auto;
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.15);
  padding: 70px 24px 60px;
  justify-items: center;
  align-items: center;
}

.canvas.mobile .canvas-content {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

.canvas:not(.mobile) .canvas-content {
  max-width: 980px;
}

.canvas.desktop-scale #canvas-body.welcome-layout {
  transform: none;
}

#canvas-body.welcome-layout {
  max-width: 720px;
  gap: 12px;
}

#canvas-body.welcome-layout .type-badge {
  font-size: 0.75rem;
  padding: 5px 10px;
}

#canvas-body.welcome-layout h1 {
  font-size: 1.6rem;
}

#canvas-body.welcome-layout p,
#canvas-body.welcome-layout small {
  font-size: 0.95rem;
}

#canvas-body.welcome-layout .meta-badge {
  font-size: 0.8rem;
  padding: 6px 12px;
}

#canvas-body.welcome-layout .btn.primary {
  justify-self: center;
  width: auto;
  min-width: 220px;
  padding: 12px 20px;
  font-size: 1rem;
}

.canvas.desktop-scale .canvas-content h1 {
  font-size: 1.6rem;
}

.canvas.desktop-scale .canvas-content p,
.canvas.desktop-scale .canvas-content small {
  font-size: 0.95rem;
}

.canvas-content p {
  color: var(--muted);
  line-height: 1.6;
}

.floating-input {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid #d9c6ff;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(146, 100, 255, 0.15);
}

.floating-input input {
  border: none;
  outline: none;
  flex: 1;
}

.meta-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-badge {
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.right-panel .settings {
  display: grid;
  gap: 20px;
}

.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.toggle input[type="checkbox"] {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #e2e8f0;
  border: 1px solid #cbd5f5;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.toggle input[type="checkbox"]:checked {
  background: #2563eb;
  border-color: #1d4ed8;
}

.toggle input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.field-help {
  font-size: 0.75rem;
  color: var(--muted);
}



.option-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-row input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.option-row button {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.options-add {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.options-add input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.required-star {
  color: #ef4444;
  margin-left: 4px;
}

.validation-error {
  color: #dc2626;
  font-size: 0.85rem;
}
.end-settings {
  display: grid;
  gap: 16px;
}

.end-settings.hidden {
  display: none;
}

.social-inputs {
  display: grid;
  gap: 8px;
}

.answer-select {
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}


.canvas-question h2 {
  font-size: 1.2rem;
}

.canvas-question small {
  color: var(--muted);
}

.canvas-input {
  border: none;
  border-bottom: 2px solid #e5e7eb;
  padding: 8px 6px;
  font-size: 1rem;
  outline: none;
  background: transparent;
  width: 100%;
  resize: none;
}

.phone-row {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}

.flag {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #ffffff;
}

.country-btn {
  cursor: pointer;
  min-width: 44px;
  text-align: center;
}

.country-menu {
  position: absolute;
  top: 44px;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  padding: 8px;
  z-index: 5;
  max-height: 260px;
  overflow-y: auto;
}

.country-menu button {
  border: none;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}


.choice-item.selected {
  background: #c7d8ff;
  border-color: #8fb0ff;
}


.choice-add {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
}

.coord-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-item input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

select.canvas-input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 36px;
}

.check-item {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}

.yesno {
  display: flex;
  gap: 12px;
}

.yesno button {
  border: 1px solid #c7d8ff;
  background: #eef4ff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.scale {
  display: flex;
  gap: 10px;
}

.scale button {
  border: 1px solid #c7d8ff;
  background: #eef4ff;
  padding: 10px 14px;
  border-radius: 10px;
}

.end-screen {
  text-align: center;
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.end-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.end-socials a {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  color: #111827;
  font-size: 0.85rem;
}
.canvas.has-image {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: visible;
}

.canvas.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
}

.canvas.has-image .canvas-content {
  position: relative;
  z-index: 1;
}

.preview-mode .left-panel,
.preview-mode .right-panel,
.preview-mode .toolbar,
.preview-mode .topbar {
  display: none;
}

.preview-mode .layout {
  grid-template-columns: 1fr;
  padding-top: 40px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.publish-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 24, 0.4);
  display: grid;
  place-items: center;
  z-index: 50;
}

.publish-modal.hidden {
  display: none;
}

.publish-card {
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.25);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.publish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.publish-link {
  display: flex;
  gap: 10px;
}

.publish-link input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.publish-actions {
  display: flex;
  justify-content: flex-end;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 24, 0.4);
  display: grid;
  place-items: center;
  z-index: 40;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(1080px, 92vw);
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.25);
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-tabs .tab {
  border: none;
  background: #f3f4f6;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.modal-tabs .tab.active {
  background: linear-gradient(120deg, #6d5bff, #ff6b6b);
  color: #ffffff;
}

.modal-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

.modal-left h4 {
  margin: 16px 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.search {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #e0e7ff;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.search input {
  border: none;
  outline: none;
  flex: 1;
}

.app-list {
  display: grid;
  gap: 8px;
}

.app-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e0e7ff;
  background: #eef2ff;
  font-size: 0.9rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.modal-col {
  display: grid;
  gap: 8px;
}

.modal-col h5 {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.element {
  text-align: left;
  border: none;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.modal-col:nth-child(1) .element {
  background: #ffe4ea;
}

.modal-col:nth-child(2) .element {
  background: #e8f1ff;
}

.modal-col:nth-child(3) .element {
  background: #e9f7ef;
}

.modal-col:nth-child(4) .element {
  background: #fff3d6;
}

.modal-col:nth-child(5) .element {
  background: #ede9fe;
}

.modal-col:nth-child(6) .element {
  background: #e0f2fe;
}

.modal-left .pill.ghost {
  background: #fef3c7;
  border: 1px solid #fde68a;
}

@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left-panel,
  .right-panel {
    height: auto;
  }
}

.workflow {
  padding: 30px 24px 60px;
}

.workflow-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 20px;
}

.flow-left,
.flow-right {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  min-height: calc(100svh - 240px);
  overflow: auto;
}

.flow-list {
  display: grid;
  gap: 10px;
}

.flow-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f7f7;
  cursor: pointer;
}

.flow-item.active {
  background: #e7efff;
  border: 1px solid #c7d8ff;
}

.flow-canvas {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 520px;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 30px;
}

.flow-node {
  background: #f3f4f6;
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
}

.flow-node.start,
.flow-node.end {
  background: #111827;
  color: #ffffff;
  border: none;
}

@media (max-width: 1100px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .flow-left,
  .flow-right {
    height: auto;
  }
}

@media (max-width: 720px) {
  .topbar,
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .auth-wrap {
    padding: 32px 6vw;
  }
}
/* === SELECT PAYS (SIDEBAR) === */

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;

  font-size: 0.95rem;
  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;

  padding-right: 42px;
}

.field select:hover {
  border-color: #c7d8ff;
}

.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.15);
}

/* ===== OPTIONS SIDEBAR ===== */

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

/* Carte option */
.option-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: grab;
}

/* Texte option */
.option-row span {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: #111827;

  /* 🔥 FIX TEXTE LONG */
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Bouton suppression */
.option-remove {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.option-remove:hover {
  color: #ef4444;
}

/* Feedback drag */
.option-row.dragging {
  opacity: 0.5;
}
/* ===== DRAG DROP INDICATOR (OPTIONS SIDEBAR) ===== */

.option-row {
  position: relative;
}

/* Ligne indicatrice */
.option-row.drop-before::before,
.option-row.drop-after::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 3px;
  background: #2563eb;
  border-radius: 999px;
}

/* Ligne au-dessus */
.option-row.drop-before::before {
  top: -6px;
}

/* Ligne en-dessous */
.option-row.drop-after::after {
  bottom: -6px;
}

/* Option en cours de drag */
.option-row.dragging {
  opacity: 0.4;
  background: #f8fafc;
  cursor: grabbing;
}



.canvas-question {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}


.canvas-question .choice-item {
  border: 1px solid #c7d8ff;
  background: #eef4ff;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;

  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.canvas-question .choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.plans-page {
  background: radial-gradient(circle at 15% 20%, rgba(47, 107, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 12%, rgba(14, 165, 233, 0.2), transparent 42%),
    radial-gradient(circle at 70% 80%, rgba(249, 115, 22, 0.2), transparent 50%),
    #f8fafc;
  font-size: 18px;
}

.plans-hero {
  padding: 32px 8vw 40px;
}

.plans-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.plans-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plans-hero-content {
  margin-top: 40px;
  max-width: 820px;
  display: grid;
  gap: 14px;
}

.plans-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111827;
}

.plans-hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1.1;
}

.plans-hero p {
  color: #4b5563;
  font-size: 1.05rem;
}

.plans-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plans-badge {
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
}

.plans-main {
  padding: 0 8vw 80px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.plan-card {
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid #e5e7eb;
  padding: 28px;
  display: grid;
  gap: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.plan-card.highlight {
  border: 2px solid #111827;
  position: relative;
  transform: translateY(-6px);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.plan-name {
  font-weight: 700;
  font-size: 1.2rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
}

.price-amount {
  font-size: 2.2rem;
}

.price-cycle {
  color: #6b7280;
  font-size: 0.95rem;
}

.plan-note {
  color: #6b7280;
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 10px;
  color: #374151;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111827;
  flex: 0 0 10px;
  margin-top: 6px;
}

.plan-cta {
  width: 100%;
}

.plans-bottom {
  margin-top: 40px;
  display: grid;
  gap: 18px;
}

.plans-strip {
  background: #111827;
  color: #ffffff;
  border-radius: 28px;
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.plans-strip p {
  font-size: 1.05rem;
}

.plans-faq {
  display: grid;
  gap: 12px;
}

.plans-faq h3 {
  font-size: 1.3rem;
}

.plans-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.plans-faq-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 760px) {
  .plans-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .plans-nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .plans-hero h1 {
    font-size: 2.2rem;
  }

  .plans-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.image-choice {
  border: 2px solid #c7d8ff;
  border-radius: 14px;
  overflow: visible;
  background: #fff;
}

.image-choice img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.image-empty {
  color: #6b7280;
  font-size: 14px;
}

.image-upload-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  max-width: 100%;
}

.image-upload-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  max-width: 100%;
  overflow: visible;
}

.image-upload-row img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.image-upload-empty {
  color: #6b7280;
  font-size: 0.9rem;
}

#image-input {
  width: 100%;
  max-width: 100%;
  border: 1px dashed #cbd5f5;
  border-radius: 14px;
  padding: 10px;
  background: #f8faff;
  font-size: 0.95rem;
  color: #4b5563;
  cursor: pointer;
}

.image-upload-row .image-remove {
  justify-self: end;
  white-space: nowrap;
}

#image-input::file-selector-button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  margin-right: 10px;
  background: #111827;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

#image-input::file-selector-button:hover {
  background: #1f2937;
}

#image-input::file-selector-button:active {
  transform: translateY(1px);
}

.kpi-responses {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-main {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
}

.kpi-sub {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-completed {
  color: #16a34a; /* vert */
  font-weight: 500;
}

.kpi-abandoned {
  color: #ea580c; /* orange */
  font-weight: 500;
}

/* === STATUS FILTER === */

.status-filter {
  position: relative;
}

.status-filter-trigger {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #d4d4d8;
  background: #f8fafc;
  color: #3f3f46;
  font-weight: 600;
  cursor: pointer;
  min-width: 160px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.status-filter-trigger:hover {
  background: #f1f5f9;
  border-color: #cbd5f5;
}

.status-filter-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: grid;
  gap: 6px;
  min-width: 160px;
  z-index: 20;
}

.status-filter-panel.hidden {
  display: none;
}

.status-filter-panel button {
  border: none;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.status-filter-panel button:hover {
  background: #e0ebff;
}

.chart-card {
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.chart-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 60px -6px var(--chart-glow);
}

.chart-card.is-active {
  box-shadow: 0 18px 40px -12px var(--chart-glow);
}

/* ===== RÉPONSES PAR UTILISATEUR – AMÉLIORATION UI ===== */

/* Conteneur des réponses d’un utilisateur */
.response-details {
  padding-top: 12px;
}

/* Liste des réponses (questions) */
.result-answers {
  display: grid;
  gap: 12px; /* 🔥 espace entre chaque question */
}

.result-answers > div {
  padding: 6px 0;
  display: grid;
  gap: 4px;
}

.result-answers > div strong {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.result-answers > div {
  color: #0f172a;
  font-size: 1.95rem;
  line-height: 1.6;

  /* 🔥 texte long lisible */
  word-break: break-word;
  overflow-wrap: anywhere;
}

.result-answers > div a,
.result-answers > div code {
  font-size: 0.85rem;
  color: #2563eb;
  word-break: break-all;
}

.result-answers > div {
  white-space: normal;
}

.answer-image {
  max-width: 140px;
  max-height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 6px;
  margin-right: 8px;
  display: inline-block;
  cursor: zoom-in;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  zoom: 1;
}