/* DossierBel — formulaire premium (FR / NL / AR, clair / sombre) */

:root {
  --yellow: #ffd200;
  --yellow-hover: #f2c700;
  --ink: #101010;

  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --border: #dce2e8;
  --border-strong: #bbc5d0;
  --text: #14191f;
  --muted: #515b67;
  --accent-text: #765c00;
  --soft: #fff8d6;
  --soft-border: #e6c23a;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --ok: #087d41;
  --ok-soft: #ecfdf3;
  --focus: #1f6feb;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .12);

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lh: 1.55;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d1115;
  --surface: #151a20;
  --surface-2: #1b2128;
  --border: #29313a;
  --border-strong: #3b4550;
  --text: #f1f3f5;
  --muted: #a3adb8;
  --accent-text: #ffd200;
  --soft: rgba(255, 210, 0, .08);
  --soft-border: rgba(255, 210, 0, .6);
  --danger: #ff8a80;
  --danger-soft: rgba(255, 99, 88, .1);
  --ok: #4cc38a;
  --ok-soft: rgba(76, 195, 138, .1);
  --focus: #79b8ff;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02);
  color-scheme: dark;
}

html[lang="ar"] {
  --font: "Noto Kufi Arabic", "Inter", system-ui, Tahoma, sans-serif;
  --lh: 1.75;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 359px) { .container { padding-inline: 14px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: inline-flex; align-items: center; border-radius: 8px; flex: none; }
.brand__logo { height: 46px; width: auto; }
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark { display: block; }

.header-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }

.lang-select {
  position: relative; display: inline-flex; align-items: center; height: 44px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text); transition: border-color .15s;
}
.lang-select:hover { border-color: var(--border-strong); }
.lang-select:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.lang-select > .icon:first-of-type { position: absolute; inset-inline-start: 13px; pointer-events: none; width: 18px; height: 18px; }
.lang-select__chevron { position: absolute; inset-inline-end: 12px; pointer-events: none; color: var(--muted); }
.lang-select select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; height: 100%;
  padding-inline: 38px 32px; font-size: 14px; font-weight: 600; border-radius: 999px; cursor: pointer; outline: none;
  max-width: 160px;
}
.lang-select select option { color: #14191f; background: #fff; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); flex: none;
  transition: border-color .15s, background-color .15s;
}
.icon-btn:hover { border-color: var(--border-strong); }
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

.btn.header-back { display: none; }
@media (min-width: 768px) { .btn.header-back { display: inline-flex; } }

@media (max-width: 359px) {
  .brand__logo { height: 40px; }
  .lang-select select { padding-inline: 34px 26px; font-size: 13px; }
  .lang-select > .icon:first-of-type { inset-inline-start: 11px; }
  .lang-select__chevron { inset-inline-end: 9px; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 50px; padding: 12px 22px; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; gap: 8px; }
.btn--primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; margin: -6px -8px;
  background: none; border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--accent-text);
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn--muted { color: var(--muted); font-weight: 500; }

/* ---------- Page ---------- */
.page { flex: 1; padding-block: 28px 56px; }
@media (min-width: 1024px) { .page { padding-block: 48px 80px; } }

