/* ============================================
   OVEYO DESIGN SYSTEM
   ============================================ */

:root {
  --navy: #102A43;
  --navy-deep: #0a1d33;
  --orange: #F4632B;
  --orange-dark: #d54f1c;
  --orange-light: #FFA45B;
  --cream: #FAF6EE;
  --bg: #F1F4F9;
  --card: #FFFFFF;
  --border: #EAEEF4;
  --text: #0F1F36;
  --text-muted: #6B7891;
  --text-light: #9AA5B5;
  --green: #15803D;
  --green-bg: #E8F5E9;
  --red: #DC2626;
  --red-bg: #FEF2F2;
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ============================================
   HEADER
   ============================================ */

.app-header {
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 40;
}

.app-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.app-logo span {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.app-nav--desktop { display: none; }

@media (min-width: 768px) {
  .app-nav--desktop {
    display: flex;
    gap: 4px;
    font-size: 14px;
  }
  .app-nav--desktop a {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: background 0.15s, color 0.15s;
  }
  .app-nav--desktop a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
  }
  .app-nav--desktop a.active {
    background: rgba(255,255,255,0.1);
    color: var(--orange-light);
  }
  .app-header__inner { padding: 12px 32px; }
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  font-weight: 500;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.logout-link {
  display: none;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  padding: 8px 12px;
  transition: color 0.15s;
}
.logout-link:hover { color: white; }

@media (min-width: 1024px) {
  .user-badge { display: flex; }
}

@media (min-width: 768px) {
  .logout-link { display: inline-flex; }
}

.hamburger {
  background: transparent;
  color: white;
  padding: 8px;
  border-radius: 8px;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }

@media (min-width: 768px) {
  .hamburger { display: none; }
}

.app-nav--mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 8px 16px;
}
.app-nav--mobile.open { display: flex; }
.app-nav--mobile a {
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}
.app-nav--mobile a:last-child { border-bottom: none; }
.app-nav--mobile a.active { color: var(--orange-light); }

@media (min-width: 768px) {
  .app-nav--mobile { display: none !important; }
}

.gradient-bar {
  height: 3px;
  background: linear-gradient(90deg, #102A43 0%, #F4632B 50%, #FFA45B 100%);
}

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

.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
}

@media (min-width: 1024px) {
  .app-main { padding: 40px 32px; }
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
@media (min-width: 1024px) {
  .page-header { margin-bottom: 32px; }
}

.page-header h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
@media (min-width: 1024px) {
  .page-header h1 { font-size: 30px; }
}

.page-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--navy); }

/* ============================================
   GRIDS
   ============================================ */

.grid-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 1024px) {
  .grid-kpis {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .grid-2col {
    grid-template-columns: 2fr 1fr;
    gap: 24px;
  }
}

.grid-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .grid-form {
    grid-template-columns: 2fr 1fr;
  }
}

.grid-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .grid-row-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
}

.card__inner {
  padding: 16px;
}
@media (min-width: 1024px) {
  .card__inner { padding: 20px; }
}

.card__header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .card__header { padding: 20px; }
}

.card__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.card__title--lg { font-size: 18px; }
.card__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.card-dark .grain-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   KPI CARDS
   ============================================ */

.kpi {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  padding: 16px;
}
@media (min-width: 1024px) {
  .kpi { padding: 20px; }
}

.kpi__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.kpi__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.kpi__value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin-top: 4px;
  color: var(--navy);
}
@media (min-width: 1024px) {
  .kpi__value { font-size: 36px; }
}
.kpi__value.green { color: var(--green); }
.kpi__value.orange { color: var(--orange); }

.kpi__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg);
  color: var(--navy);
}
.kpi__icon.green { background: var(--green-bg); color: var(--green); }
.kpi__icon.orange { background: #FEF8F4; color: var(--orange); }

.kpi__bar {
  height: 3px;
  margin: 16px -16px -16px;
  background: linear-gradient(90deg, #102A43 0%, #F4632B 50%, #FFA45B 100%);
}
@media (min-width: 1024px) {
  .kpi__bar { margin: 16px -20px -20px; }
}

/* ============================================
   FORMS
   ============================================ */

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-label .optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-light);
  font-weight: 400;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid transparent;
  outline: none;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: white;
  border-color: var(--navy);
}

.form-input--big {
  padding: 16px;
  font-size: 28px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
}

