/* Couche DÉMO mutualisée (demosites/_shared/) : habillage du bandeau
   « site de démonstration » et des toasts injectés par demo.js.
   N'existe pas sur un site livré. Palette NEUTRE (aucune charte de démo) :
   les couleurs s'ajustent au besoin via les variables --ds-* posées par la
   feuille de la démo. Bas-droite pour ne jamais recouvrir le pill admin du
   portfolio (bas-gauche). */

.ds-demo {
  position: fixed; right: 16px; bottom: 16px; z-index: 9990;
  max-width: 300px; padding: 14px 38px 14px 16px;
  background: var(--ds-bg, #23252b); color: var(--ds-fg, #f4f3ee);
  border-radius: 16px; box-shadow: 0 14px 40px rgba(15, 18, 24, .35);
  font: 14px/1.45 Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
}
.ds-demo__head strong { display: block; font-size: .95rem; }
.ds-demo__head span { display: block; font-size: .8rem; opacity: .8; margin-top: 2px; }
.ds-demo__cta {
  display: inline-block; margin-top: 12px; padding: 8px 13px;
  background: var(--ds-accent, #f4f3ee); color: var(--ds-accent-fg, #23252b);
  border-radius: 999px;
  font-size: .84rem; font-weight: 700; text-decoration: none;
}
.ds-demo__cta:hover { filter: brightness(.92); }
.ds-demo__close {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: inherit;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.ds-demo__close:hover { background: rgba(255, 255, 255, .28); }
.ds-demo__close svg { display: block; width: 14px; height: 14px; margin: 0 auto; }

/* Replié : une petite pastille discrète */
.ds-demo--min { padding: 10px 34px 10px 14px; max-width: 220px; }
.ds-demo--min .ds-demo__head span,
.ds-demo--min .ds-demo__cta { display: none; }

.ds-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 9995;
  max-width: min(480px, calc(100vw - 32px)); padding: 12px 18px;
  background: var(--ds-bg, #23252b); color: var(--ds-fg, #f4f3ee);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15, 18, 24, .35);
  font: 14px/1.5 Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.ds-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .ds-demo { right: 10px; bottom: 10px; left: auto; max-width: min(300px, calc(100vw - 20px)); }
}
@media print { .ds-demo, .ds-toast { display: none; } }