.intro { max-width: 720px; margin-bottom: 24px; }
@media (min-width: 1024px) { .intro { margin-bottom: 36px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 13px; }
.eyebrow__bar { width: 28px; height: 3px; border-radius: 3px; background: var(--yellow); }
.intro h1 { font-size: clamp(26px, 5.2vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
html[lang="ar"] .intro h1 { letter-spacing: 0; line-height: 1.4; }
.intro__lead { margin-top: 12px; font-size: clamp(15px, 1.6vw, 17px); color: var(--muted); max-width: 62ch; text-wrap: pretty; }

.layout { display: flex; flex-direction: column-reverse; gap: 24px; }
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: start; }
}
@media (min-width: 1280px) { .layout { grid-template-columns: 320px minmax(0, 780px); gap: 56px; } }

/* ---------- Aside ---------- */
.aside { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .aside { position: sticky; top: calc(var(--header-h) + 24px); } }

.stepper { display: none; }
@media (min-width: 1024px) { .stepper { display: block; } }
.stepper__list { list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stepper__item { position: relative; }
.stepper__item + .stepper__item::before {
  content: ""; position: absolute; inset-inline-start: 27px; top: -10px; height: 20px; width: 2px;
  background: var(--border); border-radius: 2px;
}
.stepper__item.is-done + .stepper__item::before,
.stepper__item.is-done + .stepper__item.is-current::before { background: var(--yellow); }
.stepper__btn {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 10px; border: 0; background: none;
  border-radius: 12px; text-align: start; position: relative; z-index: 1;
}
button.stepper__btn:hover { background: var(--surface-2); }
.stepper__dot {
  width: 36px; height: 36px; flex: none; border-radius: 999px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; border: 2px solid var(--border); background: var(--surface); color: var(--muted);
}
.is-current .stepper__dot { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.is-done .stepper__dot { border-color: var(--yellow); background: var(--soft); color: var(--accent-text); }
.is-done .stepper__dot .icon { stroke-width: 2.6; }
.stepper__text { display: flex; flex-direction: column; min-width: 0; }
.stepper__title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.is-todo .stepper__title { color: var(--muted); }
.stepper__state { font-size: 12px; color: var(--muted); }
.is-current .stepper__state { color: var(--accent-text); font-weight: 600; }

.trust { list-style: none; margin: 0; padding: 18px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 640px) and (max-width: 1023px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust__item { display: flex; gap: 12px; align-items: flex-start; }
.trust__icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--soft); color: var(--accent-text); }
.trust__title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.trust__desc { margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Carte du formulaire ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
  padding: 20px; scroll-margin-top: calc(var(--header-h) + 12px); outline: none; min-width: 0;
}
@media (min-width: 640px) { .form-card { padding: 32px; } }
@media (min-width: 1280px) { .form-card { padding: 40px 44px; } }

.progress { margin-bottom: 24px; }
.progress__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.progress__meta strong { color: var(--text); font-weight: 600; }
.progress__meta > span:last-child { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.progress__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.progress__seg { height: 6px; border-radius: 6px; background: var(--border); transition: background-color .3s; }
.progress__seg.is-on { background: var(--yellow); }

#step-root { display: flex; flex-direction: column; gap: 24px; animation: step-in .28s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step-head { display: flex; gap: 16px; align-items: flex-start; }
.step-head__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--yellow) 40%, transparent); }
.step-head__icon .icon { width: 22px; height: 22px; }
.step-head__title { font-size: clamp(21px, 3.2vw, 27px); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; outline: none; }
html[lang="ar"] .step-head__title { letter-spacing: 0; line-height: 1.5; }
.step-head__lead { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 399px) { .step-head { flex-direction: column; gap: 12px; } .step-head__icon { width: 44px; height: 44px; } }

/* ---------- Champs ---------- */
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.label { display: block; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.label__req { color: var(--accent-text); }
[data-theme="light"] .label__req { color: #a16207; }
.label__opt { font-weight: 400; color: var(--muted); font-size: 14px; }

.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 55%, transparent); }
.input--area { min-height: 120px; resize: vertical; }
input[type="date"].input { min-height: 50px; max-width: 280px; }
input[dir="ltr"].input { text-align: start; }
[dir="rtl"] input[dir="ltr"].input { text-align: right; }
.has-error .input { border-color: var(--danger); }
.has-error .input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }

.field__hint { font-size: 13px; color: var(--muted); }
.field__counter { font-size: 12px; color: var(--muted); text-align: end; font-variant-numeric: tabular-nums; }
.field__error { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--danger); }
.field__error .icon { margin-top: 2px; }
.field__error[hidden] { display: none; }

.field-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Options ---------- */
.options { display: grid; gap: 10px; }
.options--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 399px) { .options--grid { grid-template-columns: 1fr; } }
.options--list { grid-template-columns: 1fr; }
@media (min-width: 768px) { .options--list { grid-template-columns: 1fr 1fr; } }
.options--pair { grid-template-columns: 1fr 1fr; max-width: 420px; }
.options--triple { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) { .options--triple { grid-template-columns: minmax(0, 1fr); } }

