/* ═══════════════════════════════════════════
   AgriConnect — Espace Fournisseur
   ═══════════════════════════════════════════ */

:root {
  --fc-green-dark:   #2E7D32;
  --fc-green-light:  #4CAF50;
  --fc-green-bg:     #F1F8E9;
  --fc-text:         #1A1A2E;
  --fc-text-muted:   #6B7280;
  --fc-border:       #E5E7EB;
  --fc-white:        #FFFFFF;
  --fc-shadow:       0 4px 24px rgba(46, 125, 50, 0.12);
  --fc-radius:       16px;
}

/* ─── Base ─── */
.fc-body {
  font-family: 'Inter', sans-serif;
  background: var(--fc-green-bg);
  min-height: 100vh;
  color: var(--fc-text);
  margin: 0;
}

/* ─── Header ─── */
.fc-header {
  background: var(--fc-white);
  border-bottom: 1px solid var(--fc-border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fc-header-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fc-brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fc-text);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.fc-logout-btn {
  background: none;
  border: 1px solid var(--fc-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--fc-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.fc-logout-btn:hover {
  border-color: var(--fc-green-dark);
  color: var(--fc-green-dark);
}

/* ─── Main container ─── */
.fc-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ─── Login page ─── */
.fc-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.fc-login-card {
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--fc-shadow);
}
.fc-login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.fc-login-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fc-green-dark);
}
.fc-login-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fc-text);
  margin-bottom: 8px;
}
.fc-login-sub {
  color: var(--fc-text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.5;
}
.fc-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.fc-alert-error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.fc-form-group {
  margin-bottom: 20px;
}
.fc-label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--fc-text);
}
.fc-input-wrapper {
  position: relative;
}
.fc-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fc-text-muted);
  display: flex;
}
.fc-input {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border: 1.5px solid var(--fc-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--fc-text);
  background: var(--fc-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.fc-input:focus {
  outline: none;
  border-color: var(--fc-green-dark);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}
.fc-login-help {
  text-align: center;
  font-size: 0.82rem;
  color: var(--fc-text-muted);
  margin-top: 20px;
  margin-bottom: 0;
}
.fc-login-footer {
  text-align: center;
  margin-top: 16px;
}
.fc-back-link {
  color: var(--fc-green-dark);
  font-size: 0.85rem;
  text-decoration: none;
}
.fc-back-link:hover { text-decoration: underline; }

/* ─── Buttons ─── */
.fc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fc-green-dark);
  color: var(--fc-white);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}
.fc-btn-primary:hover {
  background: var(--fc-green-light);
  color: var(--fc-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
  text-decoration: none;
}
.fc-btn-primary:active { transform: translateY(0); }
.fc-btn-lg { padding: 16px 32px; font-size: 1rem; }

.fc-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fc-white);
  color: var(--fc-green-dark);
  border: 1.5px solid var(--fc-green-dark);
  border-radius: 10px;
  padding: 12px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.fc-btn-secondary:hover {
  background: var(--fc-green-dark);
  color: var(--fc-white);
}

.fc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fc-text-muted);
  border: 1.5px solid var(--fc-border);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.fc-btn-ghost:hover {
  color: var(--fc-text);
  border-color: var(--fc-text-muted);
}

/* ─── Welcome section ─── */
.fc-welcome-section {
  text-align: center;
  padding: 16px 0 24px;
}
.fc-welcome-icon { font-size: 3rem; margin-bottom: 12px; }
.fc-welcome-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fc-text);
  margin-bottom: 4px;
}
.fc-welcome-sub { color: var(--fc-text-muted); font-size: 0.9rem; }

/* ─── Promo card ─── */
.fc-promo-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
}
.fc-promo-card-link:hover {
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.fc-promo-arrow {
  font-size: 1.5rem;
  color: var(--fc-green-dark);
  align-self: center;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
}

.fc-promo-card {
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--fc-shadow);
  border-left: 4px solid var(--fc-green-dark);
}
.fc-promo-icon { font-size: 2rem; flex-shrink: 0; }
.fc-promo-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.fc-promo-text { color: var(--fc-text-muted); font-size: 0.88rem; line-height: 1.5; margin: 0; }

/* ─── Steps ─── */
.fc-steps-section {
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--fc-shadow);
}
.fc-steps-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--fc-text);
}
.fc-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.fc-step:last-child { margin-bottom: 0; }
.fc-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fc-green-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.fc-step-text { font-size: 0.88rem; line-height: 1.5; color: var(--fc-text); }