.form-input-suffix {
  position: relative;
}
.form-input-suffix::after {
  content: 'FCFA';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7891' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
  font-weight: 500;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Radio cards */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.radio-card { cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card__label {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s;
}
.radio-card input:checked + .radio-card__label.success {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green);
}
.radio-card input:checked + .radio-card__label.muted {
  border-color: var(--text-muted);
  background: var(--bg);
  color: var(--text-muted);
}

/* Checkbox card */
.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #FEF8F4;
  border: 1px solid #FFE0CC;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.checkbox-card:hover { background: rgba(255,224,204,0.5); }
.checkbox-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
}
.checkbox-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}
.checkbox-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--orange); color: white; }
.btn--primary:hover { background: var(--orange-dark); }

.btn--secondary { background: var(--navy); color: white; }
.btn--secondary:hover { background: #1f3a5f; }

.btn--ghost { background: var(--bg); color: var(--text); }
.btn--ghost:hover { background: #E5E9F0; }

.btn--block { width: 100%; }
.btn--lg { padding: 16px; font-size: 16px; }

/* ============================================
   TABLE
   ============================================ */

.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.table thead {
  background: #FAFBFD;
}
.table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.table th.right { text-align: right; }
.table td {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}
.table td.right { text-align: right; }
.table tbody tr:hover { background: #FAFBFD; }

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge--green { background: var(--green-bg); color: var(--green); }
.badge--gray { background: var(--bg); color: var(--text-muted); }
.badge--orange { background: #FEF8F4; color: var(--orange); }

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #102A43 0%, #0a1d33 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.2;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.login-logo-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
}
.login-logo-wrap h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: white;
}
.login-logo-wrap p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.login-form {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.login-form > * + * { margin-top: 16px; }
.login-form .gradient-bar {
  margin: 20px -20px -20px;
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  font-size: 14px;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.login-footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 24px;
}

/* ============================================
   ALERT BANNER (mobile only CTA)
   ============================================ */

.cta-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--orange);
  color: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  transition: background 0.15s;
  box-shadow: 0 10px 25px -5px rgba(244, 99, 43, 0.3);
}
.cta-banner:hover { background: var(--orange-dark); }
.cta-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.cta-banner__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.cta-banner__desc {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}
.cta-banner__arrow { margin-left: auto; flex-shrink: 0; }

@media (min-width: 768px) {
  .cta-banner.hide-on-desktop { display: none; }
}

/* ============================================
   LIST ITEMS (observations, etc.)
   ============================================ */

.list-divider > * + * { border-top: 1px solid var(--border); }

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
}

.list-item__icon { font-size: 24px; flex-shrink: 0; }
.list-item__main { flex: 1; min-width: 0; }
.list-item__title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item__sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.list-item__price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  text-align: right;
}
.list-item__price.abuse { color: var(--orange); }
.list-item__status-mini {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
}
.list-item__status-mini.abuse { color: var(--orange); }

/* ============================================
   TIPS LIST
   ============================================ */

.tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tip {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.tip__num {
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 40px; margin-bottom: 8px; }

/* ============================================
   TEST PAGE (chat simulation)
   ============================================ */

.chat-header {
  background: #075E54;
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.chat-header__name { font-weight: 700; font-size: 14px; }
.chat-header__status { font-size: 10px; opacity: 0.7; }

.chat-body {
  background: #ECE5DD;
  padding: 16px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) {
  .chat-body { padding: 24px; }
}

.chat-msg { display: flex; }
.chat-msg.out { justify-content: flex-end; }
.chat-msg.in { justify-content: flex-start; }

.chat-bubble {
  max-width: 85%;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 14px;
  white-space: pre-line;
  line-height: 1.4;
}
.chat-bubble.out {
  background: #DCF8C6;
  border-bottom-right-radius: 4px;
}
.chat-bubble.in {
  background: white;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.chat-bubble__time {
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}
.chat-empty svg { opacity: 0.3; margin-bottom: 12px; }

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.suggestions button {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  transition: background 0.15s;
}
.suggestions button:hover { background: #E5E9F0; }

.divider-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: #1E40AF;
  margin-top: 16px;
}
.info-banner svg { flex-shrink: 0; margin-top: 2px; }

/* ============================================
   UTILITIES
   ============================================ */

.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.text-green { color: var(--green); }
.text-navy { color: var(--navy); }

.font-bold { font-weight: 700; }
.font-display-bold { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; }

.hidden { display: none; }
@media (min-width: 768px) {
  .hidden-md { display: none; }
  .show-md { display: block; }
}
@media (min-width: 1024px) {
  .hidden-lg { display: none; }
  .show-lg { display: block; }
}

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

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

/* ===========================================
   V4 LAYOUT — Sidebar + topbar mobile
   =========================================== */

.app-shell {
  min-height: 100vh;
  background: var(--cream-bg);
}

/* SIDEBAR (desktop only par défaut, drawer sur mobile) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

@media (min-width: 1024px) {
  .sidebar { transform: translateX(0); }
}

.sidebar__header {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar__header .app-logo {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 19px;
}

.sidebar__close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

@media (min-width: 1024px) {
  .sidebar__close { display: none; }
}

.sidebar__nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  padding: 4px 12px 8px;
}

.sidebar__label em {
  color: var(--orange-light);
  font-style: normal;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
  font-weight: 600;
}

.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.sidebar__nav a:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.sidebar__nav a.active {
  background: rgba(244, 99, 43, 0.15);
  color: white;
  font-weight: 600;
  border-left: 3px solid var(--orange);
  padding-left: 9px;
}

.sidebar__icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
}

.ext {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.sidebar__footer {
  padding: 16px 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar__footer .user-badge {
  background: transparent;
  padding: 0;
  color: white;
  border: none;
}

.sidebar__footer .logout-link {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar__footer .logout-link:hover { color: white; }

/* TOPBAR (mobile only) */
.topbar {
  position: sticky;
  top: 0;
  background: white;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  z-index: 30;
}

@media (min-width: 1024px) {
  .topbar { display: none; }
}

.topbar .hamburger {
  background: var(--cream-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
  display: flex;
}

.topbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.topbar__spacer { flex: 1; }

/* OVERLAY pour fermer la sidebar en cliquant à côté */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 54, 0.4);
  z-index: 40;
}

@media (max-width: 1023px) {
  .sidebar.open ~ .overlay { display: block; }
}

/* MAIN — décalé sur desktop pour laisser la place à la sidebar */
.app-main {
  padding: 24px 20px 60px;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .app-main {
    margin-left: 260px;
    padding: 32px 40px 60px;
    max-width: 1280px;
  }
}

/* PAGE HEADER — H1 + sous-titre + bouton à droite */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .page-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.page-header h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
}

.page-header__subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.page-header__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .page-header__actions { margin-top: 0; }
}

/* TABLE responsive simple */
.data-table {
  width: 100%;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 31, 54, 0.06);
  border-collapse: collapse;
}

.data-table thead {
  background: var(--cream-bg);
}

.data-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--navy);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover { background: rgba(241, 244, 249, 0.5); }

@media (max-width: 767px) {
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 10px; }
  .data-table .hide-mobile { display: none; }
}

/* CARDS */
.card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 31, 54, 0.06);
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* BADGES */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag--green { background: #DCFCE7; color: #166534; }
.tag--red { background: #FEE2E2; color: #991B1B; }
.tag--orange { background: rgba(244,99,43,0.12); color: var(--orange); }
.tag--gray { background: var(--cream-bg); color: var(--muted); }
.tag--blue { background: #DBEAFE; color: #1E40AF; }

/* COMING SOON box pour les pages V2/V3 */
.coming-soon {
  background: linear-gradient(135deg, rgba(244,99,43,0.05), rgba(16,42,67,0.03));
  border: 2px dashed rgba(244,99,43,0.25);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.coming-soon__badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.coming-soon h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 8px;
}

.coming-soon p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.feature-list span {
  background: white;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--navy);
  font-weight: 500;
}

/* FILTERS BAR */
.filters {
  background: white;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filters__row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .filters__row { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}

.filters input, .filters select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--cream-bg);
}

.filters input:focus, .filters select:focus {
  outline: 2px solid var(--orange);
  outline-offset: -1px;
  background: white;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--orange); color: white; }
.btn--secondary { background: var(--navy); color: white; }
.btn--ghost { background: var(--cream-bg); color: var(--navy); border: 1px solid var(--border); }
.btn--small { padding: 6px 10px; font-size: 12px; }
.btn--danger { background: #DC2626; color: white; }

/* FLASH messages (info après action) */
.flash {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}
.flash--success { background: #DCFCE7; color: #166534; border-left: 4px solid #16A34A; }
.flash--info { background: #DBEAFE; color: #1E40AF; border-left: 4px solid #3B82F6; }
.flash--warning { background: #FEF3C7; color: #92400E; border-left: 4px solid #F59E0B; }
