/* Bouton « Partager » et fenêtre (réseaux, lien, code QR) — assets/share.js. Suit les couleurs du modèle de la boutique. */
.share-group { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 9px 14px; border-radius: 2px; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--ink-soft); background: var(--surface, transparent); }
.share-group.share-link .share-btn { border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; background: none; }
.share-group.share-link .share-btn-qr .share-qr-label { display: inline; }
@media (max-width: 520px) { .share-btn-qr .share-qr-label { display: none; } .share-btn-qr { padding: 9px 11px; } }
.share-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(15,12,8,.55); display: grid; place-items: center; padding: 14px; }
.share-overlay[hidden] { display: none; }
.share-dialog { position: relative; width: min(440px, 100%); max-height: 92vh; overflow: auto; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); padding: 20px; }
.share-dialog h2 { font-size: 1.25rem; margin: 0 0 2px; padding-right: 36px; }
.share-what { margin: 0 0 14px; color: var(--ink-soft); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); border-radius: 50%; }
.share-close:hover { background: var(--surface, rgba(0,0,0,.06)); }
.share-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.share-tabs button { font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 12px; border: 0; background: none; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.share-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.share-nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-nets a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: .74rem; font-weight: 600; text-align: center; }
.share-nets .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.share-nets a:hover .ico, .share-nets a:focus-visible .ico { transform: scale(1.07); }
.share-copy { display: flex; gap: 8px; margin-top: 16px; }
.share-copy input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); background: var(--surface, transparent); color: var(--ink); font: inherit; font-size: .84rem; border-radius: 2px; }
.share-copy button, .share-qr-actions button, .share-native { font: inherit; font-weight: 600; font-size: .86rem; padding: 9px 14px; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 2px; }
.share-qr-actions button.is-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.share-native { width: 100%; margin-top: 12px; background: transparent; color: var(--ink); border-color: var(--line); }
.share-qr { display: grid; justify-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-qr-title { font-size: .95rem; font-weight: 600; margin: 0; }
.share-qr-img { width: min(260px, 70vw); aspect-ratio: 1; background: #fff; padding: 6px; border: 1px solid var(--line); line-height: 0; } .share-qr-img svg { width: 100%; height: auto; display: block; }
.share-qr-note { margin: 0; text-align: center; font-size: .84rem; color: var(--ink-soft); }
.share-qr-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-toast { margin: 8px 0 0; font-size: .82rem; color: var(--ink-soft); min-height: 1.2em; }

/* Emplacements selon les modèles de boutique. */
.lb-share, .md-share { margin-top: 4px; }
html[data-layout="librairie"] .share-btn, html[data-layout="mode"] .share-btn { border-radius: 0; }
html[data-layout="mode"] .share-btn { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; }
html[data-layout="librairie"] .lb-foot .share-link .share-btn, html[data-layout="mode"] .md-foot .share-link .share-btn { color: inherit; }
html[data-layout="librairie"] .lb-share .share-btn { background: var(--bg); width: auto; }
footer.site .footer-bottom .share-link { margin-left: auto; }

/* Boutons de page : accueil, boutique, listes. */
.hero-ctas .share-group { margin-left: 4px; }
.md-hero-share { margin-left: 18px; vertical-align: middle; display: inline-block; }
.md-hero-share .share-btn { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.md-hero-share .share-btn:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.md-shop-share { margin-left: auto; } .md-shop-head { flex-wrap: wrap; }
.lb-toolbar .share-group { margin-left: auto; margin-right: 12px; } .lb-hero-links .share-btn { display: inline-flex; vertical-align: middle; }
.shop-head .share-row { margin-top: 6px; }
/* Accueil classique : boutons de partage lisibles sur la photo d'en-tête. */
.hero-ctas { flex-wrap: wrap; }
section.hero.has-page-banner .share-btn { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
section.hero.has-page-banner .share-btn:hover { background: rgba(255,255,255,.14); border-color: #fff; }
