/* ── FORMULAIRES DE DEMANDE D'ACCOMPAGNEMENT ──────────── */

.form-intro {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* Tabs */
.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid currentColor;
  margin-bottom: 2rem;
}

.form-tab {
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  padding: 0.6rem 1.25rem;
  font: inherit;
  font-size: 1em;
  opacity: 0.5;
  transition: opacity 0.15s ease;
  margin-bottom: -1px;
  color: var(--nw-accent);
}

.form-tab:hover { opacity: 1; }

.form-tab.is-active {
  opacity: 1;
  border-color: #FFF;
  background: var(--nw-accent);
  color: #FFF;
}

/* Panels */
.form-panel[hidden] { display: none; }

/* Notices */
.form-notice {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid;
  font-size: 0.95em;
}

.form-notice--success { border-color: #2a9d5c; background: #f0fdf4; }
.form-notice--error   { border-color: #c0392b; background: #fef2f2; }

/* Fields */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 1em;
}

.form-field label abbr,
.form-required-note abbr {
  text-decoration: none;
  color: #c0392b;
  margin-left: 0.1em;
}

.form-field small {
  font-size: 0.85em;
  opacity: 0.7;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 1rem 0.75rem;
  border: 1px solid currentColor;
  background: #FFF;
  color: inherit;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.form-field select {
  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='currentColor' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  padding-top: 0.8rem;
  height: 40px;
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

/* Honeypot — caché visuellement et pour l'accessibilité */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Actions */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.form-required-note {
  font-size: 0.85em;
  opacity: 0.65;
  margin: 0;
}

.form-submit {
  font: inherit;
  cursor: pointer;
  padding: 0.6rem 2.25rem;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--nw-accent);
  color: #FFF;
}
