/* =========================================================
   Profil public d'un membre (/profil_public/<jeton>/) — refonte 2026 (v3.0.962)
   Bandeau pétrole (même famille que l'accueil et le fil) avec photo, nom, fonction
   et boutons ; colonne « À propos » collante sur ordinateur ; publications avec
   les cartes de l'accueil (.acc-feed / .af-post dans accueil.css).
   Chargée après accueil.css.
   ========================================================= */

/* Contenu collé sous la barre du haut (73 px) sur ordinateur, au bord sur mobile */
body main.prf-main { padding-top: 73px !important; }
@media (max-width: 767.98px) {
  body main.prf-main { padding-top: 0 !important; margin-top: 0 !important; }
}

.prf-page {
  background: var(--acc-mist);
  color: var(--acc-ink);
  min-height: 100vh;
  padding: 0 0 56px;
}
.prf-shell {
  width: min(1104px, calc(100% - 2rem));
  margin: 0 auto;
}
@media (min-width: 640px) {
  .prf-shell { width: min(1104px, calc(100% - 2.5rem)); }
}

/* ---------- Bandeau ---------- */
.prf-band {
  position: relative;
  overflow: hidden;
  background: var(--acc-petrol);
  color: #fff;
}
.prf-band .acc-hero__lines { width: 100%; color: rgba(159, 214, 236, .16); }
@media (min-width: 768px) {
  .prf-band .acc-hero__lines { width: 55%; }
}
/* Couverture choisie par le membre : visible, mais voilée pour garder le texte lisible */
.prf-band__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prf-band--cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 58, 80, .55) 0%, rgba(7, 58, 80, .9) 62%, var(--acc-petrol) 100%);
}
.prf-band--cover .acc-hero__lines { display: none; }

.prf-band__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  padding: 24px 0 24px;
}
@media (min-width: 1024px) {
  .prf-band__in {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 40px 0 36px;
  }
}

.prf-id {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
@media (min-width: 768px) {
  .prf-id { gap: 24px; }
}
.prf-avatar {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--acc-brand);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
  font-family: var(--acc-serif);
  font-size: 28px;
  font-weight: 500;
  color: #fff;
}
.prf-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .prf-avatar { width: 112px; height: 112px; font-size: 40px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9); }
}
.prf-id__text { min-width: 0; }

