/* Freebie « Le Template seul » : composants propres */

.ts-h1 { margin-top: 26px; }
.ts-hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* Simulation du RM Guide */
.ts-admin {
  --brand: #8C8C8C;
  position: relative; border-radius: var(--radius-tile); background: var(--beige); color: var(--dark);
  padding: 14px 14px 18px; overflow: hidden;
}
.ts-admin-bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; font: 700 13px var(--font-text); }
.ts-publish { height: 34px; padding: 0 16px; border-radius: 34px; border: 0; background: var(--dark); color: var(--beige); font: 700 13px var(--font-text); }
.ts-site { background: #FFFFFF; border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.ts-site-title { text-align: left; background: none; border: 1.5px dashed transparent; border-radius: 10px; padding: 6px 8px; font: 400 26px/1.15 var(--font-title); color: var(--dark); min-height: 46px; }
.ts-typed { border-right: 2px solid transparent; }
.ts-site-photo {
  height: 120px; border-radius: 12px; border: 1.5px dashed transparent;
  background: repeating-linear-gradient(135deg, #EEE 0 12px, #E6E6E6 12px 24px);
  display: grid; place-items: center; font: 700 12px var(--font-text); color: #888;
  transition: background .5s;
}
.ts-admin.has-photo .ts-site-photo { background: linear-gradient(160deg, var(--brand), #1A1A1A); color: transparent; }
.ts-site-btn { justify-self: start; padding: 9px 18px; border-radius: 30px; background: var(--brand); color: #fff; font: 700 13px var(--font-text); transition: background .4s; }
.ts-swatches { display: flex; gap: 10px; margin-top: 12px; padding: 8px; border-radius: 30px; border: 1.5px dashed transparent; width: max-content; }
.ts-swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; background: var(--sw); box-shadow: 0 0 0 1px rgba(26, 26, 26, .15); }
.is-target { border-color: var(--green) !important; animation: ts-glow 1.4s infinite; }
@keyframes ts-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(136, 179, 61, .55); } 60% { box-shadow: 0 0 0 8px rgba(136, 179, 61, 0); } }
.ts-publish.is-target { background: var(--green); }
.ts-bubble {
  position: absolute; left: 14px; right: 14px; z-index: 3;
  display: flex; gap: 10px; align-items: center;
  background: var(--green); color: #fff; border-radius: 16px; padding: 12px 14px;
  font-weight: 700; font-size: 15px; box-shadow: 0 8px 20px rgba(26, 26, 26, .2);
  transition: top .35s var(--ease);
}
.ts-bubble[hidden] { display: none; }
.ts-bubble.is-pop { animation: ts-pop .35s var(--ease); }
@keyframes ts-pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.ts-bubble-n { font: 400 15px var(--font-title); background: rgba(255, 255, 255, .2); border-radius: 20px; padding: 2px 8px; flex: none; }
.ts-toast {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; background: var(--dark); color: #fff;
  border-radius: 30px; padding: 10px 18px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.ts-toast[hidden] { display: none; }
.ts-toast svg { width: 16px; height: 16px; color: var(--green-l); }
.ts-toast.is-on { animation: ts-pop .35s var(--ease); }
.ts-sim-note { margin: 10px 0 0; }
.ts-redo-wrap { margin: 6px 0 0; }
.ts-redo[hidden] { display: none; }

/* Comparatif */
.ts-compare { margin-top: 24px; }
.ts-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin-bottom: 16px; }
.ts-row-label { font-weight: 700; font-size: 15px; }
.ts-row-val { font: 400 22px/1 var(--font-title); text-align: right; white-space: nowrap; }
.ts-row-bar { grid-column: 1 / -1; height: 14px; border-radius: 14px; background: var(--line); overflow: hidden; order: 3; }
.ts-row-bar i { display: block; height: 100%; border-radius: 14px; transition: width .6s var(--ease); }
.ts-bar-abo { background: var(--muted-beige); }
.ts-bar-rm { background: var(--green); }
.ts-verdict { margin: 6px 0 0; font-size: 17px; }
.ts-verdict b { font: 400 24px var(--font-title); color: var(--green); }
.ts-calc-note { margin: 14px 0 0; }

/* Fin */
.ts-bloque p:last-child { margin: 0; }
.ts-cta-price { margin: 12px 0; font-size: 28px; }
.ts-cta-desc { margin: 0; color: rgba(255, 255, 255, .85); }
.ts-restart { margin-top: 30px; }
