/* ==========================================================================
   Croissance — partage (.share-*), invitations et badge
   Chargé après les feuilles de pages : les règles ci-dessous complètent celles des pages.
   ========================================================================== */

/* ---------- Boutons de partage (share.js) ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.share-label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.share-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }

.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  cursor: pointer; text-decoration: none !important;
  transition: background 0.15s var(--ease), border-color 0.15s, color 0.15s, transform 0.1s;
}
.share-btn .icon { width: 18px; height: 18px; }
.share-btn:hover { background: var(--share-brand, var(--ink)); border-color: var(--share-brand, var(--ink)); color: #fff; }
.share-btn:active { transform: scale(0.94); }
.share-btn--linkedin { --share-brand: #0a66c2; }
.share-btn--facebook { --share-brand: #1877f2; }
.share-btn--x { --share-brand: #000; }
.share-btn--whatsapp { --share-brand: #1a9e4e; }
.share-btn--email { --share-brand: var(--brand); }
.share-btn--copy { --share-brand: var(--ink); }

/* Copie : l'icône devient une coche pendant 2 s */
.share-btn--copy .icon-check { display: none; }
.share-btn--copy.is-copied { background: var(--success); border-color: var(--success); color: #fff; }
.share-btn--copy.is-copied .icon-copy { display: none; }
.share-btn--copy.is-copied .icon-check { display: block; }

@media (pointer: coarse) {
  .share-btn { width: 44px; height: 44px; }
}

.share--compact .share-btn { width: 34px; height: 34px; }
.share--compact .share-btn .icon { width: 16px; height: 16px; }
.share--compact .share-list { gap: 6px; }
@media (pointer: coarse) {
  .share--compact .share-btn { width: 40px; height: 40px; }
}

/* Partage natif : appareils tactiles seulement (classe posée par bindShare) */
.share .share-btn--native {
  display: none; width: auto; height: 40px; padding: 0 16px 0 14px; border-radius: var(--radius-pill);
  background: var(--ink); border-color: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 600;
}
.share .share-btn--native:hover { background: #000; border-color: #000; }
@media (pointer: coarse) {
  .has-native-share .share .share-btn--native { display: inline-flex; height: 44px; }
  .has-native-share .share--compact .share-btn--native { height: 40px; }
}

/* ---------- Fenêtre « Partager » ---------- */
.share-dialog { display: grid; gap: 20px; }
.share-dialog-intro { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.share-link { display: flex; gap: 8px; align-items: stretch; }
.share-link input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); text-overflow: ellipsis;
}
.share-link .btn { flex-shrink: 0; }
@media (max-width: 480px) {
  .share-link { flex-direction: column; }
  .share-link input { height: 44px; }
}

/* ---------- Carte d'encouragement (invitations, badge) ---------- */
.growth-card {
  position: relative; display: grid; gap: 14px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.growth-card-head { display: flex; align-items: flex-start; gap: 14px; }
.growth-card-ico {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand);
}
.growth-card-title { margin: 0 0 4px; font-size: var(--fs-md); letter-spacing: -0.01em; }
.growth-card-text { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.growth-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.growth-card-close { position: absolute; top: 10px; right: 10px; color: var(--muted); }
.growth-card-close:hover { color: var(--ink); }
