/* ─────────────────────────────────────────────
   PROFIL.CSS — Écran profil société
   ───────────────────────────────────────────── */

#profil-screen {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fafaf8;
  z-index: 500;
  overflow-y: auto;
}
#profil-screen.open { display: block; }

.profil-header {
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.profil-header h2 { color: #fff; font-size: 18px; font-weight: 800; flex: 1; }
.profil-close {
  background: rgba(255,255,255,.2);
  border: none; color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 18px;
}

.profil-body { padding: 16px; }

.profil-section {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.profil-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #2D6A4F;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0F2F8;
}

.profil-field { margin-bottom: 12px; }
.profil-label {
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}
.profil-input, .profil-select, .profil-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1.5px solid #E2E5F0;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .2s;
  background: #fff;
}
.profil-input:focus, .profil-select:focus, .profil-textarea:focus {
  outline: none;
  border-color: #2D6A4F;
}
.profil-textarea { min-height: 80px; resize: vertical; }

.profil-save-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2D6A4F, #1B4332);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 10px;
  transition: opacity .2s;
}
.profil-save-btn:hover { opacity: .9; }

/* Logo preview */
.profil-logo-preview {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #E2E5F0;
  padding: 8px;
  background: #F5F6FA;
  display: none;
  margin-bottom: 8px;
}

/* Badge fiscal */
.fiscal-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #D1FAE5;
  color: #065F46;
}

/* Mode sombre */
body.dark .profil-section { background: #252A3A; }
body.dark .profil-input,
body.dark .profil-select,
body.dark .profil-textarea {
  background: #1A1D2E;
  color: #e2e8f0;
  border-color: #374151;
}
body.dark .profil-label { color: #9ca3af; }
