/* Ahioty : page « Découvrir » (recherche + catégories + grille à 2 colonnes) */
#ahDisc{position:fixed;inset:0;z-index:940;display:flex;flex-direction:column;background:#fff;color:#1f1a17;
  visibility:hidden;opacity:0;transform:translateY(12px);
  transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;overscroll-behavior:contain}
#ahDisc.open{visibility:visible;opacity:1;transform:none;transition:opacity .18s ease,transform .18s ease}
html.ah-disc-on body #ahHelp,html.ah-disc-on body #ahTop,html.ah-disc-on body #ahMini{display:none!important}

/* Haut : recherche + puces */
#ahDisc .dc-top{flex:0 0 auto;background:#fff;padding:max(10px,env(safe-area-inset-top)) 0 0}
#ahDisc .dc-search{display:flex;align-items:center;gap:8px;height:48px;margin:0 12px;padding:0 4px 0 14px;border-radius:14px;background:#f2f1f0}
#ahDisc .dc-search>svg{flex:0 0 auto;width:20px;height:20px;color:#1f1a17}
#ahDisc .dc-search input{flex:1 1 auto;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#1f1a17;font-size:16px;-webkit-appearance:none;appearance:none}
#ahDisc .dc-search input::placeholder{color:#8d837c}
#ahDisc .dc-search input::-webkit-search-cancel-button{display:none}
#ahDisc .dc-clear{flex:0 0 auto;display:none;width:30px;height:30px;border:0;border-radius:50%;background:#d9d5d2;color:#fff;font-size:18px;line-height:1;place-items:center;padding:0}
#ahDisc .dc-search.has .dc-clear{display:grid}
#ahDisc .dc-go{flex:0 0 auto;height:40px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#1f1a17;font-size:16px;font-weight:700}
#ahDisc .dc-chips{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:12px 12px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#ahDisc .dc-chips::-webkit-scrollbar{display:none}
#ahDisc .dc-chip{flex:0 0 auto;min-height:40px;padding:0 18px;border:0;border-radius:999px;background:#f2f1f0;color:#4d443e;font-size:15px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
#ahDisc .dc-chip:active{transform:scale(.97)}
#ahDisc .dc-chip[aria-selected="true"]{background:#d13f00;color:#fff;font-weight:750}
#ahDisc .dc-zone{display:flex;align-items:center;gap:8px;margin:0 12px 6px;padding:7px 8px 7px 12px;border-radius:12px;background:#fff3ec;color:#8f2b00;font-size:13.5px;font-weight:650}
#ahDisc .dc-zone[hidden]{display:none}
#ahDisc .dc-zone span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ahDisc .dc-zone button{flex:0 0 auto;border:0;border-radius:9px;background:#fff;color:#b83500;font-size:13px;font-weight:750;padding:6px 10px}

