/* Ligne d'actions (sauvegarde / import JSON) */
.profil-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
/* Variante neutre du bouton export (utilisée pour le label d'import) */
.profil-btn-export--import {
  flex: 1;
  text-align: center;
  background: #f3f4f6;
  color: var(--text);
  border: 1px solid #d1d5db;
  cursor: pointer;
}

.profil-header {
  padding: 40px 20px 60px;
}
.profil-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.profil-header-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: white;
}
.profil-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.profil-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 3px solid rgba(255,255,255,0.60);
  color: white;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profil-avatar-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: white;
}
.profil-avatar-plan {
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  font-weight: 600;
}

.profil-wrap {
  margin: -36px 16px 0;
  padding-bottom: 80px;
  max-width: 480px;
}
@media (min-width: 520px) {
  .profil-wrap { margin: -36px auto 0; }
}

.profil-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 16px;
}
.profil-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.profil-card-disabled {
  opacity: 0.65;
}
.profil-card-disabled .form-input {
  background: #F5F5F5;
  cursor: not-allowed;
}
.profil-card-disabled .submit-btn {
  opacity: 0.5;
  cursor: not-allowed;
}
.profil-disabled-msg {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #FFF8EC;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
}

.profil-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F5F0E8;
}
.profil-info-row:last-child { border-bottom: none; }
.profil-info-label {
  font-size: 13px;
  color: var(--muted);
}
.profil-info-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

.profil-plan-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.profil-plan-badge {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--orange);
}
.profil-plan-desc {
  font-size: 13px;
  color: var(--muted);
}
.profil-plan-link {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: white;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(255,107,44,0.28);
}

.profil-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.profil-stat {
  background: #FFF8EC;
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--border);
}
.profil-stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--orange);
}
.profil-stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

.profil-data-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.profil-btn-export {
  width: 100%;
  padding: 12px;
  background: #EFF6FF;
  color: #1d4ed8;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.profil-btn-export:hover { background: #DBEAFE; }

.profil-card-danger {
  border: 1px solid #FCA5A5;
  background: #FFF5F5;
}
.profil-card-danger .profil-card-title { color: #dc2626; }

.btn-danger {
  width: 100%;
  padding: 12px;
  background: #FEE2E2;
  color: #dc2626;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: #FECACA; }

.btn-deconnect {
  width: 100%;
  padding: 14px;
  background: white;
  color: #ef4444;
  border: 2px solid #FECACA;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-deconnect:hover { background: #FEE2E2; border-color: #FCA5A5; }

/* ── Boutons export Excel / PDF ─────────────────────────────── */
.export-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.export-btns button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  border: none;
}
.export-btns button:first-child {
  background: #DCFCE7;
  color: #15803d;
  border: 1px solid #86efac;
}
.export-btns button:first-child:hover { background: #BBF7D0; transform: translateY(-1px); }
.export-btns button:last-child {
  background: #FEE2E2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.export-btns button:last-child:hover { background: #FECACA; transform: translateY(-1px); }
.export-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  margin-bottom: 12px;
}

/* ── Pays & devise ──────────────────────────────────────────── */
.pays-section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  margin-top: 16px;
}
.pays-section-label:first-of-type { margin-top: 0; }

.pays-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.pays-card {
  border: 2px solid #FFE4B5;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  background: white;
  user-select: none;
}
.pays-card:hover {
  border-color: #FF8C00;
  background: #FFF8EC;
  transform: translateY(-2px);
}
.pays-card.active {
  border-color: #FF6B2C;
  background: #FFF0E8;
  box-shadow: 0 4px 16px rgba(255,107,44,0.20);
}
.pays-card-drapeau {
  font-size: 28px;
  margin-bottom: 6px;
  line-height: 1;
}
.pays-card-nom {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.pays-card.active .pays-card-nom { color: #FF6B2C; }

/* Toggle devise */
.devise-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.devise-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid #FFE4B5;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-align: center;
}
.devise-btn:hover { border-color: #FF8C00; background: #FFF8EC; color: var(--text); }
.devise-btn.active {
  border-color: #FF6B2C;
  background: #FFF0E8;
  color: #FF6B2C;
}

/* Notes devise */
.note-info {
  background: #DBEAFE;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 12px;
  line-height: 1.5;
}
.note-warning {
  background: #FEF9C3;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #854d0e;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Aperçu stats */
.apercu-stats {
  background: #FFFDF5;
  border: 1px solid #FFE4B5;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.apercu-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.apercu-source {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 10px;
}
.apercu-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid #FFF3D6;
}
.apercu-row:last-child { border-bottom: none; }
.apercu-label { color: var(--muted); }
.apercu-value {
  font-family: var(--font-display);
  font-weight: 800;
  color: #FF6B2C;
}

/* Région select */
.region-wrap { display: none; margin-bottom: 4px; }
.region-wrap .form-input { margin-bottom: 0; }

/* Mobile */
@media (max-width: 400px) {
  .pays-grid { grid-template-columns: 1fr; }
  .devise-toggle { flex-direction: column; }
}
