@font-face {
  font-family: "Fustat";
  src: url("../fonts/Fustat-Var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 98%;
}

:root,
[data-bs-theme="light"] {
  --brand-color-solid: #341282;
  --brand-color-gradient: linear-gradient(340deg, #5900ff 0%, #341282 48%);
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-primary-rgb: 13, 110, 253;
  --bs-secondary-rgb: 108, 117, 125;
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 13, 202, 240;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 33, 37, 41;
  --bs-primary-text-emphasis: #052c65;
  --bs-secondary-text-emphasis: #2b2f32;
  --bs-success-text-emphasis: #0a3622;
  --bs-info-text-emphasis: #055160;
  --bs-warning-text-emphasis: #664d03;
  --bs-danger-text-emphasis: #58151c;
  --bs-light-text-emphasis: #495057;
  --bs-dark-text-emphasis: #495057;
  --bs-primary-bg-subtle: #cfe2ff;
  --bs-secondary-bg-subtle: #e2e3e5;
  --bs-success-bg-subtle: #d1e7dd;
  --bs-info-bg-subtle: #cff4fc;
  --bs-warning-bg-subtle: #fff3cd;
  --bs-danger-bg-subtle: #f8d7da;
  --bs-light-bg-subtle: #fcfcfd;
  --bs-dark-bg-subtle: #ced4da;
  --bs-primary-border-subtle: #9ec5fe;
  --bs-secondary-border-subtle: #c4c8cb;
  --bs-success-border-subtle: #a3cfbb;
  --bs-info-border-subtle: #9eeaf9;
  --bs-warning-border-subtle: #ffe69c;
  --bs-danger-border-subtle: #f1aeb5;
  --bs-light-border-subtle: #e9ecef;
  --bs-dark-border-subtle: #adb5bd;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg: #fff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-emphasis-color: #000;
  --bs-emphasis-color-rgb: 0, 0, 0;
  --bs-secondary-color: rgba(33, 37, 41, 0.75);
  --bs-secondary-color-rgb: 33, 37, 41;
  --bs-secondary-bg: #e9ecef;
  --bs-secondary-bg-rgb: 233, 236, 239;
  --bs-tertiary-color: rgba(33, 37, 41, 0.5);
  --bs-tertiary-color-rgb: 33, 37, 41;
  --bs-tertiary-bg: #f8f9fa;
  --bs-tertiary-bg-rgb: 248, 249, 250;
  --bs-heading-color: inherit;
  --bs-link-color: #0d6efd;
  --bs-link-color-rgb: 13, 110, 253;
  --bs-link-decoration: underline;
  --bs-link-hover-color: #0a58ca;
  --bs-link-hover-color-rgb: 10, 88, 202;
  --bs-code-color: #d63384;
  --bs-highlight-color: #212529;
  --bs-highlight-bg: #fff3cd;
  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-border-color: #dee2e6;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-xxl: 2rem;
  --bs-border-radius-2xl: var(--bs-border-radius-xxl);
  --bs-border-radius-pill: 50rem;
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  --bs-focus-ring-width: 0.25rem;
  --bs-focus-ring-opacity: 0.25;
  --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
  --bs-form-valid-color: #198754;
  --bs-form-valid-border-color: #198754;
  --bs-form-invalid-color: #dc3545;
  --bs-form-invalid-border-color: #dc3545;
}

html,
body,
*,
*:before,
*:after {
  font-family: "Fustat", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
}
.fw-boldest {
  font-weight: 800 !important;
}
.fw-largebold {
  font-weight: 900 !important;
}
.brand-navbar {
  background-color: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.brand-text-color-solid {
  color: var(--brand-color-solid) !important;
}
.brand-bg-color-solid {
  background-color: var(--brand-color-solid) !important;
}
.brand-text-color-gradient {
  background-image: var(--brand-color-gradient) !important;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.w-60 {
  width: 60% !important;
}
.w-70 {
  width: 70% !important;
}
.w-80 {
  width: 80% !important;
}
.w-90 {
  width: 90% !important;
}
.fs-0-sm {
  font-size: calc(1.375rem + 1.75vw) !important;
}
.fs-0-md {
  font-size: calc(1.375rem + 2vw) !important;
}
.fs-0-lg {
  font-size: calc(1.375rem + 2.25vw) !important;
}
.fs-7 {
  font-size: 0.9rem !important;
}
.fs-8 {
  font-size: 0.8rem !important;
}
.fs-9 {
  font-size: 0.7rem !important;
}
.fs-10 {
  font-size: 0.6rem !important;
}
/****************************************
* Design system : marque & style Apple-like
*****************************************/
:root {
  --brand: #341282;
  --brand-700: #2b0f6c;
  --brand-800: #220c58;

  --soft-bg: rgba(52, 18, 130, 0.08);
  --soft-bg-hover: rgba(52, 18, 130, 0.14);
  --soft-bd: rgba(52, 18, 130, 0.2);
  --soft-bd-hover: rgba(52, 18, 130, 0.28);

  --radius: 0.4rem; /* arrondi global compact */
}

.text-brand {
  color: var(--brand) !important;
}

/***********************
 PROGRESS BAR (ultra thin)
************************/
.progress-line {
  height: 1px;
  background: #e7e7ec;
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.25s ease-in-out;
}

/***********************
 STEPPER CIRCLES
************************/
.stepper {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 18px;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}
.stepper li {
  flex: 1 1 0;
  display: grid;
  place-items: center;
}
.step-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f2f2f5;
  color: #444;
  font-weight: 600;
  font-size: 1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  user-select: none;
}
.step-dot.active {
  background: var(--brand);
  color: #fff;
}
.step-dot:hover {
  background: #e0e0e8;
}

@media (max-width: 576px) {
  .stepper {
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 12px;
  }
  .stepper li {
    flex: 0 0 auto;
  }
  .step-dot {
    width: 44px;
    height: 44px;
    font-size: 0.88rem;
  }
}

/***********************
 STEPS VISIBILITY
************************/
.step {
  display: none;
}
.step.active {
  display: block;
}

/***********************
 NAV BUTTONS (Next/Prev)
************************/
.btn-soft-brand.btn-prev,
.btn-soft-brand.btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--brand) !important;
  border: 1px solid var(--brand) !important;
  color: #fff !important;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.btn-soft-brand.btn-prev:hover,
.btn-soft-brand.btn-next:hover {
  background: var(--brand-700) !important;
  border-color: var(--brand-700) !important;
}
.btn-soft-brand.btn-prev:active,
.btn-soft-brand.btn-next:active {
  background: var(--brand-800) !important;
  border-color: var(--brand-800) !important;
}

/***********************
 SEND / SUBMIT BUTTON
************************/
.btn-brand-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--brand) !important;
  border: 1px solid var(--brand) !important;
  color: #fff !important;
  border-radius: var(--radius);
  padding: 0.65rem 1.1rem;
  transition: all 0.15s ease;
}
.btn-brand-solid:hover {
  background: var(--brand-700) !important;
  border-color: var(--brand-700) !important;
}
.btn-brand-solid:active {
  background: var(--brand-800) !important;
  border-color: var(--brand-800) !important;
}

