/* Maquette validée « 07 Deux comptes » : l'identité reste lisible en mots. */
.cc-bouton, .cc-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px; border: 1px solid var(--line2); border-radius: var(--r-objet); background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cc-bouton.cc-entreprise { background: var(--panel2); }
.cc-visage { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--panel2); color: var(--accent); font-size: 14px; font-weight: 600; }
.cc-entreprise .cc-visage { border-radius: 12px; }
.cc-visage svg { width: 24px; height: 24px; }
.cc-identite { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cc-identite strong, .cc-identite small { display: block; }
.cc-identite strong { font-size: 16px; line-height: 1.4; font-weight: 600; }
.cc-identite small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cc-bouton > svg, .cc-option > svg { width: 18px; height: 18px; flex-shrink: 0; }
.cc-bouton:focus-visible, .cc-feuille button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#compte-entete { position: fixed; inset: 0 0 auto; z-index: 25; padding: calc(16px + var(--safe-t)) calc(18px + var(--safe-r)) 16px calc(18px + var(--safe-l)); background: var(--panel); border-bottom: 1px solid var(--line); }
#compte-entete.cc-entreprise { background: var(--panel2); }
#compte-mobile { border: 0; padding: 0; background: transparent; }
#compte-entete[hidden], .cc-bouton[hidden], .cc-feuille [hidden], .cc-note[hidden], .cc-pied[hidden] { display: none; }
/* Coins et titres : les jetons de la charte, pas les pixels de la maquette (chantier entreprise, 03/10). */
.cc-feuille { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: 100%; max-height: calc(var(--app-h, 100dvh) * .97); overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--r-cadre) var(--r-cadre) 0 0; background: var(--panel); color: var(--text); box-shadow: 0 18px 60px color-mix(in srgb, var(--veil) 25%, transparent); }
.cc-feuille[open] { display: flex; flex-direction: column; }
.cc-feuille::backdrop { background: color-mix(in srgb, var(--veil) 45%, transparent); }
.cc-tete, #users.cc-ajout .cc-ajout-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 20px 14px; flex-shrink: 0; }
/* La croix commune (44 px) centrée sur la ligne du titre (30 px), l'entête
   à sa hauteur d'avant (34 px de croix) et le titre à sa largeur (10 px de
   débord à droite, comme l'ancienne croix nue) : sinon « Changer de compte »
   passait sur deux lignes à 320 px (mesuré le 20/10). */
.cc-tete > .pc-croix, #users.cc-ajout .cc-ajout-tete > .pc-croix { margin: -7px -10px -3px 0; }
.cc-tete h2, #users.cc-ajout h2 { margin: 0; font-size: var(--t-question); line-height: 1.25; font-weight: 600; }
.cc-corps, #users.cc-ajout .cc-ajout-corps { display: block; padding: 2px 20px 22px; overflow: auto; flex: 1; min-height: 0; }
.cc-intro, #users.cc-ajout #user-soustitre { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cc-option { gap: 14px; margin-bottom: 12px; padding: 16px; border-radius: var(--r-objet); }
.cc-option.cc-entreprise { background: var(--panel2); border-left: 5px solid var(--accent); padding-left: 12px; }
.cc-option .cc-identite strong { font-size: 14px; }
.cc-option .cc-identite small { font-size: 13px; }
.cc-coche { color: var(--accent); display: grid; place-items: center; }
.cc-coche > svg { width: 18px; height: 18px; }
.cc-note { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; padding: 14px; border-radius: 12px; background: var(--panel2); font-size: 14px; line-height: 1.6; }
.cc-note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.cc-action { min-height: 46px; padding: 10px 16px; border: 1px solid var(--line2); border-radius: var(--r-objet); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.cc-pied { display: flex; gap: 10px; padding: 14px 20px calc(18px + var(--safe-b)); border-top: 1px solid var(--line); flex-shrink: 0; }
.cc-pied > button { flex: 1; }
#comptes-appareil-ajouter { width: 100%; margin-top: 16px; border: 0; }
/* Sans pied depuis le 22/10 (C3 : la croix seule ferme) : le corps garde la
   marge du bas d'écran. La pastille suit la croix sur la ligne du titre, pour
   que l'entête garde sa hauteur. */
#comptes-appareil .cc-corps { padding-bottom: calc(22px + var(--safe-b)); }
.cc-tete > .pc-pastille { margin: -7px 0 -3px; }
.cc-tete h2 { flex: 1; }
/* « Changer de compte » demande 229 px : sous 360 px de large, la pastille
   le ferait passer sur deux lignes (mesuré le 22/10) — elle s'efface. */
@media (max-width: 359.98px) { .cc-tete > .pc-pastille { display: none; } }
#comptes-appareil-message { color: var(--etat-mal); font-size: 14px; }
.cc-feuille button:disabled { opacity: .6; cursor: wait; }
/* La porte conserve sa disposition ; les mêmes formulaires habitent la feuille d'ajout. */
.cc-ajout-tete, .cc-ajout-corps { display: contents; }
#users.cc-ajout { position: static; inset: auto; z-index: auto; display: flex; align-items: stretch; flex: 1; min-height: 0; width: 100%; padding: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
#users.cc-ajout > .panel { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; overflow: hidden; }
#users.cc-ajout .porte-pied, #users.cc-ajout #user-entreprise .newrow, #users.cc-ajout #user-secret .newrow { display: none; }
#users.cc-ajout .cc-primaire { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 899.98px) {
  body.compte-present #stage { top: var(--compte-hauteur, 80px); }
  body.compte-present #stage > section { top: var(--compte-hauteur, 80px); }
  body.compte-present #chat { top: var(--compte-hauteur, 80px); height: calc(var(--app-h) - var(--compte-hauteur, 80px)); }
  body.compte-present #chat header { padding-top: 8px; }
  body.compte-present .overlay { top: var(--compte-hauteur, 80px); }
}
@media (min-width: 900px) {
  #compte-entete { display: none; }
  /* Le nom tient sur sa ligne même quand le rail défile (30/10) : sa barre
     prend 15 px, et « Le Moulin à Huile » passait sur deux lignes. Un nom
     plus long que la place finit en « … », jamais sur une seconde ligne. */
  #compte-rail { gap: 6px; padding: 10px 6px; }
  #compte-rail .cc-visage { flex-basis: 32px; height: 32px; }
  #compte-rail .cc-identite strong { font-size: 14px; }
  #compte-rail .cc-identite > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cc-feuille { inset: 16px 16px 16px auto; width: 460px; max-width: calc(100% - 32px); height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); border-radius: var(--r-cadre); }
  .cc-tete, #users.cc-ajout .cc-ajout-tete { padding: 24px 24px 16px; }
  .cc-corps, #users.cc-ajout .cc-ajout-corps { padding: 4px 24px 24px; }
  .cc-pied { padding: 16px 24px; }
}
