/* « Nuit » · cartes d'annonces (recherche, villes, sélection, à deux), pages villes, Ma sélection, Choisir à deux.
   Presque noir, blanc chaud, filets à 12 %, rayons de 3 à 6 px, bleu réservé au cœur gardé et à l'action principale. */

/* ---------- la carte d'annonce : photo 4/5, zoom lent, plusieurs photos ---------- */
.rc { position: relative; color: var(--n-fg); min-width: 0; }
.rc.hide { display: none; }
.rc-a { display: block; }
.rc-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; overflow: clip; border-radius: 3px; background: var(--n-bg-3); isolation: isolate; transition: box-shadow .4s; }
.rc-img::after { content: ""; position: absolute; inset: 0 0 auto; height: 34%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10,10,11,.42), rgba(10,10,11,0)); }
.rc-track { position: absolute; inset: 0; display: block; }
.rc-track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1; transition: opacity .55s cubic-bezier(.45,0,.2,1), scale 2.6s var(--n-ease); }
.rc-track img:first-child { opacity: 1; }
.rc-img[data-i="1"] .rc-track img:nth-child(2), .rc-img[data-i="2"] .rc-track img:nth-child(2), .rc-img[data-i="2"] .rc-track img:nth-child(3) { opacity: 1; }
.rc-a:hover .rc-track img, .rc-a:focus-visible .rc-track img { scale: 1.065; }
.rc-seg { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 6px; opacity: 0; transition: opacity .45s; }
.rc-seg i { width: 26px; height: 1.5px; background: rgba(255,255,255,.38); transition: background .3s; }
.rc-seg i.on { background: var(--n-fg); }
.rc-a:hover .rc-seg { opacity: 1; }
.rc-flag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 9px 5px; border-radius: 3px; background: rgba(10,10,11,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; font-weight: 560; line-height: 1.2; color: var(--n-fg); }
.rc-meta { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; }
.rc-city { margin: 0; min-width: 0; font-family: var(--sans); font-stretch: 112%; font-size: clamp(17px, 1.3vw, 21px); font-weight: 520; line-height: 1.2; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-p { margin-left: auto; font-size: 15.5px; font-weight: 560; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-f { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--n-fg-3); }
.rc-f i { font-style: normal; opacity: .6; }
.rc-save { position: absolute; top: 10px; right: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,10,11,.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--n-fg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background .3s, box-shadow .3s, transform .5s var(--n-ease); }
.rc-save:hover { background: rgba(10,10,11,.72); }
.rc-save .ic { width: 18px; height: 18px; }
.rc-save[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: none; }
.rc-save[aria-pressed="true"] .ic path { fill: currentColor; }
.rc-save.pop { animation: rc-pop .55s var(--n-ease); }
@keyframes rc-pop { 40% { transform: scale(1.22); } }
.rc.is-hi .rc-img { box-shadow: 0 0 0 1px var(--n-fg); }
/* apparition des cartes */
.js .rc.rc--wait { opacity: 0; transform: translate3d(0, 38px, 0); }
.js .rc.rc--wait.is-in { opacity: 1; transform: none; transition: opacity .9s var(--n-ease) var(--d, 0s), transform 1.25s var(--n-ease) var(--d, 0s); }
.reduce .rc.rc--wait { opacity: 1; transform: none; }
/* au doigt : les photos glissent dans la carte */
@media (hover: none) {
  .rc-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .rc-track::-webkit-scrollbar { display: none; }
  .rc-track img { position: relative; flex: 0 0 100%; opacity: 1; scroll-snap-align: start; scroll-snap-stop: always; }
  .rc-seg { opacity: 1; left: 14px; bottom: 14px; }
  .rc-seg i { width: 18px; }
}

/* ---------- pages villes ---------- */
.cy-hero .n-h1 { max-width: 11em; overflow-wrap: break-word; }
.cy-list { padding-bottom: clamp(80px, 8vw, 130px); }
.cy-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(30px, 5vw, 90px); align-items: end; margin-bottom: clamp(44px, 5vw, 80px); }
.cy-head .n-h2 { max-width: 11em; overflow-wrap: break-word; }
.cy-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; border-top: 1px solid var(--n-line); }
.cy-facts div { padding: 15px 0 14px; border-bottom: 1px solid var(--n-line-2); min-width: 0; }
.cy-facts dt { font-size: 12.5px; font-weight: 520; color: var(--n-fg-3); }
.cy-facts dd { margin: 5px 0 0; font-size: 15.5px; line-height: 1.4; color: var(--n-fg); font-variant-numeric: tabular-nums; }
.cy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 4.4vw, 72px) clamp(16px, 1.8vw, 28px); }
.cy-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1120px; }
.cy-acts { margin-top: clamp(40px, 4vw, 64px); }
.cy-near { border-top: 1px solid var(--n-line-2); }
.cy-near .n-strip-head .n-lead { margin: 0; font-size: clamp(15px, 1.1vw, 17px); }
.cy-adv-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px clamp(30px, 5vw, 90px); align-items: start; }
.cy-adv-in .n-lead { margin: 18px 0 0; }
.cy-advs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--n-line); }
.cy-a { display: grid; grid-template-columns: 76px minmax(0, 1fr) 22px; align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--n-line); }
.cy-a-img { display: grid; place-items: center; width: 76px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--n-bg-3); }
.cy-a-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.85); transition: filter .7s, transform 1.4s var(--n-ease); }
.cy-a:hover .cy-a-img img { filter: none; transform: scale(1.06); }
.cy-mono { font-stretch: 112%; font-weight: 560; font-size: 20px; color: var(--n-fg-2); }
.cy-a-t b { display: block; font-stretch: 112%; font-size: clamp(18px, 1.5vw, 22px); font-weight: 520; line-height: 1.2; }
.cy-a-t small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--n-fg-3); }
.cy-a > .ic { width: 20px; height: 20px; transition: transform .5s var(--n-ease); }
.cy-a:hover > .ic { transform: translateX(4px); }
.cy-g-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 3.4vw, 52px); }
.cy-g { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(16px, 1.8vw, 28px); }
.cy-g a { display: grid; gap: 8px; }
.cy-g-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--n-bg-3); margin-bottom: 10px; }
.cy-g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--n-ease), opacity .4s; }
.cy-g a:hover .cy-g-img img { transform: scale(1.05); }
.cy-g small { font-size: 12.5px; color: var(--n-fg-3); }
.cy-g b { font-weight: 500; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.3; text-wrap: pretty; }
.cy-sell-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px clamp(30px, 5vw, 90px); align-items: end; padding: clamp(90px, 10vw, 160px) var(--gut); }
.cy-sell-in .n-lead { margin: 0 0 28px; }
.cy-others { padding-bottom: clamp(90px, 9vw, 140px); }
.cy-idx { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 4vw, 70px); border-top: 1px solid var(--n-line); }
.cy-idx a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 16px 0 14px; border-bottom: 1px solid var(--n-line-2); }
.cy-idx span { font-size: clamp(24px, 2.6vw, 44px); line-height: 1.06; min-width: 0; overflow-wrap: anywhere; transition: transform .7s var(--n-ease), color .4s; color: var(--n-fg-2); }
.cy-idx small { flex: none; font-size: 13px; color: var(--n-fg-3); text-align: right; }
.cy-idx a:hover span, .cy-idx a:focus-visible span { transform: translateX(14px); color: var(--n-fg); }
.cy-peek { position: fixed; left: 0; top: 0; z-index: 50; width: 220px; pointer-events: none; opacity: 0; transition: opacity .35s; will-change: transform; }
.cy-peek img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; transform: translate(-50%, -112%) scale(.94); transition: transform .6s var(--n-ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.cy-peek.on { opacity: 1; }
.cy-peek.on img { transform: translate(-50%, -112%) scale(1); }

/* ---------- ma sélection ---------- */
.ms { padding: clamp(36px, 4vw, 64px) var(--gut) clamp(100px, 10vw, 170px); }
.ms-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(34px, 4vw, 56px); }
.ms-seg { display: inline-flex; padding: 3px; border-radius: 4px; background: rgba(255,255,255,.06); }
.ms-seg button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 3px; font-size: 14px; font-weight: 540; color: var(--n-fg-2); transition: background .3s, color .3s; }
.ms-seg button[aria-pressed="true"] { background: var(--n-fg); color: var(--n-bg); }
.ms-seg button:disabled { opacity: .4; cursor: default; }
.ms-seg .ic { width: 16px; height: 16px; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(44px, 4.4vw, 72px) clamp(16px, 1.8vw, 28px); }
.ms-cmp { overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: thin; }
.ms-table { width: 100%; min-width: 860px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ms-table th, .ms-table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--n-line-2); text-align: left; font-size: 15px; white-space: nowrap; vertical-align: middle; color: var(--n-fg-2); }
.ms-table thead th { font-size: 12.5px; font-weight: 520; color: var(--n-fg-3); border-bottom-color: var(--n-line); padding-top: 0; }
.ms-table tbody th { font-weight: 400; }
.ms-table tbody th a { display: flex; align-items: center; gap: 16px; color: var(--n-fg); }
.ms-table tbody th img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; background: var(--n-bg-3); transition: opacity .3s; }
.ms-table tbody th a:hover img { opacity: .8; }
.ms-table tbody th b { display: block; font-stretch: 112%; font-weight: 520; font-size: 17px; }
.ms-table tbody th small { display: block; font-size: 13px; color: var(--n-fg-3); margin-top: 2px; }
.ms-table td:nth-child(2) { color: var(--n-fg); font-weight: 560; }
.ms-table .is-top { color: var(--n-fg); font-weight: 600; box-shadow: inset 0 -2px 0 var(--n-fg); }
.ms-dpe { display: inline-grid; place-items: center; width: 30px; height: 26px; border-radius: 3px; font-weight: 700; font-size: 13px; color: #16130f; background: #78bd76; }
.ms-dpe[data-c="A"] { background: #009c6d; } .ms-dpe[data-c="B"] { background: #52b153; } .ms-dpe[data-c="D"] { background: #f4e70f; } .ms-dpe[data-c="E"] { background: #f0b50f; } .ms-dpe[data-c="F"] { background: #eb8235; } .ms-dpe[data-c="G"] { background: #d7221f; color: #fff; }
.ms-save { position: static; width: 38px; height: 38px; }
.ms-empty { display: grid; gap: 22px; justify-items: start; }
.ms-empty-t { font-size: clamp(36px, 4.8vw, 80px); max-width: 12em; margin: 0; }
.ms-empty .n-lead { margin: 0; }
.ms-start-k { margin-top: clamp(50px, 6vw, 90px) !important; }
.ms-start { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(16px, 1.8vw, 28px); }
.ms-two { margin-top: clamp(80px, 9vw, 140px); padding: clamp(32px, 5vw, 72px); border-radius: 4px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px clamp(30px, 5vw, 80px); align-items: end; }
.ms-two-txt p { color: var(--n-fg-2); max-width: 36em; margin: 16px 0 0; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; }
.ms-two-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.ms-two-form .fl { min-width: 220px; }
.sx-lnk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 520; color: var(--n-fg-2); text-decoration: underline; text-decoration-color: rgba(244,241,234,.3); text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s; }
.sx-lnk:hover { color: var(--n-fg); text-decoration-color: var(--n-fg); }
.sx-lnk .ic { width: 16px; height: 16px; }

/* ---------- choisir à deux ---------- */
.td-hero .td-from { margin: 0; font-size: 14px; font-weight: 560; color: var(--n-fg-2); }
.td { padding: clamp(40px, 5vw, 70px) var(--gut) clamp(100px, 10vw, 170px); }
.td-stage { display: grid; justify-items: center; gap: 26px; }
.td-prog { display: flex; gap: 6px; width: min(440px, 100%); }
.td-prog i { flex: 1; height: 2px; background: var(--n-line); transition: background .5s; }
.td-prog i.on { background: var(--n-fg); }
.td-stack { position: relative; width: min(440px, 100%); aspect-ratio: 4 / 5.2; }
.td-card { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; background: var(--n-bg-3); box-shadow: 0 50px 90px -40px rgba(0,0,0,.95), 0 0 0 1px var(--n-line-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; transition: transform .8s var(--n-ease), opacity .5s; }
.td-card:active { cursor: grabbing; }
.td-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.td-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.3) 0%, rgba(10,10,11,0) 30%, rgba(10,10,11,.15) 55%, rgba(10,10,11,.88) 100%); pointer-events: none; }
.td-card:nth-last-child(2) { transform: translate3d(0, 16px, 0) scale(.955); }
.td-card:nth-last-child(n+3) { transform: translate3d(0, 32px, 0) scale(.91); opacity: .5; }
.td-card-t { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 4px; }
.td-card-t p { margin: 0; }
.td-city { font-size: clamp(28px, 3vw, 40px); }
.td-p { font-size: 17px; font-weight: 560; font-variant-numeric: tabular-nums; margin-top: 6px !important; }
.td-f { font-size: 14px; color: var(--n-fg-2); }
.td-open { justify-self: start; margin-top: 8px; font-size: 13.5px; font-weight: 560; color: var(--n-fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(244,241,234,.4); }
.td-stamp { position: absolute; z-index: 3; top: 24px; padding: 8px 12px 7px; border-radius: 3px; border: 1.5px solid currentColor; font-size: 15px; font-weight: 640; letter-spacing: .01em; background: rgba(10,10,11,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.td-stamp--yes { right: 22px; color: var(--n-fg); opacity: var(--yes, 0); }
.td-stamp--no { left: 22px; color: var(--n-fg-2); opacity: var(--no, 0); }
.td-btns { display: flex; gap: clamp(30px, 6vw, 60px); margin-top: 8px; }
.td-b { display: grid; justify-items: center; gap: 10px; font-size: 13.5px; font-weight: 560; color: var(--n-fg-2); transition: color .3s; }
.td-b .ic { width: 76px; height: 76px; padding: 27px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--n-line); color: var(--n-fg); transition: background .35s, color .35s, transform .5s var(--n-ease), box-shadow .35s; }
.td-b:hover { color: var(--n-fg); }
.td-b:hover .ic { transform: scale(1.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.td-yes .ic { background: var(--n-fg); color: var(--n-bg); box-shadow: none; }
.td-yes:hover .ic { background: #fff; box-shadow: none; }
.td-keys { margin: 0; font-size: 13px; color: var(--n-fg-3); text-align: center; }
.td-end { display: grid; justify-items: start; gap: 20px; max-width: 760px; }
.td-end-t { font-size: clamp(34px, 4.4vw, 72px); margin: 0; }
.td-end .n-lead { margin: 0; }
.td-end-f { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.td-end-f .fl { min-width: 220px; }
.td-match { display: grid; gap: 26px; }
.td-match .n-lead { margin: 0; }
.td-lost { display: grid; gap: 40px; max-width: 1100px; }
.td-how h3 { font-family: var(--sans); }

/* ---------- tablettes ---------- */
@media (max-width: 1100px) {
  .cy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cy-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cy-g li:nth-child(3) { display: none; }
}
/* ---------- téléphones ---------- */
@media (max-width: 899px) {
  .cy-head, .cy-adv-in, .cy-sell-in { grid-template-columns: 1fr; }
  .cy-sell-in { padding: 90px var(--gut); }
  .cy-idx { grid-template-columns: 1fr; }
  .cy-idx span { font-size: clamp(24px, 7vw, 34px); }
  .ms-two { grid-template-columns: 1fr; }
  .ms-two-form, .td-end-f { width: 100%; }
  .ms-two-form .fl, .td-end-f .fl { min-width: 0; flex: 1 1 100%; }
  .td-stack { width: min(400px, 100%); }
}
@media (max-width: 699px) {
  .cy-grid, .cy-grid.is-2 { grid-template-columns: 1fr; }
  .cy-facts { grid-template-columns: 1fr 1fr; }
  .cy-g { grid-template-columns: 1fr; }
  .cy-g li:nth-child(3) { display: block; }
  .cy-g a { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: start; }
  .cy-g-img { grid-row: 1 / 3; margin: 0; }
  .ms-start { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
  .ms-start .rc-f { display: none; }
  .ms-start .rc-meta { flex-direction: column; gap: 2px; align-items: flex-start; }
  .ms-start .rc-p { margin-left: 0; font-size: 14px; }
  .ms-start .rc-city { font-size: 16px; }
  .ms-start .rc-save { width: 36px; height: 36px; top: 8px; right: 8px; }
  .cy-a { grid-template-columns: 60px minmax(0, 1fr) 20px; gap: 16px; }
  .cy-a-img { width: 60px; }
  .td-btns { gap: 40px; }
  .td-b .ic { width: 68px; height: 68px; padding: 23px; }
}
@media (hover: none) { .cy-a-img img { filter: none; } }
