/* 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 « Cuir » (annuaire.css : --noir, --cuir, --cognac,
   --ivoire, --sable, --encre, --brun, --t, --b, --r, --r2). Arrondis courts comme le reste de l'annuaire. */

body.cra .crapf-live { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(43, 182, 115, .5); animation: crapfPulse 1.8s infinite; vertical-align: 1px; }
body.cra .crapf-on { color: #1E8A55; font-weight: 700; }
body.cra .crapf-on::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--vert); vertical-align: 1px; }
body.cra .crapf-off { color: var(--cognac-f); }

/* ---------- Section HTML (25 cartes, H2 + H3) ---------- */
body.cra .cra-ville__profils .crapf-intro { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
body.cra .cra-ville__profils .crapf-intro strong { color: var(--encre); }
body.cra .cra-section--cuir.cra-ville__profils .crapf-intro strong { color: var(--ivoire); }
body.cra .cra-section--cuir.cra-ville__profils .crapf-more__btn { background: var(--cognac); }
body.cra .crapf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
body.cra .crapf-more { margin: 26px 0 0; text-align: center; }
body.cra .crapf-more__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: var(--r); background: var(--encre); color: var(--ivoire); font: 700 15px/1 var(--b); text-decoration: none; transition: background .2s ease; }
body.cra .crapf-more__btn:hover { background: var(--cognac-f); color: #fff; }

/* ---------- Carte ---------- */
body.cra .crapf-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--blanc); border: 1px solid var(--sable); border-radius: var(--r2); color: var(--encre); box-shadow: 0 10px 24px -18px rgba(21, 16, 14, .55); transition: transform .2s ease, box-shadow .2s ease; }
body.cra .crapf-card:not(.is-skel):hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(21, 16, 14, .7); }
body.cra .crapf-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sable); }
body.cra .crapf-pic img, body.cra .crapf-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.cra .crapf-card:hover .crapf-pic img { transform: scale(1.04); }
body.cra .crapf-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 8px; border-radius: var(--r); background: var(--rouge); color: #fff; font: 700 11px/1 var(--b); }
body.cra .crapf-fotos { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 5px 8px; border-radius: var(--r); background: rgba(13, 9, 8, .66); color: #fff; font: 600 12px/1 var(--b); }
body.cra .crapf-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 13px 14px; }
body.cra .crapf-body p { margin: 0; max-width: none; }
body.cra .crapf-title { margin: 0; font: 700 15px/1.3 var(--t); letter-spacing: 0; text-transform: none; color: var(--encre); }
body.cra .crapf-who { font: 400 13px/1.3 var(--b); color: var(--brun); }
body.cra .crapf-who strong { color: var(--encre); font-weight: 700; }
body.cra .crapf-desc { font: 400 13px/1.45 var(--b); color: var(--brun); }
body.cra .crapf-tags { font: 400 12px/1.35 var(--b); color: var(--gris); }
body.cra .crapf-tags b { color: var(--brun); }
body.cra .crapf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: auto; padding: 8px 12px; border-radius: var(--r); background: var(--cognac); color: #fff; font: 700 13.5px/1.1 var(--b); text-align: center; text-decoration: none; transition: background .2s ease, transform .2s ease; }
body.cra .crapf-btn:hover { background: var(--cognac-f); color: #fff; transform: translateY(-1px); }

/* ---------- Rangées du guide (JavaScript) ---------- */
body.cra .crapf-slot { display: none; }
html.crapf-js body.cra .crapf-slot { display: block; }
body.cra .arc-seo-content .crapf-slot { margin: 38px 0 44px; }
body.cra .crapf-slot p { margin: 0; }
body.cra .crapf-slot a { text-decoration: none; }
body.cra .crapf-row-head { min-height: 26px; margin: 0 0 12px !important; font: 700 clamp(17px, 1.8vw, 20px)/1.2 var(--t); color: inherit; }
body.cra .crapf-slot--row { margin: 34px 0; }
body.cra .crapf-band { padding: 6px 0; background: var(--noir); color: var(--ivoire); }
html:not(.crapf-js) body.cra .crapf-band { display: none; }
body.cra .crapf-slot--top { padding: 34px 0 40px; background: var(--noir); color: var(--ivoire); border-bottom: 1px solid var(--trait); }
body.cra .crapf-top-head { min-height: 56px; margin-bottom: 16px; }
body.cra .crapf-top-title { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--t) !important; color: var(--ivoire); }
body.cra .crapf-top-sub { margin-top: 6px !important; font: 600 13.5px/1.3 var(--b); color: var(--clair); }
body.cra .crapf-grid--top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.cra .crapf-grid--top .crapf-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.cra .crapf-slot--top .crapf-more__btn { background: var(--cognac); color: #fff; }
body.cra .crapf-grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.cra .crapf-grid--row .crapf-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.cra .crapf-card.is-skel { min-height: 420px; }
body.cra .crapf-card.is-skel .crapf-pic, body.cra .crapf-card.is-skel .crapf-body { background: linear-gradient(100deg, var(--sable) 30%, var(--ivoire) 50%, var(--sable) 70%) 0 0 / 200% 100%; animation: crapfShimmer 1.4s linear infinite; }

/* ---------- Bande d'avatars (haut de page) ---------- */
body.cra .crapf-slot--stories { padding: 14px 0 6px; background: var(--noir); border-bottom: 1px solid var(--trait); }
body.cra .crapf-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.cra .crapf-st-head b { color: var(--vert); font-weight: 800; }
body.cra .crapf-stories { display: flex; gap: 14px; height: 98px; margin: 0 -4px; padding: 2px 4px 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
body.cra .crapf-stories::-webkit-scrollbar { display: none; }
body.cra .crapf-sto { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 72px; color: var(--ivoire); text-decoration: none; }
body.cra .crapf-sto i { position: relative; display: block; width: 68px; height: 68px; padding: 3px; border-radius: 50%; background: linear-gradient(45deg, var(--or), var(--cognac2) 50%, var(--cognac-f)); }
body.cra .crapf-sto.is-skel i { background: var(--cuir2); }
body.cra .crapf-sto i img { display: block; width: 100% !important; height: 100% !important; border: 2px solid var(--noir); border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
body.cra .crapf-sto.is-on i::after { content: ''; position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; border: 2.5px solid var(--noir); border-radius: 50%; background: var(--vert); }
body.cra .crapf-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.cra .crapf-htools { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-left: 12px; }
body.cra .crapf-online { display: inline-flex; align-items: center; white-space: nowrap; font: 600 12.5px/1.2 var(--b); color: var(--clair); }
body.cra .crapf-online b { min-width: 2.6em; margin-right: 4px; color: var(--vert); font-weight: 800; text-align: right; }
body.cra .crapf-reg { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: var(--r); background: var(--rouge); color: #fff !important; font: 700 14px/1 var(--b); text-decoration: none !important; white-space: nowrap; transition: background .2s ease; }
body.cra .crapf-reg:hover { background: var(--rouge2); }
body.cra .crapf-reg__s { display: none; }

/* ---------- Barre fixe ---------- */
.crapf-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(--trait2); border-radius: var(--r2); background: var(--nuit); color: #fff; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .6); transform: translate(-50%, 160%); transition: transform .35s ease; font-family: var(--b); }
.crapf-sticky.is-on { transform: translate(-50%, 0); }
.crapf-avas { display: flex; flex: 0 0 auto; padding-left: 10px; }
.crapf-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%; }
.crapf-sticky p { flex: 1; margin: 0; font: 500 14px/1.25 var(--b); color: var(--clair); }
.crapf-sticky p b { color: var(--cognac2); font-weight: 800; }
.crapf-sticky .crapf-btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--r); background: var(--cognac); color: #fff; font: 700 13.5px/1 var(--b); text-decoration: none; }
.crapf-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; }
.crapf-x:hover { color: #fff; }

/* ---------- Bulle façon Telegram ---------- */
.crapf-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); }
.crapf-tg.is-on { transform: none; }
body.crapf-has-bar .crapf-tg { bottom: 84px; }
.crapf-tg a { text-decoration: none; }
.crapf-tg-ava { position: relative; flex: 0 0 auto; display: block; width: 62px; height: 62px; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, #37AEE2, #1E96C8); box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .4); }
.crapf-tg-ava img { width: 100% !important; height: 100% !important; border: 2px solid #fff; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.crapf-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; }
.crapf-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: 700 11.5px/17px var(--b); text-align: center; }
.crapf-tg-msg { position: relative; display: block; width: 236px; padding: 9px 12px 7px; border-radius: 16px 16px 16px 4px; background: #fff; color: #000; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(8px) scale(.96); transform-origin: left bottom; pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.crapf-tg.is-msg .crapf-tg-msg { opacity: 1; transform: none; pointer-events: auto; }
.crapf-tg-from { display: block; margin-bottom: 2px; font: 700 13.5px/1.2 var(--b); color: #168ACD; }
.crapf-tg-txt { display: none; font: 400 14px/1.35 var(--b); color: #111; }
.crapf-tg.is-typed .crapf-tg-txt { display: inline; }
.crapf-tg.is-typed .crapf-tg-dots { display: none; }
.crapf-tg-dots { display: inline-flex; gap: 4px; padding: 6px 0 4px; }
.crapf-tg-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9AA6B0; animation: crapfTyping 1.2s infinite; }
.crapf-tg-dots i:nth-child(2) { animation-delay: .15s; }
.crapf-tg-dots i:nth-child(3) { animation-delay: .3s; }
.crapf-tg-time { float: right; margin: 5px 0 0 10px; font: 400 11px/1 var(--b); color: #8E9AA4; }
.crapf-tg-time b { color: #4FAE4E; font-weight: 400; letter-spacing: -3px; }
.crapf-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; }
.crapf-tg.is-msg .crapf-tg-x { display: block; }

/* ---------- Pop-up de profil ---------- */
html.crapf-pop-open, html.crapf-pop-open body { overflow: hidden !important; }
.crapf-pop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 9, 8, .72); opacity: 0; transition: opacity .25s ease; font-family: var(--b); }
.crapf-pop.is-on { opacity: 1; }
.crapf-pop__box { position: relative; display: flex; flex-direction: column; width: min(400px, 92vw); max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--r2); background: var(--ivoire); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); transform: translateY(16px) scale(.97); transition: transform .3s ease; }
.crapf-pop.is-on .crapf-pop__box { transform: none; }
.crapf-pop p { margin: 0; }
.crapf-pop a { text-decoration: none; }
.crapf-pop__band { display: flex; align-items: center; gap: 10px; padding: 13px 52px 13px 20px; background: var(--cuir); color: var(--ivoire); font: 700 13px/1.2 var(--t); }
.crapf-pop__band::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cognac2); animation: crapfPulse 1.8s infinite; }
.crapf-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 rgba(244, 236, 226, .35); border-radius: 50%; background: transparent; color: var(--ivoire); font-size: 20px; line-height: 1; cursor: pointer; }
.crapf-pop__x:hover { background: rgba(244, 236, 226, .14); }
.crapf-pop__pic { position: relative; display: block; flex: 0 0 auto; height: 300px; overflow: hidden; background: var(--nuit); }
.crapf-pop__img { position: absolute; inset: 0; }
.crapf-pop__pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13, 9, 8, .3) 0%, rgba(13, 9, 8, 0) 22%, rgba(13, 9, 8, 0) 60%, rgba(13, 9, 8, .82) 100%); pointer-events: none; }
.crapf-pop__top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.crapf-pop__top .crapf-badge, .crapf-pop__top .crapf-fotos { position: static; }
.crapf-pop__top .crapf-fotos { margin-left: auto; padding: 5px 8px; border-radius: 6px; background: rgba(13, 9, 8, .66); color: #fff; font: 600 12px/1 var(--b); }
.crapf-pop__top .crapf-badge { padding: 5px 8px; border-radius: 6px; background: var(--rouge); color: #fff; font: 700 11px/1 var(--b); }
.crapf-pop__st { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; color: #fff; font: 700 13px/1 var(--b); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.crapf-pop__st i { width: 9px; height: 9px; border-radius: 50%; background: #2ED47A; animation: crapfPulse 1.8s infinite; }
.crapf-pop__st.is-recent { color: #FFD08A; }
.crapf-pop__st.is-recent i { background: #F6B26B; animation: none; }
.crapf-pop__body { display: flex; flex-direction: column; gap: 7px; padding: 15px 20px 16px; }
.crapf-pop__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 700 23px/1.15 var(--t); color: var(--encre); }
.crapf-pop__age { font: 700 15px/1 var(--b); color: var(--cognac-f); }
.crapf-pop__loc { font: 600 13px/1.3 var(--b); color: var(--brun); }
.crapf-pop__headline { font: 700 16px/1.35 var(--b); color: var(--encre); }
.crapf-pop__desc { font: 400 14px/1.45 var(--b); color: var(--brun); }
.crapf-pop .crapf-pop__cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin-top: 6px; border-radius: var(--r); background: var(--rouge); color: #fff; font: 800 16px/1.1 var(--b); animation: crapfCta 2.4s ease-in-out infinite; }
.crapf-pop .crapf-pop__cta:hover { background: var(--rouge2); color: #fff; }
.crapf-no { align-self: center; padding: 6px; border: 0; background: none; color: var(--gris); font: 600 13.5px/1 var(--b); text-decoration: underline; cursor: pointer; }
.crapf-pop__trust { text-align: center; font: 600 12px/1.3 var(--b); color: var(--brun); }

@keyframes crapfPulse { 70% { box-shadow: 0 0 0 7px rgba(43, 182, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0); } }
@keyframes crapfShimmer { to { background-position: -200% 0; } }
@keyframes crapfTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes crapfCta { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

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