/**
 * Thème profil pro — sidebar + couleurs claires.
 * À charger après app-theme.css sur les pages app.
 */
:root {
  --bg: #eef1f4;
  --bg-mid: #e8edf2;
  --bg-deep: #dde3ea;
  --canvas: #eef1f4;
  --panel-bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #667085;
  --line: #e2e6ec;
  --accent: #2f5d8c;
  --accent-soft: #e8eef5;
  --ok: #2f6f55;
  --teal: #2f5d8c;
  --teal-deep: #244a70;
  --teal-soft: #e8eef5;
  --coral: #2f5d8c;
  --coral-deep: #244a70;
  --coral-soft: #e8eef5;
  --warn: #9a6b20;
  --warn-soft: #f6eedd;
  --sun: #f4ead4;
  --sky: #e4eef6;
  --shadow: none;
  --shadow-lift: 0 8px 24px rgba(28, 36, 48, 0.06);
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

body::before,
body::after {
  display: none;
}

body.auth-gate > .shell {
  visibility: hidden;
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.side {
  background: var(--panel-bg);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.side .logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 10px 22px;
}

.side .nav-toggle {
  display: none;
}

.side .logo span { color: var(--accent); }

.side-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px 8px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 4px;
  box-shadow: none;
}

.nav-btn:hover {
  background: var(--accent-soft);
  transform: none;
}

.nav-btn.active {
  background: var(--accent);
  color: #fff;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
}

.side-foot { margin-top: auto; padding-top: 16px; }

.side #navAccount { display: block; width: 100%; }
.side #navAccount a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 4px;
  box-shadow: none;
}
.side #navAccount a:hover { background: var(--accent-soft); }
.side #navAccount .pill-icon { display: none; }

.shell > .wrap {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 28px 36px 56px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: none;
}

.btn-primary,
.btn-coral,
.btn.btn-coral {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover:not(:disabled),
.btn-coral:hover:not(:disabled) {
  background: #244a70;
}

.btn-primary:active:not(:disabled),
.btn-coral:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: none;
}

h1, h2, h3 {
  font-family: "Manrope", system-ui, sans-serif;
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-head .logo { padding: 4px 10px; }
  .side .nav-toggle { display: inline-flex; }
  .side.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .side.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .side.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .side-menu { display: none; width: 100%; padding-top: 10px; }
  .side.is-open .side-menu { display: block; }
  .nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-btn,
  .side #navAccount a { width: 100%; }
  .side-foot { display: none; }
  .side.is-open .side-foot { display: block; }
  .shell > .wrap { padding: 20px 16px 48px; }
}
