/* FNTI Espace Président - Style front */
.fnti-espace-president { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.fnti-espace-wrap { max-width: 1400px; margin: 0 auto; padding: 20px; }
.fnti-espace-header { border-bottom: 2px solid #0073aa; padding-bottom: 15px; margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.fnti-espace-header h1 { margin: 0; font-size: 1.5rem; }
.fnti-espace-header .subtitle { margin: 5px 0 0; color: #666; }
.fnti-espace-header nav a { color: #0073aa; text-decoration: none; }
.fnti-espace-actions { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.fnti-filter-annee { display: flex; align-items: center; gap: 8px; }
.fnti-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.fnti-table-scroll { overflow-x: auto; margin-bottom: 20px; }
.fnti-adherents-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fnti-adherents-table th, .fnti-adherents-table td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; }
.fnti-adherents-table th { background: #0073aa; color: #fff; }
.fnti-adherents-table tr:nth-child(even) { background: #f9f9f9; }
.fnti-adherents-table tfoot .totals { background: #f0f0f0; font-weight: bold; }
.fnti-documents-utiles { background: #f0f7ff; padding: 15px; border-radius: 4px; margin-bottom: 20px; border-left: 4px solid #0073aa; }
.fnti-documents-utiles h3 { margin: 0 0 12px; font-size: 1rem; }
.fnti-documents-utiles p { margin: 0 0 8px; }
.fnti-documents-utiles p:last-child { margin-bottom: 0; }
.fnti-recap-totaux { background: #f5f5f5; padding: 15px; border-radius: 4px; }
.fnti-recap-totaux p { margin: 5px 0; }
.fnti-modal { position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.fnti-modal-content { background: #fff; padding: 25px; border-radius: 8px; max-width: 500px; width: 90%; position: relative; }
.fnti-modal-close { position: absolute; right: 15px; top: 10px; font-size: 28px; cursor: pointer; }
.fnti-virement-info { margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd; }
.fnti-modal-wide { max-width: 600px; }
.fnti-form-add-adherent .fnti-form-row { margin-bottom: 12px; }
.fnti-form-add-adherent .fnti-form-row label { display: block; margin-bottom: 4px; font-weight: 500; }
.fnti-form-add-adherent .fnti-form-row input, .fnti-form-add-adherent .fnti-form-row select, .fnti-form-add-adherent .fnti-form-row textarea { width: 100%; max-width: 100%; }
.fnti-form-add-adherent .fnti-form-group { display: flex; gap: 15px; }
.fnti-form-add-adherent .fnti-form-group > div { flex: 1; }
.fnti-form-actions { margin-top: 15px; }
.fnti-form-message.success { color: #00a32a; }
.fnti-form-message.error { color: #d63638; }
.fnti-delete-adherent { color: #d63638; background: transparent; border-color: #d63638; cursor: pointer; padding: 2px 8px; min-width: auto; }
.fnti-delete-adherent:hover { background: #d63638; color: #fff; }

/* Carte adhérent - aperçu modal (design FNTi avec filigrane) */
.fnti-modal-carte { max-width: 480px; }
.fnti-card-container { display: flex; justify-content: center; margin: 20px 0; }
.fnti-member-card {
  width: 360px;
  height: 228px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.fnti-member-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 55%;
  background: linear-gradient(135deg, rgba(30,78,148,0.06) 0%, rgba(198,44,44,0.04) 100%);
  border-radius: 50%;
  z-index: 0;
}
.fnti-member-card { font-family: 'Arial Black', Arial, sans-serif; font-weight: bold; }
.fnti-logo { position: relative; z-index: 1; font-size: 26px; font-weight: bold; color: #1e4e94; }
.fnti-logo-sub { font-size: 11px; color: #1e4e94; font-weight: bold; margin-top: 3px; }
.fnti-card-title { position: relative; z-index: 1; text-align: center; margin-top: 12px; }
.fnti-title-main { font-size: 18px; font-weight: bold; letter-spacing: 1px; color: #1e3e72; }
.fnti-title-line { width: 50px; height: 3px; background: #b08b44; margin: 6px auto 8px; border-radius: 1px; }
.fnti-title-year { font-size: 14px; font-weight: bold; color: #b08b44; }
.fnti-member-info { position: relative; z-index: 1; margin-top: 20px; font-size: 14px; font-weight: bold; color: #2d2d2d; }
.fnti-member-info p { margin: 4px 0; }
.fnti-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e4e94;
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 24px;
  text-align: center;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 1;
}
.fnti-card-footer span { font-weight: bold; color: #f0d28b; }

/* Tableau de bord (page protégée) */
.fnti-tableau-de-bord { max-width: 1400px; margin: 0 auto; padding: 20px; }
.fnti-tableau-de-bord h1 { margin: 0 0 8px; color: #1e4e94; }
.fnti-dashboard-desc { color: #666; margin-bottom: 20px; }
.fnti-dashboard-filters { margin-bottom: 25px; }
.fnti-filter-row { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.fnti-filter-row label { display: flex; align-items: center; gap: 6px; }
.fnti-filter-row select { padding: 6px 10px; min-width: 120px; }
.fnti-export-btn { background: #1e4e94; color: #fff !important; padding: 8px 16px; text-decoration: none; border-radius: 4px; display: inline-block; }
.fnti-export-btn:hover { background: #14376b; color: #fff !important; }
.fnti-dashboard-totaux { background: #f0f6fc; padding: 20px; border-radius: 8px; margin-bottom: 25px; border-left: 5px solid #1e4e94; }
.fnti-dashboard-totaux h3 { margin: 0 0 12px; color: #1e3e72; }
.fnti-dashboard-totaux p { margin: 6px 0; }
.fnti-dashboard-table-wrap { overflow-x: auto; margin-bottom: 30px; }
.fnti-dashboard-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fnti-dashboard-table th, .fnti-dashboard-table td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; }
.fnti-dashboard-table th { background: #1e4e94; color: #fff; }
.fnti-dashboard-table tbody tr:nth-child(even) { background: #f9f9f9; }
.fnti-dashboard-table tfoot .totals { background: #e8eef5; font-weight: bold; }
.fnti-dashboard-dept-nav { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 16px 20px; margin-bottom: 28px; }
.fnti-dashboard-dept-nav > strong { display: block; margin-bottom: 10px; color: #1e3e72; }
.fnti-dashboard-dept-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fnti-dashboard-dept-nav-list a { color: #1e4e94; text-decoration: none; }
.fnti-dashboard-dept-nav-list a:hover { text-decoration: underline; }
.fnti-dept-count { color: #666; font-weight: normal; }
.fnti-dashboard-dept-section { margin-bottom: 36px; scroll-margin-top: 20px; }
.fnti-dashboard-dept-title { font-size: 1.2rem; color: #1e4e94; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e8eef5; }
.fnti-dashboard-dept-nom { font-weight: normal; color: #333; }
.fnti-dashboard-dept-meta { display: block; font-size: 0.85rem; font-weight: normal; color: #666; margin-top: 6px; }
.fnti-dashboard-table .fnti-dept-subtotal td { background: #f4f6f9; }
.fnti-dashboard-empty { padding: 24px; background: #f9f9f9; border-radius: 8px; color: #666; }