/* ─── CTA section ─── */
.fc-cta-section {
  text-align: center;
  margin-bottom: 20px;
}
.fc-cta-section .fc-btn-primary { width: 100%; }

/* ─── Info card ─── */
.fc-info-card {
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--fc-shadow);
}
.fc-info-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--fc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}
.fc-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--fc-border);
}
.fc-info-row:last-child { border-bottom: none; }
.fc-info-label { color: var(--fc-text-muted); font-size: 0.88rem; }
.fc-info-value { font-weight: 500; font-size: 0.9rem; }

/* ─── Page titre carte ─── */
.fc-page-title {
  text-align: center;
  margin-bottom: 24px;
}
.fc-page-title h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fc-text);
  margin-bottom: 4px;
}
.fc-page-title p { color: var(--fc-text-muted); font-size: 0.9rem; }

/* ─── Carte virtuelle ─── */
.fc-card-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* Spec: ratio 85.6mm × 53.98mm = 1.586 */
.fournisseur-card {
  background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
  border-radius: 16px;
  color: white;
  padding: 20px 24px;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 85.6 / 53.98;
  box-shadow: 0 8px 32px rgba(46, 125, 50, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
}

/* Cercles décoratifs */
.fc-card-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.fc-card-circle-1 {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
}
.fc-card-circle-2 {
  width: 120px;
  height: 120px;
  bottom: -30px;
  left: -20px;
}

/* Header carte */
.fc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.fc-card-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fc-card-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.fc-card-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Nom + téléphone */
.fc-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-card-phone {
  font-size: 0.8rem;
  opacity: 0.85;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
  margin-top: -8px;
}
.fc-card-address {
  font-size: 0.72rem;
  opacity: 0.75;
  position: relative;
  z-index: 1;
  margin-top: -6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* QR code */
.fc-card-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.fc-qr-img {
  background: white;
  border-radius: 6px;
  padding: 4px;
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.fc-qr-label {
  font-size: 0.6rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Footer carte */
.fc-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.fc-card-num {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-family: 'Courier New', monospace;
  opacity: 0.9;
}
.fc-card-date {
  font-size: 0.65rem;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Actions ─── */
.fc-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ─── Hint ─── */
.fc-hint {
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--fc-green-dark);
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

/* ─── Fade-in animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.5s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.19s; }
.fade-in:nth-child(4) { animation-delay: 0.26s; }
.fade-in:nth-child(5) { animation-delay: 0.33s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Print / PDF — carte bancaire ─── */
@media print {
  /* Cache tout le contenu de la page */
  body * { visibility: hidden; }

  /* Affiche uniquement la carte et ses enfants */
  .fournisseur-card,
  .fournisseur-card * { visibility: visible; }

  /* Format page = exactement une carte bancaire ISO/IEC 7810 ID-1 */
  @page {
    size: 85.6mm 53.98mm;
    margin: 0;
  }

  /* La carte occupe toute la page, sans décalage */
  .fournisseur-card {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 85.6mm !important;
    height: 53.98mm !important;
    max-width: none !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 9px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* QR code adapté à la taille carte */
  .fc-qr-img {
    width: 58px !important;
    height: 58px !important;
  }

  /* Cache les éléments de navigation */
  .no-print,
  .fc-header,
  .fc-actions,
  .fc-hint { display: none !important; }
}

/* ─── Mini nav (layout) ─── */
.fc-nav-mini {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fc-nav-mini-link {
  color: var(--fc-text-muted);
  padding: 6px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.fc-nav-mini-link:hover {
  color: var(--fc-green-dark);
  background: var(--fc-green-bg);
}

/* ─── Stats row ─── */
.fc-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.fc-stat-card {
  flex: 1;
  background: var(--fc-white);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--fc-shadow);
}
.fc-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fc-green-dark);
}
.fc-stat-label {
  font-size: 0.75rem;
  color: var(--fc-text-muted);
  margin-top: 2px;
}

/* ─── Filtres ─── */
.fc-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.fc-filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--fc-border);
  background: var(--fc-white);
  color: var(--fc-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.fc-filter-btn:hover {
  border-color: var(--fc-green-dark);
  color: var(--fc-green-dark);
}
.fc-filter-btn.active {
  background: var(--fc-green-dark);
  border-color: var(--fc-green-dark);
  color: var(--fc-white);
}

/* ─── Badges statut ─── */
.fc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.fc-badge-green  { background: #DCFCE7; color: #166534; }
.fc-badge-orange { background: #FEF3C7; color: #92400E; }
.fc-badge-red    { background: #FEE2E2; color: #991B1B; }
.fc-badge-grey   { background: #F3F4F6; color: #4B5563; }

/* ─── Transaction cards ─── */
.fc-tx-list { display: flex; flex-direction: column; gap: 12px; }

.fc-tx-card {
  background: var(--fc-white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--fc-shadow);
  border-left: 3px solid var(--fc-border);
  transition: border-color 0.2s;
}
.fc-tx-card:hover { border-left-color: var(--fc-green-dark); }

.fc-tx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.fc-tx-date {
  font-size: 0.82rem;
  color: var(--fc-text-muted);
}
.fc-tx-lignes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.fc-tx-ligne {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
}
.fc-tx-produit { font-weight: 500; flex: 1; }
.fc-tx-poids { color: var(--fc-text-muted); font-size: 0.8rem; }
.fc-tx-montant-ligne { font-size: 0.8rem; color: var(--fc-green-dark); margin-left: auto; }

.fc-tx-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--fc-border);
}
.fc-tx-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fc-tx-total span { font-size: 0.72rem; color: var(--fc-text-muted); text-transform: uppercase; }
.fc-tx-total strong { font-size: 1rem; color: var(--fc-green-dark); }
.fc-tx-rejet { font-size: 0.78rem; color: #991B1B; margin-top: 4px; }

.fc-btn-recu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fc-green-bg);
  color: var(--fc-green-dark);
  border: 1px solid rgba(46,125,50,0.2);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.fc-btn-recu:hover {
  background: var(--fc-green-dark);
  color: white;
  text-decoration: none;
}

/* ─── Empty state ─── */
.fc-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--fc-text-muted);
}
.fc-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.fc-empty-state p { font-size: 0.95rem; }

/* ─── Reçu document ─── */
.fc-recu-wrapper {
  display: flex;
  justify-content: center;
}
.fc-recu {
  background: var(--fc-white);
  border-radius: 12px;
  padding: 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--fc-shadow);
  font-size: 0.88rem;
}
.fc-recu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.fc-recu-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fc-green-dark);
}
.fc-recu-subtitle { color: var(--fc-text-muted); font-size: 0.8rem; }

.fc-recu-divider {
  border-top: 1px dashed var(--fc-border);
  margin: 14px 0;
}
.fc-recu-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fc-text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.fc-recu-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.fc-recu-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fc-recu-meta-row span { color: var(--fc-text-muted); }
.fc-recu-meta-row strong { font-weight: 500; text-align: right; max-width: 60%; word-break: break-all; }

.fc-recu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.fc-recu-table th {
  text-align: left;
  color: var(--fc-text-muted);
  font-weight: 600;
  padding: 4px 4px 8px;
  border-bottom: 1px solid var(--fc-border);
  font-size: 0.75rem;
}
.fc-recu-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--fc-border);
  color: var(--fc-text);
}
.fc-recu-table tr:last-child td { border-bottom: none; }

