/* =========================================================
   RIYAH — Candidature artiste (/join-the-roster)
   Feuille unique et définitive (direction « D » validée) :
   Inter, palette RIYAH, angles 3–4 px, aucune ombre, bouton rectangle.
   Portée : .join-page / .join-form uniquement — le reste du site n'est pas touché.
   ========================================================= */

.join-page {
  /* Palette RIYAH (voir riyah.css) */
  --rj-bg: var(--riyah-bg);
  --rj-surface: var(--riyah-paper);
  --rj-input: var(--riyah-paper);
  --rj-brown: var(--riyah-brown);
  --rj-brown-dark: var(--riyah-brown-dark);
  --rj-ink: var(--riyah-brown);            /* bouton d'envoi */
  --rj-copper: var(--riyah-copper);
  --rj-text: var(--riyah-text);
  --rj-soft: var(--riyah-text-secondary);
  --rj-faint: var(--riyah-text-muted);
  --rj-line: var(--riyah-line);
  --rj-border: var(--riyah-line);
  --rj-border-strong: var(--riyah-line-strong);
  --rj-ok: #6e7c65;
  --rj-err: #b86a58;
  background: var(--rj-bg);
}
.join-page,
.join-page .join-form * { font-family: 'Inter', Arial, Helvetica, sans-serif; }

.join-wrap { width: min(1120px, 100% - 56px); margin-inline: auto; }
.join-wrap > .form-note { font-size: 12px; color: var(--rj-soft); }

/* ---------- Étapes 01 / 02 / 03 ---------- */
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.join-steps div { padding: 20px 22px; background: var(--riyah-paper); border: 1px solid var(--rj-border); border-radius: 4px; }
.join-steps b { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 500; letter-spacing: .18em; color: var(--rj-copper); }
.join-steps span { font-size: 13px; line-height: 1.6; color: var(--rj-soft); }

/* ---------- Formulaire ---------- */
.join-page .join-form {
  display: flex; flex-direction: column; gap: 24px;
  color: var(--rj-text); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.join-form .jreq { margin: 0; font-size: 12px; color: var(--rj-soft); }
/* Un élément masqué reste masqué, quel que soit son display (grille, flex…) */
.join-form [hidden] { display: none !important; }

/* Sections */
.join-form .fs { gap: 20px; padding: 30px; background: var(--rj-surface); border: 1px solid var(--rj-line); border-radius: 4px; }
/* Titres de rubriques au-dessus du cadre, numérotés : « 01  Avant de commencer » */
.join-page .join-form { counter-reset: sec; }
.join-form .fs { position: relative; margin-top: 56px; counter-increment: sec; }
.join-form .fs > legend {
  position: absolute; top: -46px; left: 0; padding: 0; margin: 0;
  font-size: 22px; font-weight: 300; line-height: 1.2; letter-spacing: -.015em; text-transform: none;
  color: var(--rj-text);
}
.join-form .fs > legend::before {
  content: counter(sec, decimal-leading-zero);
  display: inline-block; margin-right: 14px; transform: translateY(-3px);
  font-size: 10px; font-weight: 500; letter-spacing: .2em; color: var(--rj-copper); vertical-align: middle;
}
.join-form .fs > legend .req { font-size: 14px; color: var(--rj-copper); }
.join-form .fs .sub { max-width: 820px; margin: 0; font-size: 13px; line-height: 1.65; color: var(--rj-soft); }
.join-form .fs .jc-intro { color: var(--rj-text); }

/* Grille 12 colonnes : 6/6 et 4/4/4 */
.join-form .row,
.join-form .row3 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 18px; }
.join-form .row > * { grid-column: span 6; }
.join-form .row3 > * { grid-column: span 4; }
.join-form .field { gap: 7px; min-width: 0; }

/* Libellés et aides */
.join-form .field > label,
.join-form .fee > .fee-step {
  font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rj-brown);
}
.join-form .field > label .req { margin-left: 2px; color: var(--rj-copper); }
.join-form .opt { margin-left: 4px; font-size: 10px; font-weight: 400; font-style: normal; letter-spacing: .06em; text-transform: none; color: var(--rj-faint); }
.join-form .hint,
.join-form .form-note { font-size: 11px; line-height: 1.5; color: var(--rj-faint); }
.join-form .hint.ok { color: var(--rj-ok); }
.join-form .hint.bad { color: #a8402f; }

/* Champs */
.join-form input:not([type]),
.join-form input[type=text],
.join-form input[type=email],
.join-form input[type=number],
.join-form select,
.join-form textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--rj-border-strong); border-radius: 3px;
  background: var(--rj-input); color: var(--rj-text);
  font-size: 14px; line-height: 1.4;
  outline: none; box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.join-form input:not([type]),
