/* Outils d'aide à la décision (2.10) : calendrier VEFA, comparateur, « Mon projet en 60 secondes ».
   Les fenêtres reprennent .doc-dialog (main.css). */

/* ---------- Calendrier des paiements VEFA (fiche programme) ---------- */
.vefa__pick { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 6px; }
.vefa__pick .field select, .vefa__pick .field input { background: var(--lc-sky); }
.vefa__eur { position: relative; display: block; }
.vefa__eur input { width: 100%; padding-right: 40px; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.vefa__eur span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--lc-ink-soft); pointer-events: none; }
.vefa__bar { display: flex; gap: 3px; margin-top: 26px; height: 34px; border-radius: 999px; overflow: hidden; }
.vefa__bar span { display: grid; place-items: center; min-width: 0; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--lc-blue); white-space: nowrap; overflow: hidden; }
.vefa__bar span:nth-child(1), .vefa__bar span:nth-child(5) { background: var(--lc-mint); color: var(--lc-mint-ink); }
.vefa__bar span:nth-child(3) { background: #0a4f8f; }
.vefa__steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.vefa__step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 20px; align-items: start; padding: 18px 0; border-top: 1px solid var(--lc-mist-2); }
.vefa__pct { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lc-sky); color: var(--lc-blue); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.vefa__step--info .vefa__pct { background: transparent; border: 1.5px dashed var(--lc-line); }
.vefa__step--info .vefa__pct::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lc-line); }
.vefa__txt h3 { font-size: 17px; font-weight: 700; font-family: inherit !important; }
.vefa__txt p { margin-top: 4px; font-size: 15px; color: var(--lc-ink-soft); max-width: 58ch; }
.vefa__amt { display: grid; justify-items: end; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.vefa__amt b { font-size: 19px; color: var(--lc-ink); white-space: nowrap; }
.vefa__amt > span { font-size: 13px; color: var(--lc-ink-soft); white-space: nowrap; }
@media (max-width: 700px) {
  .vefa__pick { grid-template-columns: minmax(0, 1fr); }
  .vefa__bar { height: 28px; }
  .vefa__bar span { font-size: 11px; }
  .vefa__step { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; }
  .vefa__pct { width: 44px; height: 44px; font-size: 13px; }
  .vefa__amt { grid-column: 2; justify-items: start; text-align: left; margin-top: 6px; }
}

/* ---------- Comparateur ---------- */
.lot-row__acts { display: inline-flex; align-items: center; gap: 8px; justify-self: end; }
.lot-cmp {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--lc-line); background: #fff; color: var(--lc-ink-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color 200ms var(--lc-ease), color 200ms var(--lc-ease), border-color 200ms var(--lc-ease);
}
.lot-cmp svg { width: 16px; height: 16px; flex: none; }
.lot-cmp[aria-pressed="true"] { background: var(--lc-mint); border-color: var(--lc-mint); color: var(--lc-mint-ink); }
.lot-cmp:focus-visible { outline: 2px solid var(--lc-blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lot-cmp:hover { border-color: var(--lc-blue); color: var(--lc-blue); } .lot-cmp[aria-pressed="true"]:hover { color: var(--lc-mint-ink); } }
.lot-cmp--card { justify-self: start; }
.lot .lot-cmp--card { margin-top: 2px; }
@media (max-width: 700px) {
  /* Téléphone : surface et prix, détail, puis les deux boutons sur leur propre ligne. */
  .lot-rows .lot-row { grid-template-areas: 'size price' 'detail detail' 'ask ask'; }
  /* Les deux boutons se partagent la ligne, en cibles tactiles de 44 px. */
  .lot-row__acts { grid-area: ask; justify-self: stretch; display: flex; gap: 8px; margin-top: 8px; }
  .lot-row .lot-row__acts .lot-row__ask { grid-area: auto; }
  .lot-row .lot-row__acts > * { flex: 1; justify-content: center; min-height: 44px; padding: 0 12px; }
}

.cmp-tray {
  position: fixed; left: max(var(--lc-gutter), env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: var(--lc-z-nav);
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: var(--lc-ink); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px -12px rgba(4, 31, 58, 0.55); animation: cmp-in 360ms var(--lc-ease);
}
.cmp-tray[hidden] { display: none; }
@keyframes cmp-in { from { opacity: 0; transform: translateY(16px); } }
.cmp-tray__open { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 6px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.cmp-tray__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lc-mint); color: var(--lc-mint-ink); font-weight: 700; }
.cmp-tray__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.cmp-tray__open:focus-visible, .cmp-tray__x:focus-visible { outline: 2px solid var(--lc-mint); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .cmp-tray__open:hover { background: rgba(255, 255, 255, 0.08); } .cmp-tray__x:hover { background: rgba(255, 255, 255, 0.22); } }
.cmp-tray__msg { position: absolute; left: 0; bottom: calc(100% + 10px); width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--lc-ink); font-size: 14px; box-shadow: var(--lc-shadow-soft); }
body:has(.mobile-bar.is-shown) .cmp-tray { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px); }
.menu-open .cmp-tray { display: none; }

