/* Cartes de profils, bande d'avatars, barre fixe, bulle façon Telegram, pop-up (inc/annuaire/profils.php, assets/js/profils.js).
   Portage de perfiles.css de Pura Vida aux couleurs et polices de la DA « Acier & soufre » sombre (annuaire.css : --graphite, --graphite2,
   --graphite3, --nuit, --fil, --os, --blanc, --acier, --acier2, --soufre, --t, --b, --r). Rayon 2 px, filets fins, ni ombre ni dégradé décoratif. */

body.adpa .adpf-live { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--soufre); box-shadow: 0 0 0 0 rgba(210, 230, 60, .5); animation: adpfPulse 1.8s infinite; vertical-align: 1px; }
body.adpa .adpf-on { color: var(--soufre); font-weight: 600; }
body.adpa .adpf-on::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--soufre); vertical-align: 1px; }
body.adpa .adpf-off { color: var(--acier2); }

/* ---------- Section HTML (25 cartes, H2 + H3) ---------- */
body.adpa .adpa-ville__profils .adpf-intro { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
body.adpa .adpa-ville__profils .adpf-intro strong { color: var(--blanc); }
body.adpa .adpf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
body.adpa .adpf-more { margin: 26px 0 0; text-align: center; }
body.adpa .adpf-more__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border: 1.5px solid var(--soufre); border-radius: var(--r); background: transparent; color: var(--soufre); font: 600 15px/1 var(--b); text-decoration: none; transition: background .2s ease, color .2s ease; }
body.adpa .adpf-more__btn:hover { background: var(--soufre); color: var(--graphite); }

/* ---------- Carte ---------- */
body.adpa .adpf-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--graphite2); border: 1px solid var(--graphite3); border-radius: var(--r2); color: var(--os); transition: transform .2s ease, border-color .2s ease; }
body.adpa .adpf-card:not(.is-skel):hover { transform: translateY(-3px); border-color: var(--soufre); }
body.adpa .adpf-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite3); }
body.adpa .adpf-pic img, body.adpa .adpf-pop__img img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 50% 28%; transition: transform .4s ease; }
body.adpa .adpf-card:hover .adpf-pic img { transform: scale(1.04); }
body.adpa .adpf-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 8px; border-radius: var(--r); background: var(--soufre); color: var(--graphite); font: 600 11.5px/1 var(--b); }
body.adpa .adpf-fotos { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 5px 8px; border-radius: var(--r); background: rgba(15, 16, 18, .72); color: var(--blanc); font: 600 12px/1 var(--b); }
body.adpa .adpf-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 13px 14px; }
body.adpa .adpf-body p { margin: 0; max-width: none; }
body.adpa .adpf-title { margin: 0; font: 600 15.5px/1.3 var(--t); letter-spacing: 0; text-transform: none; color: var(--blanc); }
body.adpa .adpf-who { font: 400 13px/1.3 var(--b); color: var(--clair); }
body.adpa .adpf-who strong { color: var(--blanc); font-weight: 600; }
body.adpa .adpf-desc { font: 400 13px/1.45 var(--b); color: #AEB3B9; }
body.adpa .adpf-tags { font: 400 12px/1.35 var(--b); color: var(--acier2); }
body.adpa .adpf-tags b { color: var(--clair); font-weight: 500; }
body.adpa .adpf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: auto; padding: 8px 12px; border: 1px solid var(--soufre); border-radius: var(--r); background: transparent; color: var(--soufre); font: 600 13.5px/1.1 var(--b); text-align: center; text-decoration: none; transition: background .2s ease, color .2s ease; }
body.adpa .adpf-btn:hover, body.adpa .adpf-card:hover .adpf-btn { background: var(--soufre); color: var(--graphite); }

/* ---------- Rangées du guide (JavaScript) ---------- */
body.adpa .adpf-slot { display: none; }
html.adpf-js body.adpa .adpf-slot { display: block; }
body.adpa .arc-seo-content .adpf-slot { margin: 38px 0 44px; }
body.adpa .adpf-slot p { margin: 0; }
body.adpa .adpf-slot a { text-decoration: none; }
body.adpa .adpf-row-head { min-height: 26px; margin: 0 0 12px !important; font: 600 clamp(17px, 1.8vw, 20px)/1.2 var(--t); color: inherit; }
body.adpa .adpf-slot--row { margin: 34px 0; }
body.adpa .adpf-band { padding: 6px 0; background: var(--graphite); color: var(--os); }
html:not(.adpf-js) body.adpa .adpf-band { display: none; }
body.adpa .adpf-slot--top { padding: 34px 0 40px; background: var(--graphite); color: var(--os); border-bottom: 1px solid var(--graphite3); }
body.adpa .adpf-top-head { min-height: 56px; margin-bottom: 16px; }
body.adpa .adpf-top-title { font: 600 clamp(22px, 2.6vw, 30px)/1.2 var(--t) !important; color: var(--os); }
body.adpa .adpf-top-sub { margin-top: 6px !important; font: 600 13.5px/1.3 var(--b); color: var(--clair); }
body.adpa .adpf-grid--top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.adpa .adpf-grid--top .adpf-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.adpa .adpf-grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.adpa .adpf-grid--row .adpf-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.adpa .adpf-card.is-skel { min-height: 420px; }
body.adpa .adpf-card.is-skel .adpf-pic, body.adpa .adpf-card.is-skel .adpf-body { background: var(--graphite3); }

