/* ============================================
   TRYNSO — Standalone styles (no dependency on any other project)
   ============================================ */

:root {
  --black: #09090b;
  --surface: #131316;
  --surface-2: #1a1a1e;
  --white: #ffffff;
  --gray-300: #b8b8bd;
  --gray-500: #8a8a91;
  --border: rgba(255, 255, 255, 0.1);

  --accent: #c1653d;
  --accent-light: #db8760;
  --accent-dark: #96502f;

  --seg-dark-1: #121214;
  --seg-dark-2: #1c1c1f;

  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 10px var(--accent);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

.step {
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.step[hidden] { display: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.sub {
  color: var(--gray-300);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ---------- Shared primary button (consent / feedback CTAs) ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease), opacity 0.25s var(--ease);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Step 0: RGPD consent ---------- */
.consent-card {
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
}

.consent-card .eyebrow { display: inline-flex; }
.consent-card h1 { text-align: left; }

.consent-text {
  color: var(--gray-300);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.consent-link {
  margin-bottom: 24px;
}

.consent-link a {
  color: var(--accent-light);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Step 1: feedback form ---------- */
.feedback-form {
  text-align: left;
}

.rating-picker {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.star {
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--surface-2);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.star:hover {
  transform: scale(1.1);
}

.star.active {
  color: var(--accent-light);
}

.feedback-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-bottom: 8px;
}

.optional {
  color: var(--gray-500);
  font-weight: 400;
}

.feedback-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.feedback-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.feedback-form textarea::placeholder {
  color: var(--gray-500);
}

/* ---------- Wheel ---------- */
.wheel-area {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid var(--accent-light);
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.wheel-wrap {
  position: relative;
  width: min(340px, 84vw);
  height: min(340px, 84vw);
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  border: 6px solid var(--accent);
  box-shadow: 0 0 0 1px var(--border), 0 20px 50px rgba(0, 0, 0, 0.5);
  background: conic-gradient(
    var(--accent) 0deg 60deg,
    var(--seg-dark-1) 60deg 120deg,
    var(--accent-light) 120deg 180deg,
    var(--seg-dark-2) 180deg 240deg,
    var(--accent-dark) 240deg 300deg,
    var(--seg-dark-1) 300deg 360deg
  );
  transform: rotate(0deg);
  transition: transform 4.5s cubic-bezier(0.17, 0.67, 0.14, 1);
  will-change: transform;
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(rgba(0, 0, 0, 0) 0deg 59.2deg, rgba(9, 9, 11, 0.5) 59.2deg 60deg);
  pointer-events: none;
}

.label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.label span {
  position: absolute;
  left: 16px;
  top: -11px;
  display: inline-block;
  width: 40%;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.label.flip span {
  transform: rotate(180deg);
  left: auto;
  right: 16px;
  text-align: right;
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--black);
  border: 4px solid var(--accent-light);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-hub::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Spin button ---------- */
.spin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease), opacity 0.25s var(--ease);
}

.spin-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.spin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.spin-btn svg { transition: transform 0.3s var(--ease); }
.spin-btn:hover:not(:disabled) svg { transform: translateX(3px); }

/* ---------- Result card ---------- */
.result-card {
  margin: 32px auto 0;
  max-width: 360px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}

.result-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.result-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.result-prize {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.result-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--accent-line, rgba(193, 101, 61, 0.4));
  margin-bottom: 14px;
}

.result-code-label {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.result-code-value {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent-light);
}

.result-note {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---------- Step 3: unified Google review CTA ---------- */
.google-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 0;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.google-cta:hover {
  filter: brightness(0.96);
  transform: translateY(-2px);
}

.funnel-footer-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--gray-500);
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: var(--gray-300);
}

.footer .dot {
  margin: 0 8px;
  color: var(--border);
}

/* ---------- Legal pages (règlement, confidentialité) ---------- */
.legal-page {
  max-width: 640px;
  text-align: left;
}

.legal-page h1 { text-align: left; margin-bottom: 28px; }

.legal-content h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--gray-300);
  font-size: 0.92rem;
  line-height: 1.65;
}

.legal-content p { margin-bottom: 4px; }

.legal-content ul {
  margin: 8px 0 16px 20px;
}

.legal-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .label span { font-size: 0.62rem; width: 44%; }
}
