/* Intranet Sondage — variables : sondage-theme.css (.sondage-clients-root) */
.sondage-animate-in {
  animation: sondageFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.sondage-nav__btn:not(:disabled) {
  cursor: pointer;
  opacity: 1;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.sondage-nav__btn:not(:disabled):hover {
  border-color: var(--sondage-accent);
  background: var(--sondage-accent-soft);
}

.sondage-nav__btn--active:not(:disabled) {
  border-color: var(--sondage-accent);
  background: var(--sondage-accent-soft);
  color: var(--sondage-accent);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.sondage-main {
  max-width: var(--sondage-layout-max, 92rem);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Scrollbars violet (résultats + zones scrollables intranet) */
.sondage-scroll-styled {
  scrollbar-width: thin;
  scrollbar-color: var(--sondage-scroll-thumb-hover) var(--sondage-scroll-track);
}

.sondage-scroll-styled::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sondage-scroll-styled::-webkit-scrollbar-track {
  background: var(--sondage-scroll-track);
  border-radius: 999px;
}

.sondage-scroll-styled::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sondage-scroll-thumb-hover), var(--sondage-accent));
  border-radius: 999px;
  border: 2px solid var(--sondage-scroll-track);
}

.sondage-scroll-styled::-webkit-scrollbar-thumb:hover {
  background: var(--sondage-accent-hover);
}

.sondage-scroll-styled::-webkit-scrollbar-corner {
  background: #f8fafc;
}

.sondage-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.sondage-page-sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

.sondage-conception-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sondage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.sondage-btn:active {
  transform: scale(0.98);
}

.sondage-btn--primary {
  background: var(--sondage-gradient-btn);
  color: #fff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.32);
}

.sondage-btn--primary:hover {
  background: var(--sondage-gradient-btn-hover);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}

.sondage-btn__spark {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #fff;
  animation: sondagePulse 1.4s ease-in-out infinite;
}

@keyframes sondagePulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

.sondage-btn--ghost {
  border-color: #e2e8f0;
  background: #fff;
  color: #475569;
}

.sondage-btn--ghost:hover {
  border-color: #c4b5fd;
  background: var(--sondage-surface-violet);
}

.sondage-btn--danger-ghost {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

.sondage-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.sondage-conception-split {
  margin: 1.75rem 0 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sondage-border-violet) 20%, var(--sondage-border-violet) 80%, transparent);
}

.sondage-samples-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sondage-text-accent);
  margin: 0 0 0.25rem;
}

.sondage-samples-section__sub {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.sondage-form-card--sample {
  border-style: dashed;
  border-color: var(--sondage-border-violet);
  background: linear-gradient(180deg, #fff 0%, var(--sondage-surface) 100%);
}

.sondage-form-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sondage-form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
}

.sondage-form-card__section {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid #eef2f7;
}

.sondage-form-card__section--head {
  padding-top: 0.95rem;
  border-top: none;
}

.sondage-form-card__section--foot {
  padding-bottom: 0.85rem;
  background: #fafbfd;
}

.sondage-form-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.sondage-form-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.sondage-form-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.55rem;
}

.sondage-form-card__stat {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
}

.sondage-form-card__stat--responses {
  color: #4338ca;
  background: #eef2ff;
}

.sondage-form-card__link-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 1.1rem;
  border-top: 1px solid #eef2f7;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.sondage-form-card__link-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  flex: 1 1 auto;
  min-width: 5rem;
}

.sondage-form-card__link-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.sondage-form-card__btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.sondage-form-card__btn-grid .sondage-btn,
.sondage-form-card__link-btns .sondage-btn {
  width: 100%;
  justify-content: center;
}

.sondage-form-card__link-btns .sondage-btn {
  width: auto;
  min-width: 6.5rem;
}

.sondage-form-card__btn-reset,
.sondage-form-card__btn-del {
  grid-column: 1 / -1;
}

.sondage-form-card__btn-del {
  margin-top: 0.15rem;
}