/* ---------- Bande d'avatars (haut de page) ---------- */
body.adpa .adpf-slot--stories { padding: 14px 0 6px; background: var(--graphite); border-bottom: 1px solid var(--graphite3); }
body.adpa .adpf-st-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-height: 22px; margin: 0 0 8px !important; font: 600 13px/1.3 var(--b); color: var(--clair); }
body.adpa .adpf-st-head b { color: var(--soufre); font-weight: 600; }
body.adpa .adpf-stories { display: flex; gap: 14px; height: 98px; margin: 0 -4px; padding: 2px 4px 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
body.adpa .adpf-stories::-webkit-scrollbar { display: none; }
body.adpa .adpf-sto { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 72px; color: var(--os); text-decoration: none; }
body.adpa .adpf-sto i { position: relative; display: block; width: 68px; height: 68px; padding: 3px; border: 2px solid var(--soufre); border-radius: 50%; background: transparent; }
body.adpa .adpf-sto.is-skel i { border-color: var(--graphite3); background: var(--graphite3); }
body.adpa .adpf-sto i img { display: block; width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
body.adpa .adpf-sto.is-on i::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border: 2.5px solid var(--graphite); border-radius: 50%; background: var(--soufre); }
body.adpa .adpf-sto span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 11.5px/1.2 var(--b); }

/* ---------- En-tête ---------- */
body.adpa .adpf-htools { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-left: 12px; }
body.adpa .adpf-online { display: inline-flex; align-items: center; white-space: nowrap; font: 600 12.5px/1.2 var(--b); color: var(--clair); }
body.adpa .adpf-online b { min-width: 2.6em; margin-right: 4px; color: var(--soufre); font-weight: 600; text-align: right; }
body.adpa .adpf-reg { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: var(--r); background: var(--soufre); color: var(--graphite) !important; font: 600 14px/1 var(--b); text-decoration: none !important; white-space: nowrap; transition: background .2s ease; }
body.adpa .adpf-reg:hover { background: var(--soufre2); }
body.adpa .adpf-reg__s { display: none; }

