/* =========================================================================
   Galifar — Sondage cold chain : styles
   ========================================================================= */
.sondage-shell {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  position: relative;
}
.sg-progress {
  position: relative;
  height: 3px;
  background: var(--bg-mute);
}
.sg-progress-fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--accent);
  transition: width 280ms var(--ease-out);
}
.sg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.sg-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  color: var(--fg);
}
.sg-brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.sg-section {
  font-family: var(--font-body); font-size: 12px;
  color: var(--fg-mute); letter-spacing: 0.04em;
}
.sg-body {
  padding: 40px 28px 28px;
  min-height: 360px;
}

/* Intro */
.sg-intro { text-align: center; padding: 24px 8px; }
.sg-intro-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sg-intro-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--fg); margin: 0 0 10px;
}
.sg-intro-lead {
  font-family: var(--font-body); font-size: 18px;
  color: var(--fg-soft); margin: 0 0 16px;
}
.sg-intro-body {
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  color: var(--fg-mute); max-width: 480px; margin: 0 auto 18px;
}
.sg-intro-meta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-mute-2); margin: 0 0 24px;
}

/* Question */
.sg-q { animation: sg-fade 280ms var(--ease-out); }
@keyframes sg-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sg-q-eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 10px;
}
.sg-q-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--fg); margin: 0 0 8px;
  text-wrap: pretty;
}
.sg-q-sub {
  font-family: var(--font-body); font-size: 14px; font-style: italic;
  color: var(--fg-mute); margin: 0 0 22px;
}

/* Options (single + multi) */
.sg-opts { display: flex; flex-direction: column; gap: 8px; }
.sg-opt {
  appearance: none; -webkit-appearance: none;
  width: 100%; text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-family: var(--font-body); font-size: 14px;
  color: var(--fg-soft);
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.sg-opt:hover:not(.is-selected):not(.is-disabled) {
  border-color: var(--border-strong);
  background: var(--bg-soft);
}
.sg-opt.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--fg);
}
:root[data-palette="ink"] .sg-opt.is-selected {
  background: rgba(91,172,139,0.14);
  border-color: var(--accent);
  color: #f1f3f0;
}
:root[data-palette="ink"] .sg-scale-btn.is-selected {
  background: var(--accent);
  color: #0e1413;
  border-color: var(--accent);
}
.sg-opt.is-disabled {
  opacity: 0.45; cursor: not-allowed;
}
.sg-opt-label { flex: 1; line-height: 1.4; }

.sg-radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 160ms var(--ease-out);
}
.sg-opt.is-selected .sg-radio { border-color: var(--accent); }
.sg-radio-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.sg-check {
  width: 16px; height: 16px; border-radius: 4px;
  border: 2px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 160ms var(--ease-out);
}
.sg-opt.is-selected .sg-check {
  border-color: var(--accent);
  background: var(--accent);
}
.sg-check-mark {
  color: white; font-size: 11px; line-height: 1; font-weight: 700;
}
.sg-max {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-mute); margin: 12px 0 0;
}

/* Scale */
.sg-scale-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
}
.sg-scale-btn {
  appearance: none; -webkit-appearance: none;
  aspect-ratio: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  color: var(--fg-soft);
  cursor: pointer;
  transition: all 160ms var(--ease-out);
}
.sg-scale-btn:hover:not(.is-selected) {
  border-color: var(--border-strong); background: var(--bg-soft);
}
.sg-scale-btn.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.sg-scale-legend {
  display: flex; justify-content: space-between;
  font-family: var(--font-body); font-size: 12px;
  color: var(--fg-mute);
  margin-top: 12px;
}

/* Matrix */
.sg-matrix { display: flex; flex-direction: column; gap: 18px; }
.sg-matrix-row {
  display: flex; flex-direction: column; gap: 8px;
}
.sg-matrix-label {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--fg-soft);
}
.sg-matrix-scale {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.sg-matrix-scale .sg-scale-btn { aspect-ratio: auto; padding: 10px 0; }

/* Contact form */
.sg-form { display: flex; flex-direction: column; gap: 16px; }
.sg-label {
  display: flex; flex-direction: column; gap: 6px;
}
.sg-label-text {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  color: var(--fg-mute);
}
.sg-req { color: var(--danger); }
.sg-input {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--font-body); font-size: 14px;
  color: var(--fg);
  transition: border-color 160ms var(--ease-out);
}
.sg-input:focus { outline: none; border-color: var(--accent); }

/* Done */
.sg-done { text-align: center; padding: 32px 8px 8px; }
.sg-done-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sg-spin svg { animation: sg-spin 900ms linear infinite; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
.sg-done-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--fg); margin: 0 0 10px;
}
.sg-done-msg {
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  color: var(--fg-soft); max-width: 460px; margin: 0 auto 20px;
}
.sg-done-sig {
  font-family: var(--font-body); font-size: 13px; color: var(--fg-mute);
  margin: 0;
}
.sg-done-err {
  margin-top: 18px;
  font-family: var(--font-body); font-size: 13px;
  color: var(--gd-rouge);
  background: #fdf3f1;
  border: 1px solid #f3cdc6;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  display: inline-block;
}

/* Footer / nav */
.sg-footer {
  position: sticky;
  bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  gap: 12px;
}

/* Buttons */
.sg-btn {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  border-radius: var(--r-pill);
  padding: 11px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 180ms var(--ease-out);
}
.sg-btn-primary {
  background: var(--accent); color: white;
  box-shadow: var(--shadow-green);
}
.sg-btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.sg-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.sg-btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--border-strong);
}
.sg-btn-ghost:hover { background: var(--bg-soft); }
.sg-btn-text {
  background: transparent; color: var(--fg-mute);
  padding: 10px 12px;
}
.sg-btn-text:hover:not(:disabled) { color: var(--fg); }
.sg-btn-text:disabled { opacity: 0.35; cursor: not-allowed; }
.sg-arrow, .sg-arrow-left {
  display: inline-block; font-weight: 400;
}

/* Mobile */
@media (max-width: 640px) {
  .sondage-shell { border-radius: var(--r-md); }
  .sg-head { padding: 14px 18px; }
  .sg-body { padding: 28px 18px 18px; min-height: 320px; }
  .sg-footer { padding: 12px 18px; }
  .sg-scale-grid { gap: 4px; }
  .sg-scale-btn { font-size: 12px; }
}
