:root {
  --sand: #f5efe7;
  --ink: #1e232d;
  --orange: #ff7a18;
  --teal: #158f8d;
  --sky: #d6f0ff;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(30, 35, 45, 0.12);
  --shadow: 0 18px 40px rgba(31, 33, 39, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 16% 12%, #ffe4cb 0%, transparent 42%),
    radial-gradient(circle at 84% 20%, #c8f2ec 0%, transparent 36%),
    linear-gradient(140deg, #fff8f2 0%, #ecf9ff 58%, #f0fff9 100%);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.55;
}

.bg-shape-1 {
  width: 420px;
  height: 420px;
  background: #ff9f57;
  top: -160px;
  right: -120px;
}

.bg-shape-2 {
  width: 320px;
  height: 320px;
  background: #61c7c5;
  bottom: -120px;
  left: -90px;
}

.hero {
  max-width: 980px;
  margin: 52px auto 24px;
  padding: 0 20px;
  animation: rise 0.8s ease both;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  color: #0f766e;
}

h1,
h2 {
  font-family: "Syne", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  max-width: 16ch;
}

.subtitle {
  max-width: 56ch;
  margin-top: 12px;
  color: rgba(30, 35, 45, 0.85);
}

.container {
  max-width: 980px;
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  padding: 0 20px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: rise 0.9s ease both;
}

.form-panel {
  animation-delay: 0.12s;
}

.status-panel {
  animation-delay: 0.22s;
}

h2 {
  margin-top: 0;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 8px;
}

input,
select,
button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
}

input,
select {
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.86);
}

input:focus,
select:focus {
  outline: 2px solid rgba(21, 143, 141, 0.36);
  border-color: #269594;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.simple-label {
  margin: 14px 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- pill toggle radio --- */
.format-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.format-option {
  flex: 1;
  position: relative;
  margin: 0;
}

.format-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.format-option span {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(30, 35, 45, 0.5);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.format-option input[type="radio"]:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* --- lien details --- */
.details-toggle {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(30, 35, 45, 0.42);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  text-align: right;
  transition: color 0.15s;
}

.details-toggle:hover {
  color: var(--teal);
}

.advanced-panel {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

button {
  margin-top: 18px;
  padding: 12px 16px;
  border: none;
  background: linear-gradient(100deg, #f4742a, #0e918f);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 14px 24px rgba(17, 137, 135, 0.25);
}

button:hover {
  transform: translateY(-1px);
}

.progress-track {
  margin-top: 14px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(100deg, #ff7a18, #158f8d);
  transition: width 0.4s ease;
}

.download-link {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #053f3f;
  background: #d8f7f0;
  font-weight: 700;
  text-decoration: none;
}

#jobId {
  font-size: 0.85rem;
  color: rgba(30, 35, 45, 0.7);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  .simple-choice {
    grid-template-columns: 1fr;
  }
}
