/* ---------- Insc hero ---------- */
.insc-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 85% -10%, rgba(185,29,58,0.28), transparent 45%),
    linear-gradient(160deg, var(--black) 0%, var(--black-2) 100%);
  color: var(--off-white);
  padding: 56px 0 64px;
}
.insc-hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
  margin: 0 0 16px;
  max-width: 720px;
}
.insc-hero-title span {
  color: var(--yellow);
}
.insc-hero-text {
  max-width: 620px;
  color: rgba(250,248,242,0.8);
  font-size: 1rem;
  margin: 0 0 30px;
}
.insc-hero-facts {
  justify-content: flex-start;
}
.insc-hero-facts .fact {
  background: rgba(255,255,255,0.06);
  border-color: rgba(245,196,0,0.35);
}

/* ---------- Form wrap ---------- */
.insc-wrap {
  padding-top: 40px;
  padding-bottom: 24px;
}

/* ---------- Card ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line, #e3dcc6);
  border-radius: var(--radius);
  padding: 30px 30px 30px 34px;
  box-shadow: 0 18px 40px -26px rgba(23,24,26,0.35);
  margin-bottom: 20px;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 5px;
  border-radius: 4px;
  background: var(--red);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 6px;
}
.section-num {
  flex: none;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--off-white);
  background: var(--black);
  border: 2px solid var(--yellow);
  border-radius: 50%;
}
.section-title h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.3px;
}
.section-hint {
  font-size: 0.92rem;
  color: var(--gray);
  margin: 0 0 22px;
  padding-left: 52px;
}

/* ---------- Fields ---------- */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

label.field {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
label.field .req { color: var(--red); }
input[type="text"], input[type="tel"], input[type="email"] {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1.5px solid var(--line, #e3dcc6);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  background: #fff;
  color: var(--black);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(185,29,58,0.15);
}
.helptext {
  font-weight: 400;
  color: var(--gray);
  font-size: 0.78rem;
  display: block;
  margin-top: 4px;
}

/* ---------- Duo block ---------- */
#duo-fields {
  display: none;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--line, #e3dcc6);
}
#duo-fields.visible { display: block; }
.duo-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-condensed);
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.duo-title::before {
  content: "";
  width: 20px; height: 2px; background: var(--red);
}

/* ---------- Pill choices ---------- */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.pill-group input { position: absolute; opacity: 0; pointer-events: none; }
.pill {
  position: relative;
  cursor: pointer;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line, #e3dcc6);
  background: #fff;
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  transition: 0.15s;
  user-select: none;
}
.pill:hover { border-color: var(--red); }
.pill-group input:checked + .pill {
  background: var(--black);
  border-color: var(--black);
  color: var(--off-white);
}
.pill .price {
  color: var(--red);
  font-weight: 800;
  margin-left: 6px;
}
.pill-group input:checked + .pill .price { color: var(--yellow); }

/* ---------- Timetable ---------- */
.timetable-scroll {
  overflow-x: auto;
  border: 1.5px solid var(--line, #e3dcc6);
  border-radius: var(--radius);
  margin-top: 8px;
  -webkit-overflow-scrolling: touch;
}
table.timetable {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.85rem;
}
table.timetable thead th {
  position: sticky; top: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 12px 8px;
  text-align: center;
  z-index: 1;
}
table.timetable thead th:first-child { background: var(--black-2); }
table.timetable td {
  border-top: 1px solid var(--line, #e3dcc6);
  border-left: 1px solid var(--line, #e3dcc6);
  padding: 0;
  text-align: center;
}
table.timetable td:first-child, table.timetable th:first-child {
  position: sticky; left: 0;
  background: var(--off-white);
  font-weight: 700;
  color: var(--gray);
  z-index: 1;
}
.time-label { display: block; padding: 9px 10px; white-space: nowrap; }
.slot-btn {
  display: block;
  width: 100%;
  padding: 9px 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ok);
  transition: 0.12s;
}
.slot-btn::before { content: "Libre"; }
.slot-btn:hover { background: rgba(46,139,87,0.12); }
.slot-btn.selected { background: var(--red); color: #fff; }
.slot-btn.selected::before { content: "✓ Choisi"; }
.slot-btn.full { color: var(--full); cursor: not-allowed; text-decoration: line-through; }
.slot-btn.full::before { content: "Complet"; }
.slot-btn.full:hover { background: transparent; }

.selection-summary {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--off-white);
  border: 1.5px dashed var(--line, #e3dcc6);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.selection-summary .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--full); flex: none; }
.selection-summary.active .dot { background: var(--ok); }
.selection-summary .val { color: var(--red); }

.legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 12px; font-size: 0.8rem; color: var(--gray);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .i-free { background: rgba(46,139,87,0.25); border: 1px solid var(--ok); }
.legend .i-sel { background: var(--red); }
.legend .i-full { background: var(--full); }

/* ---------- Radio list (origine) ---------- */
.radio-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.radio-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: 1.5px solid var(--line, #e3dcc6); border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 0.9rem; font-weight: 600;
}
.radio-row:has(input:checked) { border-color: var(--red); background: rgba(185,29,58,0.06); }
.radio-row input { accent-color: var(--red); width: 16px; height: 16px; }
.radio-row .inline-text {
  margin-left: auto;
  width: auto;
  flex: 1;
  max-width: 220px;
  padding: 8px 10px;
  font-size: 0.85rem;
  border: 1.5px solid var(--line, #e3dcc6);
  border-radius: 8px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--black);
}
.radio-row .inline-text:disabled { background: var(--off-white); color: #b9b3a4; cursor: not-allowed; }
.radio-row .inline-text:focus { outline: none; border-color: var(--red); }

.checkbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.85rem; color: var(--gray); margin-top: 6px;
}
.checkbox-row input { margin-top: 3px; accent-color: var(--red); }

/* ---------- Paiement ---------- */
.pay-option {
  display: block;
  cursor: pointer;
  border: 1.5px solid var(--line, #e3dcc6);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
  margin-top: 12px;
  transition: 0.15s;
}
.pay-option:first-of-type { margin-top: 10px; }
.pay-option:hover { border-color: var(--red); }
input.pay-radio { position: absolute; opacity: 0; pointer-events: none; }
input.pay-radio:checked + .pay-option {
  border-color: var(--red);
  background: rgba(185,29,58,0.06);
  box-shadow: 0 0 0 3px rgba(185,29,58,0.12);
}
.pay-head { display: flex; align-items: center; gap: 12px; }
.pay-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--black); color: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex: none;
}
.pay-label { font-family: var(--font-condensed); font-weight: 700; font-size: 0.98rem; }
.pay-sub { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }

#sumup-block {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--black);
  color: var(--off-white);
}
#sumup-block.visible { display: block; }
#sumup-block p { font-size: 0.85rem; color: rgba(250,248,242,0.85); margin: 0 0 12px; }
#sumup-container {
  border: 1.5px dashed rgba(250,248,242,0.3);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250,248,242,0.85);
}

/* ---------- Submit ---------- */
.submit-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
button.submit {
  appearance: none;
  border: 2px solid var(--red);
  cursor: pointer;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  padding: 16px 34px;
  border-radius: 10px;
  box-shadow: 0 12px 24px -10px rgba(185,29,58,0.6);
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
button.submit:hover { background: #970d22; border-color: var(--yellow); transform: translateY(-1px); }
button.submit:active { transform: translateY(0); }
.required-note { font-size: 0.8rem; color: var(--gray); }