.prf-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acc-ice);
}
.prf-name {
  margin: 0;
  font-family: var(--acc-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 6.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: #fff;
  overflow-wrap: anywhere;
}
.prf-role {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .82);
}
.prf-role strong { font-weight: 600; color: #fff; }
.prf-role__sep { margin: 0 6px; color: var(--acc-ice); }
.prf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}
.prf-meta__item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.prf-meta__item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--acc-ice); }
.prf-meta__link { color: rgba(255, 255, 255, .85) !important; text-decoration: underline; text-decoration-color: rgba(159, 214, 236, .5); text-underline-offset: 3px; }
.prf-meta__link:hover { color: #fff !important; }

/* Boutons : l'action principale (rose) sur toute la largeur, les autres se partagent les lignes ;
   sur ordinateur, une colonne de boutons de même largeur à droite du nom */
.prf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.prf-actions__form { margin: 0; display: contents; }
.prf-actions .acc-btn { flex: 1 1 160px; padding: 0 16px; font-size: 15px; }
.prf-actions .acc-btn--pink { flex-basis: 100%; }
@media (min-width: 640px) {
  .prf-actions { max-width: 520px; }
}
@media (min-width: 1024px) {
  .prf-actions { width: 480px; justify-content: flex-end; }
  .prf-actions .acc-btn { flex-basis: 220px; padding: 0 14px; }
  .prf-actions .acc-btn--pink { flex-basis: 100%; }
}
/* Un seul bouton (Se connecter, Modifier mon profil) : largeur naturelle, pas une barre */
@media (min-width: 640px) {
  .prf-actions:has(> a.acc-btn:only-of-type):not(:has(form)) { width: auto; }
  .prf-actions > a.acc-btn:only-of-type { flex: 0 0 auto; min-width: 220px; padding: 0 28px; }
}
/* Écrire / Appeler : pastilles en haut à droite de la bannière (mobile : l'une sous l'autre, réserve à droite du nom) */
.prf-quick {
  position: absolute;
  top: 14px;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prf-quick:not(:has(a, template)) { display: none; }
.prf-band__in:has(.prf-quick a) .prf-kicker,
.prf-band__in:has(.prf-quick a) .prf-name,
.prf-band__in:has(.prf-quick a) .prf-role { padding-right: 64px; }
@media (min-width: 640px) {
  .prf-quick { flex-direction: row; }
  .prf-band__in:has(.prf-quick a) .prf-kicker,
  .prf-band__in:has(.prf-quick a) .prf-name,
  .prf-band__in:has(.prf-quick a) .prf-role { padding-right: 120px; }
}
@media (min-width: 1024px) {
  .prf-quick { top: 20px; }
  .prf-band__in:has(.prf-quick a) .prf-kicker,
  .prf-band__in:has(.prf-quick a) .prf-name,
  .prf-band__in:has(.prf-quick a) .prf-role { padding-right: 0; }
}
/* Écrire / Appeler : petites icônes rondes, cible tactile de 48 px */
.prf-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
  background: #fff; color: var(--acc-petrol) !important; border: 1px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transition: transform .12s ease, background .12s ease;
}
.prf-iconbtn svg { width: 22px; height: 22px; }
.prf-iconbtn:hover { background: #f1f5f9; }
.prf-iconbtn:active { transform: scale(.94); }
.prf-iconbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.prf-iconbtn--call { background: var(--acc-petrol); color: #fff !important; border-color: rgba(255, 255, 255, .6); }
.prf-iconbtn--call:hover { background: #004f6e; }
.prf-btn--white { background: #fff; color: var(--acc-petrol) !important; border: 1px solid #fff; }
.prf-btn--white:hover { background: var(--acc-mist); }
.prf-btn--petrol { background: var(--acc-petrol); color: #fff !important; border: 1px solid var(--acc-petrol); }
.prf-btn--petrol:hover { background: var(--acc-brand); border-color: var(--acc-brand); }
.prf-btn--on { border-color: var(--acc-ice); }
.prf-btn--on svg { color: #7EE2A8; }

/* Fenêtre de confirmation du partage de coordonnées */
.prf-dialog {
  width: 100%;
  max-width: 28rem;
  padding: 22px;
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 24px 60px -20px rgba(7, 58, 80, .5);
  text-align: left;
  color: var(--acc-ink);
}
.prf-dialog__title { margin: 0 0 8px; font-family: var(--acc-serif); font-size: 1.4rem; font-weight: 500; line-height: 1.2; }
.prf-dialog__text { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #2B3E48; }
.prf-dialog__note { margin: 0 0 16px; padding: 10px 12px; font-size: 14px; line-height: 1.45; color: var(--acc-petrol); background: var(--acc-mist); border: 1px solid var(--acc-hair); border-radius: .5rem; }
.prf-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* ---------- Grille : colonne + publications ---------- */
.prf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "side" "feed";
  gap: 22px;
  margin-top: 22px;
}
.prf-side { grid-area: side; min-width: 0; display: grid; gap: 14px; align-content: start; align-self: start; }
.prf-feed { grid-area: feed; min-width: 0; display: grid; gap: 14px; align-content: start; }
@media (min-width: 1024px) {
  .prf-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "feed side";
    gap: 40px;
    margin-top: 32px;
  }
}
@media (min-width: 1024px) and (min-height: 700px) {
  .prf-side { position: sticky; top: 97px; }
}

/* ---------- Cartes de la colonne ---------- */
.prf-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--acc-hair);
  border-radius: .75rem;
  min-width: 0;
}
.prf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.prf-card__head .prf-card__label { margin: 0; }
.prf-card__label {
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acc-brand);
}
.prf-card__muted { margin: 0 0 12px; font-size: 14px; color: #557080; }
.prf-card__hint { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--acc-hair); font-size: 13px; line-height: 1.5; color: #557080; }
.prf-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: .5rem;
  background: var(--acc-mist);
  border: 1px solid var(--acc-hair);
  font-size: 14px;
  font-weight: 600;
  color: var(--acc-brand) !important;
  text-decoration: none !important;
}
.prf-card__link:hover { border-color: var(--acc-sky); }
.prf-card__link svg { width: 14px; height: 14px; flex-shrink: 0; }

.prf-flag { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #92400E; background: #FEF3C7; border: 1px solid #FDE68A; }

/* Outils du carnet : grille de 2 */
.prf-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prf-tools form { margin: 0; display: contents; }
.prf-tool {
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: .5rem;
  background: #fff;
  border: 1px solid var(--acc-hair);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--acc-petrol);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.prf-tool:hover { border-color: var(--acc-sky); background: var(--acc-mist); }
.prf-tool.is-on { background: #FEF3C7; border-color: #F59E0B; color: #92400E; }
.prf-tool--danger { color: #B91C1C; }
.prf-tool--danger:hover { border-color: #FCA5A5; background: #FEF2F2; }

/* À propos */
.prf-bio { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #2B3E48; overflow-wrap: anywhere; }
.prf-facts { margin: 0; display: grid; }
.prf-facts__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--acc-hair);
  font-size: 14px;
  line-height: 1.45;
}
.prf-facts__row:first-child { border-top: 0; padding-top: 0; }
.prf-bio + .prf-facts .prf-facts__row:first-child { border-top: 1px solid var(--acc-hair); padding-top: 10px; }
.prf-facts dt { margin: 0; color: #557080; }
.prf-facts dd { margin: 0; font-weight: 600; color: var(--acc-ink); overflow-wrap: anywhere; }
.prf-facts dd a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--acc-brand) !important; text-decoration: none; }
.prf-facts dd a:hover { text-decoration: underline; }
.prf-facts__sub { display: block; font-weight: 400; color: #557080; }

/* Échange de contact (visiteurs) */
.prf-card--petrol { background: var(--acc-petrol); border-color: var(--acc-petrol); color: #fff; }
.prf-card--petrol .prf-card__label { color: var(--acc-ice); }
.prf-card__title { margin: 0 0 6px; font-family: var(--acc-serif); font-size: 1.45rem; font-weight: 500; line-height: 1.15; color: #fff; }
.prf-card__text { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.prf-guest { display: grid; gap: 10px; margin: 0; }
.prf-guest__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .35);
  background: #fff;
  font-size: 16px;
  color: var(--acc-ink);
}
.prf-guest__input:focus { outline: 2px solid var(--acc-ice); outline-offset: 1px; }
.prf-guest__btn { width: 100%; }
.prf-guest__error { margin: 0; font-size: 13px; font-weight: 600; color: #FECDD3; }
.prf-guest__result { margin-top: 14px; padding: 14px; border-radius: .5rem; background: #fff; color: var(--acc-ink); }
.prf-guest__result-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.prf-guest__result-text { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #2B3E48; overflow-wrap: anywhere; }
.prf-guest__full { width: 100%; }
.prf-guest__duo { display: grid; gap: 8px; }
.prf-guest__duo .acc-btn { width: 100%; }

/* ---------- Notes ---------- */
.prf-notes__status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #15803D; }
.prf-notes__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.prf-notes__area {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border-radius: .5rem;
  border: 1px solid var(--acc-hair);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--acc-ink);
  resize: vertical;
}
.prf-notes__area:focus { outline: none; border-color: var(--acc-brand); box-shadow: 0 0 0 3px rgba(0, 98, 137, .12); }
.prf-notes__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; font-size: 13px; color: #557080; }
.prf-notes__foot p { margin: 0; }

/* ---------- Publications ---------- */
.prf-feedhead { display: grid; gap: 12px; }
.prf-feedhead__title {
  margin: 0;
  font-family: var(--acc-serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--acc-ink);
}
.prf-page .prf-filters { margin: 0 !important; }
.prf-list { display: grid; gap: 14px; }
.prf-list[class] { grid-area: auto; }
/* Filtres : les cartes ont « display:block !important » (fil partagé), d'où une classe plutôt que x-show */
.prf-page .prf-list > .af-post.is-off { display: none !important; }
.prf-page .af-post__time { text-transform: lowercase !important; }
.prf-page .af-post__link { color: inherit; text-decoration: none; }
.prf-untitled { color: #8A8A98 !important; font-style: italic; }

.prf-empty {
  padding: 22px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--acc-sky);
  border-radius: .75rem;
}
.prf-empty__title { margin: 0; font-family: var(--acc-serif); font-size: 1.3rem; font-weight: 500; color: var(--acc-ink); }
.prf-empty__text { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #557080; }

/* ---------- Profil privé ---------- */
.prf-private { position: relative; z-index: 1; padding: 64px 0; text-align: center; }
.prf-private__title { margin: 0 0 10px; font-family: var(--acc-serif); font-weight: 500; font-size: clamp(1.9rem, 6vw, 2.6rem); color: #fff; }
.prf-private__text { margin: 0 auto 22px; max-width: 28rem; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .8); }

/* ─── Vos matchs en commun (profil public vu par un membre connecté) ─── */
.mc-bloc { background: #fff; border: 1px solid #dde6ea; border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; }
.mc-bloc__titre { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: #003a52; }
.mc-bloc__liste { list-style: none; margin: 0; padding: 0; }
.mc-ligne { padding: 10px 0; border-top: 1px solid #eef2f4; }
.mc-ligne:first-child { border-top: 0; padding-top: 0; }
.mc-ligne__texte { margin: 0; font-size: 14px; line-height: 1.4; color: #1f2d36; overflow-wrap: anywhere; }
.mc-ligne__label { font-weight: 700; color: #557080; }
.mc-ligne__sep { color: #9db0ba; margin: 0 2px; }
.mc-ligne__lien { color: #006289; font-weight: 700; text-decoration: underline; }
.mc-ligne__meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: #557080; }
.mc-ligne__rubrique { background: #eaf3f7; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.mc-ligne__etoiles { font-size: 15px; letter-spacing: 1px; color: #dfe6ea; }
.mc-ligne__etoiles .is-on { color: #fbbf24; }
.mc-bloc__tous { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: #c5165d; text-decoration: underline; }

/* Après un scan de QR : matchs en commun en tête de page */
.mc-scan { background: #eaf6ef; border-bottom: 1px solid #b9e0c9; padding: 14px 0; }
.mc-scan--vide { background: #fff; border-bottom-color: #dde6ea; }
.mc-scan__titre { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: #003a52; }
.mc-scan__texte { margin: 0 0 4px; font-size: 14px; line-height: 1.4; color: #1f2d36; }
.mc-scan .mc-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.mc-scan .mc-ligne__corps { flex: 1 1 220px; min-width: 0; }
.mc-scan .mc-ligne__btn { flex: 0 0 auto; }
.mc-scan .mc-ligne:first-child { padding-top: 10px; }
@media (max-width: 480px) { .mc-scan .mc-ligne__btn { width: 100%; justify-content: center; } }
