/* Design v2 : coupon « Copier » + barre mobile.
   Reprend les variables du thème enfant (--navy-900, --gold-500, --line…).
   Sélecteurs volontairement spécifiques : le thème stylise .code-promo-wrapper partout. */

.ancv-coupon { max-width: 600px; margin: 0.5rem auto 2rem; text-align: center; font-family: var(--font-body, Inter, system-ui, sans-serif); }
.ancv-coupon .ancv-coupon-offre { margin: 0 auto 1.1rem; max-width: 32em; font-size: 1.05rem; line-height: 1.5; color: var(--ink-soft, #425466); }

/* --- Ticket : une seule ligne, bouton sur toute la hauteur --- */
.ancv-coupon .code-promo-wrapper.ancv-coupon-ticket {
  display: flex; align-items: stretch; justify-content: space-between; gap: 0;
  width: 100%; min-height: 68px; padding: 0; margin: 0;
  background: var(--paper, #fff); color: var(--navy-900, #0b3e73);
  border: 1.5px dashed var(--gold-500, #c8a54d); border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-card, 0 8px 24px rgba(11, 40, 66, .06));
  overflow: hidden; position: relative; cursor: pointer; text-align: left;
  letter-spacing: 0; font-size: 1rem; transform: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.ancv-coupon .code-promo-wrapper.ancv-coupon-ticket:hover {
  background: var(--paper, #fff); transform: none;
  border-color: var(--gold-600, #ad8a37); box-shadow: var(--shadow-card-hover, 0 14px 34px rgba(11, 40, 66, .10));
}
.ancv-coupon .code-promo-wrapper.ancv-coupon-ticket:focus-visible { outline: 3px solid var(--navy-900, #0b3e73); outline-offset: 3px; }
.ancv-coupon .code-promo-wrapper.ancv-coupon-ticket.copied { background: var(--paper, #fff); border-color: #1c6b3f; transform: none; }

.ancv-coupon .ancv-coupon-gauche { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 10px 20px; min-width: 0; }
.ancv-coupon .ancv-coupon-mini { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted, #6b7280); }
.ancv-coupon .code-promo-wrapper .code-text { font-size: 1.55rem; font-weight: 800; letter-spacing: .08em; line-height: 1.15; color: var(--navy-900, #0b3e73); white-space: nowrap; }

.ancv-coupon .ancv-coupon-btn {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 26px; background: var(--navy-900, #0b3e73); color: #fff;
  font-size: 1rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background .2s ease;
}
.ancv-coupon .ancv-coupon-ticket:hover .ancv-coupon-btn { background: var(--navy-800, #0f2a43); }
.ancv-coupon .ancv-coupon-ticket.ancv-done .ancv-coupon-btn { background: #1c6b3f; }

/* --- Preuves --- */
.ancv-coupon .ancv-coupon-preuves { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 12px 0 0; padding: 0; font-size: .85rem; color: var(--ink-muted, #6b7280); }
.ancv-coupon .ancv-coupon-preuves li { margin: 0; }
.ancv-coupon .ancv-coupon-preuves li + li::before { content: "·"; margin: 0 10px; color: var(--gold-500, #c8a54d); font-weight: 700; }
.ancv-coupon .ancv-coupon-preuves strong { color: var(--ink, #1c2530); }
.ancv-coupon .ancv-ok { color: #1c6b3f; font-weight: 700; }

/* --- Étapes : une ligne de texte légère --- */
.ancv-coupon .ancv-coupon-etapes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line, #e6e9ee); font-size: .88rem; color: var(--ink-soft, #425466); }
.ancv-coupon .ancv-coupon-etapes li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.ancv-coupon .ancv-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--gold-500, #c8a54d); color: var(--gold-600, #ad8a37); font-size: .72rem; font-weight: 700; }
.ancv-coupon .ancv-coupon-etapes a.ancv-outbound-button.ancv-coupon-lien,
.ancv-coupon .ancv-coupon-etapes a.ancv-outbound-button.ancv-coupon-lien:hover {
  display: inline; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none;
  color: var(--navy-900, #0b3e73) !important; font-size: inherit; font-weight: 600; line-height: inherit;
  text-decoration: underline; text-decoration-color: var(--gold-500, #c8a54d); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}

/* --- Confettis (discrets) --- */
.ancv-confetti { position: absolute; top: 50%; width: 6px; height: 10px; border-radius: 2px; pointer-events: none; z-index: 5; animation: ancv-confetti 1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes ancv-confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 120px)) rotate(var(--r)); opacity: 0; } }

@media (max-width: 600px) {
  .ancv-coupon .code-promo-wrapper.ancv-coupon-ticket { min-height: 62px; }
  .ancv-coupon .ancv-coupon-gauche { padding: 8px 14px; }
  .ancv-coupon .code-promo-wrapper .code-text { font-size: 1.3rem; letter-spacing: .05em; }
  .ancv-coupon .ancv-coupon-btn { padding: 0 18px; }
  .ancv-coupon .ancv-hide-sm { display: none; }
  .ancv-coupon .ancv-coupon-preuves { gap: 4px 14px; }
  .ancv-coupon .ancv-coupon-preuves li + li::before { content: none; }
  .ancv-coupon .ancv-coupon-etapes { flex-direction: column; align-items: center; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .ancv-coupon .code-promo-wrapper.ancv-coupon-ticket, .ancv-coupon .ancv-coupon-btn { transition: none; } }

/* --- Barre mobile v2 : deux éléments de même hauteur --- */
@media (max-width: 768px) {
  .ancv-v2 #ancv-mobile-cta-bar { align-items: stretch; gap: 8px; }
  .ancv-v2 #ancv-mobile-cta-bar .ancv-mobile-cta-code { display: flex; }
  .ancv-v2 #ancv-mobile-cta-bar .ancv-mobile-cta-code .code-promo-wrapper {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px;
    min-height: 48px; padding: 6px 14px 6px 36px; margin: 0; position: relative;
    background: #fff; border: 0; border-radius: var(--radius-md, 10px); box-shadow: none; transform: none;
  }
  .ancv-v2 #ancv-mobile-cta-bar .ancv-mobile-cta-code .code-promo-wrapper .code-text { font-size: .95rem; letter-spacing: .06em; line-height: 1.1; color: var(--navy-900, #0b3e73); }
  .ancv-v2 #ancv-mobile-cta-bar .ancv-mobile-cta-code .code-promo-wrapper::before {
    content: ""; position: absolute; left: 13px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; background: var(--navy-900, #0b3e73);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='9' y='9' width='11' height='11' rx='2' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='9' y='9' width='11' height='11' rx='2' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .ancv-v2 #ancv-mobile-cta-bar .ancv-mobile-cta-code .code-promo-wrapper::after { content: "Touchez pour copier"; font-size: 10px; font-weight: 500; letter-spacing: 0; color: var(--ink-muted, #6b7280); line-height: 1.1; }
  .ancv-v2 #ancv-mobile-cta-bar .ancv-mobile-cta-btn { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md, 10px); padding: 0 14px; }
}