/* Liste */
#ahDisc .dc-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 12px calc(104px + env(safe-area-inset-bottom))}
#ahDisc .dc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start;max-width:760px;margin:0 auto}
#ahDisc .dc-col{display:flex;flex-direction:column;gap:16px;min-width:0}
#ahDisc .dc-card{position:relative;min-width:0}
#ahDisc .dc-open{display:block;width:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;-webkit-tap-highlight-color:transparent}
#ahDisc .dc-pic{position:relative;display:block;width:100%;overflow:hidden;border-radius:8px;background:#f2f1f0}
#ahDisc .dc-pic.r0{aspect-ratio:3/4}
#ahDisc .dc-pic.r1{aspect-ratio:4/5}
#ahDisc .dc-pic.r2{aspect-ratio:1/1}
#ahDisc .dc-pic.r3{aspect-ratio:5/6}
#ahDisc .dc-pic.r4{aspect-ratio:2/3}
#ahDisc .dc-ph{position:absolute;inset:0;display:grid;place-items:center;font-size:54px;line-height:1}
#ahDisc .dc-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s ease}
#ahDisc .dc-pic img.ld{opacity:1}
#ahDisc .dc-pic img.bad{display:none}
#ahDisc .dc-pic.nophoto{background:linear-gradient(150deg,var(--g1,#ffe3d3),var(--g2,#ffc9ad))}
#ahDisc .dc-card.sold .dc-pic img,#ahDisc .dc-card.sold .dc-ph{opacity:.45}
#ahDisc .dc-card.sold .dc-pic img.ld{opacity:.45}
#ahDisc .dc-tag{position:absolute;left:8px;top:8px;padding:3px 9px;border-radius:999px;background:#d13f00;color:#fff;font-size:11.5px;font-weight:800;letter-spacing:.1px;box-shadow:0 1px 4px #0003}
#ahDisc .dc-tag.hot{background:#c62828}
#ahDisc .dc-tag.top{background:#ffd33d;color:#2b1d00}
#ahDisc .dc-tag.sold{background:#2b2420}
#ahDisc .dc-count{position:absolute;right:8px;bottom:8px;display:flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;background:#0009;color:#fff;font-size:11.5px;font-weight:700}
#ahDisc .dc-count svg{width:13px;height:13px}
#ahDisc .dc-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:9px 2px 0;font-size:15.5px;line-height:1.28;font-weight:650;color:#1f1a17;overflow-wrap:anywhere}
#ahDisc .dc-price{display:block;margin:3px 2px 0;font-size:14.5px;font-weight:800;color:#d13f00}
#ahDisc .dc-price.neg{font-size:13px;font-weight:650;color:#7a6e66}
#ahDisc .dc-meta{display:flex;align-items:center;gap:6px;margin:6px 2px 0;min-width:0;color:#6b5f57;font-size:13.5px}
#ahDisc .dc-seller{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:7px;margin:0;padding:3px 0;border:0;background:none;color:inherit;font:inherit;text-align:left}
#ahDisc .dc-av{flex:0 0 24px;width:24px;height:24px;border-radius:50%;object-fit:cover;background:#ffe3d3;color:#b83500;display:grid;place-items:center;font-size:12px;font-weight:800;overflow:hidden}
#ahDisc .dc-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ahDisc .dc-views{flex:0 0 auto;display:flex;align-items:center;gap:4px;font-size:13px;color:#6b5f57}
#ahDisc .dc-views svg{width:16px;height:16px}
#ahDisc .dc-heart{position:absolute;right:6px;top:6px;z-index:2;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;background:#ffffffdd;color:#4d443e;padding:0;box-shadow:0 1px 5px #0003;-webkit-tap-highlight-color:transparent}
#ahDisc .dc-heart svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
#ahDisc .dc-heart[aria-pressed="true"]{color:#e53935}
#ahDisc .dc-heart[aria-pressed="true"] svg{fill:currentColor}
#ahDisc .dc-heart:active{transform:scale(.92)}

/* États : chargement, vide */
#ahDisc .dc-sk{display:block;border-radius:8px;background:#f2f1f0;position:relative;overflow:hidden}
#ahDisc .dc-sk::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,#ffffff99 50%,transparent 70%);background-size:200% 100%;animation:dcsh 1.3s linear infinite}
#ahDisc .dc-sk.l{height:14px;margin:10px 2px 0;width:85%}
#ahDisc .dc-sk.s{height:12px;margin:8px 2px 0;width:50%}
@keyframes dcsh{from{background-position:200% 0}to{background-position:-200% 0}}
#ahDisc .dc-empty{display:none;max-width:420px;margin:42px auto 0;padding:0 18px;text-align:center;color:#6b5f57}
#ahDisc .dc-empty.show{display:block}
#ahDisc .dc-empty b{display:block;margin:10px 0 4px;font-size:17px;color:#1f1a17}
#ahDisc .dc-empty p{margin:0 0 14px;font-size:14.5px;line-height:1.45}
#ahDisc .dc-empty button{border:0;border-radius:12px;background:#d13f00;color:#fff;font-weight:750;padding:11px 18px}
#ahDisc .dc-empty svg{width:46px;height:46px;color:#c9bfb8}
#ahDisc .dc-sentinel{height:1px}
#ahDisc .dc-end{display:none;margin:22px 0 4px;text-align:center;color:#9a8f87;font-size:13px}
#ahDisc .dc-end.show{display:block}
#ahDisc :focus-visible{outline:3px solid #ffd33d;outline-offset:2px}

