*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Refined, minimal — Apple-inspired dark */
  --bg: #000000;
  --bg-2: #0a0a0c;
  --surface: rgba(28, 28, 30, 0.72);
  --surface-solid: #1c1c1e;
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.18);

  /* Single restrained accent */
  --accent: #0a84ff;
  --accent-2: #0a84ff;
  --accent-dim: rgba(10, 132, 255, 0.12);

  --text: #f5f5f7;
  --muted: #98989d;
  --muted-2: #636366;
  --error: #ff453a;
  --success: #32d74b;
  --radius: 18px;

  --grad-brand: linear-gradient(180deg, #0a84ff 0%, #0060df 100%);
  /* Polices SYSTÈME de chaque plateforme — zéro téléchargement, zéro requête
     externe, rendu immédiat. Apple d'abord (SF Pro via -apple-system, le style
     « épuré Apple » de référence), puis Windows, Android, et les replis. */
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* ── SUBTLE AMBIENT ── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before {
  content: '';
  position: absolute;
  width: 800px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
  top: -15%; left: 50%;
  transform: translateX(-50%);
}
.aurora::after { display: none; }
.aurora-blob { display: none; }

/* Grain overlay — very subtle */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page { display: none; width: 100%; max-width: 460px; position: relative; z-index: 2; }
.page.active { display: block !important; animation: pageIn 0.6s cubic-bezier(0.32,0.72,0,1); }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HEADER ── */
.header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.6rem;
}
.badge::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

.header h1 {
  font-family: var(--font-body);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.header h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}
.header p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
  font-weight: 400;
}

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 40px -16px rgba(0,0,0,0.8);
  overflow: hidden;
}
.card::before { display: none; }

/* ── FORM ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
  text-transform: none;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field select {
  padding-right: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2398989d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select option { background: var(--surface-solid); color: var(--text); }
.field select option[value=""] { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3.5px var(--accent-dim);
}
.field input.error-input { border-color: var(--error); }
/* Champ informatif (ex. compte concerné à l'étape 3 du mot de passe oublié) :
   lisible mais visiblement non modifiable, sans halo de focus. */
.field input[readonly] {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: default;
}
.field input[readonly]:focus {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

/* ── BUTTON ── */
.btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}
.btn:hover { background: #0060df; }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── SPINNER ── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ALERT ── */
.alert {
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.3rem;
  display: none;
  line-height: 1.5;
  white-space: pre-line; /* erreurs d'images accumulées : une par ligne */
}
.alert.error  { background: rgba(255,69,58,0.1); border: 1px solid rgba(255,69,58,0.25); color: var(--error); }
.alert.success { background: rgba(50,215,75,0.1); border: 1px solid rgba(50,215,75,0.25); color: var(--success); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 1.6rem 0;
}

/* ── TABS (segmented control) ── */
.tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.8rem;
  gap: 3px;
  position: relative;
}
.tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  position: relative;
  z-index: 1;
}
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35), 0 0 0 0.5px rgba(255,255,255,0.08) inset;
}
.tab-btn:hover:not(.active) { color: var(--text); }

/* ── TAB FORMS ── */
.tab-forms {
  position: relative;
  overflow: hidden;
}
.tab-form {
  margin: 0; /* les .tab-form sont de vrais <form> : neutraliser tout style UA */
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tab-form.hidden {
  display: none;
}

/* ── LINK ── */
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.link-btn:hover { opacity: 0.8; }
.switch-hint {
  text-align: center;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── PROFILE PAGE ── */
.profile-avatar {
  width: 76px; height: 76px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 auto 1.3rem;
  position: relative;
}
.profile-avatar::after { display: none; }

.profile-name {
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.3rem;
  text-align: center;
}
.profile-email {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  text-align: center;
  font-family: var(--font-body);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.info-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  transition: background 0.2s;
}
.info-item:hover { background: rgba(255, 255, 255, 0.06); }
.info-item .info-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.info-item .info-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}
.info-item.full { grid-column: span 2; }

.token-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-top: 1rem;
}
.token-box .info-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.token-value {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.5;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-body);
  color: var(--success);
  background: rgba(50,215,75,0.1);
  border: 1px solid rgba(50,215,75,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.6rem;
}
.dot {
  width: 5px; height: 5px;
  background: var(--success);
  border-radius: 50%;
}

/* ── STEPPER ── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.32,0.72,0,1);
  position: relative;
  z-index: 1;
}
.step.active .step-circle {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  transform: scale(1.05);
}
.step.done .step-circle {
  border-color: transparent;
  background: rgba(50,215,75,0.15);
  color: var(--success);
}
.step-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0;
  font-family: var(--font-body);
  text-transform: none;
}
.step.active .step-label { color: var(--text); }
.step.done .step-label   { color: var(--success); }
.step-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 24px;
  min-width: 36px;
  transition: background 0.4s ease;
}
.step-line.done { background: rgba(50,215,75,0.4); }

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  margin-bottom: 1.1rem;
  position: relative;
}
.upload-zone:hover  { border-color: var(--accent); background: var(--accent-dim); }
.upload-zone.active { border-color: var(--accent); background: var(--accent-dim); }
.upload-zone input  { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-text { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.upload-text strong {
  color: var(--accent);
  font-weight: 500;
}
.upload-preview {
  display: none;
  align-items: center;
  gap: 0.8rem;
  background: rgba(10, 6, 18, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.1rem;
}
.upload-preview.visible { display: flex; }

/* ── GALERIE MULTI-IMAGES ── */
.upload-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.upload-gallery:empty { margin-bottom: 0; }
.gallery-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  position: relative;
}
.gallery-item.is-main { border-color: rgba(10,132,255,0.4); }
.gallery-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.gallery-info { flex: 1; min-width: 0; }
.gallery-name {
  font-size: 0.85rem; color: var(--text); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-meta { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.gallery-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.65rem; font-weight: 600;
  color: var(--accent); background: var(--accent-dim);
  border-radius: 100px; padding: 0.1rem 0.5rem;
}
/* Optimisation en arrière-plan : aperçu déjà visible, indication discrète */
.gallery-item.is-processing .gallery-thumb { animation: thumbPulse 1.4s ease-in-out infinite; }
@keyframes thumbPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.gallery-processing {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--muted);
}
.gallery-processing::before {
  content: '';
  width: 9px; height: 9px;
  border: 1.5px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.gallery-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }
