/* Cartes de profils, bande d’avatars, barre fixe, bulle façon Telegram, pop-up (inc/annuaire/profils.php, assets/js/profils.js).
   DA « nuit canard » de L’Antidote (annuaire.css : --fond, --profond, --carte, --carte2, --fil, --texte, --blanc, --doux, --brume, --terra,
   --lai-l, --t Gilda Display, --b Urbanist, --r 3 px). Boutons rectangulaires à 2-3 px, terracotta pour l’action, laiton pour les badges et « en ligne ».
   Ni ombre décorative ni dégradé violet. */

body.aya .ayap-live { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--lai-l); box-shadow: 0 0 0 0 rgba(218, 190, 136, .5); animation: adpfPulse 1.8s infinite; vertical-align: 1px; }
body.aya .ayap-on { color: var(--lai-l); font-weight: 600; }
body.aya .ayap-on::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--lai-l); vertical-align: 1px; }
body.aya .ayap-off { color: var(--brume); }

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

/* ---------- Carte ---------- */
body.aya .ayap-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--carte); border: 1px solid var(--carte2); border-radius: var(--r); color: var(--texte); transition: transform .2s ease, border-color .2s ease; }
body.aya .ayap-card:not(.is-skel):hover { transform: translateY(-3px); border-color: var(--lai); }
body.aya .ayap-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--carte2); }
body.aya .ayap-pic img, body.aya .ayap-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.aya .ayap-card:hover .ayap-pic img { transform: scale(1.04); }
body.aya .ayap-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 8px; border-radius: var(--r); background: var(--lai); color: var(--fond); font: 600 11.5px/1 var(--b); }
body.aya .ayap-int { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 4px 8px; border-radius: var(--r); background: rgba(8, 26, 36, .82); color: var(--lai-l); border: 1px solid var(--lai); font: 600 11.5px/1 var(--b); }
body.aya .ayap-fotos { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 5px 8px; border-radius: var(--r); background: rgba(8, 26, 36, .72); color: var(--blanc); font: 600 12px/1 var(--b); }
body.aya .ayap-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 13px 14px; }
body.aya .ayap-body p { margin: 0; max-width: none; }
body.aya .ayap-title { margin: 0; font: 400 15.5px/1.3 var(--t); letter-spacing: 0; text-transform: none; color: var(--blanc); }
body.aya .ayap-who { font: 400 13px/1.3 var(--b); color: var(--doux); }
body.aya .ayap-who strong { color: var(--blanc); font-weight: 600; }
body.aya .ayap-desc { font: 400 13px/1.45 var(--b); color: var(--doux); }
body.aya .ayap-tags { font: 400 12px/1.35 var(--b); color: var(--brume); }
body.aya .ayap-tags b { color: var(--doux); font-weight: 500; }
body.aya .ayap-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: auto; padding: 8px 12px; border: 1px solid var(--terra); border-radius:3px; background: var(--terra); color: var(--blanc); font: 600 13.5px/1.1 var(--b); text-align: center; text-decoration: none; transition: background .2s ease, color .2s ease; }
body.aya .ayap-btn:hover, body.aya .ayap-card:hover .ayap-btn { background: var(--terra-d); border-color: var(--terra-d); color: var(--blanc); }

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

