/* =========================================================
   Domely — Page de lancement (compte à rebours + préinscription)
   ========================================================= */

.launch {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(255, 68, 68, 0.25), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(0, 230, 118, 0.12), transparent 60%),
    var(--night);
  color: var(--white);
  padding: 64px 0 80px;
}
.launch .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Formes de la marque en arrière-plan */
.shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shapes span {
  position: absolute;
  border-radius: 28px;
  opacity: 0.08;
  animation: drift 14s ease-in-out infinite;
}
.shapes span:nth-child(1) {
  width: 220px;
  height: 220px;
  background: var(--red);
  top: 8%;
  left: -60px;
  transform: rotate(18deg);
}
.shapes span:nth-child(2) {
  width: 160px;
  height: 160px;
  background: var(--yellow);
  bottom: 10%;
  left: 38%;
  animation-delay: -5s;
}
.shapes span:nth-child(3) {
  width: 260px;
  height: 260px;
  background: var(--green);
  top: -80px;
  right: 22%;
  border-radius: 50% 50% 28px 50%;
  animation-delay: -9s;
}
@keyframes drift {
  50% {
    transform: translate(16px, -20px) rotate(10deg);
  }
}

.launch h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 22px 0 16px;
}
.launch h1 em {
  font-style: normal;
  color: var(--yellow);
}
.launch-lead {
  color: #c9d5ea;
  font-size: 18px;
  max-width: 540px;
}

/* Compte à rebours */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 14px;
  max-width: 520px;
}
.countdown div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 8px 14px;
  text-align: center;
}
.countdown strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown div:nth-child(1) strong {
  color: var(--red);
}
.countdown div:nth-child(2) strong {
  color: var(--yellow);
}
.countdown div:nth-child(3) strong {
  color: var(--green);
}
.countdown span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb1cf;
}
.launch-date {
  color: #9fb1cf;
  font-size: 15px;
}
.launch-date strong {
  color: var(--white);
  font-weight: 600;
}
.launched {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.4);
  font-size: 18px;
}
.perks {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 12px;
  color: #dfe7f5;
}
.perks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.perks li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 4px;
  background: var(--green);
}
.perks li:nth-child(2)::before {
  background: var(--yellow);
}
.perks li:nth-child(3)::before {
  background: var(--red);
}

/* Formulaire */
.form-card {
  background: var(--surface);
  color: var(--text);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 88px;
}
.form-card h2 {
  font-size: 26px;
  margin-bottom: 6px;
}
.form-card > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
  align-content: start;
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field label small {
  font-weight: 400;
  color: var(--muted);
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.3 var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235b6b85' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--night-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent);
}
.field.invalid input:not([type="checkbox"]),
.field.invalid select,
.field.invalid textarea {
  border-color: var(--red);
}
.error {
  min-height: 0;
  font-size: 13px;
  color: #d42828;
}
.error:empty {
  display: none;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--red);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-card .btn {
  margin-top: 8px;
}
.form-card .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: #d42828;
}
.form-status:empty {
  display: none;
}

/* Confirmation */
.success {
  text-align: center;
  padding: 24px 0 8px;
}
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: rgba(0, 230, 118, 0.15);
  color: #00a956;
  display: grid;
  place-items: center;
  font-size: 30px;
}
.success h2 {
  font-size: 26px;
  margin-bottom: 10px;
}
.success p {
  color: var(--muted);
  margin-bottom: 22px;
}
.success .btn-ghost {
  color: var(--text);
  border-color: var(--border);
}

@media (max-width: 960px) {
  .launch .wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .launch {
    padding: 40px 0 56px;
  }
  .countdown {
    gap: 8px;
  }
  .countdown div {
    padding: 14px 4px 10px;
    border-radius: 14px;
  }
  .countdown span {
    font-size: 10px;
  }
  .form-card {
    padding: 24px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* Page de contact */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}
.contact-info li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-info .ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.08);
}
.contact-info strong {
  display: block;
  color: var(--white);
  font-weight: 600;
}
.contact-info span,
.contact-info a {
  color: #c9d5ea;
  font-size: 15px;
}
.contact-info a:hover {
  color: var(--white);
}
