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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f0f;
  color: #e5e5e5;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}

.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 32px 28px;
  width: 100%;
  max-width: 680px;
}

h1 {
  font-size: 22px;
  font-weight: 800;
  color: #d4a843;
  margin-bottom: 8px;
}

h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

.subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
  line-height: 1.5;
}

.section-header {
  font-size: 15px;
  font-weight: 700;
  color: #e5e5e5;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 10px;
  margin: 28px 0 20px;
}

.section-header:first-of-type { margin-top: 0; }

.row {
  display: flex;
  gap: 16px;
}

.row .field { flex: 1; min-width: 0; }

.field { margin-bottom: 18px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  margin-bottom: 6px;
}

.required { color: #d4a843; }

input,
select,
textarea {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: #e5e5e5;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #d4a843;
}

input[type="date"] { color-scheme: dark; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select option { background: #1a1a1a; }

textarea { resize: vertical; min-height: 72px; }

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  margin: 0;
}

.radio-option input[type="radio"] { display: none; }

.radio-option span {
  padding: 8px 18px;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  background: #111;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}

.radio-option input[type="radio"]:checked + span {
  border-color: #d4a843;
  background: rgba(212, 168, 67, 0.12);
  color: #d4a843;
}

.radio-group.error-group .radio-option span {
  border-color: #e74c3c;
}

.field-hint {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
  margin-top: -2px;
}

.rgpd {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  margin-top: 8px;
}

.error {
  color: #e74c3c;
  font-size: 13px;
  margin-bottom: 12px;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
}

button {
  width: 100%;
  background: #d4a843;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}

button:hover:not(:disabled) { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.success-icon, .error-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}
.success-icon { color: #27ae60; }
.error-icon { color: #e74c3c; }

#success-card p, #error-card p { color: #888; font-size: 14px; line-height: 1.6; margin-top: 8px; }

.enfants-header { margin-bottom: 12px; }

#enfants-section {
  margin-bottom: 18px;
  padding: 16px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}

.enfant-row {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #222;
}

.enfant-row:last-child {
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;
}

.enfant-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.enfant-row-label {
  font-size: 13px;
  font-weight: 700;
  color: #d4a843;
}

.btn-remove-enfant {
  width: auto;
  background: transparent;
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.15s;
}

.btn-remove-enfant:hover { background: rgba(231, 76, 60, 0.1); opacity: 1; }

.btn-secondary {
  width: auto;
  background: transparent;
  color: #d4a843;
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}

.btn-secondary:hover { background: rgba(212, 168, 67, 0.08); opacity: 1; }

@media (max-width: 520px) {
  .row { flex-direction: column; gap: 0; }
  .card { padding: 24px 18px; }
}