.sondage-btn--soft {
  color: #312e81;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.sondage-btn--soft:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.sondage-pill {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sondage-pill--sample {
  background: var(--sondage-surface-violet);
  color: var(--sondage-violet-dark);
  border: 1px solid var(--sondage-border-violet);
}

.sondage-pill--draft {
  background: #f1f5f9;
  color: #475569;
}

.sondage-pill--published {
  background: #dcfce7;
  color: #166534;
}

.sondage-pill--type {
  background: var(--sondage-surface-strong);
  color: var(--sondage-text-accent);
}

.sondage-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 1rem;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

.sondage-empty__title {
  font-weight: 700;
  color: #0f172a;
}

.sondage-empty__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.sondage-loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem;
  color: #64748b;
}

.sondage-spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #e9d5ff;
  border-top-color: var(--sondage-violet);
  border-radius: 999px;
  animation: sondageSpin 0.7s linear infinite;
}

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

.sondage-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .sondage-editor-grid {
    grid-template-columns: minmax(280px, 340px) 1fr;
  }
}

@media (min-width: 1200px) {
  .sondage-editor-grid {
    grid-template-columns: minmax(300px, 360px) 1fr;
  }
}

.sondage-panel {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sondage-panel__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sondage-violet);
  margin-bottom: 0.85rem;
}

.sondage-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.35rem;
  margin-top: 0.65rem;
}

.sondage-input {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
}

.sondage-input:focus {
  outline: none;
  border-color: var(--sondage-violet);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.sondage-textarea {
  resize: vertical;
  min-height: 4rem;
}

.sondage-input--mono {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

.sondage-hint {
  font-size: 0.8rem;
  color: #64748b;
}

.sondage-mode-fieldset {
  border: 0;
  padding: 0;
  margin: 0.75rem 0 0;
}

.sondage-radio-card {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sondage-radio-card--on {
  border-color: var(--sondage-accent);
  background: var(--sondage-surface);
}

.sondage-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sondage-palette-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--sondage-border-accent);
  background: var(--sondage-surface);
  color: var(--sondage-text-accent);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.sondage-palette-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
}

.sondage-palette-chip__icon {
  font-weight: 700;
}

.sondage-palette-intro {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.sondage-palette-group {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0.85rem 0 0.4rem;
}

.sondage-palette__legend {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0.5rem 0 0.35rem;
}

.sondage-label--sm {
  font-size: 0.75rem;
  margin-top: 0.65rem;
}

.sondage-input--sm {
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
}

.sondage-q-settings {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
}

.sondage-q-settings__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sondage-q-settings__if-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.35rem;
  align-items: center;
}

.sondage-q-settings__if-eq {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
}

.sondage-q-preview__nps {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sondage-q-preview__nps-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
}

.sondage-q-preview__nps-btn {
  font-size: 0.65rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: var(--sondage-surface-strong);
  color: var(--sondage-text-accent);
  font-weight: 700;
}

.sondage-q-preview__nps-row--labeled {
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.sondage-q-preview__nps-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.25rem 0.35rem;
  border-radius: 0.4rem;
  border: 1px solid var(--sondage-border-violet);
  background: var(--sondage-surface);
}

.sondage-q-preview__nps-label {
  flex: 1;
  font-size: 0.68rem;
  line-height: 1.3;
  color: #64748b;
}

.sondage-nps-labels-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.sondage-nps-label-row {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-items: center;
  gap: 0.45rem;
}

.sondage-nps-label-row__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sondage-text-accent);
  text-align: center;
}

/* Studio page d’accueil — édition WYSIWYG (aperçu formulaire public) */
.sondage-intro-studio-host {
  margin-bottom: 1.25rem;
}

.sondage-intro-studio {
  border-radius: 1rem;
  border: 1px solid var(--sondage-border-violet);
  background: linear-gradient(180deg, #fff 0%, var(--sondage-surface) 100%);
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 10px 28px -12px rgba(91, 33, 182, 0.18);
}

.sondage-intro-studio__header {
  margin-bottom: 0.75rem;
}

.sondage-intro-studio__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--sondage-text-accent);
}