/* ---------- Bande d'avatars (haut de page) ---------- */
body.aya .ayap-slot--stories { padding: 14px 0 6px; background: var(--fond); border-bottom: 1px solid var(--carte2); }
body.aya .ayap-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(--doux); }
body.aya .ayap-st-head b { color: var(--lai-l); font-weight: 600; }
body.aya .ayap-stories { display: flex; gap: 14px; height: 98px; margin: 0 -4px; padding: 2px 4px 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
body.aya .ayap-stories::-webkit-scrollbar { display: none; }
body.aya .ayap-sto { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 72px; color: var(--texte); text-decoration: none; }
body.aya .ayap-sto i { position: relative; display: block; width: 68px; height: 68px; padding: 3px; border: 2px solid var(--lai); border-radius: 50%; background: transparent; }
body.aya .ayap-sto.is-skel i { border-color: var(--carte2); background: var(--carte2); }
body.aya .ayap-sto i img { display: block; width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
body.aya .ayap-sto.is-on i::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border: 2.5px solid var(--fond); border-radius: 50%; background: var(--lai-l); }
body.aya .ayap-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.aya .ayap-htools { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-left: 12px; }
body.aya .ayap-online { display: inline-flex; align-items: center; white-space: nowrap; font: 600 12.5px/1.2 var(--b); color: var(--doux); }
body.aya .ayap-online b { min-width: 2.6em; margin-right: 4px; color: var(--lai-l); font-weight: 600; text-align: right; }
body.aya .ayap-reg { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius:3px; background: var(--terra); color: var(--blanc) !important; font: 600 14px/1 var(--b); text-decoration: none !important; white-space: nowrap; transition: background .2s ease; }
body.aya .ayap-reg:hover { background: var(--terra-d); }
body.aya .ayap-reg__s { display: none; }

/* ---------- Barre fixe ---------- */
.ayap-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(--r); background: var(--profond); color: var(--blanc); transform: translate(-50%, 160%); transition: transform .35s ease; font-family: var(--b); }
.ayap-sticky.is-on { transform: translate(-50%, 0); }
.ayap-avas { display: flex; flex: 0 0 auto; padding-left: 10px; }
.ayap-avas img { width: 36px !important; height: 36px !important; margin-left: -10px; border: 2px solid var(--profond); border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.ayap-sticky p { flex: 1; margin: 0; font: 500 14px/1.25 var(--b); color: var(--doux); }
.ayap-sticky p b { color: var(--lai-l); font-weight: 600; }
.ayap-sticky .ayap-btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius:3px; background: var(--terra); color: var(--blanc); font: 600 13.5px/1 var(--b); text-decoration: none; margin-top: 0; }
.ayap-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; }
.ayap-x:hover { color: #fff; }

/* ---------- Bulle façon Telegram ---------- */
.ayap-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); }
.ayap-tg.is-on { transform: none; }
body.ayap-has-bar .ayap-tg { bottom: 84px; }
.ayap-tg a { text-decoration: none; }
.ayap-tg-ava { position: relative; flex: 0 0 auto; display: block; width: 62px; height: 62px; padding: 3px; border-radius: 50%; background: #2AABEE; }
.ayap-tg-ava img { width: 100% !important; height: 100% !important; border: 2px solid #fff; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.ayap-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; }
.ayap-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; }
.ayap-tg-msg { position: relative; display: block; width: 236px; padding: 9px 12px 7px; border-radius: 6px 6px 6px 2px; 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; }
.ayap-tg.is-msg .ayap-tg-msg { opacity: 1; transform: none; pointer-events: auto; }
.ayap-tg-from { display: block; margin-bottom: 2px; font: 600 13.5px/1.2 var(--b); color: #168ACD; }
.ayap-tg-txt { display: none; font: 400 14px/1.35 var(--b); color: #111; }
.ayap-tg.is-typed .ayap-tg-txt { display: inline; }
.ayap-tg.is-typed .ayap-tg-dots { display: none; }
.ayap-tg-dots { display: inline-flex; gap: 4px; padding: 6px 0 4px; }
.ayap-tg-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9AA6B0; animation: adpfTyping 1.2s infinite; }
.ayap-tg-dots i:nth-child(2) { animation-delay: .15s; }
.ayap-tg-dots i:nth-child(3) { animation-delay: .3s; }
.ayap-tg-time { float: right; margin: 5px 0 0 10px; font: 400 11px/1 var(--b); color: #8E9AA4; }
.ayap-tg-time b { color: #4FAE4E; font-weight: 400; letter-spacing: -3px; }
.ayap-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; }
.ayap-tg.is-msg .ayap-tg-x { display: block; }

/* ---------- Pop-up de profil ---------- */
html.ayap-pop-open, html.ayap-pop-open body { overflow: hidden !important; }
.ayap-pop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 26, 36, .78); opacity: 0; transition: opacity .25s ease; font-family: var(--b); }
.ayap-pop.is-on { opacity: 1; }
.ayap-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(--r); background: var(--carte); color: var(--texte); transform: translateY(16px) scale(.97); transition: transform .3s ease; }
.ayap-pop.is-on .ayap-pop__box { transform: none; }
.ayap-pop p { margin: 0; }
.ayap-pop a { text-decoration: none; }
.ayap-pop__band { display: flex; align-items: center; gap: 10px; padding: 13px 52px 13px 20px; background: var(--profond); border-bottom: 1px solid var(--carte2); color: var(--texte); font: 400 13px/1.2 var(--t); }
.ayap-pop__band::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lai-l); animation: adpfPulse 1.8s infinite; }
.ayap-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(--texte); font-size: 20px; line-height: 1; cursor: pointer; }
.ayap-pop__x:hover { background: var(--carte2); }
.ayap-pop__pic { position: relative; display: block; flex: 0 0 auto; height: 300px; overflow: hidden; background: var(--profond); }
.ayap-pop__img { position: absolute; inset: 0; }
.ayap-pop__pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8, 26, 36, .3) 0%, rgba(8, 26, 36, 0) 22%, rgba(8, 26, 36, 0) 60%, rgba(8, 26, 36, .82) 100%); pointer-events: none; }
.ayap-pop__top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.ayap-pop__top .ayap-badge { padding: 4px 8px; border-radius: var(--r); background: var(--lai); color: var(--fond); font: 600 11.5px/1 var(--b); }
.ayap-pop__top .ayap-fotos { margin-left: auto; padding: 5px 8px; border-radius: var(--r); background: rgba(8, 26, 36, .72); color: var(--blanc); font: 600 12px/1 var(--b); }
.ayap-pop__top .ayap-badge { padding: 4px 8px; border-radius: var(--r); background: var(--lai); color: var(--fond); font: 600 11.5px/1 var(--b); }
.ayap-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); }
.ayap-pop__st i { width: 9px; height: 9px; border-radius: 50%; background: var(--lai-l); animation: adpfPulse 1.8s infinite; }
.ayap-pop__st.is-recent { color: var(--doux2); }
.ayap-pop__st.is-recent i { background: var(--brume); animation: none; }
.ayap-pop__body { display: flex; flex-direction: column; gap: 7px; padding: 15px 20px 16px; }
.ayap-pop__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 400 23px/1.15 var(--t); color: var(--blanc); }
.ayap-pop__age { font: 600 15px/1 var(--b); color: var(--lai-l); }
.ayap-pop__loc { font: 600 13px/1.3 var(--b); color: var(--doux); }
.ayap-pop__headline { font: 600 16px/1.35 var(--b); color: var(--blanc); }
.ayap-pop__desc { font: 400 14px/1.45 var(--b); color: var(--doux); }
.ayap-pop .ayap-pop__cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin-top: 6px; border-radius:3px; background: var(--terra); color: var(--blanc); font: 600 16px/1.1 var(--b); }
.ayap-pop .ayap-pop__cta:hover { background: var(--terra-d); color: var(--blanc); }
.ayap-no { align-self: center; padding: 6px; border: 0; background: none; color: var(--brume); font: 500 13.5px/1 var(--b); text-decoration: underline; cursor: pointer; }
.ayap-pop__trust { text-align: center; font: 500 12px/1.3 var(--b); color: var(--brume); }

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

/* Pages profil : carte du HTML entièrement cliquable vers la fiche (le bouton couvre la carte) */
body.aya .ayap-card--pf{position:relative}
body.aya .ayap-card--pf .ayap-btn.ayap-pf::after{content:"";position:absolute;inset:0;z-index:1}
body.aya .ayap-card--pf .ayap-pic{position:relative;z-index:2}