/* ---------- Barre fixe ---------- */
.adpf-sticky { position: fixed; left: 50%; bottom: 14px; z-index: 950; display: flex; align-items: center; gap: 12px; width: min(720px, calc(100% - 24px)); padding: 9px 10px 9px 16px; border: 1px solid var(--fil); border-radius: var(--r2); background: var(--nuit); color: var(--blanc); transform: translate(-50%, 160%); transition: transform .35s ease; font-family: var(--b); }
.adpf-sticky.is-on { transform: translate(-50%, 0); }
.adpf-avas { display: flex; flex: 0 0 auto; padding-left: 10px; }
.adpf-avas img { width: 36px !important; height: 36px !important; margin-left: -10px; border: 2px solid var(--nuit); border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.adpf-sticky p { flex: 1; margin: 0; font: 500 14px/1.25 var(--b); color: var(--clair); }
.adpf-sticky p b { color: var(--soufre); font-weight: 600; }
.adpf-sticky .adpf-btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--r); background: var(--soufre); color: var(--graphite); font: 600 13.5px/1 var(--b); text-decoration: none; margin-top: 0; }
.adpf-x { flex: 0 0 auto; padding: 4px 8px; border: 0; background: none; color: rgba(255, 255, 255, .6); font-size: 22px; line-height: 1; cursor: pointer; }
.adpf-x:hover { color: #fff; }

/* ---------- Bulle façon Telegram ---------- */
.adpf-tg { position: fixed; left: 16px; bottom: 16px; z-index: 960; display: flex; align-items: flex-end; gap: 10px; transform: translateY(170%); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), bottom .3s ease; font-family: var(--b); }
.adpf-tg.is-on { transform: none; }
body.adpf-has-bar .adpf-tg { bottom: 84px; }
.adpf-tg a { text-decoration: none; }
.adpf-tg-ava { position: relative; flex: 0 0 auto; display: block; width: 62px; height: 62px; padding: 3px; border-radius: 50%; background: #2AABEE; }
.adpf-tg-ava img { width: 100% !important; height: 100% !important; border: 2px solid #fff; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.adpf-tg-plane { position: absolute; right: -3px; bottom: -2px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: #2AABEE; }
.adpf-tg-n { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border: 2px solid #fff; border-radius: 11px; background: #E53935; color: #fff; font: 600 11.5px/17px var(--b); text-align: center; }
.adpf-tg-msg { position: relative; display: block; width: 236px; padding: 9px 12px 7px; border-radius: 16px 16px 16px 4px; background: #fff; color: #000;  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: left bottom; pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.adpf-tg.is-msg .adpf-tg-msg { opacity: 1; transform: none; pointer-events: auto; }
.adpf-tg-from { display: block; margin-bottom: 2px; font: 600 13.5px/1.2 var(--b); color: #168ACD; }
.adpf-tg-txt { display: none; font: 400 14px/1.35 var(--b); color: #111; }
.adpf-tg.is-typed .adpf-tg-txt { display: inline; }
.adpf-tg.is-typed .adpf-tg-dots { display: none; }
.adpf-tg-dots { display: inline-flex; gap: 4px; padding: 6px 0 4px; }
.adpf-tg-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9AA6B0; animation: adpfTyping 1.2s infinite; }
.adpf-tg-dots i:nth-child(2) { animation-delay: .15s; }
.adpf-tg-dots i:nth-child(3) { animation-delay: .3s; }
.adpf-tg-time { float: right; margin: 5px 0 0 10px; font: 400 11px/1 var(--b); color: #8E9AA4; }
.adpf-tg-time b { color: #4FAE4E; font-weight: 400; letter-spacing: -3px; }
.adpf-tg-x { position: absolute; top: -8px; right: -8px; display: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 15px; line-height: 22px; cursor: pointer; }
.adpf-tg.is-msg .adpf-tg-x { display: block; }

/* ---------- Pop-up de profil ---------- */
html.adpf-pop-open, html.adpf-pop-open body { overflow: hidden !important; }
.adpf-pop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 16, 18, .78); opacity: 0; transition: opacity .25s ease; font-family: var(--b); }
.adpf-pop.is-on { opacity: 1; }
.adpf-pop__box { position: relative; display: flex; flex-direction: column; width: min(400px, 92vw); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--fil); border-radius: var(--r2); background: var(--graphite2); color: var(--os); transform: translateY(16px) scale(.97); transition: transform .3s ease; }
.adpf-pop.is-on .adpf-pop__box { transform: none; }
.adpf-pop p { margin: 0; }
.adpf-pop a { text-decoration: none; }
.adpf-pop__band { display: flex; align-items: center; gap: 10px; padding: 13px 52px 13px 20px; background: var(--nuit); border-bottom: 1px solid var(--graphite3); color: var(--os); font: 600 13px/1.2 var(--t); }
.adpf-pop__band::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--soufre); animation: adpfPulse 1.8s infinite; }
.adpf-pop__x { position: absolute; top: 7px; right: 9px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--fil); border-radius: 50%; background: transparent; color: var(--os); font-size: 20px; line-height: 1; cursor: pointer; }
.adpf-pop__x:hover { background: var(--graphite3); }
.adpf-pop__pic { position: relative; display: block; flex: 0 0 auto; height: 300px; overflow: hidden; background: var(--nuit); }
.adpf-pop__img { position: absolute; inset: 0; }
.adpf-pop__pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15, 16, 18, .3) 0%, rgba(15, 16, 18, 0) 22%, rgba(15, 16, 18, 0) 60%, rgba(15, 16, 18, .82) 100%); pointer-events: none; }
.adpf-pop__top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.adpf-pop__top .adpf-badge { padding: 4px 8px; border-radius: var(--r); background: var(--soufre); color: var(--graphite); font: 600 11.5px/1 var(--b); }
.adpf-pop__top .adpf-fotos { margin-left: auto; padding: 5px 8px; border-radius: var(--r); background: rgba(15, 16, 18, .72); color: var(--blanc); font: 600 12px/1 var(--b); }
.adpf-pop__top .adpf-badge { padding: 4px 8px; border-radius: var(--r); background: var(--soufre); color: var(--graphite); font: 600 11.5px/1 var(--b); }
.adpf-pop__st { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; color: var(--blanc); font: 600 13px/1 var(--b); }
.adpf-pop__st i { width: 9px; height: 9px; border-radius: 50%; background: var(--soufre); animation: adpfPulse 1.8s infinite; }
.adpf-pop__st.is-recent { color: var(--clair2); }
.adpf-pop__st.is-recent i { background: var(--acier2); animation: none; }
.adpf-pop__body { display: flex; flex-direction: column; gap: 7px; padding: 15px 20px 16px; }
.adpf-pop__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 600 23px/1.15 var(--t); color: var(--blanc); }
.adpf-pop__age { font: 600 15px/1 var(--b); color: var(--soufre); }
.adpf-pop__loc { font: 600 13px/1.3 var(--b); color: var(--clair); }
.adpf-pop__headline { font: 600 16px/1.35 var(--b); color: var(--blanc); }
.adpf-pop__desc { font: 400 14px/1.45 var(--b); color: var(--clair); }
.adpf-pop .adpf-pop__cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin-top: 6px; border-radius: var(--r); background: var(--soufre); color: var(--graphite); font: 600 16px/1.1 var(--b); }
.adpf-pop .adpf-pop__cta:hover { background: var(--soufre2); color: var(--graphite); }
.adpf-no { align-self: center; padding: 6px; border: 0; background: none; color: var(--acier2); font: 500 13.5px/1 var(--b); text-decoration: underline; cursor: pointer; }
.adpf-pop__trust { text-align: center; font: 500 12px/1.3 var(--b); color: var(--acier2); }