/***********************
 ICON STYLING (bold)
************************/
.bi {
  font-size: 1.28rem;
  font-weight: 800;
  vertical-align: baseline;
}
.icon-left {
  margin-right: 0.45rem;
}
.icon-right {
  margin-left: 0.45rem;
}

/***********************
 CHOICE TILES (checkbox / radio)
************************/
label.choice-tile.btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  background: var(--soft-bg) !important;
  color: var(--brand) !important;
  border: 1px solid var(--soft-bd) !important;
  border-radius: var(--radius) !important;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  font-weight: 500;
}

label.choice-tile.btn .bi {
  color: inherit !important;
  font-weight: 800;
}

/* Hover */
label.choice-tile.btn:hover {
  background: var(--brand-700) !important;
  border-color: var(--brand-700) !important;
  color: #fff !important;
}
label.choice-tile.btn:hover .bi {
  color: #fff !important;
  font-weight: 900;
}

/* Selected */
.btn-check:checked + label.choice-tile.btn,
.btn-check:active + label.choice-tile.btn {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
.btn-check:checked + label.choice-tile.btn .bi,
.btn-check:active + label.choice-tile.btn .bi {
  color: #fff !important;
  font-weight: 900;
}

/* Focus */
.btn-check:focus + label.choice-tile.btn {
  box-shadow: 0 0 0 0.15rem rgba(52, 18, 130, 0.22) !important;
}

/* Disabled */
.btn-check:disabled + label.choice-tile.btn {
  opacity: 0.55;
  cursor: not-allowed;
}

/********************************
 INPUTS / SELECTS / TEXTAREA
 (Apple tiny radius)
*********************************/
.form-control,
.form-select,
textarea.form-control {
  border-radius: 0.3rem !important; /* minimal premium */
}

/********************************
 RECAP / SUMMARY
*********************************/
.summary-card {
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 1rem;
  padding: 1.1rem;
}
.summary-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.summary-step-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  margin-right: 0.4rem;
}
.summary-title .heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
}
.inline-editor {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #f8f8fb;
}
.summary-line strong {
  font-weight: 600;
}

label,
.choice-tile,
.step-dot,
.btn {
  cursor: pointer;
}