.option {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: var(--border-strong); background: var(--surface-2); }
.option__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.option__media { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; color: var(--text); }
.option__label { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.option__radio {
  width: 20px; height: 20px; flex: none; border-radius: 999px; border: 2px solid var(--border-strong);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.option.is-selected, .option:has(.option__input:checked) {
  border-color: var(--soft-border); background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--soft-border);
}
.option.is-selected .option__label { font-weight: 600; }
.option.is-selected .option__radio, .option:has(.option__input:checked) .option__radio {
  border-color: var(--yellow); background: var(--yellow); box-shadow: inset 0 0 0 4px var(--surface);
}
[data-theme="dark"] .option.is-selected .option__radio { box-shadow: inset 0 0 0 4px #1d1f1a; }
.option:has(.option__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.has-error .option { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }

.options--grid .option { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 104px; padding: 16px; }
.options--grid .option__radio { position: absolute; top: 16px; inset-inline-end: 16px; }
.options--grid .option__label { padding-inline-end: 28px; }
.options--grid .option__media { min-height: 24px; }
@media (max-width: 399px) {
  .options--grid .option { flex-direction: row; align-items: center; min-height: 60px; }
  .options--grid .option__radio { position: static; }
  .options--grid .option__label { padding-inline-end: 0; }
}
.options--pair .option, .options--triple .option { min-height: 54px; }

.flag { width: 27px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); overflow: hidden; }
[data-theme="dark"] .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.flags { display: inline-flex; gap: 5px; }
.flags .flag { width: 24px; height: 16px; }

/* ---------- Refus, consentement, notices ---------- */
.refusal { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.refusal[hidden] { display: none; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 1.55;
}
.notice .icon { margin-top: 3px; color: var(--text); }
.notice--warn { background: var(--soft); border-color: color-mix(in srgb, var(--yellow) 45%, transparent); color: var(--text); }
.notice--warn .icon { color: var(--accent-text); }
.notice--ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--text); }
.notice--ok .icon { color: var(--ok); }
.notice[hidden] { display: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.55; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 6px; border: 2px solid var(--border-strong);
  display: grid; place-items: center; background: var(--surface); color: transparent; transition: all .15s;
}
.consent input:checked + .consent__box { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.consent__box .icon { stroke-width: 3; width: 14px; height: 14px; }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.has-error .consent__box { border-color: var(--danger); }
.consent__link { margin-inline-start: 34px; font-size: 13px; color: var(--accent-text); font-weight: 500; text-underline-offset: 3px; align-self: flex-start; }

/* ---------- Navigation du formulaire ---------- */
.form-nav { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.form-nav .btn { width: 100%; }
@media (min-width: 640px) {
  .form-nav { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .form-nav .btn { width: auto; min-width: 180px; }
  .form-nav--final { flex-direction: row; justify-content: flex-start; }
}
.form-nav--tail { border-top: 1px solid var(--border); padding-top: 20px; }
@media (min-width: 640px) { .form-nav--tail { flex-direction: row; justify-content: space-between; } }
@media (max-width: 639px) { .form-nav--tail .link-btn { align-self: center; margin: 4px 0 0; } }

/* ---------- Récapitulatifs ---------- */
.summary { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.summary__toggle {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; border-radius: 14px;
}
.summary__toggle::-webkit-details-marker { display: none; }
.summary__toggle > span { flex: 1; }
.icon--ok { color: var(--ok); stroke-width: 2.4; }
.summary__chev { color: var(--muted); transition: transform .2s; }
.summary[open] .summary__chev { transform: rotate(180deg); }
.summary__body { padding: 0 16px 14px; display: grid; gap: 14px; }
.summary__group { border-top: 1px solid var(--border); padding-top: 12px; }
.summary__group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
html[lang="ar"] .summary__group-head { text-transform: none; letter-spacing: 0; font-size: 13px; }
.summary__list { margin: 0; display: grid; gap: 8px; }
.summary__row { display: grid; gap: 2px; }
.summary__row dt { font-size: 12.5px; color: var(--muted); }
.summary__row dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.summary__row dd.is-empty { color: var(--muted); font-weight: 400; font-style: italic; }
@media (min-width: 640px) {
  .summary__row { grid-template-columns: minmax(150px, 38%) 1fr; gap: 16px; align-items: baseline; }
}

.review { display: grid; gap: 12px; }
@media (min-width: 1280px) { .review { grid-template-columns: 1fr 1fr; } }
.review__group { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: var(--surface-2); }
.review__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__head h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.review__num { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; }
.review .summary__row { grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 640px) and (max-width: 1279px) { .review .summary__row { grid-template-columns: minmax(150px, 38%) 1fr; gap: 16px; } }

.mail { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mail__title { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mail__meta { margin: 0; padding: 12px 16px; display: grid; gap: 6px; border-bottom: 1px solid var(--border); font-size: 14px; }
.mail__meta div { display: flex; gap: 8px; flex-wrap: wrap; }
.mail__meta dt { color: var(--muted); min-width: 90px; }
.mail__meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mail__body {
  margin: 0; padding: 16px; max-height: 340px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--font); font-size: 13.5px; line-height: 1.65; color: var(--text); background: var(--surface);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer__inner { padding-block: 36px; display: grid; gap: 20px; justify-items: center; text-align: center; }
.site-footer__brand { display: grid; gap: 10px; justify-items: center; max-width: 440px; }
.site-footer__brand .brand__logo { height: 52px; }
.site-footer__brand p { font-size: 14px; color: var(--muted); }
.site-footer__notice { display: inline-flex; gap: 8px; align-items: flex-start; max-width: 560px; font-size: 13px; color: var(--muted); padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); text-align: start; }
.site-footer__notice .icon { margin-top: 2px; color: var(--accent-text); }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; }
.site-footer__nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-footer__nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__copy { font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr auto; justify-items: start; text-align: start; align-items: center; }
  .site-footer__brand { justify-items: start; grid-row: span 2; }
  .site-footer__notice { justify-self: end; }
  .site-footer__nav { justify-content: flex-end; justify-self: end; }
  .site-footer__copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--border); width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Adaptation des composants DossierBel au formulaire Motifs de refus */
.header-actions svg, .trust svg, .step-head svg, .choice svg, .site-footer svg, .form-nav svg,
.stepper svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-select > svg:first-of-type { position: absolute; inset-inline-start: 13px; pointer-events: none; width: 18px; height: 18px; }
.lang-select__chevron { width: 16px !important; height: 16px !important; }
.site-header .brand__logo { height: 46px; }
.site-footer__brand .brand__logo { height: 52px; }
.header-back svg, .form-nav svg { width: 16px; height: 16px; }
[dir="rtl"] .header-back svg, [dir="rtl"] .form-nav svg { transform: scaleX(-1); }

.stepper__dot svg { width: 17px; height: 17px; stroke-width: 2.6; }
.stepper__btn:disabled { cursor: default; }
.trust strong, .trust small { display: block; }
.trust__icon svg { width: 18px; height: 18px; }

#refusal-form { display: flex; flex-direction: column; }
.step { display: flex; flex-direction: column; gap: 24px; animation: step-in .28s ease-out; }
.step-head__icon svg { width: 22px; height: 22px; }
.step-kicker { margin: 0 0 5px; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .step-kicker { letter-spacing: 0; }
.step h2 { margin: 0; font-size: clamp(21px, 3.2vw, 27px); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
html[lang="ar"] .step h2 { letter-spacing: 0; line-height: 1.5; }
.step-description { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 104px;
  padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent;
}
.choice:hover { border-color: var(--border-strong); background: var(--surface-2); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choice-media { display: inline-flex; min-width: 28px; min-height: 24px; align-items: center; justify-content: flex-start; color: var(--text); }
.choice-text { padding-inline-end: 28px; flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 500; line-height: 1.35; }
.choice-indicator { position: absolute; top: 16px; inset-inline-end: 16px; width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--border-strong); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.choice.selected { border-color: var(--soft-border); background: var(--soft); box-shadow: inset 0 0 0 1px var(--soft-border); }
.choice.selected .choice-text { font-weight: 600; }
.choice.selected .choice-indicator { border-color: var(--yellow); background: var(--yellow); box-shadow: inset 0 0 0 4px var(--surface); }
[data-theme="dark"] .choice.selected .choice-indicator { box-shadow: inset 0 0 0 4px #1d1f1a; }
.choice input:focus-visible ~ .choice-indicator { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice.checkbox .choice-indicator { border-radius: 6px; }
.choice.checkbox.selected .choice-indicator::after { content: ""; position: absolute; width: 8px; height: 4px; inset: 5px 0 0 4px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.choice-grid .choice { flex-direction: row; align-items: center; min-height: 64px; gap: 12px; padding: 13px 14px; }
.choice-grid .choice-media { min-width: 22px; min-height: 22px; flex: none; }
.choice-grid .choice-media svg { width: 20px; height: 20px; }
.choice-grid .choice-text { padding-inline-end: 0; flex: 1; }
.choice-grid .choice-indicator { position: static; flex: none; order: 3; margin-inline-start: auto; }

.field { margin-top: 0; border: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.field label, .field-label { display: block; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.optional { color: var(--muted); font-size: 14px; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.4; outline: 0; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:hover, textarea:hover { border-color: var(--muted); }
input:focus, textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 55%, transparent); }
input[type="date"] { max-width: 280px; }
.questions { display: grid; gap: 24px; }
.questions > div > .field-label { margin-block-end: 12px; }
.inline-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.inline-choices .choice { min-height: 54px; padding: 14px 16px; flex-direction: row; align-items: center; }
.inline-choices .choice-media { display: none; }
.inline-choices .choice-text { padding-inline-end: 0; }
.inline-choices .choice-indicator { position: static; order: 3; margin-inline-start: auto; flex: none; }
.notice { margin-top: 0; }
.notice svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 3px; color: var(--accent-text); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-grid .field:first-child { grid-column: 1 / -1; }
.summary { margin-top: 24px; overflow: hidden; }
.summary-head { display: flex; padding: 14px 16px; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); }
.summary-head h3 { margin: 0; font-size: 15px; }
.edit-button { padding: 4px 7px; color: var(--accent-text); background: none; border: 0; border-radius: 7px; font-weight: 600; cursor: pointer; }
.summary-list { margin: 0; padding: 4px 16px 12px; }
.summary-row { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; padding: 10px 0; gap: 16px; border-top: 1px solid var(--border); font-size: 13px; }
.summary-row dt { color: var(--muted); }
.summary-row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.consent { margin-top: 20px; min-height: auto; flex-direction: row; align-items: flex-start; }
.consent .choice-media { display: none; }
.consent .choice-indicator { position: relative; inset: auto; flex: none; order: -1; }
.consent .choice-text { padding: 0; font-size: 14px; font-weight: 400; line-height: 1.55; }
.form-error { min-height: 22px; margin-top: 14px; color: var(--danger); font-size: 14px; font-weight: 500; }
.form-nav { margin-top: 0; padding-top: 4px; }
.btn[hidden] { display: none; }

@media (max-width: 767px) {
  .inline-choices { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 639px) {
  .form-nav { margin-top: 2px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .field:first-child { grid-column: auto; }
  .summary-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 399px) {
  .choice-grid { grid-template-columns: 1fr; }
  .choice { flex-direction: row; align-items: center; min-height: 60px; }
  .choice-media { min-height: 0; }
  .choice-text { padding-inline-end: 0; }
  .choice-indicator { position: static; order: 3; margin-inline-start: auto; flex: none; }
  .step-head { flex-direction: column; gap: 12px; }
}

/* Cartes de choix : disposition mobile/tablette uniquement */
@media (max-width: 767px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