@keyframes adpfPulse { 70% { box-shadow: 0 0 0 7px rgba(210, 230, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 230, 60, 0); } }
@keyframes adpfShimmer { to { background-position: -200% 0; } }
@keyframes adpfTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes adpfCta { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }

@media (max-width: 1239px) { body.adpa .adpf-online { display: none; } }
@media (max-width: 1100px) {
  body.adpa .adpf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.adpa .adpf-reg { padding: 0 12px; }
  body.adpa .adpf-reg__l { display: none; }
  body.adpa .adpf-reg__s { display: inline; }
}
@media (max-width: 860px) {
  body.adpa .adpf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.adpa .adpf-grid--row .adpf-card:nth-child(n+4) { display: none; }
  body.adpa .adpf-grid--top .adpf-card:nth-child(n+7) { display: none; }
}
@media (max-width: 639px) {
  body.adpa .adpf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.adpa .adpf-body { gap: 5px; padding: 10px 10px 11px; }
  body.adpa .adpf-title { font-size: 13.5px; }
  body.adpa .adpf-who { font-size: 12px; }
  body.adpa .adpf-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; }
  body.adpa .adpf-tags { display: none; }
  body.adpa .adpf-btn { min-height: 38px; font-size: 13px; }
  body.adpa .adpf-grid--row { display: flex; gap: 10px; margin: 0 -16px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  body.adpa .adpf-grid--row::-webkit-scrollbar { display: none; }
  body.adpa .adpf-grid--row .adpf-card { flex: 0 0 64%; scroll-snap-align: start; }
  body.adpa .adpf-grid--row .adpf-card:nth-child(n+4) { display: flex; }
  body.adpa .adpf-grid--top .adpf-card:nth-child(n+7) { display: flex; }
  body.adpa .adpf-htools { margin-left: auto; }
  body.adpa .adpf-reg { height: 38px; padding: 0 11px; font-size: 12.5px; }
  .adpf-sticky { left: 0; bottom: 0; width: 100%; gap: 10px; padding: 9px 10px 10px 14px; border-radius: var(--r2) var(--r2) 0 0; transform: translateY(110%); }
  .adpf-sticky.is-on { transform: none; }
  .adpf-sticky p { font-size: 13px; }
  .adpf-sticky p span { display: none; }
  .adpf-avas img { width: 32px !important; height: 32px !important; }
  body.adpf-has-bar .adpf-tg { bottom: 74px; }
  .adpf-tg { left: 12px; bottom: 12px; }
  .adpf-tg-ava { width: 56px; height: 56px; }
  .adpf-tg-msg { width: 210px; }
  .adpf-pop__pic { height: 250px; }
  body.adpa .adpf-stories { gap: 10px; height: 90px; }
  body.adpa .adpf-sto { width: 64px; }
  body.adpa .adpf-sto i { width: 62px; height: 62px; }
  body.adpa .adpf-st-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .adpf-card, .adpf-sticky, .adpf-tg, .adpf-tg-msg, .adpf-pop, .adpf-pop__box, .adpf-pic img { transition: none !important; }
  .adpf-live, .adpf-tg-dots i, .adpf-card.is-skel .adpf-pic, .adpf-card.is-skel .adpf-body, .adpf-pop__cta, .adpf-pop__st i, .adpf-pop__band::before { animation: none !important; }
}

/* ---------- Fiches profil : carte du HTML entièrement cliquable vers la fiche (inc/annuaire/profils.php, a.adpf-pf) ---------- */
body.adpa .adpf-card--pf { position: relative; }
body.adpa .adpf-card--pf .adpf-btn.adpf-pf::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body.adpa .adpf-card--pf .adpf-pic { position: relative; z-index: 2; }
body.adpa .adpf-card--pf:hover .adpf-btn { background: var(--soufre); color: var(--graphite); }
