/* Silavocat Validation: "Valider mon profil" page (design V0, scoped in .svv). */
.svv {
  --ink: #2A2436;
  --brand: #3D364D;
  --gold: #BC8F31;
  --gold-dark: #9A7426;
  --gold-soft: #F6EFDF;
  --bg: #F3F1F5;
  --paper: #FFFFFF;
  --line: #E2DEE7;
  --muted: #6B6475;
  --error: #B3261E;
  --ok: #2E7D4F;
  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding: 8px 0 1px;
}
.svv:lang(ar) {
  --font-title: "Amiri", "Noto Naskh Arabic", serif;
  --font-body: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
}
.svv *, .svv *::before, .svv *::after { box-sizing: border-box; }
.svv [hidden] { display: none !important; }
.svv h1, .svv h2 { letter-spacing: 0; text-transform: none; }

.svv-topbar { max-width: 860px; margin: 0 auto; padding: 22px 20px 0; display: flex; justify-content: flex-end; }
.svv-lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 3px; }
.svv-lang-switch a { font-size: 14px; padding: 5px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; line-height: 1.6; }
.svv-lang-switch a:hover { color: var(--brand); }
.svv-lang-switch a[aria-current="page"] { background: var(--brand); color: #fff; }

.svv-container { max-width: 860px; margin: 0 auto; padding: 28px 20px 60px; }

.svv-intro h1 { font-family: var(--font-title); font-size: clamp(30px, 5vw, 40px); line-height: 1.15; font-weight: 600; margin: 0 0 10px; color: var(--brand); }
.svv-intro p { margin: 0 0 28px; max-width: 62ch; color: var(--muted); }

/* Sheet from the directory */
.svv-fiche { position: relative; background: var(--brand); color: #fff; border-radius: 14px; padding: 28px 30px 22px; overflow: hidden; }
.svv-fiche::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(188, 143, 49, .45); border-radius: 9px; pointer-events: none; }
.svv-fiche-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.svv-fiche h2 { font-family: var(--font-title); font-size: 24px; font-weight: 600; margin: 0; color: var(--gold); }
.svv-fiche-source { font-size: 13px; color: rgba(255, 255, 255, .65); }
.svv-fiche dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
.svv-fiche dt { font-size: 13px; color: rgba(255, 255, 255, .65); margin-bottom: 2px; font-weight: 400; }
.svv-fiche dd { margin: 0; font-size: 17px; font-weight: 600; color: #fff; }
.svv-fiche dd.name { font-family: var(--font-title); font-size: 26px; font-weight: 700; }
.svv-fiche-actions { position: relative; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.svv-fiche-actions a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }

/* Form */
.svv-form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-top: 24px; padding: 8px 30px 30px; }
.svv-step { border: 0; margin: 0; padding: 26px 0 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.svv-step:last-of-type { border-bottom: 0; }
.svv-step legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 6px; font-family: var(--font-title); font-size: 24px; font-weight: 600; color: var(--brand); float: none; width: auto; line-height: 1.3; }
.svv-step-num { font-family: "Cormorant Garamond", Georgia, serif; color: var(--gold); font-size: 26px; min-width: 18px; }
.svv-step-hint { margin: 0 0 18px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.svv-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.svv-field { margin-bottom: 18px; }
.svv-field > label, .svv-field-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.svv-req { color: var(--gold-dark); }
.svv-tag { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; line-height: 1.6; }
.svv-tag-private { background: #EEEBF2; color: var(--brand); }
.svv-tag-public { background: var(--gold-soft); color: var(--gold-dark); }

.svv input[type="text"], .svv input[type="tel"], .svv input[type="email"], .svv input[type="number"], .svv input[type="file"], .svv textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #CFC9D6; border-radius: 8px; font: inherit; color: var(--ink); background: #fff; min-height: 46px; box-shadow: none; margin: 0;
}
.svv input[type="file"] { padding: 9px 12px; background: #FAF9FB; }
.svv textarea { min-height: 130px; resize: vertical; }
.svv input[type="tel"], .svv input[type="email"], .svv #svv-otp { direction: ltr; }
.svv:lang(ar) input[type="tel"], .svv:lang(ar) input[type="email"] { text-align: right; }
.svv input:focus-visible, .svv textarea:focus-visible, .svv button:focus-visible, .svv a:focus-visible, .svv-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.svv-help { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; font-weight: 400; }
.svv-error-msg { display: none; font-size: 13px; color: var(--error); margin-top: 5px; }
.svv .has-error input, .svv .has-error textarea { border-color: var(--error); }
.svv .has-error > .svv-error-msg { display: block; }

.svv-inline-action { display: flex; gap: 10px; }
.svv-inline-action input { flex: 1; min-width: 0; }
.svv-btn-secondary { flex-shrink: 0; border: 1px solid var(--brand); background: #fff; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; padding: 0 14px; border-radius: 8px; cursor: pointer; min-height: 46px; }
.svv-btn-secondary:hover { background: #F3F1F5; }
.svv-btn-secondary:disabled { opacity: .5; cursor: default; }

.svv-otp-box { display: none; margin-top: 10px; }
.svv-otp-box.is-visible { display: block; }
.svv-otp-box input { max-width: 180px; letter-spacing: 6px; font-weight: 700; }
.svv-status { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.svv-status.is-error { color: var(--error); }
.svv-verified { display: none; color: var(--ok); font-size: 14px; font-weight: 600; margin-top: 6px; }
.svv-verified::before { content: "✓ "; }
.svv-verified.is-visible { display: block; }

/* Domain families */
.svv-families { display: grid; gap: 8px; }
.svv-family { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.svv-family[open] { border-color: #CFC9D6; }
.svv-family summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 15px; font-weight: 600; cursor: pointer; }
.svv-family summary::-webkit-details-marker { display: none; }
.svv-family summary::after { content: ""; width: 8px; height: 8px; margin-inline-start: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.svv-family[open] summary::after { transform: rotate(-135deg); }
.svv-family-count { display: none; font-size: 12px; font-weight: 700; color: var(--gold-dark); background: var(--gold-soft); border-radius: 999px; padding: 1px 8px; }
.svv-family-count.is-visible { display: inline-block; }
.svv-family-body { padding: 0 15px 15px; }
.svv-family-num { direction: ltr; unicode-bidi: isolate; color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 18px; }
.svv-choice-main { background: #F8F7FA; font-weight: 600; }
.svv-subs-hint { margin: 12px 0 8px; }

.svv-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svv-choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svv-choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; cursor: pointer; transition: border-color .15s, background .15s; font-weight: 400; margin: 0; }
.svv-choice input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; flex-shrink: 0; }
.svv-choice:has(input:checked) { border-color: var(--gold); background: #FCF9F2; }
.svv-choice:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.svv-counter { font-size: 13px; color: var(--muted); font-weight: 400; margin-inline-start: auto; }
.svv-counter.is-full { color: var(--gold-dark); font-weight: 600; }
.svv-spacer { height: 18px; }

.svv-commitments { background: #F8F7FA; border-radius: 10px; padding: 6px 18px; margin-bottom: 18px; }
.svv-commitment { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; font-size: 15px; cursor: pointer; font-weight: 400; margin: 0; }
.svv-commitment + .svv-commitment { border-top: 1px solid var(--line); }
.svv-commitment input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); flex-shrink: 0; }
.svv-commitment a { color: var(--brand); text-decoration-color: var(--gold); }

.svv-submit-btn { width: 100%; border: 0; background: var(--gold); color: #fff; font: inherit; font-size: 17px; font-weight: 700; padding: 15px; border-radius: 9px; cursor: pointer; margin-top: 8px; }
.svv-submit-btn:hover { background: var(--gold-dark); }
.svv-submit-btn:disabled { opacity: .7; cursor: wait; }
.svv-after-submit { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.svv-form-alert { display: none; background: #FDECEA; color: var(--error); border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-top: 18px; }
.svv-form-alert.is-visible { display: block; }
.svv-form-alert ul { margin: 0; padding-inline-start: 18px; }
.svv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation and notices */
.svv-confirmation { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 40px 32px; text-align: center; }
.svv-confirmation h2 { font-family: var(--font-title); font-size: 32px; font-weight: 600; color: var(--brand); margin: 12px 0 8px; }
.svv-seal { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold); font: 700 26px Georgia, serif; }
.svv-confirmation > p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.svv-next-steps { text-align: start; max-width: 480px; margin: 0 auto 28px; padding: 0; list-style: none; counter-reset: next; }
.svv-next-steps li { counter-increment: next; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svv-next-steps li::before { content: counter(next); font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.svv-btn-link { display: inline-block; background: var(--brand); color: #fff !important; text-decoration: none; font-weight: 600; padding: 12px 24px; border-radius: 9px; }

@media (max-width: 680px) {
  .svv-row, .svv-choices, .svv-choices.three, .svv-fiche dl { grid-template-columns: 1fr; }
  .svv-form-card { padding: 4px 18px 22px; }
  .svv-fiche { padding: 24px 22px 18px; }
  .svv-confirmation { padding: 32px 20px; }
  .svv-inline-action { flex-wrap: wrap; }
  .svv-btn-secondary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .svv * { transition: none !important; }
}
