/* Senkys — codes promo : ligne de l'encart des offres, cartes coupon, fenêtre du code. */

/* ── Bouton « Voir le code » : le code dépasse, masqué, sous un rabat ── */
.promo-btn { position: relative; display: inline-flex; align-items: stretch; min-width: 190px; height: 40px;
  border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: var(--text-sm); flex-shrink: 0; }
.promo-btn:hover { text-decoration: none; }
.promo-btn-code { display: flex; align-items: center; justify-content: flex-end; flex: 1; padding: 0 12px 0 30px;
  border: 2px dashed var(--brass); border-left: none; border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff; color: var(--ink); font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 1px; }
.promo-btn-cta { position: relative; z-index: 1; display: flex; align-items: center; padding: 0 16px;
  background: var(--accent); color: #fff; border-radius: var(--radius) 0 0 var(--radius); white-space: nowrap;
  margin-right: -22px; transition: margin-right .18s ease, background .18s ease; }
/* Coin replié : le rabat qui se soulève au survol */
.promo-btn-cta::after { content: ''; position: absolute; top: 0; right: -14px; width: 0; height: 0;
  border-top: 14px solid var(--accent-ink); border-right: 14px solid transparent; }
.promo-btn:hover .promo-btn-cta { margin-right: -12px; background: var(--accent-ink); }
.promo-btn-cta:only-child { border-radius: var(--radius); margin-right: 0; padding: 0 22px; }
.promo-btn-cta:only-child::after { display: none; }
.promo-btn-lg { height: 48px; min-width: 220px; font-size: var(--text-md, 15px); }

.promo-pill { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brass); background: var(--brass-soft); border: 1px solid #e8d4ab; border-radius: 999px; padding: 2px 10px; }

/* ── Ligne sous l'offre, dans l'encart « Comparer les prix » ── */
.cmp-table tr.cmp-promo td { padding: 0 var(--space-4) var(--space-4); }
.cmp-row.has-promo td { border-bottom: none; }
.promo-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  background: linear-gradient(90deg, var(--brass-soft), #fbf6ec); border: 1.5px dashed var(--brass);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.promo-strip-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.promo-strip-title { font-size: var(--text-md, 15px); color: var(--ink); }
.promo-strip-meta { font-size: var(--text-sm); color: var(--ink-mute); }
.promo-best { color: var(--ok); }

/* ── Cartes coupon (pages codes promo, page boutique) ── */
.promo-list { display: flex; flex-direction: column; gap: var(--space-4); }
.promo-card { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: var(--space-5);
  background: var(--surface); border: 1.5px dashed var(--brass); border-radius: var(--radius-lg); padding: var(--space-5); }
.promo-card-val { display: flex; align-items: center; justify-content: center; height: 84px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.5px; text-align: center; }
.promo-card-val.is-gift { font-size: 36px; background: var(--brass-soft); }
.promo-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.promo-card-title { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.promo-card-meta, .promo-card-cond { font-size: var(--text-sm); color: var(--ink-mute); }
.promo-soon { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.promo-soon li { display: flex; gap: var(--space-3); align-items: baseline; font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-alt); }
.promo-soon .when { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ── Fenêtre du code ── */
.pm-lock, .pm-lock body { overflow: hidden; }
.pm-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: var(--space-4); background: rgba(24, 20, 48, .55); }
.pm-overlay[hidden] { display: none; }
.pm-box { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; background: var(--surface); border-radius: var(--radius-lg); padding: 30px 26px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pm-close { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 28px; line-height: 1; color: var(--ink-mute); cursor: pointer; }
.pm-merchant { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.pm-title { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pm-codebox { display: flex; width: 100%; margin-top: 6px; border: 2px dashed var(--accent); border-radius: var(--radius); overflow: hidden; }
.pm-code { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px; background: var(--accent-soft);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--accent); user-select: all; }
.pm-copy { border: none; background: var(--accent); color: #fff; font-weight: 700; padding: 0 18px; cursor: pointer; }
.pm-copy:hover { background: var(--accent-ink); }
.pm-copied { font-size: var(--text-sm); font-weight: 700; color: var(--ok); }
.pm-copied[hidden], .pm-cond[hidden], .pm-copy[hidden] { display: none; }
.pm-until { font-size: var(--text-sm); color: var(--ink); }
.pm-cond { font-size: 12px; color: var(--ink-mute); }
.pm-go { width: 100%; margin-top: 6px; }
.pm-note { font-size: 11.5px; color: var(--ink-mute); }

@media (max-width: 820px) {
  .cmp-table tr.cmp-row.has-promo { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; border-bottom: none; }
  .cmp-table tr.cmp-promo { margin: 0 var(--space-4) var(--space-3); }
  .cmp-table tr.cmp-promo td { padding: 0; }
  .promo-strip { flex-direction: column; align-items: stretch; border-radius: 0 0 var(--radius) var(--radius); }
  .promo-btn { width: 100%; }
}
@media (max-width: 640px) {
  .promo-card { grid-template-columns: 1fr; text-align: left; }
  .promo-card-val { height: 60px; }
  .promo-card-cta .promo-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-btn-cta { transition: none; }
}

/* ── FAQ des pages codes promo ── */
.promo-faq details { border-top: 1px solid var(--border); padding: var(--space-3) 0; }
.promo-faq summary { font-weight: 700; cursor: pointer; }
.promo-faq details p { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--ink-mute); line-height: 1.6; }

/* ── Bloc promo de la page boutique ── */
.promo-merchant { margin-bottom: var(--space-6); }
.promo-merchant .promo-more { display: inline-block; margin-top: var(--space-2); font-size: var(--text-sm); font-weight: 600; }