@media (min-width:700px){
  #ahDisc .dc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){
  #ahDisc,#ahDisc.open{transition:none;transform:none}
  #ahDisc .dc-sk::after{animation:none}
  #ahDisc .dc-pic img{transition:none}
}

/* Mode sombre */
body.dark #ahDisc,html.dark #ahDisc{background:#14110f;color:#f3ece7}
body.dark #ahDisc .dc-top,html.dark #ahDisc .dc-top{background:#14110f}
body.dark #ahDisc .dc-search,body.dark #ahDisc .dc-chip,html.dark #ahDisc .dc-search,html.dark #ahDisc .dc-chip{background:#2a2420}
body.dark #ahDisc .dc-search>svg,body.dark #ahDisc .dc-search input,body.dark #ahDisc .dc-go,html.dark #ahDisc .dc-search>svg,html.dark #ahDisc .dc-search input,html.dark #ahDisc .dc-go{color:#f3ece7}
body.dark #ahDisc .dc-search input::placeholder,html.dark #ahDisc .dc-search input::placeholder{color:#a0948c}
body.dark #ahDisc .dc-chip,html.dark #ahDisc .dc-chip{color:#d9cfc8}
body.dark #ahDisc .dc-chip[aria-selected="true"],html.dark #ahDisc .dc-chip[aria-selected="true"]{background:#e94700;color:#fff}
body.dark #ahDisc .dc-clear,html.dark #ahDisc .dc-clear{background:#4a3d35}
body.dark #ahDisc .dc-pic,body.dark #ahDisc .dc-sk,html.dark #ahDisc .dc-pic,html.dark #ahDisc .dc-sk{background:#241e1b}
body.dark #ahDisc .dc-pic.nophoto,html.dark #ahDisc .dc-pic.nophoto{background:linear-gradient(150deg,#3a2a20,#2a1d16)}
body.dark #ahDisc .dc-title,html.dark #ahDisc .dc-title{color:#f3ece7}
body.dark #ahDisc .dc-price,html.dark #ahDisc .dc-price{color:#ff8a4d}
body.dark #ahDisc .dc-price.neg,body.dark #ahDisc .dc-meta,body.dark #ahDisc .dc-views,html.dark #ahDisc .dc-price.neg,html.dark #ahDisc .dc-meta,html.dark #ahDisc .dc-views{color:#b9afa8}
body.dark #ahDisc .dc-av,html.dark #ahDisc .dc-av{background:#3a2a20;color:#ffb98f}
body.dark #ahDisc .dc-heart,html.dark #ahDisc .dc-heart{background:#2a2420dd;color:#e9e0da}
body.dark #ahDisc .dc-heart[aria-pressed="true"],html.dark #ahDisc .dc-heart[aria-pressed="true"]{color:#ff6b66}
body.dark #ahDisc .dc-zone,html.dark #ahDisc .dc-zone{background:#33261a;color:#ffd9ae}
body.dark #ahDisc .dc-zone button,html.dark #ahDisc .dc-zone button{background:#2a2420;color:#ffb98f}
body.dark #ahDisc .dc-empty,html.dark #ahDisc .dc-empty{color:#b9afa8}
body.dark #ahDisc .dc-empty b,html.dark #ahDisc .dc-empty b{color:#f3ece7}
body.dark #ahDisc .dc-sk::after,html.dark #ahDisc .dc-sk::after{background:linear-gradient(100deg,transparent 30%,#ffffff14 50%,transparent 70%);background-size:200% 100%}

