/* ══════════════════════════════════════════════════════════════════════════
   LE BLOC « PARTAGER » D'UNE FICHE (7.18.0) — views/partials/partage_bloc.ejs

   Fiches d'événement et d'offre : l'aperçu de l'image carrée (dessinée par
   public/js/partage-visuel.js), la plaquette PDF, les images Instagram et
   TikTok, « Copier le lien » (public/js/partage-lien.js).
   ══════════════════════════════════════════════════════════════════════════ */

.hn-partager { scroll-margin-top: 90px; }
.hn-partager__sous { margin: -4px 0 16px; font-size: 14px; color: var(--gris); }

/* Sur une page qui n'a pas ses propres cartes (la fiche d'offre). */
.hn-partager--carte {
  margin-top: 28px; padding: 24px 26px;
  border: 1px solid var(--trait); border-radius: 18px; background: #fff;
}
.hn-partager--carte h2 { margin: 0 0 12px; font-size: 19px; }

/* La configuration de l'image (bloc JSON lu par partage-visuel.js). */
.pv-config { display: none; }
.pv:not(.est-pret) .pv-apercu { visibility: hidden; }

.hn-partager__grille { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.hn-partager__pv {
  position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #F9EEF7, #FBF5FA);
}
.hn-partager__pv .pv-apercu { display: block; width: 100%; height: 100%; object-fit: cover; }
.hn-partager__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.hn-action {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 13px 14px; border: 1px solid var(--trait); border-radius: 14px;
  background: #fff; color: var(--encre); font: inherit; text-align: left; cursor: pointer; text-decoration: none;
}
.hn-action:hover { border-color: var(--theme); color: var(--encre); text-decoration: none; }
.hn-action .ico, .hn-action svg { flex: none; width: 22px; height: 22px; color: var(--theme); }
.hn-action span { display: flex; flex-direction: column; min-width: 0; }
.hn-action strong { font-size: 14px; }
.hn-action small { font-size: 12px; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-action.est-copie { border-color: var(--succes, #1E7B45); }
.hn-action.est-copie strong { color: var(--succes, #1E7B45); }

@media (max-width: 640px) {
  .hn-partager--carte { padding: 18px; }
  .hn-partager__grille { grid-template-columns: minmax(0, 1fr); }
  .hn-partager__pv { max-width: 260px; }
  .hn-partager__actions { grid-template-columns: minmax(0, 1fr); }
}
/* Les tailles de titres imposées sous 767 px par app.css (`!important`). */
@media (max-width: 767px) {
  .hn-partager--carte h2 { font-size: 18px !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   26/11/2026 — PARTAGER EN UN CLIC SUR LES RÉSEAUX (partials/partage_reseaux)
   Les couleurs des réseaux au survol seulement : au repos, la rangée suit
   la charte du site, comme les autres icônes au trait.
   ══════════════════════════════════════════════════════════════════════ */
.hn-reseaux { margin: 0 0 16px; }
.hn-reseaux__titre { margin: 0 0 10px; font-size: 14px; }
.hn-reseaux__titre span { color: var(--gris); }
.hn-reseaux__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hn-reseaux__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--trait, #E4E1EC); border-radius: 12px; background: #fff;
  color: var(--encre, #1E1B2E); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.hn-reseaux__btn:hover { text-decoration: none; color: #fff; }
.hn-reseaux__btn .ico, .hn-reseaux__btn svg { width: 18px; height: 18px; flex: none; }
.hn-reseaux__btn--linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.hn-reseaux__btn--facebook:hover { background: #1877F2; border-color: #1877F2; }
.hn-reseaux__btn--x:hover { background: #111; border-color: #111; }
.hn-reseaux__btn--whatsapp:hover { background: #128C4A; border-color: #128C4A; }
.hn-reseaux__btn--telegram:hover { background: #2481CC; border-color: #2481CC; }
.hn-reseaux__btn--email:hover { background: var(--theme, #6B47A6); border-color: var(--theme, #6B47A6); }
.hn-reseaux--compact .hn-reseaux__btn { width: 40px; min-height: 40px; padding: 0; justify-content: center; }

/* Le menu « Partager » d'une ligne de la liste des offres (espace). */
.hn-partage-menu { position: relative; display: inline-block; }
.hn-partage-menu > summary { list-style: none; cursor: pointer; }
.hn-partage-menu > summary::-webkit-details-marker { display: none; }
.hn-partage-menu__panneau {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: max-content; max-width: 320px;
  padding: 12px; border: 1px solid var(--trait, #E4E1EC); border-radius: 14px; background: #fff;
  box-shadow: 0 14px 36px rgba(30, 27, 46, .14);
}
.hn-partage-menu__panneau .hn-reseaux { margin: 0; }
