/* AcShare v1.4 - bulles de partage des événements et articles (Âme & Conscience) */
.acshare {
  --ac-text: #2E2A24;
  --ac-muted: #7A6F62;
  --ac-gold: #C8B89A;
  --ac-gold-dk: #6A5530;
  --ac-border: #E8DFD2;
  --ac-card: #F5F0EB;
  --acs-size: 40px;
  --acs-icon: 17px;
  --acs-title: 26px;
  --acs-scale: 1; /* réglage « Taille » du module, ex. 0.8 pour 80 % */
  color: var(--ac-text);
  font-size: 18px;
  line-height: 1.5;
}

/* En attente de placement par le script : pas de clignotement sous le panier */
.acshare.acshare-move:not([data-placed]) { display: none; }

.acshare-title {
  margin: 0 0 .55rem;
  font-family: 'Dancing Script', 'Segoe Script', 'Brush Script MT', cursive;
  font-size: calc(var(--acs-title) * var(--acs-scale));
  font-weight: 700;
  line-height: 1.15;
  color: var(--ac-gold-dk);
}

.acshare-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.acshare .acshare-btn {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.acshare .acshare-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--acs-size) * var(--acs-scale));
  height: calc(var(--acs-size) * var(--acs-scale));
  border-radius: 50%;
  color: #fff;
  opacity: .92;
  box-shadow: 0 1px 4px rgba(46, 42, 36, .14);
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.acshare .acshare-bubble i {
  font-size: calc(var(--acs-icon) * var(--acs-scale));
  line-height: 1;
  color: #fff;
}

/* Libellés : visibles seulement dans le bloc sous le panier, sinon infobulle */
.acshare .acshare-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.acshare a.acshare-btn,
.acshare a.acshare-btn:visited,
.acshare button.acshare-btn,
.product-additional-info .acshare a.acshare-btn {
  color: var(--ac-text) !important;
  text-decoration: none !important;
}

.acshare .acshare-btn:hover .acshare-bubble,
.acshare .acshare-btn:focus-visible .acshare-bubble {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46, 42, 36, .2);
}

.acshare .acshare-btn:focus-visible { outline: none; }
.acshare .acshare-btn:focus-visible .acshare-bubble {
  outline: 2px solid var(--ac-gold);
  outline-offset: 3px;
}

/* ---------- Couleurs de chaque réseau ---------- */
.acshare--network .acshare-facebook .acshare-bubble { background: #1877F2; }
.acshare--network .acshare-whatsapp .acshare-bubble { background: #25D366; }
.acshare--network .acshare-instagram .acshare-bubble {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.acshare--network .acshare-email .acshare-bubble { background: #8A7560; }
.acshare--network .acshare-copy .acshare-bubble { background: #6A5530; }
.acshare--network .acshare-linkedin .acshare-bubble { background: #0A66C2; }
.acshare--network .acshare-telegram .acshare-bubble { background: #26A5E4; }
.acshare--network .acshare-pinterest .acshare-bubble { background: #E60023; }

/* ---------- Couleurs de la boutique ---------- */
.acshare--brand .acshare-bubble {
  background: linear-gradient(145deg, #C8B89A 0%, #A08A5E 55%, #6A5530 100%);
}

/* ---------- Emplacement : sous la photo / le badge ---------- */
.acshare--at-image {
  margin: 1rem auto .25rem;
  padding-top: .9rem;
  border-top: 1px solid var(--ac-border);
  text-align: center;
}
.acshare--at-image .acshare-list { justify-content: center; }

/* ---------- Emplacement : sous le panier (bloc complet) ---------- */
.acshare--at-cart {
  --acs-size: 46px;
  --acs-icon: 20px;
  margin: 1.25rem 0 .75rem;
  padding: .9rem 1.1rem 1rem;
  background: var(--ac-card);
  border: 1px solid var(--ac-border);
  border-radius: 12px;
}
.acshare--at-cart .acshare-list { gap: .8rem 1.2rem; }
.acshare--at-cart .acshare-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  font-size: calc(15px * max(var(--acs-scale), .9));
  font-weight: 500;
  line-height: 1.2;
}

/* ---------- Emplacements en haut : sous le prix / sous le bouton du bandeau ---------- */
.acshare--at-topcart,
.acshare--at-price {
  --acs-size: 36px;
  --acs-icon: 16px;
  --acs-title: 23px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .6rem;
}
.acshare--at-topcart .acshare-title,
.acshare--at-price .acshare-title {
  margin: 0;
  white-space: nowrap;
}
.acshare--at-topcart .acshare-list,
.acshare--at-price .acshare-list { gap: .4rem; }
.acshare.acshare--float {
  position: absolute;
  z-index: 2;
  justify-content: flex-end;
}
.acshare.acshare--flow { margin: .5rem 0 .2rem; }

/* ---------- Message flottant ---------- */
.acshare-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 99999;
  box-sizing: border-box;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  padding: .85rem 1.15rem;
  background: #2E2A24;
  color: #FFFDF9;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
  word-break: break-word;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s ease, transform .25s ease;
}
.acshare-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .acshare .acshare-bubble,
  .acshare-toast { transition: none; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 767px) {
  .acshare { --acs-size: 42px; --acs-icon: 18px; }
  .acshare-list { justify-content: center; }
  .acshare--at-cart { text-align: center; }
  .acshare--at-cart .acshare-list { gap: .7rem .9rem; }
  .acshare.acshare--float {
    position: static;
    margin: .6rem 0 .2rem;
  }
  .acshare--at-topcart,
  .acshare--at-price { justify-content: center; }
}

@media (max-width: 359px) {
  .acshare { --acs-size: 38px; --acs-icon: 16px; }
  .acshare-list { gap: .4rem; }
}
