/*
  Base commune historique Collection FR/EN.
  Source unique : modifier ici pour impacter les deux formulaires Accès privé.
*/

    @font-face {
      font-family: "LexendBelmont";
      src: url("https://belmont.immo/wp-content/uploads/Lexend-VariableFont_wght.ttf") format("truetype");
      font-weight: 100 900;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "ItalianaBelmont";
      src: url("https://belmont.immo/wp-content/uploads/italiana-regular-webfont.woff2") format("woff2"), url("https://belmont.immo/wp-content/uploads/italiana-regular-webfont.woff") format("woff"), url("https://belmont.immo/wp-content/uploads/italiana-regular-webfont.ttf") format("truetype");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --bg: #121212;
      --panel: #181818;
      --panel-soft: #1f1f1f;
      --line: #29282D;
      --gold: #B09B60;
      --text: #FFFFFF;
      --muted: #999999;
      --danger: #c8a2a2;
      --reject: #D95D5D;
      --accept: #52A86F;
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --check-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNoZWNrLWljb24gbHVjaWRlLWNoZWNrIj48cGF0aCBkPSJNMjAgNiA5IDE3bC01LTUiLz48L3N2Zz4=");
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      height: 100%;
    }

    body {
      margin: 0;
      min-height: 100vh;
      min-height: 100svh;
      overflow: hidden;
      background: var(--bg);
      color: var(--text);
      font-family: "LexendBelmont", LexendCF, Lexend, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      letter-spacing: 0;
    }

    button,
    input,
    textarea {
      font: inherit;
    }

    button {
      cursor: pointer;
      touch-action: manipulation;
    }

    .app-shell {
      height: 100vh;
      height: 100svh;
      display: grid;
      place-items: start center;
      padding: 0 18px;
      position: relative;
      overflow: hidden;
    }

    .app-shell.is-dashboard-mode {
      place-items: start stretch;
      padding: 0;
    }

    .app-shell::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: url("./fond-formulaire-belmont.webp") center / cover no-repeat;
    }

    .page-shell::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: url("./fond%20amo.webp") center / cover no-repeat;
    }

    .app-shell::after {
      content: none;
    }

    .app-shell.is-dashboard-mode::before {
      background: var(--bg);
    }

    .belmont-app {
      width: min(100%, 720px);
      height: 100vh;
      height: 100svh;
      position: relative;
      display: grid;
      grid-template-rows: minmax(0, 1fr);
      align-items: stretch;
      z-index: 1;
      padding-top: 92px;
      padding-bottom: 72px;
    }

    .powered-by {
      position: fixed;
      left: 18px;
      right: auto;
      bottom: 18px;
      transform: none;
      z-index: 15;
      color: var(--muted);
      font-size: 10px;
      font-weight: 400;
      line-height: 1;
      opacity: 0.85;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      padding: 8px 16px;
      background: transparent;
      border: 0;
      transition: opacity 180ms ease;
    }

    .app-shell.is-dashboard-mode .powered-by {
      display: none;
    }

    .powered-by:hover {
      color: var(--muted);
      opacity: 1;
    }

    .powered-logo {
      width: 60px;
      height: auto;
      display: block;
      filter: grayscale(1);
      opacity: 1;
    }

    .topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 10;
      display: none;
      padding: 20px 20px 0;
    }

    .topbar.is-visible {
      display: block;
    }

    .progress-track {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 5px;
      background: rgba(255,255,255,0.12);
      z-index: 11;
    }

    .progress-bar {
      width: 0%;
      height: 100%;
      background: var(--gold);
      transition: width 600ms var(--ease);
    }

    .topbar-header {
      display: grid;
      grid-template-columns: 112px 1fr 112px;
      align-items: center;
      gap: 12px;
      min-height: 44px;
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 12px;
      justify-self: start;
    }

    .topbar-logo {
      width: 102px;
      height: auto;
      display: block;
      justify-self: center;
    }

    .progress-count {
      color: var(--gold);
      font-size: 11px;
      line-height: 1;
      font-weight: 400;
      letter-spacing: 0.16em;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .back-button,
    .icon-button {
      width: 42px;
      height: 42px;
      border: 1px solid rgba(255,255,255,0.11);
      background: rgba(255,255,255,0.035);
      color: var(--text);
      display: grid;
      place-items: center;
      transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, opacity 180ms ease, color 180ms ease;
    }

    .snow-toggle {
      justify-self: end;
      width: 42px;
      height: 42px;
      border: 0;
      background: transparent;
      color: var(--text);
      display: grid;
      place-items: center;
      transition: color 180ms ease, transform 180ms ease;
    }

    .snow-toggle:hover {
      transform: translateY(-1px);
    }

    .snow-toggle[aria-pressed="true"] {
      color: #fff;
    }

    /* Neige desactivee : icone doree */
    .snow-toggle[aria-pressed="false"] {
      color: var(--gold);
    }

    .back-button {
      justify-self: start;
      border: 0;
      background: transparent;
      color: var(--gold);
    }

    .back-button .svg-icon,
    .snow-toggle .svg-icon {
      width: 19px;
      height: 19px;
    }

    .back-button.is-disabled {
      opacity: 0;
      pointer-events: none;
    }

    .back-button:hover,
    .icon-button:hover {
      border-color: rgba(176,155,96,0.65);
      background: rgba(176,155,96,0.09);
      transform: translateY(-1px);
    }

    .back-button:hover {
      border-color: transparent;
      background: transparent;
      transform: translateX(-2px);
    }

    .mode-link {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 20;
      color: var(--muted);
      text-decoration: none;
      font-size: 12px;
      padding: 10px 12px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(18,18,18,0.72);
      backdrop-filter: blur(16px);
    }

    .step-jump {
      position: fixed;
      right: 118px;
      bottom: 18px;
      z-index: 20;
      width: 156px;
      height: 38px;
      color: var(--muted);
      font-size: 12px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(18,18,18,0.72);
      backdrop-filter: blur(16px);
    }

    .app-shell.is-dashboard-mode .step-jump {
      display: none;
    }

    .mode-link:hover {
      color: var(--gold);
      border-color: rgba(176,155,96,0.55);
    }

    .theme-toggle {
      width: 42px;
      height: 24px;
      border: 0;
      border-radius: 999px;
      padding: 3px;
      background: #2f2f2f;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      transition: background 180ms ease;
      justify-self: end;
    }

    .theme-toggle-thumb {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: #ffffff;
      transition: transform 180ms ease, background 180ms ease;
    }

    body.is-light {
      --bg: #ffffff;
      --panel: #f4f4f4;
      --panel-soft: #efefef;
      --line: #d8d8d8;
      --text: #121212;
      --muted: #555555;
      --danger: #8b2d2d;
    }

    body.is-light .app-shell::before {
      background: url("./fond-formulaire-belmont.webp") center / cover no-repeat;
    }

    body.is-light .app-shell.is-dashboard-mode::before {
      background: var(--bg);
    }

    body.is-light .app-shell::after {
      display: none;
    }

    body.is-light .theme-toggle {
      background: #d2d2d2;
      justify-content: flex-start;
    }

    body.is-light .theme-toggle-thumb {
      background: #121212;
    }

    body.is-light .mode-link {
      color: #555555;
      border-color: rgba(0,0,0,0.12);
      background: rgba(255,255,255,0.78);
    }

    body.is-light .lead {
      color: #222222;
    }

    body.is-light .sublead,
    body.is-light .privacy {
      color: #555555;
    }

    body.is-light .back-button,
    body.is-light .answer-card,
    body.is-light .multi-option,
    body.is-light input {
      border-color: rgba(0,0,0,0.14);
      background: rgba(0,0,0,0.035);
      color: #121212;
    }

    body.is-light .back-button {
      border: 0;
      background: transparent;
    }

    body.is-light .back-button:hover,
    body.is-light .answer-card:hover,
    body.is-light .answer-card.is-selected,
    body.is-light .multi-option.is-selected {
      background: rgba(176,155,96,0.12);
    }

    body.is-light .back-button:hover {
      background: transparent;
    }

    body.is-light .progress-track {
      background: rgba(0,0,0,0.12);
    }

    body.is-light label,
    body.is-light td {
      color: #222222;
    }

    body.is-light .table-wrap,
    body.is-light .stat-card,
    body.is-light .detail-panel {
      border-color: rgba(0,0,0,0.12);
      background: rgba(0,0,0,0.025);
    }

    body.is-light th {
      background: rgba(255,255,255,0.94);
    }

    body.is-light .detail-button {
      border-color: rgba(0,0,0,0.14);
      background: rgba(0,0,0,0.025);
      color: #121212;
    }

    body.is-light tbody tr:hover {
      background: rgba(176,155,96,0.09);
    }

    .screen {
      display: none;
      width: 100%;
      padding-top: 0;
      max-height: 100%;
    }

    .screen.is-hidden {
      display: none !important;
    }

    #questionMount {
      width: 100%;
      height: 100%;
      min-height: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .screen.is-active {
      display: block;
      animation: screenIn 460ms var(--ease) both;
    }

    .screen.is-leaving {
      display: block;
      animation: screenOut 260ms ease both;
    }

    @keyframes screenIn {
      from {
        opacity: 0;
        transform: translateY(34px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes screenOut {
      from {
        opacity: 1;
        transform: translateY(0);
      }
      to {
        opacity: 0;
        transform: translateY(-24px);
      }
    }

    .intro {
      text-align: center;
      padding: 56px 0;
      position: relative;
      min-height: min(680px, calc(100svh - 36px));
      display: grid;
      align-content: center;
    }

    .logo {
      width: min(78vw, 230px);
      height: auto;
      margin: 0 auto 44px;
    }

    /* Animation d'entree cle doree : dezoom centre puis remontee, texte qui suit.
       Namespacee (.intro-key*) pour ne pas interferer avec .logo/.intro generiques. */
    .intro-key {
      width: auto;
      height: 150px;
      max-width: min(45vw, 260px);
      margin: 0 auto 40px;
      opacity: 0;
      transform: translateY(129px);
      filter: drop-shadow(0 14px 28px rgba(0,0,0,0.5));
    }

    .intro.is-playing .intro-key {
      animation: introKeyAppear 1800ms cubic-bezier(0.4,0,0.2,1) forwards,
                 introKeyRiseUp 700ms cubic-bezier(0.4,0,0.2,1) 1800ms forwards;
    }

    @keyframes introKeyAppear {
      0%   { opacity: 0; transform: translateY(129px) scale(2.2); }
      45%  { opacity: 1; }
      100% { opacity: 1; transform: translateY(129px) scale(1); }
    }

    @keyframes introKeyRiseUp {
      0%   { transform: translateY(129px) scale(1); }
      100% { transform: translateY(0) scale(1); }
    }

    .intro-key-text h1,
    .intro-key-text .lead,
    .intro-key-text .primary-button {
      opacity: 0;
    }

    .intro-key-text h1 {
      font-size: 28px;
      font-family: "LexendBelmont", LexendCF, Lexend, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    @media (max-width: 680px) {
      .intro-key-text h1 {
        font-size: 28px;
      }
    }

    @media (max-width: 680px) {
      .intro-key-text .intro-break {
        display: none;
      }
    }

    /* Pendant l'ecran d'intro : garder logo + neige visibles, masquer retour/compteur (pas de sens avant la 1ere question) */
    .topbar.is-intro #progressCount {
      visibility: hidden;
    }

    .intro.is-playing .intro-key-text h1 {
      animation: introTextIn 700ms cubic-bezier(0.4,0,0.2,1) 2200ms forwards;
    }

    .intro.is-playing .intro-key-text .lead {
      animation: introTextIn 700ms cubic-bezier(0.4,0,0.2,1) 2350ms forwards;
    }

    .intro.is-playing .intro-key-text .primary-button {
      animation: introTextIn 600ms cubic-bezier(0.4,0,0.2,1) 2500ms forwards;
    }

    @keyframes introTextIn {
      from { opacity: 0; transform: translateY(10px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    h1,
    h2 {
      margin: 0;
      font-family: "ItalianaBelmont", ItalianaCF, "Times New Roman", serif;
      font-weight: 400;
      line-height: 1.12;
    }

    h1 {
      font-size: clamp(24px, 7vw, 46px);
    }

    .question-title {
      font-family: "LexendBelmont", LexendCF, Lexend, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    @media (min-width: 681px) {
      .question-title {
        font-size: 22px;
      }
    }

    h2 {
      font-size: clamp(23px, 4vw, 27px);
      max-width: 680px;
      display: block;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.22;
    }

    .lead {
      margin: 24px auto 0;
      max-width: 580px;
      color: #d9d9d9;
      font-size: 16px;
      line-height: 1.7;
      font-weight: 300;
    }

    .sublead {
      margin: 16px auto 0;
      max-width: 540px;
      color: var(--muted);
      line-height: 1.7;
      font-size: 14px;
      font-weight: 300;
    }

    .primary-button,
    .ghost-button {
      min-height: 50px;
      border: 1px solid var(--gold);
      padding: 14px 26px;
      font-size: 14px;
      letter-spacing: 0.04em;
      transition: transform 180ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease;
    }

    .primary-button {
      background: var(--gold);
      color: #121212;
    }

    .primary-button:disabled {
      cursor: default;
      opacity: 0.62;
      transform: none;
      filter: none;
    }

    .primary-button.is-hidden {
      display: none;
    }

    .intro .primary-button {
      margin-top: 32px;
    }

    .ghost-button {
      background: transparent;
      color: var(--gold);
    }

    .primary-button:hover,
    .ghost-button:hover {
      transform: translateY(-1px);
      filter: brightness(1.04);
    }

    .primary-button:disabled:hover {
      transform: none;
      filter: none;
    }

    .question-kicker {
      color: var(--gold);
      font-size: 11px;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 0.16em;
    }

    #questionMount .question-kicker,
    #questionMount .lead {
      text-align: center;
    }

    .answers {
      display: grid;
      gap: 12px;
      margin-top: 40px;
      width: 100%;
      max-width: 650px;
      margin-left: auto;
      margin-right: auto;
      text-align: left;
    }

    /* ===== Curseur budget (question 7) - namespace .budget-slider* ===== */
    .budget-slider {
      position: relative;
      width: 100%;
      max-width: 650px;
      margin: 40px auto 0;
      padding: 22px 12px 46px;
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
    }

    .budget-slider-track,
    .budget-slider-fill {
      position: absolute;
      top: 22px;
      left: 12px;
      right: 12px;
      height: 4px;
      border-radius: 2px;
      background: #2a2d33;
    }

    .budget-slider-fill {
      right: auto;
      width: 0;
      background: var(--gold);
      transition: width 240ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .budget-stop {
      position: absolute;
      top: 24px;
      transform: translate(-50%, -50%);
      width: 44px;
      height: 44px;
      background: transparent;
      border: 0;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .budget-stop:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 2px;
      border-radius: 50%;
    }

    .budget-stop::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #2a2d33;
      border: 2px solid #3a3e45;
      transition: background 200ms ease, border-color 200ms ease, width 200ms ease, height 200ms ease;
    }

    .budget-stop.is-passed::before {
      background: var(--gold);
      border-color: var(--gold);
    }

    .budget-stop.is-current::before {
      width: 25px;
      height: 25px;
      background: var(--gold);
      border: 0;
      box-shadow: 0 0 14px rgba(176, 155, 96, 0.55);
    }

    .budget-label {
      position: absolute;
      top: 52px;
      transform: translateX(-50%);
      white-space: nowrap;
      font-size: clamp(10px, 3.4vw, 13px);
      font-weight: 300;
      color: var(--muted);
      transition: color 200ms ease;
      pointer-events: none;
    }

    .budget-label.is-first {
      transform: none;
      left: 0 !important;
      text-align: left;
    }

    .budget-label.is-last {
      transform: none;
      left: auto !important;
      right: 0;
      text-align: right;
    }

    .budget-stop.is-current + .budget-label {
      color: #fff;
      font-weight: 500;
    }

    /* Le bouton Suivant du slider garde sa place quand il est cache : pas de saut de mise en page */
    .screen-slider .primary-button.is-hidden,
    .screen-multi .primary-button.is-hidden {
      display: block;
      visibility: hidden;
    }

    /* ===== Reponses type box (question 1) : 3 cartes cote a cote, empilees en mobile ===== */
    .box-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 40px;
      width: 100%;
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
    }

    .box-grid.box-grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }

    .box-grid-4 .box-text {
      min-height: calc(2 * 1.4em);
    }

    .multi-grid.multi-grid-2col {
      grid-template-columns: repeat(2, 1fr);
    }

    .answer-card.box-card,
    .multi-option.box-card {
      position: relative;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 18px;
      padding: 30px 20px 20px;
      text-align: center;
      min-height: 0;
    }

    .box-card .answer-icon {
      width: 34px;
      height: 34px;
      flex: none;
    }

    .multi-option.box-card .check {
      position: absolute;
      top: 10px;
      left: 10px;
      margin: 0;
    }

    /* Question 1 uniquement (grille 3 box) : 30px haut et bas */
    @media (min-width: 681px) {
      .box-grid:not(.box-grid-4) .box-card {
        padding-top: 30px;
        padding-bottom: 30px;
      }
    }

    /* pas de chevron herite de .answer-card dans les box */
    .answer-card.box-card::after {
      display: none;
    }

    .box-card .box-text {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: calc(3 * 1.4em);
      font-size: 15px;
      line-height: 1.4;
      color: var(--text);
      text-wrap: balance;
    }

    @media (max-width: 680px) {
      /* Mobile : les box reprennent le style carte classique (icone a gauche, chevron/badge, empilees) */
      .box-grid,
      .box-grid.box-grid-4 {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 650px;
      }

      .multi-grid.multi-grid-2col {
        grid-template-columns: 1fr;
      }

      .answer-card.box-card,
      .multi-option.box-card {
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        padding: 13px 14px;
        min-height: 52px;
        text-align: left;
      }

      .answer-card.box-card::after {
        display: block;
        margin-left: auto;
      }

      .box-card .answer-icon {
        width: 18px;
        height: 18px;
      }

      .box-card .box-text {
        display: inline;
        min-height: 0;
        font-size: 16px;
        line-height: 1.35;
        text-align: left;
      }

      .box-card .box-text br {
        display: none;
      }

      .multi-option.box-card .check {
        position: static;
        top: auto;
        left: auto;
      }
    }

    @media (min-width: 480px) {
      .budget-slider { padding-left: 18px; padding-right: 18px; }
      .budget-slider-track, .budget-slider-fill { left: 18px; right: 18px; }
      .budget-label { font-size: 14px; }
    }

    .answer-card {
      width: 100%;
      min-height: 60px;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 0;
      background: rgba(255,255,255,0.035);
      color: var(--text);
      text-align: left;
      padding: 18px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      height: auto;
      line-height: 1.35;
      white-space: normal;
      transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
    }

    .answer-label {
      display: inline-flex;
      align-items: center;
      gap: 13px;
      min-width: 0;
    }

    .answer-icon {
      width: 19px;
      height: 19px;
      flex: 0 0 auto;
      color: var(--gold);
      background: currentColor;
      -webkit-mask: var(--icon) center / contain no-repeat;
      mask: var(--icon) center / contain no-repeat;
      opacity: 0.95;
    }

    .budget-gauge {
      width: 19px;
      height: 19px;
      flex: 0 0 auto;
      display: flex;
      align-items: flex-end;
      gap: 2px;
    }

    .budget-gauge-bar {
      flex: 1 1 auto;
      height: 35%;
      background: rgba(255,255,255,0.18);
      transition: background 180ms ease;
    }

    .budget-gauge-bar:nth-child(2) {
      height: 57%;
    }

    .budget-gauge-bar:nth-child(3) {
      height: 79%;
    }

    .budget-gauge-bar:nth-child(4) {
      height: 100%;
    }

    .budget-gauge-bar.is-filled {
      background: var(--gold);
    }

    .answer-label-text {
      min-width: 0;
    }

    .answer-card::after {
      content: "";
      width: 8px;
      height: 8px;
      border-top: 1px solid currentColor;
      border-right: 1px solid currentColor;
      transform: rotate(45deg);
      opacity: 0.45;
      flex: 0 0 auto;
    }

    .answer-card.is-selected {
      border-color: rgba(176,155,96,0.75);
      background: rgba(176,155,96,0.09);
      transform: translateY(-1px);
    }

    @media (hover: hover) {
      .answer-card:hover {
        border-color: rgba(176,155,96,0.75);
        background: rgba(176,155,96,0.09);
        transform: translateY(-1px);
      }
    }

    .multi-grid {
      display: grid;
      gap: 12px;
      margin-top: 40px;
      width: 100%;
      max-width: 650px;
      margin-left: auto;
      margin-right: auto;
    }

    .multi-option {
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 0;
      background: rgba(255,255,255,0.035);
      color: var(--text);
      padding: 18px 20px;
      text-align: left;
      min-height: 60px;
      display: flex;
      align-items: center;
      gap: 14px;
      height: auto;
      line-height: 1.35;
      white-space: normal;
      transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
    }

    .multi-option .check {
      width: 22px;
      height: 22px;
      border-radius: 0;
      border: 1px solid rgba(255,255,255,0.28);
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      color: var(--text);
      font-size: 12px;
      font-weight: 600;
      line-height: 1;
      transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
    }

    .multi-option.is-selected {
      border-color: rgba(176,155,96,0.8);
      background: rgba(176,155,96,0.1);
    }

    .multi-option.is-selected .check {
      border-color: var(--gold);
      background: var(--gold);
      color: #121212;
    }

    .multi-option.is-checkbox.is-selected .check::before {
      content: "";
      width: 14px;
      height: 14px;
      background: currentColor;
      -webkit-mask: var(--check-icon) center / contain no-repeat;
      mask: var(--check-icon) center / contain no-repeat;
    }

    .actions-row {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 32px;
    }

    .actions-row-center {
      justify-content: center;
    }

    .swipe-area {
      margin: 24px auto 0;
      width: min(calc(100vw - 40px), 300px);
      min-height: 0;
      display: grid;
      align-items: start;
      justify-items: center;
      position: relative;
    }

    .swipe-stack {
      position: relative;
      width: 100%;
      min-height: 0;
      display: grid;
      align-content: center;
      justify-items: center;
      overflow: visible;
    }

    .swipe-deck {
      position: relative;
      width: 100%;
      height: min(58svh, 600px);
    }

    .swipe-chevron {
      display: block;
      position: absolute;
      top: 50%;
      width: 22px;
      height: 22px;
      transform: translateY(-50%);
      color: rgba(255,255,255,0.35);
      background: currentColor;
      -webkit-mask: var(--icon) center / contain no-repeat;
      mask: var(--icon) center / contain no-repeat;
      pointer-events: none;
      z-index: 1;
    }

    .swipe-chevron.left {
      left: -48px;
    }

    .swipe-chevron.right {
      right: -48px;
      transform: translateY(-50%) scaleX(-1);
    }

    .swipe-hint {
      display: flex;
      align-items: center;
      justify-content: center;
      width: min(calc(100vw - 40px), 300px);
      margin: 32px auto 0;
      gap: 9px;
      color: rgba(255,255,255,0.62);
      font-size: 13px;
      font-weight: 300;
      line-height: 1;
      animation: hintSway 1.1s ease-in-out 3;
    }

    /* Desktop / tablette : cartes swipe elargies a 350px (mobile reste 300px) */
    @media (min-width: 681px) {
      .swipe-area,
      .swipe-hint {
        width: min(calc(100vw - 40px), 350px);
      }
    }

    @keyframes hintSway {
      0%, 100% {
        transform: translateX(0);
      }
      33% {
        transform: translateX(-7px);
      }
      66% {
        transform: translateX(7px);
      }
    }

    .svg-icon {
      width: 24px;
      height: 24px;
      display: block;
      background: currentColor;
      -webkit-mask: var(--icon) center / contain no-repeat;
      mask: var(--icon) center / contain no-repeat;
    }

    .swipe-hint .svg-icon {
      width: 18px;
      height: 18px;
      opacity: 0.82;
    }

    body.is-light .swipe-hint {
      color: rgba(18,18,18,0.58);
    }

    .swipe-card {
      width: 100%;
      height: 100%;
      touch-action: none;
      user-select: none;
      position: relative;
      transition: transform 280ms var(--ease), opacity 240ms ease;
      will-change: transform, opacity;
      backface-visibility: hidden;
      transform: translateZ(0);
      cursor: grab;
    }

    .swipe-card.is-dragging {
      cursor: grabbing;
      transition: none;
    }

    .swipe-card.is-next {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 0;
      width: auto;
      transform: translateY(0) scale(1);
      opacity: 0.55;
      pointer-events: none;
    }

    .swipe-card.is-active-card {
      position: relative;
      z-index: 2;
    }

    .swipe-card-inner {
      width: 100%;
      height: 100%;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 20px;
      background: var(--panel);
      display: grid;
      align-items: start;
      justify-items: center;
      padding: 34px 24px 88px;
      text-align: center;
      position: relative;
      overflow: hidden;
      transform: translateZ(0);
      transition: box-shadow 160ms ease;
    }

    .swipe-card[data-direction="yes"] .swipe-card-inner {
      box-shadow: 0 0 0 2px var(--gold), 0 0 28px rgba(176,155,96,0.5);
    }

    .swipe-card[data-direction="no"] .swipe-card-inner {
      box-shadow: 0 0 0 2px rgba(255,255,255,0.55), 0 0 28px rgba(255,255,255,0.2);
    }

    .swipe-card-inner::before {
      content: "";
      position: absolute;
      inset: -1px;
      background-image: var(--swipe-image);
      background-size: cover;
      background-position: center;
      opacity: 1;
      transform: none;
    }

    .swipe-card-inner::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.66) 24%, rgba(0,0,0,0.2) 48%, rgba(0,0,0,0) 72%),
        linear-gradient(0deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 28%, rgba(0,0,0,0) 52%);
    }

    .swipe-card-inner > * {
      position: relative;
      z-index: 1;
    }

    .swipe-card.is-accepted {
      opacity: 0;
      transform: translateX(118%) translateY(-10px) rotate(10deg) !important;
    }

    .swipe-card.is-rejected {
      opacity: 0;
      transform: translateX(-118%) translateY(-10px) rotate(-10deg) !important;
    }

    .swipe-card p {
      margin: 0;
      font-family: "LexendBelmont", LexendCF, Lexend, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 20px;
      font-weight: 400;
      line-height: 1.16;
      max-width: 92%;
      text-shadow: 0 2px 14px rgba(0,0,0,0.52);
    }

    .icon-button {
      width: 37px;
      height: 37px;
      font-size: 26px;
      border-radius: 999px;
      position: relative;
    }

    .swipe-card-inner > .swipe-corner-button .svg-icon {
      width: 27px;
      height: 27px;
    }

    .swipe-card-inner > .swipe-corner-button {
      position: absolute;
      top: auto;
      bottom: 22px;
      z-index: 2;
      opacity: 1;
      width: 60px;
      height: 60px;
      border-radius: 999px;
      box-shadow: 0 14px 30px rgba(0,0,0,0.28);
      transition: opacity 160ms ease;
    }

    .swipe-corner-button.swipe-corner-left {
      left: 14px;
    }

    .swipe-corner-button.swipe-corner-right {
      right: 14px;
    }

    .swipe-card[data-direction="yes"] .swipe-corner-button.reject,
    .swipe-card[data-direction="no"] .swipe-corner-button.accept {
      opacity: 0;
      pointer-events: none;
    }

    .icon-button.reject {
      color: #e4e4e4;
      border-color: rgba(255,255,255,0.28);
      background: rgba(18,18,18,0.55);
      backdrop-filter: blur(8px);
    }

    .icon-button.accept {
      color: #121212;
      border-color: var(--gold);
      background: var(--gold);
    }

    .icon-button.accept .svg-icon {
      background: #121212;
    }

    body.is-light .icon-button.accept .svg-icon {
      background: #ffffff;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
      margin-top: 40px;
    }

    .phone-field {
      display: flex;
      gap: 8px;
    }

    .country-select {
      position: relative;
      flex: 0 0 auto;
      width: 112px;
    }

    .country-search {
      width: 100%;
      padding-right: 24px;
      cursor: pointer;
    }

    .country-select::after {
      content: "";
      position: absolute;
      top: 50%;
      right: 12px;
      width: 6px;
      height: 6px;
      border-right: 1px solid var(--muted);
      border-bottom: 1px solid var(--muted);
      transform: translateY(-70%) rotate(45deg);
      pointer-events: none;
    }

    .country-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      width: 260px;
      max-height: 240px;
      overflow-y: auto;
      background: #1a1a1a;
      border: 1px solid rgba(255,255,255,0.13);
      z-index: 30;
    }

    .country-option {
      display: block;
      width: 100%;
      text-align: left;
      padding: 10px 14px;
      background: transparent;
      border: 0;
      color: var(--text);
      font-size: 13px;
    }

    .country-option:hover,
    .country-option:focus-visible {
      background: rgba(176,155,96,0.12);
      color: var(--gold);
    }

    .country-empty {
      padding: 10px 14px;
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

    .phone-field input {
      flex: 1 1 auto;
      min-width: 0;
    }

    .field {
      display: grid;
      gap: 8px;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    label {
      color: #d8d8d8;
      font-size: 13px;
    }

    input {
      width: 100%;
      min-height: 52px;
      border: 1px solid rgba(255,255,255,0.13);
      background: rgba(255,255,255,0.035);
      color: var(--text);
      padding: 14px 15px;
      outline: none;
      transition: border-color 180ms ease, background 180ms ease;
    }

    input:focus {
      border-color: rgba(176,155,96,0.8);
      background: rgba(176,155,96,0.055);
    }

    .error-message {
      min-height: 20px;
      color: var(--danger);
      font-size: 12px;
      margin-top: 12px;
    }

    .privacy {
      margin-top: 16px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }

    .hp-field {
      position: absolute;
      left: -9999px;
      top: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .confirmation {
      text-align: center;
    }

    .confirm-mark {
      width: 74px;
      height: 74px;
      border: 1px solid rgba(176,155,96,0.7);
      display: grid;
      place-items: center;
      margin: 0 auto 28px;
      animation: markIn 600ms var(--ease) both;
    }

    .confirm-mark::before {
      content: "";
      width: 18px;
      height: 32px;
      border-right: 2px solid var(--gold);
      border-bottom: 2px solid var(--gold);
      transform: rotate(45deg) translate(-2px, -3px);
    }

    @keyframes markIn {
      from {
        opacity: 0;
        transform: scale(0.82);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .snow-layer {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 30;
      overflow: hidden;
    }

    .snowflake {
      position: absolute;
      top: -12px;
      width: var(--size, 4px);
      height: var(--size, 4px);
      border-radius: 999px;
      background: rgba(255,255,255,0.9);
      opacity: 0;
      will-change: transform, opacity;
      animation: fall linear forwards;
    }

    @keyframes fall {
      0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
      }
      12% {
        opacity: var(--peak-opacity, 0.75);
      }
      88% {
        opacity: var(--peak-opacity, 0.75);
      }
      100% {
        transform: translate3d(var(--drift), 108vh, 0);
        opacity: 0;
      }
    }

    .dashboard-shell {
      display: none;
      width: 100%;
      max-height: 100svh;
      overflow: auto;
      z-index: 1;
      padding: 0 28px 40px;
      scrollbar-width: none;
    }

    .dashboard-shell::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

    .dashboard-shell.is-visible {
      display: block;
    }

    .dashboard-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: end;
      gap: 22px;
      margin-bottom: 22px;
      padding-bottom: 22px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .dashboard-header h1 {
      font-size: clamp(30px, 5vw, 46px);
      line-height: 1;
      max-width: none;
      display: block;
    }

    .dashboard-header .sublead {
      margin-left: 0;
    }

    .dashboard-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .dashboard-action {
      min-height: 42px;
      border: 1px solid rgba(176,155,96,0.65);
      color: var(--gold);
      background: rgba(176,155,96,0.06);
      text-decoration: none;
      padding: 11px 14px;
      font-size: 12px;
      line-height: 1;
      white-space: nowrap;
      transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
    }

    .dashboard-action:hover {
      background: rgba(176,155,96,0.13);
      border-color: rgba(176,155,96,0.9);
      transform: translateY(-1px);
    }

    .dashboard-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .dashboard-funnel-stats {
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .dashboard-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      border-bottom: 1px solid rgba(255,255,255,0.09);
    }

    .dashboard-tab {
      background: transparent;
      border: 0;
      border-bottom: 2px solid transparent;
      color: var(--muted);
      font-size: 13px;
      padding: 10px 4px 14px;
      margin-right: 20px;
      transition: color 180ms ease, border-color 180ms ease;
    }

    .dashboard-tab:hover {
      color: var(--text);
    }

    .dashboard-tab.is-active {
      color: var(--gold);
      border-bottom-color: var(--gold);
    }

    .dashboard-panel {
      display: none;
    }

    .dashboard-panel.is-active {
      display: block;
    }

    .stat-card {
      min-height: 86px;
      border: 1px solid rgba(255,255,255,0.09);
      background: rgba(255,255,255,0.025);
      padding: 14px 15px;
      display: grid;
      align-content: space-between;
      gap: 10px;
    }

    .stat-card span {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.25;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .stat-card strong {
      color: var(--text);
      font-size: 20px;
      line-height: 1.1;
      font-weight: 500;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .table-wrap {
      overflow-x: hidden;
      border: 1px solid rgba(255,255,255,0.09);
      background: rgba(255,255,255,0.022);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 0;
      table-layout: fixed;
    }

    th,
    td {
      padding: 14px 12px;
      border-bottom: 1px solid rgba(255,255,255,0.07);
      text-align: left;
      font-size: 11px;
      vertical-align: middle;
    }

    th:nth-child(1),
    td:nth-child(1) {
      width: 118px;
    }

    th:nth-child(2),
    td:nth-child(2) {
      width: 19%;
    }

    th:nth-child(3),
    td:nth-child(3) {
      width: 18%;
    }

    th:nth-child(4),
    td:nth-child(4),
    th:nth-child(5),
    td:nth-child(5),
    th:nth-child(8),
    td:nth-child(8),
    th:nth-child(9),
    td:nth-child(9) {
      width: 112px;
    }

    th:nth-child(6),
    td:nth-child(6),
    th:nth-child(7),
    td:nth-child(7) {
      width: 13%;
    }

    th {
      color: var(--gold);
      font-weight: 500;
      background: rgba(18,18,18,0.92);
      position: sticky;
      top: 0;
      z-index: 1;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-size: 10px;
    }

    td {
      color: #e4e4e4;
    }

    tbody tr {
      transition: background 160ms ease;
    }

    tbody tr:hover {
      background: rgba(176,155,96,0.045);
    }

    .client-cell {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .client-cell strong {
      color: var(--text);
      font-weight: 500;
      font-size: 13px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .client-cell span,
    .muted-cell {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .table-value {
      display: block;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    select {
      width: 100%;
      min-height: 34px;
      border: 1px solid rgba(255,255,255,0.12);
      background: #181818;
      color: var(--text);
      padding: 7px 6px;
      outline: none;
      font-size: 11px;
    }

    select:focus {
      border-color: rgba(176,155,96,0.8);
    }

    .detail-button {
      width: 100%;
      min-height: 34px;
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(255,255,255,0.025);
      color: var(--text);
      padding: 8px 6px;
      font-size: 11px;
      white-space: nowrap;
      transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
    }

    .detail-button:hover {
      border-color: rgba(176,155,96,0.7);
      background: rgba(176,155,96,0.09);
      color: var(--gold);
    }

    .empty-row td {
      padding: 34px 16px;
      color: var(--muted);
      text-align: center;
    }

    .detail-panel {
      margin-top: 14px;
      border: 1px solid rgba(176,155,96,0.22);
      background: rgba(255,255,255,0.028);
      padding: 24px;
      display: none;
    }

    .detail-panel.is-visible {
      display: block;
      animation: screenIn 320ms var(--ease) both;
    }

    .detail-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
    }

    .detail-header h2 {
      font-size: 28px;
      max-width: none;
      display: block;
      text-align: left;
      margin: 0;
    }

    .detail-close {
      width: 34px;
      height: 34px;
      border: 0;
      background: transparent;
      color: var(--muted);
      display: grid;
      place-items: center;
      transition: color 180ms ease, transform 180ms ease;
      flex: 0 0 auto;
    }

    .detail-close:hover {
      color: var(--gold);
      transform: translateY(-1px);
    }

    .detail-close .svg-icon {
      width: 18px;
      height: 18px;
    }

    .detail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 18px;
    }

    .detail-columns {
      display: grid;
      grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
      gap: 28px;
      margin-top: 18px;
    }

    .detail-section h3 {
      margin: 0 0 10px;
      color: var(--gold);
      font-size: 12px;
      font-weight: 400;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .detail-section .detail-grid {
      grid-template-columns: 1fr;
      margin-top: 0;
    }

    .detail-item {
      border-top: 1px solid rgba(255,255,255,0.09);
      padding-top: 12px;
    }

    .detail-item strong {
      display: block;
      color: var(--gold);
      font-weight: 400;
      font-size: 12px;
      margin-bottom: 6px;
    }

    .detail-item span {
      color: #e8e8e8;
      line-height: 1.5;
      font-size: 13px;
    }

    @media (max-width: 680px) {
      .app-shell {
        padding: 0 14px;
        place-items: start stretch;
      }

      .belmont-app {
        height: 100svh;
        min-height: 0;
        align-items: stretch;
        padding-top: 84px;
        padding-bottom: 70px;
      }

      .mode-link {
        display: none;
      }

      .topbar {
        top: 0;
        padding: 12px 12px 0;
      }

      .topbar-header {
        grid-template-columns: 92px 1fr 92px;
      }

      .topbar-left {
        gap: 8px;
      }

      .topbar-logo {
        width: 78px;
      }

      .progress-count {
        font-size: 10px;
      }

      .back-button,
      .snow-toggle {
        width: 36px;
        height: 36px;
      }

      .screen {
        padding-top: 14px;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      .screen-swipe {
        overflow: hidden;
      }

      .screen.is-active {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
      }

      .intro {
        min-height: 0;
        padding: 0 18px;
      }

      .screen.intro.is-active {
        justify-content: center;
      }

      .logo {
        width: min(70vw, 160px);
        margin: 0 auto 28px;
      }

      h1 {
        font-size: clamp(20px, 9vw, 32px);
      }

      .powered-by {
        left: 50%;
        right: auto;
        bottom: 5px;
        transform: translateX(-50%);
        min-height: auto;
        padding: 0;
        background: transparent;
        border: none;
        color: var(--muted);
        font-size: 10px;
        font-weight: 400;
        opacity: 0.82;
        gap: 5px;
      }

      .powered-by:hover {
        color: var(--muted);
        filter: none;
      }

      .powered-logo {
        width: 48px;
        filter: grayscale(1);
      }

      h2 {
        font-size: clamp(22px, 6vw, 25px);
        line-height: 1.2;
      }

      .question-title {
        font-size: clamp(17px, 6vw, 20px);
      }

      .question-kicker {
        margin-bottom: 14px;
      }

      .lead {
        font-size: 14px;
        line-height: 1.55;
      }

      .answers,
      .multi-grid {
        margin-top: 20px;
      }

      .answer-card,
      .multi-option {
        min-height: 52px;
        padding: 13px 14px;
        font-size: 16px;
      }

      .answer-icon {
        width: 18px;
        height: 18px;
      }

      .swipe-area {
        min-height: 0;
        flex: 1;
        margin-top: 32px;
        align-content: stretch;
        align-items: stretch;
      }

      .swipe-stack {
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
      }

      .swipe-deck {
        flex: 1;
        height: auto;
        min-height: 0;
      }

      .swipe-chevron {
        display: none;
      }

      .swipe-card-inner {
        padding: 34px 20px 88px;
      }

      .swipe-card.is-next {
        top: 0;
        left: 0;
        right: 0;
        transform: translateY(0) scale(1);
      }

      .swipe-card p {
        font-size: 18px;
      }

      .swipe-hint {
        width: 100%;
        margin-top: 32px;
        gap: 8px;
        font-size: 12px;
      }

      .swipe-hint .svg-icon {
        width: 17px;
        height: 17px;
      }

      .icon-button {
        width: 33px;
        height: 33px;
      }

      .icon-button .svg-icon {
        width: 23px;
        height: 23px;
      }

      .contact-grid,
      .detail-grid,
      .detail-columns {
        grid-template-columns: 1fr;
      }

      .actions-row {
        justify-content: stretch;
      }

      .primary-button,
      .ghost-button {
        width: 100%;
      }

      .dashboard-header {
        display: grid;
      }

      .dashboard-shell {
        max-height: 100svh;
        padding: 0 0 42px;
      }

      .dashboard-header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
      }

      .dashboard-actions,
      .dashboard-action {
        width: 100%;
      }

      .dashboard-action {
        display: grid;
        place-items: center;
      }

      .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .stat-card {
        min-height: 76px;
        padding: 12px;
      }

      .stat-card strong {
        font-size: 17px;
      }

      .table-wrap {
        overflow-x: auto;
      }

      table {
        min-width: 860px;
      }
    }

    @media (max-height: 740px) {

      .powered-by {
        bottom: 5px;
      }
    }

    button:focus-visible,
    a:focus-visible,
    select:focus-visible {
      outline: 1px solid var(--gold);
      outline-offset: 3px;
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      .snowflake {
        display: none;
      }
    }
  

/*
  Compléments communs formulaires : AMO + overrides Collection.
*/
.top-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(18,18,18,0.72);
  backdrop-filter: blur(16px);
}

.top-link:hover {
  color: var(--gold);
  border-color: rgba(176,155,96,0.55);
}

.step-jump {
  position: fixed;
  right: 118px;
  bottom: 18px;
  z-index: 20;
  width: 156px;
  height: 38px;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(18,18,18,0.72);
  backdrop-filter: blur(16px);
}

.form-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 84px 18px 76px;
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px 20px 0;
}

/* AMO (.page-shell) : la topbar est toujours visible — la base Collection la met en display:none
   et l'AMO n'utilise pas la classe .is-visible */
.page-shell .topbar {
  display: block;
}

.topbar-header {
  display: grid;
  grid-template-columns: 112px 1fr 112px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--gold);
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, opacity 180ms ease, color 180ms ease;
}

.back-button:hover {
  transform: translateX(-2px);
}

.back-button.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.progress-count {
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.topbar-logo {
  width: 102px;
  height: auto;
  display: block;
  justify-self: center;
}

.svg-icon {
  width: 24px;
  height: 24px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.back-button .svg-icon {
  width: 19px;
  height: 19px;
}

.logo {
  width: 106px;
  height: auto;
  display: block;
  margin: 0 auto 22px;
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(255,255,255,0.12);
  z-index: 11;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gold);
  transition: width 600ms var(--ease);
}

.powered-by {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 18px;
  transform: none;
  z-index: 20;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.85;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 16px;
  background: transparent;
  border: 0;
  transition: opacity 180ms ease;
}

.powered-by:hover {
  color: var(--muted);
  opacity: 1;
}

.powered-logo {
  width: 60px;
  height: auto;
  display: block;
  filter: grayscale(1);
  opacity: 1;
}

/* legacy duplicate .screen rule removed here (was overriding mobile flex layout via cascade) */

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 auto;
  max-width: 620px;
  font-family: "ItalianaBelmont", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
}

h1 {
  font-size: clamp(38px, 8vw, 62px);
}

h2 {
  font-size: clamp(28px, 5vw, 42px);
}

.question-title {
  font-family: "LexendBelmont", LexendCF, Lexend, Inter, sans-serif;
  font-size: clamp(20px, 4vw, 25px);
  line-height: 1.28;
  font-weight: 400;
}

.lead {
  margin: 18px auto 0;
  max-width: 620px;
  color: #d8d8d8;
  line-height: 1.7;
  font-size: 15px;
  font-weight: 300;
}

.sublead {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  font-weight: 300;
}

.nowrap-desktop {
  white-space: nowrap;
}

.answers,
.field-stack {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.answer-card,
.scale-button,
.primary-button,
.ghost-button {
  min-height: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(24,24,24,0.82);
  color: var(--text);
  padding: 14px 18px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.answer-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkbox-mark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid rgba(255,255,255,0.28);
  display: grid;
  place-items: center;
  color: #121212;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.answer-card.is-selected .checkbox-mark {
  border-color: var(--gold);
  background: var(--gold);
}

.answer-card.is-selected .checkbox-mark::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--check-icon) center / contain no-repeat;
  mask: var(--check-icon) center / contain no-repeat;
}

.answer-card.is-selected,
.scale-button.is-selected {
  border-color: rgba(176,155,96,0.72);
  background: rgba(176,155,96,0.1);
}

@media (hover: hover) {
  .answer-card:hover,
  .scale-button:hover {
    border-color: rgba(176,155,96,0.72);
    background: rgba(176,155,96,0.1);
  }
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  margin-top: 32px;
}

.scale-button {
  min-height: 48px;
  padding: 0;
  text-align: center;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.answer-gauge {
  width: 28px;
  min-width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: end;
  gap: 2px;
}

.answer-gauge-bar {
  width: 4px;
  height: 8px;
  border: 1px solid rgba(176,155,96,0.44);
}

.answer-gauge-bar:nth-child(2) {
  height: 11px;
}

.answer-gauge-bar:nth-child(3) {
  height: 14px;
}

.answer-gauge-bar:nth-child(4) {
  height: 17px;
}

.answer-gauge-bar:nth-child(5) {
  height: 20px;
}

.answer-gauge-bar:nth-child(6) {
  height: 23px;
}

.answer-gauge-bar.is-filled {
  background: var(--gold);
  border-color: var(--gold);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  text-align: left;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

label {
  color: #d8d8d8;
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  background: rgba(18,18,18,0.72);
  color: var(--text);
  padding: 13px 14px;
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(176,155,96,0.7);
  outline: none;
}

.actions-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.ghost-button {
  text-align: center;
  border-color: var(--gold);
  padding: 14px 26px;
}

.primary-button {
  background: var(--gold);
  color: #121212;
}

.ghost-button {
  background: transparent;
  color: var(--gold);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.primary-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.error-message {
  min-height: 20px;
  margin: 18px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.confirmation {
  padding: 30px 0;
}

.confirm-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border: 1px solid var(--gold);
  position: relative;
}

.confirm-mark::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 18px;
  height: 28px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(40deg);
}

/*
  Styles communs Accès privé FR/EN.
  Modifier ici pour appliquer aux deux versions du formulaire Collection.
*/

.swipe-card-inner {
  align-items: start;
  padding: 34px 24px 88px;
}

.swipe-card-inner::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.66) 24%, rgba(0,0,0,0.2) 48%, rgba(0,0,0,0) 72%),
    linear-gradient(0deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 28%, rgba(0,0,0,0) 52%);
}

.swipe-card p {
  max-width: min(92%, 20ch);
  font-size: 20px;
  line-height: 1.16;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-shadow: 0 2px 14px rgba(0,0,0,0.52);
}

.swipe-card-inner > .swipe-corner-button {
  top: auto;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.swipe-corner-button.swipe-corner-left {
  left: 14px;
}

.swipe-corner-button.swipe-corner-right {
  right: 14px;
}

.answer-label-text,
.multi-option span:last-child,
.question-title {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

@media (max-width: 760px) {
  .form-shell {
    padding: 72px 18px 84px;
    align-items: start;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .scale-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nowrap-desktop {
    white-space: normal;
  }

  .topbar {
    padding: 16px 14px 0;
  }

  .topbar-header {
    grid-template-columns: 92px 1fr 92px;
  }

  .topbar-logo {
    width: 78px;
  }

  .powered-by {
    left: 50%;
    right: auto;
    bottom: 5px;
    transform: translateX(-50%);
  }

  .actions-row {
    flex-direction: column;
  }

  .swipe-card-inner {
    padding: 34px 20px 88px;
  }

  .swipe-card p {
    font-size: 18px;
    max-width: min(92%, 19ch);
  }
}

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