/* ========================================
   Enquête NOÉ — page dédiée fullscreen
   Style Typeform / Tally — 1 question / écran
   ======================================== */

.page-enquete {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Topbar fixe — logo + progression + close */

.enquete-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 48px);
  background: rgba(252, 250, 243, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
}

.enquete-logo {
  font-family: var(--display);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}

.enquete-logo em {
  font-style: italic;
  color: var(--accent);
}

.enquete-progress {
  height: 2px;
  background: var(--hairline);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.enquete-progress-bar {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s var(--ease-out);
  transform-origin: left;
}

.enquete-step-info {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.enquete-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-mute);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s var(--ease-out);
  line-height: 1;
}

.enquete-close:hover {
  background: var(--bg-elev);
  color: var(--ink);
}

/* Stage container — slides absolument positionnés pour transitions fluides */

.enquete-stage {
  flex: 1;
  position: relative;
  width: 100%;
  padding-top: 80px; /* topbar height */
  padding-bottom: 100px; /* footer nav height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.enquete-slide {
  position: absolute;
  inset: 80px 0 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px clamp(24px, 6vw, 80px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    visibility 0s linear 0.5s;
  pointer-events: none;
}

.enquete-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    visibility 0s linear 0s;
}

.enquete-slide.is-leaving {
  opacity: 0;
  transform: translateY(-24px);
}

.enquete-slide-inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Welcome slide */

.enquete-slide-welcome .enquete-slide-inner {
  text-align: center;
  align-items: center;
  gap: 32px;
}

.enquete-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.enquete-slide-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

.enquete-slide-title em {
  font-style: italic;
  color: var(--accent);
}

.enquete-slide-lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0;
  font-variation-settings: "SOFT" 50;
}

.enquete-slide-meta {
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
  margin: 0;
}

.enquete-start {
  margin-top: 8px;
}

/* Question slides */

.enquete-question-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.enquete-question-label {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

.enquete-question-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Inputs */

.enquete-input,
.enquete-textarea,
.enquete-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--hairline);
  padding: 16px 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  transition: border-color 0.3s;
  font-variation-settings: "SOFT" 50, "opsz" 24;
}

.enquete-input::placeholder,
.enquete-textarea::placeholder {
  color: var(--ink-mute);
  font-style: italic;
}

.enquete-input:focus,
.enquete-textarea:focus,
.enquete-select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.enquete-textarea {
  resize: none;
  min-height: 120px;
  padding: 16px 0;
}

.enquete-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C46A3D' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 18px;
  padding-right: 36px;
}

/* Choice buttons (radio-style) */

.enquete-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  list-style: none;
  padding: 0;
}

.enquete-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.3s var(--ease-out);
  text-align: left;
  width: 100%;
}

.enquete-choice:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateX(2px);
}

.enquete-choice.is-selected {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 4px 16px -4px rgba(196, 106, 61, 0.2);
}

.enquete-choice-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
}

.enquete-choice.is-selected .enquete-choice-marker {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Final / offer slide */

.enquete-slide-offer .enquete-slide-inner {
  text-align: center;
  align-items: center;
  gap: 28px;
}

.enquete-offer-icon {
  font-size: 56px;
  line-height: 1;
}

.enquete-offer-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

.enquete-offer-title em {
  font-style: italic;
  color: var(--accent);
}

.enquete-offer-lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0;
  font-variation-settings: "SOFT" 50;
}

.enquete-offer-bullets {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  width: 100%;
  max-width: 480px;
}

.enquete-offer-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.enquete-offer-bullets li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.enquete-offer-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Coordinates form (after offer accepted) */

.enquete-coords-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 520px;
}

.enquete-coords-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.enquete-coords-row label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.enquete-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  margin-top: 8px;
  text-align: left;
}

.enquete-checkbox-row input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* Success slide */

.enquete-slide-success .enquete-slide-inner {
  text-align: center;
  align-items: center;
  gap: 28px;
}

.enquete-success-mark {
  width: 88px;
  height: 88px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
  animation: successPop 0.6s var(--ease-out);
}

@keyframes successPop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.enquete-success-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

.enquete-success-title em {
  font-style: italic;
  color: var(--accent);
}

.enquete-success-text {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0;
  font-variation-settings: "SOFT" 50;
}

/* Footer nav */

.enquete-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(20px, 4vw, 48px);
  gap: 16px;
  background: rgba(252, 250, 243, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-top: 1px solid var(--hairline);
}

.enquete-nav-prev {
  background: none;
  border: none;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.3s;
}

.enquete-nav-prev:hover {
  color: var(--ink);
}

.enquete-nav-prev[disabled],
.enquete-nav-prev.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.enquete-nav-next {
  margin-left: auto;
}

/* Mobile tweaks */

@media (max-width: 700px) {
  .enquete-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }
  .enquete-step-info {
    display: none;
  }
  .enquete-stage {
    padding-top: 70px;
    padding-bottom: 90px;
  }
  .enquete-slide {
    inset: 70px 0 90px 0;
    padding: 16px 22px;
  }
  .enquete-slide-inner {
    gap: 18px;
  }
}
