/* ══════════════════════════════
   PAGE SIFFLET SOLIDAIRE — Octobre Rose
   S'appuie sur les variables de style.css (chargé avant ce fichier)
══════════════════════════════ */
:root { --rose: #FF8FB3; --rose-bg: rgba(255,143,179,.12); --rose-line: rgba(255,143,179,.40); }

[hidden] { display: none !important; }

.eyebrow-rose { color: var(--rose); }
.eyebrow-rose::before { background: var(--rose); }

.sif-section { padding: 8px 24px 108px; }
.sif-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}

/* Visuel */
.sif-visual {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.sif-visual img { width: 100%; height: auto; aspect-ratio: 770 / 745; object-fit: cover; }
.sif-badge {
  position: absolute; left: 16px; bottom: 16px;
  padding: 9px 18px; border-radius: var(--r-pill);
  background: rgba(5,15,21,.88); border: 1px solid var(--rose-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; color: var(--ink);
}
.sif-badge strong { font-family: 'Space Grotesk', sans-serif; font-size: 18px; color: var(--rose); margin-right: 4px; }

/* Panneau d'achat */
.sif-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px; box-shadow: var(--shadow);
}
.sif-form { display: flex; flex-direction: column; gap: 22px; }
.sif-title { font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.sif-lead { margin-top: -14px; font-size: 14.5px; color: var(--ink-2); }

/* Sélecteur de quantité */
.qty { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.qty-btn:hover { background: var(--accent-bg); border-color: var(--accent-line); }
.qty-btn:active { transform: scale(.94); }
.form-group .qty-input {
  width: 110px; text-align: center; padding: 12px 8px;
  font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700;
}

.field-help { font-size: 12.5px; }
.sif-payment-help { margin: -10px 0 0; text-align: center; }

/* Total */
.sif-total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-sm);
  background: var(--rose-bg); border: 1px solid var(--rose-line);
}
.sif-total-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.sif-total-detail { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.sif-total-amount {
  font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em; white-space: nowrap;
}

.sif-error {
  font-size: 13.5px; color: #FFB4B4; background: rgba(220,38,38,.14);
  border: 1px solid rgba(255,120,120,.4); border-radius: var(--r-sm); padding: 11px 14px;
}

/* Étape 2 */
.sif-pay { display: flex; flex-direction: column; gap: 20px; }
.sif-thanks { text-align: center; }
.sif-thanks .success-icon { margin-bottom: 18px; }
.sif-thanks h2 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.3; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.sif-recap { margin-top: 10px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.sif-sub { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); }

.sif-details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--field); overflow: hidden; }
.sif-row {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
}
.sif-row:last-child { border-bottom: 0; }
.sif-row dt { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sif-row dd { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.sif-row dd.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sif-row.is-key dd { font-weight: 700; }
.sif-row.is-key { background: var(--rose-bg); }
/* Sans bouton (ex. bénéficiaire) : la valeur occupe le reste de la ligne */
.sif-row dd:last-child { grid-column: 2 / -1; }

.copy-btn {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  border-radius: var(--r-pill); padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: background .2s, border-color .2s, color .2s;
}
.copy-btn:hover { border-color: var(--accent-line); background: var(--accent-bg); }
.copy-btn.is-done { background: var(--ok); border-color: var(--ok); color: #052E20; }

.sif-note { text-align: center; margin-top: -6px; }
.sif-back { align-self: center; padding: 13px 24px; font-size: 14px; }

/* Copie des informations sur smartphone */
.sif-copyall { display: flex; flex-direction: column; gap: 8px; }
.sif-copyall .btn-submit { width: 100%; }
.sif-copyall .btn-submit.is-done { background: var(--ok); border-color: var(--ok); color: #052E20; }
.sif-mobile-help { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .sif-grid { grid-template-columns: 1fr; }
  .sif-panel { order: -1 }            /* sur mobile, on commence par l'achat */
  .sif-visual { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .sif-section { padding: 0 16px 76px; }
  .sif-panel { padding: 22px 18px; }
  .sif-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .sif-row dt { grid-column: 1 / -1; }
  .sif-row dd { grid-column: 1; }
  .sif-row dd:last-child { grid-column: 1 / -1; }
  .sif-total-amount { font-size: 30px; }
}
