/* Bailleur, app web au style « crème, bleu nuit et or » (maquette)
   Utilisé par app-or.html et par l'aperçu de la page de vente. */

.app { position: relative; isolation: isolate; overflow: hidden; background: var(--cream); color: var(--ink); font-size: 15px; line-height: 1.45; }
.app > .arches { width: 760px; height: 760px; right: -260px; top: -300px; opacity: .3; z-index: -1; }

/* Barre du haut */
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px 0; }
.a-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.a-brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--float); }
.a-brand span { font-family: var(--serif); font-size: 23px; font-weight: 420; letter-spacing: -.02em; }
.a-nav { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1); box-shadow: inset 0 0 0 1px var(--edge), var(--float); }
.a-nav a { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--muted); text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease); }
.a-nav a:hover { color: var(--ink); }
.a-nav:not(.glide-on) a:hover { background: var(--navy-soft); }
.a-nav { --glide-r: 999px; --glide-bg: rgba(20,26,46,.06); }
.a-nav a[aria-current="page"] { background: var(--navy); color: #fff; box-shadow: var(--press); }
.a-nav .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: var(--coral-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.a-tools { display: flex; align-items: center; gap: 8px; }
.a-icon { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px var(--edge), var(--float); color: var(--ink-2); border: 0; cursor: pointer; }
.a-icon:hover { background: var(--paper); }
.a-duo { display: flex; padding-left: 4px; }
.a-duo span { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 3px var(--cream); }
.a-duo span + span { margin-left: -10px; }
.a-duo .p1 { background: #E4E7F1; color: var(--ink-2); } .a-duo .p2 { background: #F1E6CF; color: var(--gold-text); }

/* En-tête de page */
.a-main { padding: 34px 28px 32px; }
.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.a-head h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; margin: 0; }
.a-head p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.a-head p b { color: var(--ink); font-weight: 650; }
.a-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* Grille */
.a-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.a-card { background: var(--paper); border-radius: 26px; box-shadow: inset 0 0 0 1px var(--line), var(--lift); padding: 22px; }
.a-card h2 { font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -.015em; margin: 0; }
.a-card .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.a-card .h a { font-size: 14px; font-weight: 650; color: var(--gold-text); text-decoration: none; }
.a-card .h a:hover { text-decoration: underline; }

/* Carte du mois sur photo */
.a-month { position: relative; border-radius: 28px; overflow: hidden; color: #fff; min-height: 330px; padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--lift); }
.a-month > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-month::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(14,18,36,.86) 0%, rgba(14,18,36,.55) 50%, rgba(14,18,36,.18) 100%); }
.a-month > *:not(img) { position: relative; z-index: 2; }
.a-month .lbl { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.82); display: flex; align-items: center; gap: 10px; }
.a-month .amt { font-family: var(--serif); font-weight: 340; font-size: clamp(48px, 5vw, 68px); letter-spacing: -.03em; line-height: 1; margin-top: 10px; }
.a-month .amt em { font-style: italic; color: var(--gold-light); font-size: .55em; font-weight: 340; letter-spacing: -.01em; }
.a-month .of { margin-top: 8px; color: rgba(255,255,255,.82); font-size: 15px; }
.a-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.18); margin: 16px 0 0; max-width: 340px; overflow: hidden; }
.a-bar i { display: block; height: 100%; width: 83%; border-radius: inherit; background: var(--gold-light); }
.a-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.a-tile { border-radius: 18px; padding: 11px 15px; min-width: 118px; }
.a-tile b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.a-tile span { font-size: 12.5px; font-weight: 600; opacity: .85; white-space: nowrap; }
/* Tuiles en verre dépoli ; l'état est dit par une pastille douce devant le chiffre */
.a-tile { background: rgba(255,255,255,.13); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), inset 0 1px 0 rgba(255,255,255,.18); color: #fff; }
.a-tile span { opacity: .78; }
.a-tile b { display: flex; align-items: center; gap: 8px; }
.a-tile.ok b::before, .a-tile.warn b::before { content: ""; width: 8px; height: 8px; border-radius: 999px; flex: none; }
.a-tile.ok b::before { background: #9ED7B2; box-shadow: 0 0 0 3px rgba(158,215,178,.22); }
.a-tile.warn b::before { background: #EFCB8A; box-shadow: 0 0 0 3px rgba(239,203,138,.22); }

/* Liste « À traiter » */
.a-rows { display: flex; flex-direction: column; margin: 0 -8px; }
.a-row { display: flex; align-items: center; gap: 13px; padding: 11px 8px; border-radius: 16px; text-decoration: none; color: var(--ink); transition: background .2s var(--ease); }
.a-row + .a-row { box-shadow: inset 0 1px 0 var(--line); }
.a-rows { --glide-r: 16px; --glide-bg: rgba(20,26,46,.045); }
.a-rows:not(.glide-on) .a-row:hover { background: var(--paper-2); }
.a-row > div { flex: 1; min-width: 0; }
.a-row strong { display: block; font-weight: 650; font-size: 15px; }
.a-row small { color: var(--muted); font-size: 13.5px; }
.a-row .chev { color: var(--faint); width: 16px; height: 16px; }

/* Logements */
.a-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 34px 0 14px; }
.a-sec h2 { font-family: var(--serif); font-weight: 380; font-size: 27px; letter-spacing: -.02em; margin: 0; }
.a-sec h2 em { font-style: italic; color: var(--gold-text); font-weight: 340; }
.a-sec a { font-size: 14px; font-weight: 650; color: var(--gold-text); text-decoration: none; }
.a-homes { --car-gap: 16px; padding-block: 10px 14px; margin-block: -10px -14px; padding-inline: 2px; }
.a-homes > .a-home { width: calc((100% - 3 * 16px) / 4); }
.a-sec .car-nav a { margin-right: 6px; }
.a-sec .car-nav .car-btn { width: 36px; height: 36px; }
.a-home { background: var(--paper); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line), var(--float); overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.a-home:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--lift); }
.a-home .ph { aspect-ratio: 4 / 3; position: relative; }
.a-home .ph img { width: 100%; height: 100%; object-fit: cover; }
.a-home .ph .badge { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.a-home .tx { padding: 14px 16px 16px; }
.a-home .tx b { display: block; font-family: var(--serif); font-weight: 420; font-size: 19px; letter-spacing: -.015em; }
.a-home .tx span { color: var(--muted); font-size: 13.5px; }
.a-home .ft { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--line); font-size: 14px; font-weight: 650; }