.join-form input[type=text],
.join-form input[type=email],
.join-form input[type=number],
.join-form select { height: 46px; padding: 0 14px; }
.join-form textarea { min-height: 120px; padding: 13px 14px; resize: vertical; }
.join-form input::placeholder,
.join-form textarea::placeholder { color: var(--riyah-text-light); opacity: 1; }
.join-form input:hover,
.join-form select:hover,
.join-form textarea:hover { border-color: rgba(166, 109, 63, .44); }
.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus { border-color: var(--rj-copper); box-shadow: 0 0 0 3px rgba(166, 109, 63, .08); background: var(--riyah-paper); }

/* Cases à cocher (conditions, assurance, certification) */
.join-form .field.check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.join-form .field.check input[type=checkbox] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--rj-brown); }
.join-form .field.check input[type=checkbox]:focus-visible { outline: 2px solid var(--rj-copper); outline-offset: 3px; }
.join-form .field.check label { font-size: 13px; font-weight: 400; line-height: 1.55; letter-spacing: 0; text-transform: none; color: var(--rj-text); }
.join-form .field.check label b { font-weight: 500; color: var(--rj-brown-dark); }
.join-form .jc-note { display: block; margin-top: 6px; font-size: 11px; line-height: 1.65; color: var(--rj-soft); }
.join-form .jc-note b { font-weight: 500; }
.join-form .jins { padding: 16px 0 0; border-top: 1px solid var(--rj-border); }
.join-form .field.jcert label { line-height: 1.65; }

/* Pastilles : uniquement les vrais choix (disponibilité, liens, devise, base du cachet) */
.join-form .chips { gap: 8px; }
.join-form .chips label {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 15px;
  border: 1px solid var(--rj-border-strong); border-radius: 3px; background: transparent;
  color: var(--rj-brown); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; user-select: none;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.join-form .chips label:hover { border-color: var(--rj-copper); background: rgba(166, 109, 63, .04); }
.join-form .chips label:has(input:checked) { background: var(--rj-brown); border-color: var(--rj-brown); color: var(--riyah-paper); }
.join-form .chips label:has(input:focus-visible) { outline: 2px solid var(--rj-copper); outline-offset: 3px; }
.join-form .chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

/* Liens : un champ par case cochée */
.jl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }

