/* =====================================================================
   LAYOUT SIDEBAR
   ===================================================================== */

/* ===== HEADER FIXE ===== */
#app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 500;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo {
  flex: 1;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bouton hamburger — toujours visible, imposant */
.btn-hamburger {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.btn-hamburger:hover {
  background: rgba(249,115,22,.08);
  border-color: var(--orange);
  color: var(--orange);
}
.btn-hamburger.open {
  background: rgba(249,115,22,.1);
  border-color: var(--orange);
  color: var(--orange);
}

/* ===== LAYOUT ===== */
#app-layout {
  display: flex;
  min-height: 100vh;
}

#main-content {
  flex: 1;
  padding: 84px 28px 80px;
  overflow-y: auto;
  min-width: 0;
  background: var(--bg);
}

#ecran-vide {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 60vh;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

#ecran-vide-projets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding-top: 56px;
}

.ecran-vide-titre {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projets-cercles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1400px;
}

/* ---- Wrapper transporteur (tuile + bouton quitter) ---- */
.projet-cercle-wrap {
  position: relative;
  display: inline-flex;
}
.projet-quitter-btn {
  position: absolute;
  top: 18px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(248,113,113,.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}
.projet-quitter-btn:hover { background: #ef4444; }

/* ---- Tuile hexagonale — grande, contenu à l'intérieur ---- */
/* Pas de box-shadow (toujours rectangulaire) */
.projet-cercle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}
.projet-cercle:hover {
  transform: translateY(-6px);
}

/* SVG grande tuile — glow sur le stroke (100% opaque) → suit la forme hex */
.hex-svg {
  width: 210px;
  height: 244px;
  flex-shrink: 0;
  overflow: visible;
  /* Thème sombre : ombre blanche sur les côtés et bas, pas au centre */
  filter:
    drop-shadow(0 16px 22px rgba(255,255,255,.28))
    drop-shadow(10px 6px 14px rgba(255,255,255,.14))
    drop-shadow(-10px 6px 14px rgba(255,255,255,.14));
  transition: filter 0.45s ease;
}
.projet-cercle:hover .hex-svg {
  filter:
    drop-shadow(0 18px 26px rgba(249,115,22,.55))
    drop-shadow(10px 6px 16px rgba(249,115,22,.28))
    drop-shadow(-10px 6px 16px rgba(249,115,22,.28));
}
/* Thème clair : ombre noire bien visible */
body.light .hex-svg {
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.3)) drop-shadow(0 12px 30px rgba(0,0,0,.18));
}
body.light .projet-cercle:hover .hex-svg {
  filter: drop-shadow(0 8px 22px rgba(249,115,22,.6)) drop-shadow(0 4px 10px rgba(0,0,0,.15));
}

/* Corps hex : fond + bordure couleur signature */
.hex-bg {
  fill: rgba(129, 140, 248, 0.07);
  stroke: #818cf8;
  stroke-width: 1;
  transition: stroke 0.45s ease, fill 0.45s ease;
}
.projet-cercle:hover .hex-bg {
  stroke: #f97316;
  fill: rgba(249, 115, 22, 0.07);
}
/* Thème clair : fond blanc opaque */
body.light .hex-bg {
  fill: rgba(255, 255, 255, 0.92);
  stroke: #b8c1e8;
}
body.light .projet-cercle:hover .hex-bg {
  fill: rgba(255, 255, 255, 0.96);
  stroke: #f97316;
}

