/* Terre & Tasse — habillage de la couche DÉMO (bandeau + toasts).
   N'existe pas sur un site livré. Bas-droite pour ne jamais recouvrir le pill
   admin du portfolio (bas-gauche). */

.tt-demo {
  position: fixed; right: 16px; bottom: 16px; z-index: 9990;
  max-width: 300px; padding: 14px 38px 14px 16px;
  background: #2c2320; color: #f7efe2;
  border-radius: 16px; box-shadow: 0 14px 40px rgba(30, 20, 15, .35);
  font: 14px/1.45 Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
}
.tt-demo__head strong { display: block; font-size: .95rem; }
.tt-demo__head span { display: block; font-size: .8rem; opacity: .8; margin-top: 2px; }
.tt-demo__themes { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tt-demo__lbl { font-size: .8rem; opacity: .8; margin-right: 2px; }
.tt-demo__chip {
  border: 1px solid rgba(247, 239, 226, .35); background: transparent; color: inherit;
  border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .8rem; cursor: pointer;
}
.tt-demo__chip:hover { border-color: rgba(247, 239, 226, .8); }
.tt-demo__chip.is-on { background: #f7efe2; color: #2c2320; border-color: #f7efe2; font-weight: 700; }
.tt-demo__cta {
  display: inline-block; margin-top: 12px; padding: 8px 13px;
  background: #c05a2e; color: #fff; border-radius: 999px;
  font-size: .84rem; font-weight: 700; text-decoration: none;
}
.tt-demo__cta:hover { background: #9c451f; color: #fff; }
.tt-demo__close {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border: 0; border-radius: 50%; background: rgba(247, 239, 226, .14); color: inherit;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.tt-demo__close:hover { background: rgba(247, 239, 226, .28); }
.tt-demo__close svg { display: block; width: 14px; height: 14px; margin: 0 auto; }

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

.tt-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: #2c2320; color: #f7efe2; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(30, 20, 15, .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;
}
.tt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

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