/* Tappo — styles réservés à : annonce.html */
.gal-main { position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
.gal-main .gph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; text-align: center; padding: 20px; text-shadow: 0 2px 14px rgba(0,0,0,.2); transition: opacity .3s; }
.gal-main .gph::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.10); top: -90px; right: -70px; }
.gal-badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 7px; flex-wrap: wrap; }
.gal-count { position: absolute; bottom: 14px; right: 14px; z-index: 2; background: rgba(20,24,31,.7); color: #fff; font-size: .82rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); display: flex; align-items: center; gap: 6px; }
.gal-count svg { width: 15px; height: 15px; }
.gal-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
/* Vraie image (galerie) par-dessus le fond — robuste + SEO */
.gph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.gal-wm { position: absolute; left: 12px; bottom: 12px; z-index: 3; color: rgba(255,255,255,.9); font-weight: 700; font-size: .8rem; letter-spacing: .02em; text-shadow: 0 1px 5px rgba(0,0,0,.65); pointer-events: none; }
.gal-main .gph::after { z-index: 0; }
/* Flèches carrousel (façon Leboncoin) */
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.94); display: grid; place-items: center; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer; border: none; transition: .15s; }
.gal-nav svg { width: 22px; height: 22px; }
.gal-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gal-nav.gprev { left: 12px; transform: translateY(-50%) rotate(180deg); }
.gal-nav.gprev:hover { transform: translateY(-50%) rotate(180deg) scale(1.06); }
.gal-nav.gnext { right: 12px; }
/* Cartes détail */
.d-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-top: 22px; }
.d-card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.spec { background: #fff; padding: 13px 16px; display: flex; justify-content: space-between; gap: 10px; font-size: .94rem; }
/* Colonne droite (sticky) */
.d-side { position: sticky; top: calc(var(--header-h) + 14px); display: flex; flex-direction: column; gap: 18px; }
.buy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh); }
.buy-card h1 { font-size: 1.3rem; line-height: 1.3; }
.buy-card .b-price { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--green-deep); margin: 12px 0 6px; }
.buy-card .b-price small { font-size: 1rem; font-weight: 600; color: var(--slate); }
.buy-card .b-meta { display: flex; align-items: center; gap: 8px; color: var(--slate); font-size: .88rem; flex-wrap: wrap; }
.buy-card .b-meta svg { width: 15px; height: 15px; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.contact-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.buy-card .b-price { order: -1; }
.phone-reveal { font-family: var(--font-head); letter-spacing: .04em; }
/* Carte vendeur */
.seller-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.seller-top { display: flex; align-items: center; gap: 14px; }
.seller-av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; flex-shrink: 0; }
.seller-name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.seller-sub { font-size: .84rem; color: var(--slate); }
.seller-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@media (max-width: 900px) {
  .d-side { position: static; }
  .gal-thumbs { grid-template-columns: repeat(5, 1fr); }
}
.offer-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.offer-quick button { border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; font-weight: 700; transition: .2s; }
.report-reasons { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
/* ---- Galerie swipe (zoom) ---- */
.gal-main.zoomable { cursor: zoom-in; }
/* ---- Compteur favoris FOMO ---- */
.fomo-fav { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 700; font-size: .88rem; }
.fomo-fav svg { width: 15px; height: 15px; }
@media (max-width: 768px) {
  .buy-card .b-price { font-size: 1.8rem; }
}
/* Fiche annonce : 2 contacts visibles + « Plus d'options » */
.more-opts { border: 1px solid var(--line); border-radius: var(--r, 12px); background: #fff; }
.more-opts > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.more-opts > summary::-webkit-details-marker { display: none; }
.more-opts > summary .mo-dots { letter-spacing: 2px; color: var(--green); font-weight: 800; }
.more-opts[open] > summary { border-bottom: 1px solid var(--line); }
.reply-hint { margin: -2px 0 0; text-align: center; font-size: .8rem; color: var(--slate); }
/* Fiche annonce : personnes qui regardent en direct (présence temps réel) */
.live-viewers:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 4px 11px; border-radius: 999px;
  background: var(--green-pale, #EAF6F0); color: var(--green-deep, #0E6B43); font-size: .84rem; font-weight: 700; }
/* Kit de partage multimédia (vidéo 15 s, story, bannière, affiche + QR) */
.kit-modal { max-width: 460px; max-height: 92vh; overflow-y: auto; }
.kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.kit-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, transform .2s; }
.kit-btn:hover:not(:disabled) { border-color: var(--green); transform: translateY(-2px); }
.kit-btn:disabled { opacity: .55; cursor: wait; }
.kit-btn .kb-ic { font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.kit-btn b { font-size: .92rem; }
.kit-btn small { color: var(--slate); font-size: .76rem; }
.kit-out { margin-top: 14px; }
.kit-progress { display: flex; align-items: center; gap: 8px; color: var(--slate); font-size: .9rem; margin: 0; }
.kit-bar { height: 8px; background: var(--cloud, #F4F6F9); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.kit-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .2s linear; }
.kit-preview { background: #10221C; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.kit-preview img, .kit-preview video { display: block; max-width: 100%; max-height: 52vh; }
.kit-tip { color: var(--slate); font-size: .85rem; margin: 10px 0 0; }
.kit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
/* Négociation intégrée */
.offer-note { margin: 10px 0 0 !important; font-size: .8rem !important; color: var(--slate); text-align: center; }
/* Fiche annonce : miniatures sur une seule ligne défilante (plus de deuxième rangée bancale) */
.gal-thumbs { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 5); overflow-x: auto; padding: 3px 1px 6px; scrollbar-width: thin; }
.b-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 6px; }
.b-promo s { color: var(--slate); font-weight: 600; }
.b-promo-pct { background: linear-gradient(90deg, #FF6A2C, #E11D48); color: #fff; font-weight: 800; font-size: .82rem; padding: 3px 10px; border-radius: 999px; }
.b-promo-end { color: #B91C1C; font-weight: 700; font-size: .85rem; }
.gal-full { display: inline-block; margin-left: 4px; font-weight: 800; opacity: .9; }
/* ---- Questions publiques ---- */
.qa-card h2 small { color: var(--slate); font-weight: 600; font-size: .85rem; }
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-item { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fff; }
.qa-item.is-hidden { opacity: .6; border-style: dashed; }
.qa-q, .qa-a { display: flex; gap: 10px; align-items: flex-start; }
.qa-a { margin-top: 10px; padding: 10px 12px; background: var(--green-pale, #EAF6F0); border-radius: 12px; }
.qa-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; background: #FFF1E8; color: #C2410C; }
.qa-a .qa-ic { background: var(--green, #16915C); color: #fff; }
.qa-q p, .qa-a p { margin: 0; line-height: 1.5; white-space: pre-line; word-break: break-word; }
.qa-q small, .qa-a small { color: var(--slate); font-size: .78rem; }
.qa-wait { margin-top: 8px; font-size: .84rem; color: var(--slate); }
.qa-empty { color: var(--slate); margin: 0; }
.qa-answer { margin-top: 10px; }
.qa-row { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.qa-link { border: 0; background: none; color: var(--slate); font-size: .8rem; text-decoration: underline; cursor: pointer; margin-top: 6px; padding: 0; }
.qa-ask { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.qa-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.qa-chips::-webkit-scrollbar { display: none; }
.qa-chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.qa-chip:hover { border-color: var(--green, #16915C); color: var(--green-deep, #0E6B43); }
.qa-note { color: var(--slate); font-size: .78rem; margin: 8px 0 0; }
/* ==========================================================================
   Lot w : annonce vendue, avertissements anti-arnaque, suivi de boutique,
   « J'ai vendu », relance des annonces, photos dans Modifier, admin arnaques
   ========================================================================== */
.sold-banner { display: flex; flex-direction: column; gap: 8px; background: linear-gradient(135deg, #EAF6F0, #D9F3E4); border: 1px solid #86EFAC; border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.sold-banner b { font-size: 1.05rem; color: #0E6B43; }
.sold-banner span { color: var(--ink-soft, #334155); font-size: .9rem; line-height: 1.45; }
.reserved-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #F1F5F9; border: 1px solid #CBD5E1; font-size: .86rem; line-height: 1.45; color: #334155; }
/* ---- Offres : fiche annonce ---- */
.offer-main { font-weight: 800; }
.offer-state { margin-top: 10px; }
.os-card { display: block; padding: 12px 14px; border-radius: 14px; background: #FFFBEB; border: 1px solid #FDE68A; font-size: .9rem; line-height: 1.45; color: var(--ink); text-decoration: none; }
.os-card.os-seller { background: #ECFDF5; border-color: #A7F3D0; font-weight: 600; }
.os-card a { color: var(--green); font-weight: 700; }
.os-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cal-card h2{margin-bottom:10px}
.cal-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.cal-nav button{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:1.2rem;cursor:pointer}
.cal-nav button:disabled{opacity:.35;cursor:default}
.cal-leg{font-size:.8rem;color:var(--slate);display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center}
.cal-leg i{display:inline-block;width:12px;height:12px;border-radius:4px}
.cal-leg i.free,.cal-d.free{background:#EAF6F0}
.cal-months{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.cal-m{min-width:0}
.cal-mt{font-weight:800;text-transform:capitalize;margin-bottom:6px}
.cal-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal-dn{font-size:.7rem;color:var(--slate);text-align:center;font-weight:700}
.cal-d{aspect-ratio:1;border:none;border-radius:8px;font:inherit;font-size:.85rem;font-weight:600;cursor:pointer;color:var(--ink,#0f1f18);min-width:0;padding:0}
.cal-d.free{color:#0E6B43}
.cal-d.past{background:transparent;color:#C4CCD4;cursor:default}
.cal-hint{margin:10px 0 0;font-size:.85rem;color:var(--slate)}
.gal-vid { width: 100%; height: 100%; max-height: 520px; object-fit: contain; background: #000; display: block; border-radius: inherit; }
.d-vids { display: grid; gap: 12px; }
.d-vids video { width: 100%; border-radius: 12px; background: #000; max-height: 420px; }
/* Fiche annonce : la vidéo en premier (vignette ▶ + photos), bouton « Activer le son » */
.gal-main [hidden], .gal-thumbs [hidden] { display: none !important; }
.gal-main.vmode .gal-wm, .gal-main.vmode .gal-nav { display: none; }
.gal-vthumb { aspect-ratio: 1; border-radius: var(--r-sm); border: 2px solid transparent; background: linear-gradient(135deg, #10221C, #0C6B45); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-family: inherit; transition: .2s; padding: 0; }
.gal-vthumb span { font-size: 1.3rem; line-height: 1; }
.gal-vthumb small { font-size: .7rem; font-weight: 700; }
.gal-vthumb:hover { transform: translateY(-2px); }
.vid-sound { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: #10221C; font-weight: 800; font-size: .95rem; padding: 10px 18px; box-shadow: 0 10px 28px -8px rgba(0,0,0,.55); cursor: pointer; font-family: inherit; animation: vid-sound-pulse 1.8s ease-in-out infinite; }
.vid-sound:hover { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .vid-sound { animation: none; }
}
/* Kit de partage : aperçu qui apparaît en fondu, boutons vivants */
.kit-out img, .kit-out video { animation: kit-rev .55s cubic-bezier(.2,.8,.3,1) both; }
.kit-btn { transition: transform .25s cubic-bezier(.2,.8,.3,1.2), box-shadow .25s ease, border-color .25s ease; }
.kit-btn:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(16,34,28,.6); border-color: var(--green); }
.kit-btn .kb-ic { transition: transform .3s cubic-bezier(.2,.8,.3,1.4); display: inline-block; }
.kit-btn:hover .kb-ic { transform: scale(1.18) rotate(-6deg); }
/* Fiche d'annonce : la photo s'affiche EN ENTIER (plus de visages coupés), sur un fond flou de la même photo */
.gal-main .gph { overflow: hidden; }
.gal-main .gph::before { content: ""; position: absolute; inset: -24px; background: inherit; filter: blur(22px) brightness(.82) saturate(1.1); transform: scale(1.08); z-index: 0; }
.gal-main .gph::after { display: none; }
.gph-img { object-fit: contain !important; z-index: 1; }
/* Fiche d'annonce */
.buy-card { position: relative; overflow: hidden; }
.buy-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #16915C, #FDBA2D, #F97316); background-size: 200% 100%; animation: bcBar 5s linear infinite; }
.buy-card h1 { font-family: 'Sora', var(--font-head), sans-serif; font-size: clamp(1.25rem, 3.4vw, 1.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.22; color: #0B1F17; margin: 4px 0 8px; }
.buy-card .b-price { font-family: 'Sora', var(--font-head), sans-serif; font-size: clamp(2rem, 6vw, 2.5rem); letter-spacing: -.01em; word-spacing: .12em; line-height: 1;
  background: linear-gradient(100deg, #0B5E3A, #16915C 50%, #0B5E3A); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bpShine 6s ease-in-out infinite, bpIn .6s cubic-bezier(.2,.9,.3,1.3) both; }
.buy-card .b-price small, .buy-card .b-price span[style] { -webkit-text-fill-color: currentColor; }
.too-good { margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; background: #FEF2F2; border: 1.5px solid #FCA5A5; color: #7F1D1D; animation: cgIn .5s ease both; }
.too-good p { margin: 4px 0 0; font-size: .85rem; line-height: 1.45; }
.wa-alt { display: block; text-align: center; font-size: .82rem; font-weight: 700; color: #128C4B; margin: -2px 0 8px; text-decoration: none; }
.wa-alt:hover { text-decoration: underline; }
.voice-note { display: flex; gap: 12px; align-items: center; margin: 18px 0 0; padding: 14px; border-radius: 18px; background: linear-gradient(120deg, #ECFDF5, #F0F9FF); border: 1px solid #BBF7D0; }
.voice-note .vn-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #16915C; color: #fff; font-size: 1.3rem; box-shadow: 0 0 0 0 rgba(22,145,92,.5); animation: vnPulse 2s ease-out infinite; }
.voice-note small { display: block; color: var(--slate); font-size: .78rem; margin-bottom: 6px; }
.voice-note audio { width: 100%; max-width: 360px; height: 38px; }

/* Le rappel de sécurité là où il compte : juste sous les boutons de contact,
   au moment précis où la personne s'apprête à écrire au vendeur (11/10).
   Il défilait avant dans le bandeau du haut, où il était coupé et jamais lu. */
.ad-ancienne { margin: 0 0 14px; padding: 11px 13px; border-radius: 12px;
  background: #FFF4ED; border-left: 3px solid #FF8A4C; color: #5A3214;
  font-size: 14px; line-height: 1.6; }
.ad-ancienne b { color: #9A3E0B; }
@media (prefers-color-scheme: dark) {
  .ad-ancienne { background: #2A1A10; color: #F0D9C8; }
  .ad-ancienne b { color: #FFB183; }
}

.secu-contact { margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px;
  background: #FFFDF6; border: 1px solid #EBD79B; color: #7A5A0B;
  font-size: .82rem; line-height: 1.5; }
.secu-contact b { color: #6B4E06; }
.secu-contact a { color: #6B4E06; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
