/* Bouton « Partager » et feuille de partage (partager.js). Pétrole #006289. */
.partager { position: relative; display: inline-flex; min-width: 0; }
.partager__btn {
  /* Bouton tertiaire discret : zone tactile de 44 px, visuel compact (icône + « Partager », sans cadre). */
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 10px; margin: 0; border-radius: 10px;
  border: 0; background: transparent; color: #006289;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
}
.partager__btn:hover { background: #eef4f7; }
.partager__btn:focus-visible { outline: 2px solid #006289; outline-offset: 2px; }
.partager__btn svg { width: 16px; height: 16px; flex: none; }
/* Rangée seule (QR code) : centré, discret */
.partager-row { display: flex; justify-content: center; margin: 4px 0; }
/* Dans les rangées d'actions existantes (Page Pro ; le profil a sa propre rangée, profil_public.css) : en dernier, centré, sur toute la largeur */
.cta-grid > .partager, .ep-actions > .partager {
  order: 99; flex: 0 0 100%; grid-column: 1 / -1; justify-content: center;
}
.pd-byline > .partager { margin-left: auto; flex: none; }

/* ── Feuille de partage ── */
html.pf-ouvert { overflow: hidden; }
.pf[hidden] { display: none; }
.pf {
  position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(15, 23, 42, 0); transition: background .2s ease;
}
.pf.is-on { background: rgba(15, 23, 42, .5); }
.pf__panneau {
  position: relative; box-sizing: border-box; width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fff; color: #0f172a;
  border-radius: 20px 20px 0 0; box-shadow: 0 -8px 32px rgba(15, 23, 42, .25);
  transform: translateY(24px); opacity: 0; transition: transform .22s ease, opacity .22s ease; outline: none;
  font-family: inherit;
}
.pf.is-on .pf__panneau { transform: none; opacity: 1; }
.pf__poignee { display: block; width: 40px; height: 4px; margin: 0 auto 6px; border-radius: 2px; background: #cbd5e1; }
.pf__tete { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.pf__titre { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; }
.pf__fermer {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -10px 0 0;
  border: 0; border-radius: 50%; background: transparent; color: #475569; cursor: pointer;
}
.pf__fermer:hover { background: #f1f5f9; }
.pf__fermer svg { width: 20px; height: 20px; }
.pf button:focus-visible, .pf a:focus-visible, .pf input:focus-visible { outline: 2px solid #006289; outline-offset: 2px; }

/* Aperçu */
.pf-apercu { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.pf-apercu__vignette {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; overflow: hidden;
  border-radius: 12px; background: #006289; color: #fff; font-size: 22px; font-weight: 700;
}
.pf-apercu__vignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pf-apercu__vignette.is-vide img { display: none; }
.pf-apercu__initiale { line-height: 1; }
.pf-apercu__vignette:not(.is-vide) .pf-apercu__initiale { visibility: hidden; }
.pf-apercu__txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pf-apercu__titre { font-size: 15px; line-height: 1.25; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-apercu__sub { font-size: 13px; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-apercu__dom { font-size: 12px; color: #64748b; }

/* Canaux : une seule ligne, défilement horizontal si l'écran est étroit */
.pf-canaux { display: flex; flex-wrap: nowrap; gap: 4px; margin: 0 -16px 14px; padding: 0 16px 2px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.pf-canaux::-webkit-scrollbar { display: none; }
.pf-canaux__li { flex: 1 0 60px; display: flex; justify-content: center; }
.pf-canal {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 60px; min-height: 44px; padding: 4px 0;
  border: 0; background: transparent; color: #334155; font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 12px;
}
.pf-canal:hover .pf-canal__rond { transform: translateY(-1px); filter: brightness(1.06); }
.pf-canal__rond { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; transition: transform .12s ease; }
.pf-canal__rond svg { width: 26px; height: 26px; }
.pf-canal--whatsapp .pf-canal__rond { background: #25d366; }
.pf-canal--linkedin .pf-canal__rond { background: #0a66c2; }
.pf-canal--email .pf-canal__rond { background: #006289; }
.pf-canal--sms .pf-canal__rond { background: #16a34a; }
.pf-canal--plus .pf-canal__rond { background: #e2e8f0; color: #334155; }

/* Lien + Copier */
.pf-lien { display: flex; gap: 8px; align-items: stretch; }
.pf-lien__champ {
  flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 44px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 12px;
  background: #f8fafc; color: #334155; font: inherit; font-size: 14px; text-overflow: ellipsis;
}
.pf-lien__btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 104px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 12px; background: #006289; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.pf-lien__btn:hover { background: #00546f; }
.pf-lien__btn svg { width: 16px; height: 16px; }
.pf-lien__btn.is-ok { background: #047857; }
.pf__etat { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* QR */
.pf-qr { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.pf-qr__img { flex: none; width: 112px; height: 112px; padding: 4px; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.pf-qr__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pf-qr__legende { margin: 0; font-size: 13px; color: #475569; line-height: 1.35; }
.pf-qr__dl {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid #006289; border-radius: 12px;
  background: #fff; color: #006289; font-size: 14px; font-weight: 700; text-decoration: none;
}
.pf-qr__dl:hover { background: #eef4f7; }
.pf-qr__dl svg { width: 16px; height: 16px; }

/* Ordinateur : fenêtre centrée */
@media (min-width: 640px) {
  .pf { align-items: center; }
  .pf__panneau { max-width: 440px; border-radius: 20px; padding: 14px 20px 20px; box-shadow: 0 20px 60px rgba(15, 23, 42, .35); }
  .pf__poignee { display: none; }
  .pf-canaux { margin: 0 -20px 14px; padding: 0 20px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf, .pf__panneau, .pf-canal__rond { transition: none; }
}