.gallery-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.gallery-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.gallery-btn.remove:hover { border-color: rgba(255,69,58,0.4); color: var(--error); }
.preview-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.preview-info { flex: 1; }
.preview-name { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.preview-size { font-size: 0.75rem; color: var(--muted); }
.preview-remove {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1.1rem; padding: 0.2rem;
  transition: color 0.2s;
}
.preview-remove:hover { color: var(--error); }

/* ── RECAP ── */
.recap-section { margin-bottom: 1.2rem; }
.recap-title {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.6rem;
}
.recap-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  gap: 1rem;
}
.recap-row:last-child { border-bottom: none; }
.recap-key   { color: var(--muted); flex-shrink: 0; }
.recap-val   { color: var(--text); text-align: right; }
.recap-img   { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }

/* ── SHOP RESULT PAGE ── */
.shop-hero {
  width: 100%; height: 190px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 1.3rem;
  display: none;
  border: 1px solid var(--border);
}
.shop-hero.visible { display: block; }
.result-gallery {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
  margin-top: -0.5rem;
}
.result-gallery:empty { display: none; }
.result-gallery img {
  width: 72px; height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.result-gallery img:hover { border-color: var(--accent); transform: translateY(-2px); }
.shop-hero-placeholder {
  width: 100%; height: 190px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  margin-bottom: 1.3rem;
  position: relative;
  overflow: hidden;
  opacity: 0.7;
}
.shop-hero-placeholder::after { display: none; }
.shop-name {
  font-family: var(--font-body);
  font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 0.3rem;
}
.shop-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.6; }
.shop-address {
  background: rgba(10, 6, 18, 0.4); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1rem;
  font-size: 0.875rem; color: var(--text); line-height: 1.7;
}
.btn-secondary {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-secondary:hover { background: rgba(255,255,255,0.07); border-color: var(--border-bright); transform: translateY(-1px); }

/* ── NAVBAR ── */
.navbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 6, 18, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
}
.navbar.visible { display: flex; animation: navIn 0.4s cubic-bezier(0.32,0.72,0,1); }
@keyframes navIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.navbar-brand {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.navbar-brand em {
  font-style: normal;
  color: var(--text);
}
.navbar-actions { display: flex; gap: 0.5rem; }
.nav-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-btn:hover       { background: rgba(255,255,255,0.08); color: var(--text); }
.nav-btn.nav-active  { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.1); }
.nav-btn.nav-primary { background: var(--accent); color: #fff; border-color: transparent; font-weight: 500; }
.nav-btn.nav-primary:hover { background: #0060df; }
body.has-navbar { padding-top: 5rem; }

/* ── EDIT PANEL ── */
.edit-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.edit-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  transition: background 0.15s;
}
.edit-sec-header:hover { background: rgba(255,255,255,0.03); }
.edit-chevron { font-size: 0.7rem; color: var(--muted); transition: transform 0.2s; }
.edit-chevron.open { transform: rotate(180deg); }
.edit-sec-body { padding: 0 1rem 1rem; background: var(--surface); }

/* ── VALIDATION & AIDES ── */
.field-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}
.field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.35rem;
  line-height: 1.4;
  display: none;
  align-items: center;
  gap: 0.3rem;
}
.field-error.visible { display: flex; }
.field-error::before { content: '⚠'; font-size: 0.85rem; }
.field input.input-error, .field select.input-error { border-color: var(--error); }
.field input.input-valid { border-color: var(--success); }

/* ── PASSWORD TOGGLE ── */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 3rem; width: 100%; }
.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
  padding: 0.4rem;
  transition: opacity 0.2s;
  line-height: 1;
}
.password-toggle:hover { opacity: 1; }

/* ── PASSWORD STRENGTH ── */
.pwd-strength { margin-top: 0.6rem; }
.pwd-strength-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.pwd-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pwd-strength-label {
  font-size: 0.72rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ── TOOLTIP AIDE ── */
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: help;
  margin-left: 0.35rem;
  position: relative;
  vertical-align: middle;
  transition: background 0.2s, color 0.2s;
}
.help-tip:hover { background: var(--accent-dim); color: var(--accent); }
.help-tip .help-bubble {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e2230;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  width: max-content;
  max-width: 220px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  z-index: 50;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 6px 20px #00000055;
  pointer-events: none;
}
.help-tip .help-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e2230;
}
.help-tip:hover .help-bubble { visibility: visible; opacity: 1; }

/* ── ENCART D'ACCUEIL ── */
.welcome-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.welcome-banner .wb-icon { font-size: 1.4rem; line-height: 1; }
.welcome-banner .wb-text { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.welcome-banner .wb-text strong { color: var(--accent); }