/* Icônes SVG à l'intérieur des tuiles */
.tile-ic {
  fill: none;
  stroke: #64748b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.45s ease;
}
.tile-ic-fill {
  fill: #64748b;
  transition: fill 0.45s ease;
}
.projet-cercle:hover .tile-ic { stroke: #f97316; }
.projet-cercle:hover .tile-ic-fill { fill: #f97316; }

/* Label à l'intérieur du SVG — font-size en unités SVG pour qu'il scale avec la tuile */
.tile-label {
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  fill: #94a3b8;
  text-anchor: middle;
  dominant-baseline: middle;
  transition: fill 0.45s ease;
}
.projet-cercle:hover .tile-label { fill: #f97316; }

.projets-cercles-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- Tuile Nouveau projet (hex pointillé) ---- */
.hex-bg-nouveau {
  fill: rgba(249,115,22,.04);
  stroke: var(--orange);
  stroke-width: 0.8;
  transition: stroke 0.45s ease, fill 0.45s ease;
}
.projet-cercle-nouveau:hover .hex-bg-nouveau {
  stroke: #38bdf8;
  fill: rgba(56,189,248,.06);
}
.nouveau-plus {
  stroke: var(--orange);
  transition: stroke 0.45s ease;
}
.projet-cercle-nouveau:hover .nouveau-plus { stroke: #38bdf8; }
.projet-cercle-nouveau .tile-label {
  fill: var(--orange);
  transition: fill 0.45s ease;
}
.projet-cercle-nouveau:hover .tile-label { fill: #38bdf8; }

/* ---- Logo cliquable → Mes Projets ---- */
.header-logo { cursor: pointer; user-select: none; }
.header-logo:hover { opacity: 0.75; }

.sections-vue { gap: 18px; }
.sections-vue .hex-svg { width: 185px; height: 215px; }

@media (max-width: 600px) {
  .hex-svg { width: 100px; height: 116px; }
  .sections-vue .hex-svg { width: 80px; height: 93px; }
  .projets-cercles { gap: 8px; }
}

.cercles-back-btn {
  width: fit-content;
  margin-top: 52px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 36px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cercles-back-btn:hover {
  background: rgba(249,115,22,.1);
  border-color: rgba(249,115,22,.35);
  color: var(--orange);
}

/* ---- Écran premier projet ---- */
#ecran-premier-projet {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
}
.premier-projet-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 360px;
}
.premier-projet-icone { font-size: 3.5rem; }
.premier-projet-titre { font-size: 1.5rem; font-weight: 700; color: var(--text); font-family: var(--font-h); }
.premier-projet-desc { font-size: 0.95rem; color: var(--text-dim); line-height: 1.5; }
.premier-projet-btn {
  margin-top: 8px;
  padding: 14px 28px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.premier-projet-btn:hover { background: rgba(249,115,22,.85); }

.premier-projet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.premier-projet-modal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.premier-projet-modal-titre {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.premier-projet-modal-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.premier-projet-modal-input:focus { border-color: var(--orange); }
.premier-projet-modal-actions {
  display: flex;
  gap: 10px;
}
.premier-projet-modal-btn-valider {
  flex: 1;
  padding: 10px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.premier-projet-modal-btn-valider:hover { background: rgba(249,115,22,.85); }
.premier-projet-modal-btn-annuler {
  flex: 1;
  padding: 10px;
  background: rgba(255,255,255,.06);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}
.premier-projet-modal-btn-annuler:hover { background: rgba(255,255,255,.08); }

/* ---- Theme toggle (header) ---- */
.btn-theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-dim);
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.btn-theme-toggle:hover {
  background: var(--bg-card-hov);
  border-color: var(--orange);
}

/* ---- Sidebar — drawer fixe à gauche ---- */
#sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100vh;
  background: var(--bg-alt);
  border-right: 2px solid rgba(129,140,248,.2);
  box-shadow: 8px 0 48px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  z-index: 450;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s;
  overflow: hidden;
}
#sidebar.collapsed {
  transform: translateX(-110%);
  box-shadow: none;
}

/* Espace sous le header fixe dans la sidebar */
.sidebar-top-spacer {
  height: 56px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.sidebar-top-spacer .geovio-wordmark {
  font-size: 1.1rem;
}

#sidebar-nav {
  flex: 1;
  padding: 18px 0 8px;
  overflow-y: auto;
}

/* Titre section */
.sidebar-section-title {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px 6px;
}

/* Bouton "Nouveau projet" */
.sidebar-btn-creer {
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(100% - 20px);
  margin: 0 10px 10px;
  background: transparent;
  color: var(--muted);
  border: 1.5px dashed rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar-btn-creer:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(249,115,22,.08);
}

/* Formulaire création projet */
.sidebar-projet-form {
  margin: 0 10px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.sidebar-input {
  width: 100%;
  padding: 7px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sidebar-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.sidebar-input::placeholder { color: var(--muted); }

.sidebar-form-actions { display: flex; gap: 6px; }

.sidebar-btn-valider {
  flex: 1;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-btn-valider:hover { background: rgba(249,115,22,.85); }

.sidebar-btn-annuler {
  background: rgba(255,255,255,.04);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-btn-annuler:hover { background: rgba(255,255,255,.06); }

/* Liste des projets */
.sidebar-projets-liste { padding: 0 0 8px; }

.sidebar-empty {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* Item projet */
.sidebar-projet-item { margin-bottom: 1px; }

.sidebar-projet-row {
  display: flex;
  align-items: center;
  padding: 6px 8px 6px 10px;
  margin: 0 6px;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.1s;
  gap: 5px;
}
.sidebar-projet-row:hover { background: rgba(255,255,255,.05); color: var(--text); }

.sidebar-projet-item.actif > .sidebar-projet-row {
  background: rgba(249,115,22,.1);
}

.sidebar-chevron {
  font-size: 0.58rem;
  color: var(--muted);
  flex-shrink: 0;
  width: 12px;
  transition: color 0.1s;
}
.sidebar-projet-item.actif .sidebar-chevron { color: var(--orange); }

.sidebar-projet-label {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-projet-item.actif .sidebar-projet-label {
  color: var(--orange);
  font-weight: 600;
}

.sidebar-projet-del {
  background: none;
  border: none;
  color: rgba(255,255,255,.15);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.1s;
}
.sidebar-projet-del:hover { color: var(--red) !important; background: rgba(248,113,113,.1); }

/* Sous-navigation */
.sidebar-sous-nav {
  padding: 2px 6px 4px 26px;
}

.sidebar-section-item { margin-bottom: 6px; }

.sidebar-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.sidebar-section-label:hover {
  background: rgba(249,115,22,.07);
  color: var(--orange);
}
.sidebar-section-item.actif > .sidebar-section-label {
  color: var(--orange);
  font-weight: 600;
  background: rgba(249,115,22,.07);
}

/* Mini icône SVG dans la sidebar — réutilise les paths des tuiles */
.sidebar-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.sidebar-nav-icon .tile-ic {
  stroke: var(--muted);
  stroke-width: 3;
  transition: stroke 0.2s;
}
.sidebar-nav-icon .tile-ic-fill {
  fill: var(--muted);
  transition: fill 0.2s;
}
.sidebar-section-label:hover .sidebar-nav-icon .tile-ic,
.sidebar-section-item.actif > .sidebar-section-label .sidebar-nav-icon .tile-ic {
  stroke: var(--orange);
}
.sidebar-section-label:hover .sidebar-nav-icon .tile-ic-fill,
.sidebar-section-item.actif > .sidebar-section-label .sidebar-nav-icon .tile-ic-fill {
  fill: var(--orange);
}

/* Onglets Dashboard / Scanner */
.sidebar-onglets {
  padding: 2px 0 2px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-onglet-btn {
  background: none;
  border: none;
  color: var(--muted);
  text-align: left;
  padding: 5px 10px;
  font-size: 0.79rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.1s;
}
.sidebar-onglet-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sidebar-onglet-btn.actif {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
}

/* ---- Footer sidebar ---- */
#sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#sidebar-user-info { flex: 1; min-width: 0; }

#sidebar-user-nom {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ---- Avatar sidebar ---- */
.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  transition: opacity 0.15s;
  letter-spacing: 0.02em;
}
.sidebar-avatar:hover { opacity: 0.82; }
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-gear-wrap { position: relative; flex-shrink: 0; }

.btn-gear {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.1s;
}
.btn-gear:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* ---- Sélecteur de langue ---- */
.sidebar-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.04em;
}
.lang-btn:hover { background: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,.2); }
.lang-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* =====================================================================
   MON COMPTE
   ===================================================================== */

.compte-page {
  max-width: 560px;
  padding: 32px 0 48px;
}

.compte-titre {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  font-family: var(--font-h);
}

.compte-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 8px rgba(0,0,0,.2);
}

.compte-card-danger {
  border-color: rgba(248,113,113,.3);
  background: rgba(248,113,113,.05);
}

.compte-card-titre {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.compte-card-danger .compte-card-titre { color: var(--red); }

/* ---- Avatar Mon compte ---- */
.compte-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.compte-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  letter-spacing: 0.02em;
}
.compte-avatar img { width: 100%; height: 100%; object-fit: cover; }

.compte-avatar-upload-btn {
  display: inline-block;
  padding: 7px 14px;
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 7px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.compte-avatar-upload-btn:hover { background: rgba(249,115,22,.08); }

.compte-info-grid { display: flex; flex-direction: column; gap: 10px; }

.compte-info-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.compte-info-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  width: 140px;
  flex-shrink: 0;
}

.compte-info-val {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.compte-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compte-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  background: rgba(255,255,255,.04);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.compte-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

.compte-btn-primary {
  align-self: flex-start;
  padding: 8px 20px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.compte-btn-primary:hover { background: rgba(249,115,22,.85); }

.compte-btn-danger {
  align-self: flex-start;
  padding: 8px 20px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.compte-btn-danger:hover { opacity: .88; }

.compte-mobile-footer {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0 8px;
}
.compte-mobile-lang {
  display: flex;
  gap: 8px;
}
.compte-btn-deconnexion {
  width: 100%;
  padding: 13px;
  background: rgba(255,255,255,.06);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.compte-btn-deconnexion:hover { background: rgba(255,255,255,.08); }

@media (max-width: 767px) {
  .compte-mobile-footer { display: flex; }
}

.compte-danger-text {
  font-size: 0.83rem;
  color: var(--red);
  margin-bottom: 14px;
  line-height: 1.5;
}

.compte-msg {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 500;
}
.compte-msg-error { background: rgba(248,113,113,.1); color: var(--red); border: 1px solid rgba(248,113,113,.25); }
.compte-msg-success { background: rgba(74,222,128,.1); color: var(--green); border: 1px solid rgba(74,222,128,.25); }

/* ---- Desktop : sidebar pousse le contenu, pas d'overlay ---- */
@media (min-width: 768px) {
  #main-content {
    transition: margin-left 0.28s cubic-bezier(0.4,0,0.2,1);
  }
  #app-header {
    transition: left 0.28s cubic-bezier(0.4,0,0.2,1);
  }
  body.sidebar-open #main-content {
    margin-left: 260px;
  }
  body.sidebar-open #app-header {
    left: 260px;
  }
  /* Pas de backdrop sur desktop */
  .sidebar-backdrop { display: none !important; }
}

/* ---- Backdrop sidebar ---- */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 440;
}
.sidebar-backdrop.visible { display: block; }