.sondage-intro-studio__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem;
  border-radius: 0.75rem;
  background: var(--sondage-surface-violet);
  border: 1px solid var(--sondage-border-violet);
}

.sondage-intro-studio__tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--sondage-border-violet);
  background: #fff;
  color: #4338ca;
  border-radius: 0.55rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.sondage-intro-studio__tool svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.sondage-intro-studio__tool-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 0.3rem;
  background: rgba(79, 70, 229, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.sondage-intro-studio__tool--active .sondage-intro-studio__tool-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.sondage-intro-studio__tool:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
}

.sondage-intro-studio__tool:active {
  transform: scale(0.98);
}

.sondage-intro-studio__tool--active {
  background: #4f46e5;
  border-color: #4338ca;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sondage-intro-studio__tool--active:hover {
  background: #4338ca;
  border-color: #3730a3;
  color: #fff;
}

.sondage-intro-studio__frame {
  border-radius: 0.85rem;
  padding: 1.35rem 1rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.35), transparent 70%),
    linear-gradient(165deg, #0f172a 0%, #1e1b4b 48%, #312e81 100%);
}

.sondage-intro-studio__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

.sondage-intro-studio__logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}

.sondage-intro-studio__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sondage-intro-studio__welcome-title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sondage-intro-studio__intro {
  width: 100%;
  min-height: 5.5rem;
  margin-top: 0.85rem;
  padding: 0.85rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(165, 180, 252, 0.45);
  background: rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: left;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.sondage-intro-studio__intro:focus {
  border-color: #818cf8;
  border-style: solid;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.sondage-intro-studio__intro:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.sondage-intro-studio__intro p {
  margin: 0 0 0.65rem;
}

.sondage-intro-studio__intro p:last-child {
  margin-bottom: 0;
}

.sondage-intro-studio__intro a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sondage-intro-studio__intro ul,
.sondage-intro-studio__intro ol {
  margin: 0.5rem 0 0.65rem;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.sondage-intro-studio__intro ul {
  list-style-type: disc;
}

.sondage-intro-studio__intro ol {
  list-style-type: decimal;
}

.sondage-intro-studio__intro li {
  display: list-item;
  margin: 0.3rem 0;
  padding-left: 0.15rem;
}

.sondage-intro-studio__intro li::marker {
  color: #c7d2fe;
  font-size: 0.95em;
}

.sondage-intro-studio__intro strong,
.sondage-intro-studio__intro b {
  font-weight: 800;
  color: #f8fafc;
}

.sondage-intro-studio__intro em,
.sondage-intro-studio__intro i {
  font-style: italic;
  color: #e2e8f0;
}

.sondage-intro-studio__intro hr {
  border: none;
  border-top: 1px solid rgba(165, 180, 252, 0.5);
  margin: 0.9rem 0;
  height: 0;
  width: 100%;
}

.sondage-intro-studio__intro h2 {
  display: block;
  margin: 0.85rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #e0e7ff;
}

.sondage-intro-studio__intro h2:first-child {
  margin-top: 0;
}

.sondage-intro-studio__intro h3 {
  display: block;
  margin: 0.7rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #c7d2fe;
}

.sondage-intro-studio__intro h3:first-child {
  margin-top: 0;
}

.sondage-intro-studio__cta {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.sondage-q-preview__consent {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
}

.sondage-q-preview__switch {
  position: relative;
  flex-shrink: 0;
  width: 2rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--sondage-surface-strong);
  border: 1px solid var(--sondage-violet-light);
}

.sondage-q-preview__switch::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #94a3b8;
}

.sondage-q-preview__date-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--sondage-border-violet);
  background: var(--sondage-surface-strong);
}

.sondage-q-preview__date-picker-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--sondage-violet-light);
  background: none;
}

