:root {
  --violet-900: #400066;
  --violet-800: #520E84;
  --violet-700: #6E1CAA;
  --surface: #5C1696;
  --fuchsia: #FF24AB;
  --yellow: #FFD600;
  --white: #fff;
  --white-80: rgba(255, 255, 255, .80);
  --black: #121212;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--white);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(110, 28, 170, .9), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(255, 36, 171, .35), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(255, 214, 0, .20), transparent 55%),
    linear-gradient(180deg, #1b0826, #12041a 55%, #0d0213);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 42px 16px 80px;
}

/* HERO + FORM GRID */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
  }
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(25px, 6vw, 50px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(90deg, #8B5CF6, #EC4899, #FACC15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0;
  max-width: 820px;
  font-size: 15px;
  color: var(--white-80);
  line-height: 1.55;
}

.hero-lead b {
  color: var(--white);
}

.hero-pills {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.pill {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  font-weight: 650;
  color: var(--white-80);
  max-width: 100%;
}

.pill b {
  color: var(--white);
  font-weight: 900;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .03);
  flex: 0 0 auto;
}

.dot.violet {
  background: var(--violet-700);
}

.dot.pink {
  background: var(--fuchsia);
}

.dot.yellow {
  background: var(--yellow);
}

/* PROMO */
.promo {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 36, 171, .22), rgba(255, 214, 0, .20));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .30);
  max-width: 720px;
  width: 100%;
}

.promo-title {
  font-weight: 900;
  font-size: 22px;
  margin: 8px 0 10px;
  color: #fff;
  text-align: center;
}

.promo-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.price {
  font-size: 48px;
  font-weight: 950;
  color: var(--yellow);
  line-height: 1;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.promo-text {
  font-size: 22px;
  color: #fff;
  opacity: .95;
  line-height: 1.25;
  width: 100%;
  text-align: center;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  justify-content: center;
}

.cd-item {
  min-width: 92px;
  padding: 12px 12px;
  border-radius: 16px;
  text-align: center;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

.cd-item span {
  display: block;
  font-size: 20px;
  font-weight: 950;
  color: var(--yellow);
  line-height: 1.05;
}

.cd-item small {
  font-size: 14px;
  opacity: .9;
  font-weight: 800;
  color: var(--white-80);
}

/* RIGHT CARD (FORM) */
.card {
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 14px;
  color: var(--white-80);
  line-height: 1.45;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  font-weight: 750;
  color: rgba(255, 255, 255, .88);
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  outline: none;
  font-size: 16px;
  /* ✅ évite le zoom iOS */
}

input::placeholder {
  color: rgba(255, 255, 255, .65);
}

input:focus {
  border-color: rgba(255, 36, 171, .55);
  box-shadow: 0 0 0 4px rgba(255, 36, 171, .14);
}

.btn {
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 950;
  font-size: 16px;
  color: var(--black);
  background: linear-gradient(90deg, var(--fuchsia), var(--yellow));
}

.btn:active {
  transform: scale(.99);
}

.field-error {
  display: none;
  min-height: 16px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  opacity: .95;
}

.field-error:not(:empty) {
  display: block;
  /* visible seulement si texte */
}

.is-invalid {
  border-color: rgba(255, 36, 171, .8) !important;
  box-shadow: 0 0 0 4px rgba(255, 36, 171, .16);
}

/* Modal native simple & stylée */
.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.pc-modal.is-open {
  display: block;
}

.pc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
}

.pc-modal__panel {
  position: relative;
  width: min(520px, calc(100% - 28px));
  margin: 14vh auto 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(82, 14, 132, .95), rgba(64, 0, 102, .95));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.pc-modal__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(600px 240px at 15% 0%, rgba(255, 36, 171, .22), transparent 60%),
    radial-gradient(600px 240px at 85% 100%, rgba(255, 214, 0, .14), transparent 65%);
  pointer-events: none;
}

.pc-modal__head {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 16px 10px;
}

.pc-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

.pc-modal__title {
  font-weight: 900;
  font-size: 18px;
}

.pc-modal__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  margin-top: 2px;
}

.pc-modal__close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, .10);
}

.pc-modal__body {
  position: relative;
  padding: 0 16px 14px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.45;
}

.pc-modal__actions {
  position: relative;
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
}

.pc-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
}

.note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}

/* HOW */
.how {
  padding-top: 34px;
}

.how h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.how-lead {
  margin: 0 0 26px;
  color: var(--white-80);
  font-size: clamp(14px, 2vw, 18px);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.badge-row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.badge {
  font-size: 16px;
  color: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  justify-content: center;
  margin: 0px 4px 20px;
}

.badge .spark {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: conic-gradient(from 180deg, var(--yellow), var(--fuchsia), var(--violet-700), var(--surface), var(--yellow));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .06);
  flex: 0 0 auto;
}

@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(82, 14, 132, .95), rgba(64, 0, 102, .95));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.how-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(500px 220px at 15% 0%, rgba(255, 36, 171, .22), transparent 60%),
    radial-gradient(500px 220px at 85% 100%, rgba(255, 214, 0, .12), transparent 65%);
  pointer-events: none;
}

.step {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 950;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .20);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
  z-index: 1;
}

.how-card h3 {
  position: relative;
  z-index: 1;
  margin: 60px 0 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.how-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--white-80);
  line-height: 1.5;
  font-size: 16px;
}

/* ✅ RESPONSIVE 320px+ */
@media (max-width: 899px) {
  .container {
    padding: 22px 12px 56px;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(24px, 9vw, 38px);
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-pills {
    gap: 10px;
  }

  .pill {
    padding: 12px 14px;
    font-size: 12px;
    white-space: normal;
    /* ✅ évite overflow */
    line-height: 1.2;
  }

  .promo {
    padding: 14px 14px;
  }

  .countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* ✅ stable à 320px */
    gap: 10px;
    justify-content: initial;
  }

  .cd-item {
    min-width: 0;
    width: 100%;
    padding: 10px;
  }

  .cd-item span {
    font-size: 22px;
  }

  .cd-item small {
    font-size: 12px;
  }

  .promo-title {
    font-size: 20px;
    text-align: center;
  }

  .promo-line {
    justify-content: center;
    text-align: center;
  }

  .price {
    font-size: 36px;
  }

  .promo-text {
    font-size: 16px;
  }

  .card {
    padding: 18px;
  }

  input {
    padding: 12px 14px;
  }
}

@media (max-width: 720px) {
  .pill {
    width: 100%;
    justify-content: center;
  }

  .badge-row {
    padding: 0 16px 0;
    grid-template-columns: none;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 18px 10px 48px;
  }

  .pill {
    padding: 10px 12px;
    font-size: 11px;
  }

  .price {
    font-size: 34px;
  }

  .promo-text {
    font-size: 15px;
  }

  .countdown {
    gap: 8px;
  }
}