/* ---------- Cachet : configurateur ---------- */
.join-form .fee { display: flex; flex-direction: column; padding: 22px 22px 18px; background: var(--rj-input); border: 1px solid var(--rj-line); border-radius: 3px; }
/* Étapes du configurateur : la 1re (directement dans .fee) reprend le style des libellés, les suivantes sont en cuivre */
.join-form .fee .fee-step { margin: 0 0 10px; }
.join-form .fee-body .fee-step { font-size: 10px; font-weight: 500; line-height: 1.55; letter-spacing: .12em; text-transform: uppercase; color: var(--rj-copper); }
.join-form .fee-cur,
.join-form .fee-unit { margin-bottom: 22px; }
.join-form .fee-body { padding-top: 22px; border-top: 1px solid var(--rj-border); }
.join-form .fee-out b {
  display: block; margin: 4px 0 14px;
  font-size: 22px; font-weight: 400; line-height: 1.3; letter-spacing: .01em;
  color: var(--rj-brown-dark); font-variant-numeric: tabular-nums lining-nums;
}
.fee-range { position: relative; height: 34px; margin: 6px 0 2px; }
.fee-track { position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 4px; background: var(--rj-border-strong); }
.fee-track i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--rj-brown); }
.join-form .fee-range input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; padding: 0;
  border: 0; background: none; box-shadow: none; outline: none;
  -webkit-appearance: none; appearance: none; pointer-events: none;
}
.fee-range input[type=range]::-webkit-slider-runnable-track { height: 34px; background: none; }
.fee-range input[type=range]::-moz-range-track { background: none; }
.fee-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab;
  width: 22px; height: 22px; margin-top: 6px; border-radius: 50%;
  background: var(--riyah-paper); border: 2px solid var(--rj-brown); box-shadow: 0 1px 4px rgba(58, 38, 23, .18);
}
.fee-range input[type=range]::-moz-range-thumb { pointer-events: auto; cursor: grab; width: 18px; height: 18px; border-radius: 50%; background: var(--riyah-paper); border: 2px solid var(--rj-brown); }
.fee-range input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--rj-copper); outline-offset: 2px; }
.fee-scale { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10px; color: var(--rj-faint); }
.fee-fx { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.fee-fx span { padding: 7px 12px; border: 1px solid var(--rj-border); border-radius: 3px; background: var(--riyah-paper); color: var(--rj-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.fee-fx em { margin-right: 4px; font-size: 10px; font-weight: 500; font-style: normal; letter-spacing: .1em; color: var(--rj-copper); }

/* ---------- Certification + envoi ---------- */
.join-form .soft-divider { height: 1px; margin: 10px 0 6px; background: var(--rj-border); }
.join-form .form-footer { display: flex; align-items: center; gap: 16px; padding-top: 4px; }
.join-form .form-footer .form-note { color: var(--rj-soft); }
.join-form .submit-btn {
  min-height: 52px; padding: 0 36px;
  border: 1px solid var(--rj-ink); border-radius: 2px; background: var(--rj-ink); color: var(--riyah-paper);
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
/* Survol : inversion des couleurs (pas de soulèvement) */
.join-form .submit-btn:hover { background: transparent; border-color: var(--rj-ink); color: var(--rj-ink); transform: none; }
.join-form .submit-btn:focus-visible { outline: 2px solid var(--rj-copper); outline-offset: 3px; }
.join-form [data-form-msg] { font-size: 13px; border-radius: 10px; }

/* Anti-robots : champs pièges hors écran */
.join-form .honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-form .honey input { width: 1px; height: 1px; }

/* ---------- Champs à compléter ---------- */
.join-form .is-invalid input:not([type=checkbox]):not([type=radio]),
.join-form .is-invalid select,
.join-form .is-invalid textarea { border-color: var(--rj-err); background: #fdf6f3; }
.join-form .field.check.is-invalid label { color: #9b2c1f; }
.join-form [data-group].is-invalid { border-radius: 4px; box-shadow: 0 0 0 2px rgba(184, 106, 88, .35); }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .join-wrap { width: calc(100% - 32px); }
  .join-form .fs { padding: 24px 18px; }
  .join-form .row,
  .join-form .row3 { grid-template-columns: 1fr; gap: 18px; }
  .join-form .row > *,
  .join-form .row3 > * { grid-column: auto; }
  .join-form .fee { padding: 18px 14px; }
  .join-form .fee-out b { font-size: 19px; }
  .join-form .form-footer { flex-direction: column; align-items: stretch; }
  .join-form .submit-btn { width: 100%; }
}
@media (max-width: 680px) {
  .join-steps { grid-template-columns: 1fr; }
  .jl-fields { grid-template-columns: 1fr; }
}

/* ---------- Présentation (passe « luxe discret ») ---------- */
.join-steps { gap: 20px; margin-bottom: 44px; }
.join-steps div { display: flex; flex-direction: column; justify-content: center; min-height: 128px; padding: 26px 28px; background: var(--sand-100); border: 0; border-radius: 2px; }
.join-steps b { margin-bottom: 12px; font-weight: 500; letter-spacing: .22em; }
.join-steps span { font-size: 14px; line-height: 1.65; color: var(--rj-soft); }
.join-form .jreq { margin-bottom: 8px; }
.join-form .fs { padding: 36px 36px 40px; border-color: var(--riyah-line); }
.join-form .jc-note { padding-left: 14px; border-left: 1px solid var(--riyah-line-strong); }
.join-form input:not([type]),
.join-form input[type=text],
.join-form input[type=email],
.join-form input[type=number],
.join-form select { height: 48px; }
.join-form .row, .join-form .row3 { gap: 24px 20px; }
.join-form .fs { gap: 24px; }
.join-form .hint, .join-form .form-note { color: var(--rj-faint); }
.join-form .form-footer { margin-top: 12px; padding-top: 36px; border-top: 1px solid var(--riyah-line); }
.join-form .submit-btn { min-height: 56px; padding: 0 48px; letter-spacing: .22em; }
@media (max-width: 820px) {
  .join-form .fs { padding: 28px 20px 32px; }
  .join-steps div { min-height: 0; }
}