/* ===== Accueil : fil d'actualité façon Facebook (une annonce par ligne, grande photo) ===== */
html body #cards.v-list{display:flex!important;flex-direction:column;gap:10px!important;margin:0 -16px!important;padding:0!important}
html body #cards.v-list .card{display:flex!important;flex-direction:column;border-radius:0!important;border-left:0!important;border-right:0!important;border-color:#eadfd7!important;box-shadow:none!important;background:#fff;padding:0!important;overflow:hidden}
html body #cards.v-list .fb-head{order:0;padding:10px 14px 8px}
html body #cards.v-list .fb-who{display:flex;align-items:center;gap:10px;min-width:0;cursor:pointer}
html body #cards.v-list .fb-av{flex:0 0 40px;width:40px;height:40px;border-radius:50%;object-fit:cover;background:#ffe3d3;color:#b83500;display:grid;place-items:center;font-weight:800;font-size:17px}
html body #cards.v-list .fb-tx{display:flex;flex-direction:column;min-width:0}
html body #cards.v-list .fb-tx b{font-size:15px;line-height:1.2;color:#1f1a17;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #cards.v-list .fb-tx small{font-size:12.5px;color:#6b5f57;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #cards.v-list .card>button[data-a="showDetail"]{order:1;width:100%}
html body #cards.v-list .cardtop{display:block!important;padding:0!important;margin:0!important}
html body #cards.v-list .cardtop h3,html body #cards.v-list .cardtop>div:not(.pic){display:none!important}
html body #cards.v-list .pic{display:block!important;position:relative;width:100%!important;height:auto!important;aspect-ratio:4/5;max-height:78vh;border-radius:0!important;margin:0!important;background:#f2f1f0;overflow:hidden}
html body #cards.v-list .pic .pic-bg{display:none!important}
html body #cards.v-list .pic .pic-main{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none!important;border-radius:0!important;object-fit:cover!important}
html body #cards.v-list .card .cardbody{order:2;padding:10px 14px 12px!important}
html body #cards.v-list .card .cardbody h3.listtitle{font-size:17px!important;line-height:1.3!important;text-transform:none!important;margin:0 0 4px!important}
html body #cards.v-list .card .cardbody .price{font-size:19px!important;font-weight:850!important}
html body #cards.v-list .card .cardbody .adesc{-webkit-line-clamp:3!important}
html body #cards.v-list .card .cardbody p.loc,html body #cards.v-list .card .cardbody p.adage{display:none!important}
body.dark #cards.v-list .card,html.dark #cards.v-list .card{background:#1c1714;border-color:#3a302a!important}
body.dark #cards.v-list .fb-tx b,html.dark #cards.v-list .fb-tx b{color:#f3ece7}
body.dark #cards.v-list .fb-tx small,html.dark #cards.v-list .fb-tx small{color:#b9afa8}
html body #cards.v-list{width:calc(100% + 32px)!important;max-width:none!important}
html body #cards.v-list .card .cardtop .pic{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:78vh!important;aspect-ratio:4/5!important;border-radius:0!important}
html body #cards.v-list .card .cardtop .pic .pic-main,html body #cards.v-list .card .cardtop .pic img.pic-main{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:0!important}
html body #cards.v-list .card .cardtop .pic .pic-bg{display:none!important}
/* profil du vendeur en bas de l'annonce */
html body #cards.v-list .fb-head{order:3!important;padding:10px 14px 12px;border-top:1px solid #f0e6df}
html body #cards.v-list .card .cardbody{padding-bottom:10px!important}
body.dark #cards.v-list .fb-head,html.dark #cards.v-list .fb-head{border-top-color:#3a302a}

/* v81 : badge « Profil vérifié » à l'accueil et dans Découvrir */
.fb-nm{display:flex;align-items:center;min-width:0}
.fb-nm b{min-width:0}
.fb-nm .ahvb{flex:0 0 auto;margin-left:5px}
.fb-nm .ahvl{margin-left:6px}
.dc-seller .ahvb{flex:0 0 auto;margin-left:0}
.dc-seller .ahvl{display:none}