/* Encaissements et échéances */
.a-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
table.a-tab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.a-tab th { text-align: left; font-size: 12.5px; font-weight: 650; color: var(--faint); padding: 6px 8px 10px; }
.a-tab td { padding: 12px 8px; box-shadow: inset 0 1px 0 var(--line); }
.a-tab tbody tr { cursor: pointer; }
.a-card.glide-on { --glide-r: 12px; --glide-bg: rgba(20,26,46,.04); }
.a-tab td.n, .a-tab th.n { text-align: right; }
.a-tab td b { font-weight: 650; }
.a-tab td small { display: block; color: var(--muted); font-size: 13px; }
.a-time { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.a-time::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 1px; background: var(--gold-line); }
.a-time li { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; position: relative; }
.a-time .d { width: 52px; flex: none; text-align: center; background: var(--paper); position: relative; }
.a-time .d b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; }
.a-time .d span { font-size: 11.5px; font-weight: 650; color: var(--gold-text); text-transform: uppercase; letter-spacing: .06em; }
.a-time strong { display: block; font-weight: 650; font-size: 15px; }
.a-time small { color: var(--muted); font-size: 13.5px; }

/* Dock mobile */
.a-dock { display: none; }

@media (max-width: 1100px) {
  .a-homes > .a-home { width: calc((100% - 2 * 16px) / 2.6); }
  .a-nav a { padding: 0 12px; }
}
@media (max-width: 860px) {
  .a-nav { display: none; }
  .app > .arches { opacity: .14; width: 560px; height: 560px; right: -300px; top: -260px; }
  .a-top { padding: 14px 16px 0; }
  .a-main { padding: 22px 16px 120px; }
  .a-head { flex-direction: column; align-items: flex-start; }
  .a-grid, .a-two { grid-template-columns: 1fr; }
  .a-month { min-height: 290px; padding: 20px; }
  .a-tile { min-width: 0; flex: 1; padding: 10px 12px; }
  .a-tile b { font-size: 18px; }
  .a-tile span { font-size: 11.5px; }
  .a-dock { display: flex; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; gap: 2px; padding: 6px;
    border-radius: 999px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
    box-shadow: inset 0 0 0 1px var(--edge), var(--window); }
  .a-dock a { width: 58px; height: 52px; border-radius: 999px; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 650; }
  .a-dock a[aria-current="page"] { background: var(--navy); color: #fff; }
  .a-dock svg.i { width: 21px; height: 21px; }
  .a-tab .hide-s { display: none; }
  .a-tab th:last-child, .a-tab td:last-child { display: none; }
  .a-tab td.n { white-space: nowrap; }
}
@media (max-width: 520px) {
  .a-homes { --car-gap: 12px; }
  .a-homes > .a-home { width: 72%; }
  .a-sec .car-nav .car-btn { display: none; }
  .a-home .tx { padding: 11px 12px 12px; }
  .a-home .tx b { font-size: 16.5px; }
  .a-home .ft { font-size: 13px; }
  .a-acts .btn-paper { display: none; }
  .a-brand span { font-size: 21px; }
}