.sondage-q-preview__address {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sondage-q-preview__field--short {
  max-width: 40%;
}

.sondage-q-preview__field--select {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.6rem;
  color: #94a3b8;
  font-size: 0.8rem;
}

.sondage-q-preview__file {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px dashed var(--sondage-border-accent);
  color: var(--sondage-text-accent);
  font-size: 0.8rem;
}

.sondage-q-preview__file-icon {
  font-size: 1rem;
}

.sondage-palette--identity .sondage-palette-chip {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.sondage-btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.sondage-q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sondage-q-block {
  border-radius: 1rem;
  border: 1px solid var(--sondage-border-violet);
  background: linear-gradient(180deg, #fff 0%, var(--sondage-surface) 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}

.sondage-q-block:hover {
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.12);
}

.sondage-q-block__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(99, 102, 241, 0.06);
  border-bottom: 1px solid var(--sondage-surface-strong);
}

.sondage-q-block__drag {
  color: var(--sondage-violet-light);
  font-size: 0.95rem;
}

.sondage-q-block__badge {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sondage-text-accent);
}

.sondage-q-block__icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--sondage-surface-strong);
  font-size: 0.85rem;
}

.sondage-q-block__tools {
  display: flex;
  gap: 0.25rem;
}

.sondage-q-block__question {
  padding: 0.85rem 1rem 0.5rem;
}

.sondage-input--question {
  font-size: 1rem;
  font-weight: 500;
}

.sondage-q-block__meta {
  margin-top: 0.5rem;
}

.sondage-q-block__answers,
.sondage-q-block__options {
  padding: 0.65rem 1rem 1rem;
  margin: 0 0.65rem 0.65rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.sondage-q-block__options-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.5rem;
}

.sondage-q-block--section-title {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.sondage-q-preview--section-title {
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.sondage-q-preview__section-title {
  margin: 0;
  line-height: 1.3;
}

.sondage-heading-level-fieldset {
  border: 0;
  padding: 0;
  margin: 0.75rem 0 0;
}

.sondage-heading-level-picker {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.sondage-heading-level-option {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.55rem 0.4rem;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.sondage-heading-level-option:hover {
  border-color: #c7d2fe;
}

.sondage-heading-level-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sondage-heading-level-option--on {
  border-color: var(--sondage-accent);
  background: var(--sondage-surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sondage-accent) 22%, transparent);
}

.sondage-heading-level-option__tag {
  font-size: 0.95rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.02em;
}

.sondage-heading-level-option--on .sondage-heading-level-option__tag {
  color: var(--sondage-accent);
}

.sondage-heading-level-option__hint {
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sondage-q-preview__section-title--h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #312e81;
}

.sondage-q-preview__section-title--h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
}

.sondage-q-preview__section-title--h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
}

.sondage-q-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sondage-q-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, transform 0.15s;
}

.sondage-q-option:focus-within {
  border-color: var(--sondage-violet);
  transform: translateX(2px);
}

.sondage-q-option__bullet {
  font-size: 1rem;
  color: var(--sondage-violet);
  width: 1.25rem;
  text-align: center;
}

.sondage-q-option__input {
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
}

.sondage-q-option__input:focus {
  box-shadow: none;
}

.sondage-q-preview {
  margin-top: 0.65rem;
  padding: 0.65rem;
  border-radius: 0.65rem;
  background: #fff;
}

.sondage-q-preview--live {
  margin-top: 0.85rem;
  border: 1px solid var(--sondage-surface-strong);
  background: linear-gradient(135deg, var(--sondage-surface), #fff);
}

.sondage-q-preview__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sondage-violet-light);
  margin-bottom: 0.4rem;
}

.sondage-q-preview__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sondage-q-preview__pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--sondage-surface-strong);
  color: var(--sondage-text-accent);
  border: 1px solid var(--sondage-border-violet);
  animation: sondagePillPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sondage-q-preview__pill--multi {
  border-radius: 0.5rem;
}

@keyframes sondagePillPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sondage-q-preview__field--line {
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: sondageShimmer 1.8s ease-in-out infinite;
}

.sondage-q-preview__field--area {
  height: 4rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: sondageShimmer 1.8s ease-in-out infinite;
}

@keyframes sondageShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.sondage-q-preview__stars {
  display: flex;
  gap: 0.25rem;
}