.cmp-dialog { width: min(920px, calc(100vw - 24px)); }
.cmp-dialog h2 { margin: 4px 48px 18px 0; }
.cmp-table { overflow-x: auto; border-radius: 16px; background: #fff; border: 1px solid var(--lc-mist-2); overscroll-behavior-x: contain; }
.cmp-table:focus-visible { outline: 2px solid var(--lc-blue); outline-offset: 2px; }
.cmp-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--lc-mist-2); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th { background: var(--lc-sky); min-width: 168px; }
.cmp-table thead th:first-child, .cmp-table tbody th { position: sticky; left: 0; z-index: 1; min-width: 118px; width: 118px; background: #fff; font-size: 13px; font-weight: 600; color: var(--lc-ink-soft); }
.cmp-table thead th:first-child { background: var(--lc-sky); }
.cmp-table td { font-variant-numeric: tabular-nums; }
.cmp-col__type { display: block; font-family: var(--lc-font-display) !important; font-size: 19px; font-weight: 400; color: var(--lc-ink); }
.cmp-col__x { margin-top: 4px; padding: 4px 0; border: 0; background: none; color: var(--lc-blue); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cmp-best { display: block; margin-top: 4px; width: fit-content; padding: 2px 8px; border-radius: 999px; background: var(--lc-mint); color: var(--lc-mint-ink); font-style: normal; font-size: 12px; font-weight: 700; }
.cmp-hint { padding: 12px 14px; font-size: 14px; color: var(--lc-ink-soft); border-top: 1px solid var(--lc-mist-2); }
.cmp-dialog .prog-note { margin-top: 12px; }
/* Téléphone : colonne des libellés plus étroite, pour voir un logement entier à côté sans glisser. */
@media (max-width: 480px) {
  .cmp-table thead th:first-child, .cmp-table tbody th { min-width: 92px; width: 92px; padding-inline: 10px; }
  .cmp-table thead th { min-width: 150px; }
  .cmp-col__x { min-height: 40px; }
}

/* ---------- « Mon projet en 60 secondes » ---------- */
.p60 { width: min(640px, calc(100vw - 24px)); }
.p60__head { display: grid; gap: 12px; padding-right: 48px; margin-bottom: 20px; }
.p60__progress { height: 6px; border-radius: 999px; background: var(--lc-mist-2); overflow: hidden; }
.p60__progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lc-blue); transition: width 400ms var(--lc-ease); }
.p60__q { margin: 0; padding: 0; border: 0; min-width: 0; }
.p60__q[hidden] { display: none; }
.p60__q legend { padding: 0; margin-bottom: 6px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.p60__hint { font-size: 14px; margin-bottom: 4px; }
.p60__opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.p60__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p60__opts label {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--lc-mist-2);
  background: #fff; font-weight: 600; font-size: 15.5px; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background-color 200ms var(--lc-ease), border-color 200ms var(--lc-ease), color 200ms var(--lc-ease), transform 160ms var(--lc-ease);
}
.p60__opts input:checked + label { background: var(--lc-blue); border-color: var(--lc-blue); color: #fff; }
.p60__opts input:focus-visible + label { outline: 2px solid var(--lc-blue); outline-offset: 2px; }
.p60__opts label:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .p60__opts input:not(:checked) + label:hover { border-color: var(--lc-blue); color: var(--lc-blue); } }
.p60__q.is-shake .p60__opts { animation: p60-shake 360ms var(--lc-ease); }
@keyframes p60-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.p60__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.p60__nav [data-p60-next] { margin-left: auto; }
.p60__nav [hidden] { display: none; }
.p60__result { display: grid; gap: 14px; outline: none; }
.p60__result[hidden] { display: none; }
.p60__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.p60-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--lc-mist-2); color: inherit; text-decoration: none; transition: border-color 200ms var(--lc-ease), box-shadow 200ms var(--lc-ease); }
.p60-card img, .p60-card__ph { width: 96px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--lc-sky); }
.p60-card__txt { display: grid; gap: 1px; min-width: 0; }
.p60-card__name { font-weight: 700; font-size: 16.5px; color: var(--lc-ink); }
.p60-card__tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--lc-mint); color: var(--lc-mint-ink); font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.p60-card__city, .p60-card__liv { font-size: 13.5px; color: var(--lc-ink-soft); }
.p60-card__match { font-size: 14.5px; font-weight: 600; color: var(--lc-blue); }
.p60-card:focus-visible { outline: 2px solid var(--lc-blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .p60-card:hover { border-color: var(--lc-blue); box-shadow: var(--lc-shadow-soft); } }
.p60__contact { display: grid; gap: 6px; margin-top: 10px; padding: 20px; border-radius: 20px; background: var(--lc-sky); }
.p60__contact .form { margin-top: 10px; }
.p60__restart { justify-self: start; border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 600; color: var(--lc-blue); cursor: pointer; }
@media (max-width: 560px) {
  .p60__opts label { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .p60-card { grid-template-columns: 72px minmax(0, 1fr); }
  .p60-card img, .p60-card__ph { width: 72px; height: 60px; }
}

/* Bande d'appel (bloc LC Studio, accueil et catalogue). */
.p60-band__in {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: clamp(24px, 3vw, 36px); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1f7fd1 0%, var(--lc-blue) 42%, #04305a 100%);
}
.p60-band__in .eyebrow, .p60-band__in .h2 { color: #fff; }
.p60-band__in .h2 em { color: var(--lc-mint); }
.p60-band__lead { margin-top: 16px; color: rgba(255, 255, 255, 0.86); }
.p60-band__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: p60; }
.p60-band__steps li { counter-increment: p60; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-weight: 600; font-size: 14.5px; }
.p60-band__steps li::before { content: counter(p60); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--lc-blue); font-size: 12.5px; font-weight: 700; }
@media (max-width: 1024px) { .p60-band__in { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .cmp-tray { animation: none; }
  .p60__progress i, .p60__opts label, .lot-cmp { transition: none; }
  .p60__q.is-shake .p60__opts { animation: none; }
}
