/* ============================================================
   Stratfu — Éditeur de profil inline (bouton « Modifier le profil »)
   À inclure APRÈS builder.css.
   ============================================================ */

/* ── Bouton « Modifier le profil » dans la vue profil ── */
.profile-edit-btn {
  margin-left: auto; align-self: center;
  padding: 9px 18px; border-radius: 10px;
  background: rgba(240,192,64,0.14); border: 1px solid rgba(240,192,64,0.5);
  color: #f0c040; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: .4px;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.profile-edit-btn:hover { background: rgba(240,192,64,0.24); transform: translateY(-1px); }

/* ── Éditeur ── */
.acc-edit { display: flex; flex-direction: column; gap: 18px; padding: 6px 4px; }

.acc-edit-head { display: flex; align-items: center; gap: 12px; }
.acc-edit-head .profile-back {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  color: #94a3b8; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .15s;
}
.acc-edit-head .profile-back:hover { color: #f1f5f9; border-color: rgba(255,255,255,0.28); }
.acc-edit-head .profile-back svg { width: 18px; height: 18px; }
.acc-edit-title {
  font-family: 'Uncial Antiqua', cursive; font-size: 20px;
  color: #f0c040; text-shadow: 0 0 16px rgba(240,192,64,0.22);
}

/* Deux colonnes : gauche (avatar/nom/visibilité) · droite (réseaux) */
.acc-edit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
.acc-edit-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.acc-edit-block { display: flex; flex-direction: column; }

.acc-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: rgba(200,200,190,0.45); margin-bottom: 10px;
}

.acc-avatar-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.acc-avatar-big {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid rgba(240,192,64,0.40); background: #1a1d23;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #f0c040;
}
.acc-avatar-hint { font-size: 12px; color: rgba(200,200,190,0.45); line-height: 1.4; }

.acc-avatar-upload { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.acc-upload-btn {
  padding: 8px 14px; border-radius: 8px; cursor: pointer; align-self: flex-start;
  background: rgba(240,192,64,0.14); border: 1px solid rgba(240,192,64,0.5); color: #f0c040;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .4px; transition: .15s;
}
.acc-upload-btn:hover:not(:disabled) { background: rgba(240,192,64,0.24); }
.acc-upload-btn:disabled { opacity: .5; cursor: default; }
.acc-upload-clear {
  padding: 5px 11px; border-radius: 7px; cursor: pointer; align-self: flex-start;
  background: transparent; border: 1px solid rgba(200,200,190,0.25); color: rgba(200,200,190,0.7);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 11px;
}
.acc-upload-clear:hover { color: #ef4444; border-color: rgba(239,68,68,0.5); }
.acc-upload-hint { font-size: 10px; color: rgba(200,200,190,0.4); line-height: 1.4; }

/* Grille de visages COMPACTE : 9 par ligne, petites tuiles */
.acc-avatar-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.acc-avatar-btn {
  aspect-ratio: 1; border-radius: 6px; border: 2px solid transparent;
  background: #1a1d23; overflow: hidden; cursor: pointer; transition: .12s; padding: 0; position: relative;
}
.acc-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-avatar-btn:hover { border-color: rgba(240,192,64,0.5); transform: scale(1.08); }
.acc-avatar-btn.sel { border-color: #f0c040; box-shadow: 0 0 0 2px rgba(240,192,64,0.20); }

.acc-field label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  color: rgba(200,200,190,0.45); text-transform: uppercase; margin-bottom: 6px;
}
.acc-field input,
.acc-net-field input {
  width: 100%; padding: 10px 12px; box-sizing: border-box;
  background: #131519; border: 1px solid rgba(255,255,255,0.10);
  border-radius: 9px; color: #e8e8e0;
  font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 500; transition: .15s;
}
.acc-field input:focus,
.acc-net-field input:focus {
  outline: none; border-color: rgba(224,80,122,0.6); box-shadow: 0 0 0 3px rgba(224,80,122,0.12);
}

.acc-net-fields { display: flex; flex-direction: column; gap: 10px; }
.acc-net-field label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .3px;
  color: rgba(200,200,190,0.5); margin-bottom: 5px;
}

.acc-visibility { display: flex; gap: 8px; }
.acc-vis-btn {
  flex: 1; padding: 9px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.10);
  background: #131519; color: rgba(200,200,190,0.5);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: .15s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.acc-vis-btn:hover { border-color: rgba(255,255,255,0.20); color: #e8e8e0; }
.acc-vis-btn.sel-pub  { background: rgba(52,211,153,0.10); border-color: rgba(52,211,153,0.50); color: #34d399; }
.acc-vis-btn.sel-priv { background: rgba(148,163,184,0.10); border-color: rgba(148,163,184,0.40); color: #94a3b8; }

.acc-edit-foot { display: flex; gap: 10px; margin-top: 4px; }
.acc-btn-cancel {
  flex: 1; padding: 11px; border-radius: 10px; background: transparent;
  border: 1px solid rgba(255,255,255,0.10); color: rgba(200,200,190,0.55);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s;
}
.acc-btn-cancel:hover { border-color: rgba(255,255,255,0.22); color: #e8e8e0; }
.acc-btn-save {
  flex: 2; padding: 11px; border-radius: 10px;
  background: linear-gradient(180deg, #f07090, #e0507a); border: none; color: #fff;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: .15s; box-shadow: 0 4px 16px rgba(224,80,122,0.28);
}
.acc-btn-save:hover { filter: brightness(1.08); transform: translateY(-1px); }
.acc-btn-save:disabled { opacity: .5; pointer-events: none; }

/* Compte de base (pas de réseaux) : colonne droite vide → une seule colonne */
.acc-edit-col:empty { display: none; }
.acc-edit-grid:has(.acc-edit-col:empty) { grid-template-columns: 1fr; max-width: 520px; }

/* ── Réseaux collés au nom + agrandis (surcharge builder.css) ── */
.profile-head .profile-socials {
  margin-left: 14px;           /* collé juste après le nom, pas repoussé à droite */
  gap: 8px;
}
.profile-head .profile-social {
  width: 44px; height: 44px; border-radius: 11px;
}
.profile-head .profile-social svg { width: 24px; height: 24px; }
.profile-head .profile-social-discord:hover {
  background: rgba(88,101,242,0.18); border-color: rgba(88,101,242,0.55); color: #7d8cff;
}
/* Le bouton « Modifier le profil » est repoussé tout à droite */
.profile-head .profile-edit-btn { margin-left: auto; }

/* ── Toggle Dossier / Liste ── */
.profile-viewtoggle {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 12px;
  padding: 9px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border2, #334155);
  color: var(--text2, #94a3b8);
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .4px; cursor: pointer; transition: .15s;
  white-space: nowrap;
}
.profile-viewtoggle:hover { color: var(--text-white, #f1f5f9); border-color: rgba(255,255,255,0.28); }
.profile-viewtoggle svg { width: 16px; height: 16px; }

/* ── Bouton « Créer un dossier » (éditeur de profil) ── */
.acc-folder-btn {
  align-self: flex-start; padding: 10px 18px; border-radius: 10px;
  background: rgba(240,192,64,0.14); border: 1px solid rgba(240,192,64,0.5); color: #f0c040;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .4px; cursor: pointer; transition: .15s;
}
.acc-folder-btn:hover { background: rgba(240,192,64,0.24); transform: translateY(-1px); }
.acc-folder-hint { font-size: 11px; color: rgba(200,200,190,0.4); line-height: 1.4; margin-top: 8px; }