.sondage-q-preview__star {
  font-size: 1.35rem;
  color: var(--sondage-border-violet);
}

.sondage-editor-empty {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 1rem;
  border: 2px dashed var(--sondage-border-violet);
  background: var(--sondage-surface);
  font-size: 0.875rem;
  color: #64748b;
}

.sondage-editor-empty__title {
  font-weight: 700;
  color: var(--sondage-text-accent);
  margin-bottom: 0.35rem;
}

.sondage-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #475569;
}

.sondage-icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.sondage-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sondage-icon-btn--danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.sondage-editor__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sondage-editor__top-actions {
  display: flex;
  gap: 0.5rem;
}

.sondage-url-box {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: var(--sondage-surface-violet);
  border: 1px solid var(--sondage-border-violet);
}

.sondage-url-box__row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.sondage-url-box__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sondage-text-accent);
}

.sondage-url-box .sondage-input--mono {
  cursor: pointer;
}


/* Modale de confirmation (remplace window.confirm) */
.sondage-confirm {
  position: fixed;
  inset: 0;
  z-index: 9980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sondage-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.sondage-confirm__panel {
  position: relative;
  width: 100%;
  max-width: 22rem;
  padding: 1.25rem 1.35rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--sondage-border-accent, #c7d2fe);
  background: #fff;
  box-shadow: 0 20px 48px rgba(99, 102, 241, 0.18), 0 4px 16px rgba(15, 23, 42, 0.08);
  animation: sondageFadeUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sondage-confirm__panel--danger {
  border-color: #fecaca;
  box-shadow: 0 20px 48px rgba(220, 38, 38, 0.12), 0 4px 16px rgba(15, 23, 42, 0.08);
}

.sondage-confirm__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sondage-confirm__close:hover {
  color: #0f172a;
  background: var(--sondage-accent-soft, rgba(99, 102, 241, 0.12));
}

.sondage-confirm__eyebrow {
  margin: 0 2rem 0.35rem 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sondage-accent, #6366f1);
}

.sondage-confirm__panel--danger .sondage-confirm__eyebrow {
  color: #dc2626;
}

.sondage-confirm__title {
  margin: 0 1.5rem 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.sondage-confirm__desc {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
}

.sondage-confirm__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

@media (min-width: 400px) {
  .sondage-confirm__actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .sondage-confirm__actions .sondage-btn {
    flex: 0 1 auto;
    min-width: 6.5rem;
  }
}

.sondage-btn--danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: none;
}

.sondage-btn--danger:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.sondage-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9990;
  max-width: 22rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #334155;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.sondage-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.sondage-toast--success {
  background: linear-gradient(135deg, #059669, #047857);
}

.sondage-toast--error {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.hidden {
  display: none !important;
}

/* Résultats + conception — pleine largeur utile */
.sondage-results--wide,
.sondage-conception {
  width: 100%;
}

.sondage-results-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.sondage-results-filters__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sondage-results-filters__item--grow {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.sondage-results-filters__lbl {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.sondage-input--compact {
  padding: 0.4rem 0.55rem;
  font-size: 0.8125rem;
  min-height: 2rem;
}

.sondage-btn--compact {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  min-height: 2rem;
  align-self: flex-end;
}

.sondage-btn--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sondage-btn__icon {
  flex-shrink: 0;
}

.sondage-icon-xls {
  color: #15803d;
}

.sondage-results-filters__err {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.75rem;
  color: #dc2626;
}

.sondage-results-meta {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.sondage-results-table-wrap {
  overflow: auto;
  max-height: min(70vh, 720px);
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sondage-results-table-wrap.sondage-scroll-styled {
  scrollbar-gutter: stable;
}

.sondage-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.sondage-results-th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  background: var(--sondage-surface-violet);
  color: var(--sondage-text-accent);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
}

.sondage-results-td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  max-width: 11rem;
}

.sondage-results-td--oneline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.sondage-results-td--wrap {
  white-space: normal;
  word-break: break-word;
  max-width: 14rem;
  vertical-align: top;
}

.sondage-results-link {
  color: var(--sondage-accent, #6366f1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sondage-results-link:hover {
  text-decoration: underline;
}

.sondage-results-td--date {
  white-space: nowrap;
  color: #64748b;
  font-size: 0.75rem;
}

.sondage-results-table tbody tr:hover {
  background: var(--sondage-surface);
}

.sondage-results--loading {
  opacity: 0.5;
  pointer-events: none;
}

.sondage-hint--tight {
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}

.sondage-notify-field {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sondage-notify-field > .sondage-label:first-child {
  margin-top: 0;
}

.sondage-check--block {
  display: flex;
  margin-top: 0.65rem;
}

.sondage-logo-field {
  margin-bottom: 0.5rem;
}

.sondage-logo-field__pending {
  color: var(--sondage-accent-dark);
}

.sondage-logo-field__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0.65rem 0 0.5rem;
  padding: 0;
  border: none;
  background: transparent;
  min-height: 5.5rem;
}

.sondage-logo-field__upload-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.sondage-logo-field__upload-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sondage-text-accent, #4338ca);
}

.sondage-logo-field__upload-pct {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sondage-muted, #64748b);
  min-height: 1em;
}

.sondage-logo-progress {
  width: min(12rem, 100%);
  height: 0.35rem;
  border-radius: 999px;
  background: var(--sondage-surface-strong, #e0e7ff);
  overflow: hidden;
}

.sondage-logo-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: var(--sondage-gradient-btn);
  transition: width 0.15s ease-out;
}

.sondage-spinner--sm {
  width: 1.5rem;
  height: 1.5rem;
}

.sondage-logo-field--busy .sondage-logo-field__upload--disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

/* Même rendu que le formulaire public (anneau dégradé + photo ronde) */
.sondage-logo-ring--editor {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  padding: 3px;
  background: var(--sondage-gradient-btn);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.22);
}

.sondage-logo-ring--editor img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.sondage-logo-field__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.sondage-logo-field__upload {
  cursor: pointer;
}

.sondage-logo-field__upload.sondage-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.sondage-logo-field__upload input.hidden {
  display: none;
}

/* Analytics */
.sondage-analytics__head {
  margin-bottom: 1.25rem;
}

.sondage-analytics__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sondage-text, #0f172a);
}

.sondage-analytics__sub {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--sondage-muted, #64748b);
}

.sondage-analytics-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .sondage-analytics-toolbar {
    grid-template-columns: 1fr 12rem;
  }
}

.sondage-analytics-total {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sondage-text, #0f172a);
}

.sondage-analytics-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sondage-analytics-type-card {
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--sondage-border, #e2e8f0);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sondage-analytics-type-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sondage-text, #0f172a);
  line-height: 1.3;
}

.sondage-analytics-type-card__meta {
  margin-top: 0.15rem;
  font-size: 0.65rem;
  color: var(--sondage-muted, #94a3b8);
  font-family: ui-monospace, monospace;
}

.sondage-analytics-type-card__stat {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6366f1;
}

.sondage-analytics-type-card__stat--muted {
  margin-top: 0.2rem;
  font-weight: 500;
  color: var(--sondage-muted, #64748b);
}

.sondage-analytics-empty-types {
  font-size: 0.875rem;
  color: var(--sondage-muted, #64748b);
  margin-bottom: 1rem;
}

.sondage-analytics-chart-wrap {
  position: relative;
  height: min(16rem, 50vh);
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--sondage-border, #e2e8f0);
  background: rgba(248, 250, 252, 0.8);
  padding: 0.5rem;
}

.sondage-analytics-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.65rem;
  font-size: 0.68rem;
  color: var(--sondage-muted, #64748b);
}

.sondage-analytics-legend__swatch {
  display: inline-block;
  width: 1.25rem;
  height: 3px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.sondage-analytics-legend__swatch--open {
  background: #6366f1;
}

.sondage-analytics-legend__swatch--click {
  background: #7c3aed;
}

.sondage-analytics-legend__swatch--submit {
  background: #0d9488;
}

.sondage-analytics-chart-empty {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--sondage-muted, #64748b);
}