.fc-recu-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--fc-green-bg);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  font-weight: 700;
  color: var(--fc-green-dark);
}

.fc-recu-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
}
.fc-recu-qr-img {
  background: white;
  border: 1px solid var(--fc-border);
  border-radius: 6px;
  padding: 4px;
}
.fc-recu-qr-label {
  font-size: 0.72rem;
  color: var(--fc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fc-recu-qr-num {
  font-size: 0.75rem;
  color: var(--fc-text);
  font-family: 'Courier New', monospace;
  word-break: break-all;
  text-align: center;
}
.fc-recu-footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--fc-text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* ─── Print reçu ─── */
@media print {
  .no-print { display: none !important; }
  .fc-header { display: none !important; }
  .fc-body { background: white; }
  .fc-main { padding: 0; }
  .fc-recu {
    box-shadow: none;
    max-width: 100%;
    border-radius: 0;
  }
  .fc-recu-wrapper { margin: 0; }
}

/* ─── Responsive mobile ─── */
@media (max-width: 400px) {
  .fc-login-card { padding: 28px 20px; }
  .fournisseur-card { padding: 16px 18px; }
  .fc-card-name { font-size: 0.95rem; }
  .fc-qr-img { width: 68px; height: 68px; }
  .fc-card-num { font-size: 0.65rem; letter-spacing: 0.1em; }
  .fc-stats-row { gap: 8px; }
  .fc-stat-value { font-size: 1.1rem; }
  .fc-recu { padding: 20px 16px; }
}
