/* Pages du menu profil (2026-10-03) : layout settings-2 porté en natif. Carte blanche (rayon 12, bordure zinc-200),
   barre latérale de 13rem (marque, libellé de groupe, entrées icône + libellé, active sur fond zinc-100), contenu à
   droite (titre 16 px, description grise, grille de champs, séparateur, interrupteurs, bouton noir). Même police et mêmes
   badges (Oracle, PRO) que le menu profil. */
.pr-scrim { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(10 18 23 / 0.28); }
.pr-scrim[hidden] { display: none; }
.pr-carte {
  position: relative; display: flex; width: min(768px, 100%); height: min(500px, calc(100svh - 40px)); overflow: hidden;
  border: 1px solid #e4e4e7; border-radius: 12px; color: #09090b; background: #fff;
  box-shadow: 0 20px 25px -5px rgb(24 24 27 / 0.12), 0 8px 10px -6px rgb(24 24 27 / 0.08);
  font: 400 13px / 1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: pr-in 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pr-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }

.pr-side { display: flex; width: 13rem; flex: 0 0 13rem; flex-direction: column; gap: 4px; padding: 8px; border-right: 1px solid #e4e4e7; background: #fafafa; }
.pr-marque { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.pr-av { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 6px; color: #2563eb; background: rgb(37 99 235 / 0.12); font-size: 12px; font-weight: 600; }
.pr-nom { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.pr-groupe { display: flex; height: 32px; align-items: center; margin: 4px 0 0; padding: 0 8px; color: rgb(9 9 11 / 0.7); font-size: 12px; font-weight: 500; }
.pr-nav { display: flex; flex-direction: column; gap: 4px; }
.pr-nav-b {
  display: flex; width: 100%; height: 32px; align-items: center; gap: 8px; padding: 0 8px; border: 0; border-radius: 6px;
  color: #3f3f46; background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background 150ms ease, color 150ms ease;
}
.pr-nav-b > span:not(.profile-menu-badge) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-nav-b svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-nav-b .profile-menu-badge { padding: 2px 5px; font-size: 10px; }
.pr-nav-b:hover { color: #09090b; background: #f4f4f5; }
.pr-nav-b.is-active { color: #09090b; background: #f0f0f1; font-weight: 500; }
.pr-nav-b:focus-visible, .pr-btn:focus-visible, .pr-fermer:focus-visible, .pr-switch:focus-visible { outline: 2px solid #a1a1aa; outline-offset: 2px; }

.pr-main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 20px; overflow: auto; padding: 24px; }
.pr-tete { padding-right: 32px; }
.pr-h { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.pr-desc { margin: 2px 0 0; color: #71717a; font-size: 13px; }
.pr-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pr-champ { display: flex; flex-direction: column; gap: 6px; }
.pr-label { font-size: 13px; font-weight: 500; line-height: 1; }
.pr-input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #e4e4e7; border-radius: 6px; color: inherit; background: #fff; font: inherit; }
.pr-input:focus-visible { outline: 2px solid #a1a1aa; outline-offset: 1px; }
.pr-sep { width: 100%; height: 1px; margin: 0; border: 0; background: #e4e4e7; }
/* Performance : interrupteurs Memory, Atlas, Radar remontés de 12 px (demande du 03/10) */
.pr-sep--serre { margin-bottom: -12px; }
.pr-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pr-ligne-t { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.pr-ligne-titre { font-size: 13px; font-weight: 500; }
.pr-ligne-desc { color: #71717a; font-size: 12px; }
.pr-switch { position: relative; width: 40px; height: 22px; flex: 0 0 40px; padding: 0; border: 0; border-radius: 999px; background: #e4e4e7; cursor: pointer; transition: background 150ms ease; }
.pr-switch[aria-checked="true"] { background: #18181b; }
.pr-switch-pouce { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transition: transform 150ms ease; }
.pr-switch[aria-checked="true"] .pr-switch-pouce { transform: translateX(18px); }
/* verrou : allumé en permanence, non cliquable (Memory, Atlas, Radar) */
.pr-switch.is-verrou, .pr-switch.is-verrou[aria-checked] { background: #18181b; opacity: 1; cursor: default; }
.pr-tag--actif { margin-left: 4px; padding: 1px 7px; color: #166534; background: #dcfce7; font-size: 10.5px; vertical-align: 1px; }
.pr-pied { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: auto; }
.pr-note { color: #71717a; font-size: 12px; }
.pr-btn { display: inline-flex; height: 36px; align-items: center; padding: 0 16px; border: 0; border-radius: 6px; color: #fafafa; background: #18181b; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.pr-btn:hover { background: #27272a; }
.pr-fermer { position: absolute; top: 14px; right: 14px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 6px; color: #71717a; background: none; cursor: pointer; }
.pr-fermer:hover { color: #09090b; background: #f4f4f5; }
.pr-fermer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Performance : chaîne Core → décision → rédaction */
.pr-chaine { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: pr; }
.pr-chaine li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border: 1px solid #e4e4e7; border-radius: 8px; counter-increment: pr; }
.pr-chaine li::before { color: #a1a1aa; font-size: 11px; font-variant-numeric: tabular-nums; content: "0" counter(pr); }
.pr-chaine strong { font-weight: 600; }
.pr-chaine span { color: #71717a; font-size: 12px; }
/* Abonnement : forfait (bandeau bleu du pop-up Alto Insights) et consommation */
.pr-forfait { padding: 10px 12px; border: 1px solid rgb(59 130 246 / 0.25); border-radius: 8px; color: #172554; background: #eaf1fe; }
.pr-forfait-t { margin: 0 0 3px; font-weight: 600; }
.pr-forfait-d { margin: 0; color: rgb(23 37 84 / 0.8); font-size: 12px; }
.pr-conso { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.pr-conso-r { display: grid; grid-template-columns: 1fr auto; row-gap: 5px; }
.pr-conso-r dd { margin: 0; color: #71717a; font-variant-numeric: tabular-nums; }
.pr-conso-bar { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 999px; background: #e4e4e7; }
.pr-conso-bar span { display: block; height: 100%; border-radius: inherit; background: #18181b; }
/* Conditions : documents */
.pr-docs { display: flex; flex-direction: column; gap: 14px; }
.pr-tag { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; color: #52525b; background: #f4f4f5; font-size: 11px; font-weight: 500; }

/* étroit : la barre latérale passe en rangée défilante au-dessus du contenu */
@media (max-width: 640px) {
  .pr-carte { flex-direction: column; height: min(640px, calc(100svh - 40px)); }
  .pr-side { width: auto; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid #e4e4e7; }
  .pr-marque, .pr-groupe { display: none; }
  .pr-nav { flex-direction: row; overflow-x: auto; padding-right: 36px; scrollbar-width: none; }
  .pr-nav-b { width: auto; flex: 0 0 auto; }
  .pr-nav-b .profile-menu-badge { display: none; }
  .pr-grille { grid-template-columns: 1fr; }
  .pr-main { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .pr-carte { animation: none; } .pr-switch, .pr-switch-pouce, .pr-nav-b { transition: none; } }
