/* SYGNEX Solidaire — présentation historique + intégration portable. */

/* Emplacement historique sur la page des annonces : aspect et classes conservés. */
#sygnex-publications-public .sp-sponsor-area .sp-sponsor-square.sp-sponsor-live {
  display:block; position:relative; overflow:hidden; padding:0; border-style:solid;
  background:#fff; transition:opacity .35s ease;
}
#sygnex-publications-public .sp-sponsor-area .sp-sponsor-live .sygnex-carrousel-link {
  display:flex; width:100%; height:100%; min-height:180px; align-items:center;
  justify-content:center; text-decoration:none; position:relative;
}
#sygnex-publications-public .sp-sponsor-area .sp-sponsor-live .sygnex-carrousel-image {
  display:block; width:100%; height:100%; max-height:260px; object-fit:contain; border-radius:7px;
}
#sygnex-publications-public .sp-sponsor-area .sp-sponsor-live .sygnex-carrousel-caption {
  position:absolute; left:7px; right:7px; bottom:7px; padding:5px 7px;
  border-radius:5px; background:rgba(7,55,99,.84); color:#fff;
  font-size:10px; line-height:1.3; text-align:center;
}
#sygnex-publications-public .sp-sponsor-area .sp-sponsor-live.sygnex-carrousel-fade { opacity:.25; }

/* Page Publications : carrousel sponsorisé au-dessus du moteur de recherche. */
#sygnex-publications-public .sp-public-sidebar > .sp-sponsor-area {
  margin: 0 auto 14px !important;
}

/* Objet HTML portable : peut être placé sur toute page Website X5. */
.sygnex-carrousel-embed {
  display:block;
  width:100%;
  max-width:var(--sygnex-carrousel-max-width, 100%);
  margin:16px auto;
  box-sizing:border-box;
}
.sygnex-carrousel-embed[hidden] { display:none !important; }
.sygnex-carrousel-shell {
  width:100%;
  box-sizing:border-box;
  padding:10px;
  border:1px solid #dbe4ef;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 12px rgba(7,55,99,.08);
}
.sygnex-carrousel-heading {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin:0 0 8px;
}
.sygnex-carrousel-badge {
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:5px;
  background:#073763;
  color:#fff;
  font-family:Arial,sans-serif;
  font-size:10px;
  font-weight:800;
  letter-spacing:.07em;
  line-height:1.3;
  text-transform:uppercase;
}
.sygnex-carrousel-stage {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:var(--sygnex-carrousel-ratio, 16 / 9);
  min-height:0;
  overflow:hidden;
  border-radius:8px;
  background:#f4f7fb;
  transition:opacity .35s ease;
}
.sygnex-carrousel-link {
  display:flex;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  outline-offset:3px;
}
.sygnex-carrousel-image {
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:var(--sygnex-carrousel-fit, contain);
}
.sygnex-carrousel-caption {
  position:absolute;
  left:8px;
  right:8px;
  bottom:8px;
  display:block;
  padding:6px 9px;
  border-radius:6px;
  background:rgba(7,55,99,.86);
  color:#fff;
  font-family:Arial,sans-serif;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  text-align:center;
  overflow-wrap:anywhere;
}
.sygnex-carrousel-fade { opacity:.25; }
.sygnex-carrousel-empty {
  padding:14px;
  border:1px dashed #b8c8da;
  border-radius:9px;
  color:#526176;
  background:#f7f9fc;
  font:13px/1.5 Arial,sans-serif;
  text-align:center;
}

@media(max-width:680px) {
  #sygnex-publications-public .sp-public-sidebar > .sp-sponsor-area { margin:0 auto 12px !important; }
  #sygnex-publications-public .sp-sponsor-area .sp-sponsor-live { max-width:100%; aspect-ratio:1/1; }
  #sygnex-publications-public .sp-sponsor-area .sp-sponsor-live .sygnex-carrousel-link { min-height:130px; }
  #sygnex-publications-public .sp-sponsor-area .sp-sponsor-live .sygnex-carrousel-image { max-height:150px; }
  .sygnex-carrousel-shell { padding:7px; border-radius:9px; }
  .sygnex-carrousel-caption { left:5px; right:5px; bottom:5px; font-size:11px; }
}
