/* ═══════════════════════════════════════════════════
   MINEXPLO™ — DESIGN MINING GOLD
   Fond crème chaud · Sidebar charbon + glow doré
   Accent : Or #eab308 / #ca8a04
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand */
  --primary:        #eab308;
  --primary-dark:   #ca8a04;
  --primary-light:  #fef9c3;
  --primary-glow:   rgba(234,179,8,0.18);

  /* Semantic */
  --danger:         #ef4444;
  --danger-bg:      rgba(239,68,68,0.1);
  --success:        #22c55e;
  --success-bg:     rgba(34,197,94,0.1);
  --warning:        #f97316;
  --warning-bg:     rgba(249,115,22,0.1);
  --info:           #3b82f6;
  --info-bg:        rgba(59,130,246,0.1);

  /* Backgrounds */
  --bg-page:        #fafaf5;
  --bg-card:        #ffffff;
  --bg-card-alt:    #fefce8;
  --bg-hover:       #fef9c3;

  /* Sidebar */
  --sidebar-bg1:    #1c1917;
  --sidebar-bg2:    #292524;
  --sidebar-border: rgba(234,179,8,0.15);

  /* Text */
  --text-main:      #1c1917;
  --text-muted:     #78716c;
  --text-faint:     #a8a29e;

  /* Borders */
  --border:         #e7e5e4;
  --border-dark:    #d6d3d1;
}

* { box-sizing: border-box; }

body {
  background: var(--bg-page);
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════
   LOGIN PREMIUM — Split screen cinématique
   Gauche : carrousel plein fond · Droite : formulaire
   ══════════════════════════════════════════════════════ */

/* Conteneur principal plein écran */
.login-bg {
  display: flex;
  min-height: 100dvh;
  background: #0f0d0b;
}

/* ── Panneau gauche : carrousel ── */
.login-carousel-panel {
  flex: 1 1 55%;
  position: relative;
  overflow: hidden;
  display: none; /* masqué sur mobile */
}

@media (min-width: 900px) {
  .login-carousel-panel { display: block; }
}

/* Slides */
.lc-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
}
.lc-slide.active { opacity: 1; }

/* Overlay dégradé sombre pour lisibilité du texte */
.lc-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 40%, transparent 65%),
    linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 35%);
  z-index: 1;
}

/* Dégradé doré en bas du panneau */
.lc-gold-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ca8a04, #eab308, #fde68a, #eab308, #ca8a04);
  background-size: 200% 100%;
  animation: goldShimmer 4s linear infinite;
  z-index: 3;
}
@keyframes goldShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Caption sur chaque slide */
.lc-caption {
  position: absolute;
  bottom: 3.5rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s .3s, transform .8s .3s;
}
.lc-slide.active .lc-caption {
  opacity: 1;
  transform: translateY(0);
}
.lc-caption-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(234,179,8,0.22);
  border: 1px solid rgba(234,179,8,0.5);
  color: #fde68a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-bottom: 0.85rem;
}
.lc-caption-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.lc-caption-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
  max-width: 480px;
  line-height: 1.5;
}

/* Logo en haut à gauche du carrousel */
.lc-brand {
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lc-brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #1c1917;
  box-shadow: 0 4px 20px rgba(234,179,8,0.4);
  flex-shrink: 0;
}
.lc-brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.lc-brand-tagline {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Indicateurs de slide (bullets) */
.lc-dots {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.lc-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all .4s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.lc-dot:hover { background: rgba(255,255,255,0.65); }
.lc-dot.active {
  background: #eab308;
  width: 26px;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(234,179,8,0.7);
}

/* Stats flottantes en haut à droite du carrousel */
.lc-stats {
  position: absolute;
  top: 2rem;
  right: 1.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.lc-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(234,179,8,0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.lc-stat-pill i { color: #eab308; font-size: 0.8rem; }
.lc-stat-val { font-weight: 800; color: #fde68a; font-size: 0.8rem; }
.lc-stat-label { color: rgba(255,255,255,0.75); }

/* ── Panneau droit : formulaire ── */
.login-form-panel {
  flex: 0 0 auto;
  width: 100%;
  max-width: 480px;
  background: #0f0d0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;  /* ancrage en haut — plus de débordement haut */
  padding: 2.5rem 2rem 1.5rem;
  position: relative;
  overflow-y: auto;
  min-height: 100dvh;
}

@media (min-width: 900px) {
  .login-form-panel {
    width: 430px;
    max-width: 430px;
    border-left: 1px solid rgba(234,179,8,0.15);
  }
}

/* Texture subtle en fond du panel droit */
.login-form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(234,179,8,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(202,138,4,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Carte formulaire */
.login-card {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

/* Logo mobile (visible seulement si carrousel masqué) */
.login-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 900px) {
  .login-mobile-brand { display: none; }
}
.login-mobile-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1917;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(234,179,8,0.35);
  flex-shrink: 0;
}

/* En-tête du formulaire */
.login-form-header {
  margin-bottom: 1.75rem;
}
.login-form-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #eab308;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.login-form-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.login-form-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

/* Séparateur doré */
.login-gold-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #eab308, #ca8a04);
  border-radius: 999px;
  margin: 0.75rem 0 1.5rem;
  box-shadow: 0 0 8px rgba(234,179,8,0.4);
}

/* Champs de formulaire (dark) */
.login-field {
  margin-bottom: 1.2rem;
}
.login-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
}
.login-input-wrap {
  position: relative;
}
.login-input-wrap i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(234,179,8,0.6);
  font-size: 0.85rem;
  pointer-events: none;
}
.login-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 0.75rem;
  color: #ffffff;
  font-size: 0.92rem;
  padding: 0.85rem 0.9rem 0.85rem 2.6rem;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.login-input::placeholder { color: rgba(255,255,255,0.28); }
.login-input:focus {
  border-color: rgba(234,179,8,0.65);
  background: rgba(234,179,8,0.07);
  box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}

/* Bouton submit */
.login-btn {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, #fbbf24, #eab308, #ca8a04);
  color: #1c1917;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  transition: transform .18s, box-shadow .18s, opacity .2s;
  box-shadow: 0 6px 24px rgba(234,179,8,0.4), 0 2px 8px rgba(0,0,0,0.2);
  letter-spacing: 0.04em;
  font-family: inherit;
  text-transform: uppercase;
}
.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234,179,8,0.55), 0 4px 12px rgba(0,0,0,0.2);
}
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Bloc comptes démo */
.login-demo-block {
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(234,179,8,0.18);
  border-radius: 0.875rem;
  padding: 1rem 1.1rem;
}
.login-demo-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(234,179,8,0.85);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.login-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.login-demo-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  text-align: left;
}
.login-demo-btn:hover {
  background: rgba(234,179,8,0.12);
  border-color: rgba(234,179,8,0.4);
  transform: translateY(-1px);
}
.login-demo-btn:active { transform: translateY(0); }
.login-demo-role {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.1rem;
}
.login-demo-email {
  font-size: 0.67rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer bas du panneau */
.login-footer {
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

/* Ancien .login-logo-line etc. conservés comme alias pour rétrocompat */
.login-logo-line { display: none; }
.login-logo-icon { display: none; }
.login-title     { display: none; }
.login-subtitle  { display: none; }

/* ──────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #1c1917;
  font-weight: 700;
  border-radius: 0.625rem;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(234,179,8,0.3);
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234,179,8,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-weight: 600;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover { box-shadow: 0 4px 12px rgba(239,68,68,0.35); }

.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-weight: 600;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  font-weight: 500;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--primary); color: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--primary-dark); border-color: var(--primary); }

.btn-sm   { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-xs   { padding: 0.15rem 0.5rem; font-size: 0.72rem; }
.btn-icon { width: 32px; height: 32px; border-radius: 0.5rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; }

/* ──────────────────────────────────────────────
   SIDEBAR
────────────────────────────────────────────── */
.sidebar {
  background: linear-gradient(180deg, var(--sidebar-bg1) 0%, var(--sidebar-bg2) 100%);
  border-right: 1px solid var(--sidebar-border);
  width: 256px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

/* Glow doré ambiant en haut de la sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(234,179,8,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-logo {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(234,179,8,0.12);
  position: relative;
}

.sidebar-logo-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #fde047, #eab308, #ca8a04);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sidebar-logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.sidebar-logo-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(234,179,8,0.18);
  color: #fde047;
  border: 1px solid rgba(234,179,8,0.3);
  border-radius: 0.25rem;
  padding: 0.1rem 0.4rem;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* User chip dans la sidebar */
.sidebar-user {
  margin: 0.875rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(234,179,8,0.14);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1917;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 0.65rem;
  color: #fde047;
  font-weight: 500;
  margin-top: 1px;
}

/* Nav */
.nav-section {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.22);
  text-transform: uppercase;
  padding: 1rem 1.25rem 0.375rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.55rem 1rem;
  margin: 0.1rem 0.625rem;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.15s;
  color: rgba(255,255,255,0.45);
  font-size: 0.84rem;
  font-weight: 500;
  position: relative;
}

.nav-item i { width: 16px; text-align: center; font-size: 0.82rem; flex-shrink: 0; }

.nav-item:hover {
  background: rgba(234,179,8,0.1);
  color: rgba(255,255,255,0.85);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(234,179,8,0.2), rgba(234,179,8,0.08));
  color: #fde047;
  border-bottom: 2px solid #eab308;
  border-radius: 0.625rem 0.625rem 0 0;
  font-weight: 600;
}

.nav-badge {
  margin-left: auto;
  background: rgba(239,68,68,0.9);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  min-width: 18px;
  text-align: center;
}

/* Sidebar bottom */
.sidebar-bottom {
  margin-top: auto;
  padding: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ──────────────────────────────────────────────
   TOPBAR
────────────────────────────────────────────── */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 1px 0 var(--border), 0 2px 8px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.topbar-breadcrumb {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 1px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 0.375rem 0.875rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  transition: border-color 0.15s;
  cursor: pointer;
}
.topbar-search:hover { border-color: var(--primary); }

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.625rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}
.topbar-icon-btn:hover { background: var(--bg-hover); border-color: var(--primary); color: var(--primary-dark); }

.topbar-notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1917;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(234,179,8,0.35);
}

/* ──────────────────────────────────────────────
   LAYOUT FULL-SCREEN
────────────────────────────────────────────── */
.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: fixed;
  top: 0; left: 0;
}

.app-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Legacy compat */
.app-layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.page-content { flex: 1; padding: 1.5rem; overflow-y: auto; background: var(--bg-page); }

/* ──────────────────────────────────────────────
   CARDS
────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.875rem;
  margin-bottom: 1.125rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title i { color: var(--primary-dark); }

/* KPI Cards */
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.375rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

/* Barre de couleur en bas de la KPI card (style Mining Gold) */
.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #eab308, #fde047);
  border-radius: 0 0 0.875rem 0.875rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(234,179,8,0.3);
}
.kpi-card:hover::after { opacity: 1; }

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.kpi-icon-gold    { background: rgba(234,179,8,0.12);  color: #ca8a04; }
.kpi-icon-green   { background: rgba(34,197,94,0.12);  color: #16a34a; }
.kpi-icon-red     { background: rgba(239,68,68,0.12);  color: #dc2626; }
.kpi-icon-blue    { background: rgba(59,130,246,0.12); color: #2563eb; }
.kpi-icon-orange  { background: rgba(249,115,22,0.12); color: #ea580c; }

.kpi-value {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.kpi-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin-top: 0.25rem;
}

.kpi-trend {
  font-size: 0.72rem;
  margin-top: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.kpi-trend-up   { color: var(--success); }
.kpi-trend-down { color: var(--danger); }
.kpi-trend-flat { color: var(--text-faint); }

/* ──────────────────────────────────────────────
   BADGES
────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success  { background: rgba(34,197,94,0.1);   color: #16a34a;  border: 1px solid rgba(34,197,94,0.25); }
.badge-warning  { background: rgba(234,179,8,0.12);  color: #92400e;  border: 1px solid rgba(234,179,8,0.3); }
.badge-danger   { background: rgba(239,68,68,0.1);   color: #dc2626;  border: 1px solid rgba(239,68,68,0.25); }
.badge-info     { background: rgba(59,130,246,0.1);  color: #1d4ed8;  border: 1px solid rgba(59,130,246,0.25); }
.badge-gray     { background: rgba(120,113,108,0.1); color: #57534e;  border: 1px solid rgba(120,113,108,0.2); }
.badge-gold     { background: rgba(234,179,8,0.15);  color: #78350f;  border: 1px solid rgba(234,179,8,0.35); }
.badge-critical {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.35);
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%,100%{border-color:rgba(239,68,68,0.35)} 50%{border-color:#ef4444} }

/* ──────────────────────────────────────────────
   TABLES
────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  background: #fafaf5;
  padding: 0.625rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(231,229,228,0.5);
  font-size: 0.84rem;
  color: var(--text-main);
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background 0.1s;
}

.data-table tbody tr:hover td {
  background: #fef9c3;
}

/* ──────────────────────────────────────────────
   FORMS
────────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  color: var(--text-main);
  font-size: 0.875rem;
  transition: all 0.15s;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}
.form-input::placeholder { color: var(--text-faint); }

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
  display: block;
}

.form-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  color: var(--text-main);
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}

.form-group { margin-bottom: 1rem; }

.form-hint { font-size: 0.72rem; color: var(--text-faint); margin-top: 0.25rem; }

/* ──────────────────────────────────────────────
   ALERTS
────────────────────────────────────────────── */
.alert {
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
}

.alert i { margin-top: 1px; flex-shrink: 0; }

.alert-danger  { background: rgba(239,68,68,0.07);  border: 1px solid rgba(239,68,68,0.2);  color: #991b1b; }
.alert-warning { background: rgba(234,179,8,0.08);  border: 1px solid rgba(234,179,8,0.25); color: #78350f; }
.alert-success { background: rgba(34,197,94,0.07);  border: 1px solid rgba(34,197,94,0.2);  color: #14532d; }
.alert-info    { background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.2); color: #1e3a8a; }

.alert-critical {
  background: rgba(239,68,68,0.1);
  border: 2px solid rgba(239,68,68,0.5);
  color: #991b1b;
  animation: blink-border 1s infinite;
}
@keyframes blink-border { 0%,100%{border-color:rgba(239,68,68,0.5)} 50%{border-color:#ef4444} }

/* ──────────────────────────────────────────────
   PROGRESS BARS
────────────────────────────────────────────── */
.progress-bar {
  background: var(--border);
  border-radius: 9999px;
  height: 7px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.progress-green  { background: linear-gradient(90deg, #22c55e, #16a34a); }
.progress-yellow { background: linear-gradient(90deg, #eab308, #ca8a04); }
.progress-orange { background: linear-gradient(90deg, #f97316, #ea580c); }
.progress-red    { background: linear-gradient(90deg, #ef4444, #dc2626); }
.progress-gold   { background: linear-gradient(90deg, #fde047, #eab308, #ca8a04); }

/* Stock gauge */
.stock-gauge {
  position: relative;
  height: 6px;
  background: var(--border);
  border-radius: 9999px;
}
.stock-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* ──────────────────────────────────────────────
   NOTIFICATIONS PANEL
────────────────────────────────────────────── */
.notif-panel {
  position: fixed;
  right: 1rem;
  top: 4rem;
  width: 360px;
  z-index: 100;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notif-panel-header {
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf5;
  border-radius: 0.875rem 0.875rem 0 0;
}

.notif-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.notif-list { overflow-y: auto; flex: 1; }

.notif-item {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid rgba(231,229,228,0.5);
  cursor: pointer;
  transition: background 0.1s;
}
.notif-item:hover { background: var(--bg-page); }
.notif-item:last-child { border-bottom: none; }

.notif-unread {
  border-left: 3px solid var(--primary);
  background: rgba(234,179,8,0.03);
}
.notif-unread:hover { background: rgba(234,179,8,0.06); }

.notif-title   { font-size: 0.82rem; font-weight: 600; color: var(--text-main); }
.notif-body    { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.notif-time    { font-size: 0.68rem; color: var(--text-faint); margin-top: 4px; }

/* ──────────────────────────────────────────────
   MODAL
────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
}

.modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
  border-radius: 1rem 1rem 0 0;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #fafaf5;
  border-radius: 0 0 1rem 1rem;
}

/* ──────────────────────────────────────────────
   TOAST
────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  min-width: 260px;
  max-width: 360px;
  animation: toastIn 0.3s ease;
}

.toast-success { border-left: 4px solid var(--success);  }
.toast-danger  { border-left: 4px solid var(--danger);   }
.toast-warning { border-left: 4px solid var(--primary);  }
.toast-info    { border-left: 4px solid var(--info);     }

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

/* ──────────────────────────────────────────────
   CRITICAL ALERT BAR
────────────────────────────────────────────── */
.critical-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #7f1d1d, #991b1b);
  border-bottom: 2px solid #ef4444;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideDown 0.3s ease;
  font-size: 0.84rem;
  color: #fecaca;
}
@keyframes slideDown { from { transform:translateY(-100%); } to { transform:translateY(0); } }

.danger-zone {
  border: 2px solid rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.04);
  border-radius: 0.875rem;
}

/* ──────────────────────────────────────────────
   LOADING & SKELETON
────────────────────────────────────────────── */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #f5f5f4 25%, #e7e5e4 50%, #f5f5f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.375rem;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ──────────────────────────────────────────────
   SCROLLBAR
────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a8a29e; }

/* ──────────────────────────────────────────────
   TRANSITIONS & ANIMATIONS
────────────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────
   ROLE COLORS
────────────────────────────────────────────── */
.role-admin            { color: #9333ea; font-weight: 600; }
.role-directeur        { color: #1d4ed8; font-weight: 600; }
.role-chef_site        { color: #0891b2; font-weight: 600; }
.role-gestionnaire     { color: #059669; font-weight: 600; }
.role-gestionnaire_central { color: #059669; font-weight: 600; }
.role-responsable_reception { color: #65a30d; font-weight: 600; }
.role-ingenieur        { color: #ca8a04; font-weight: 600; }
.role-ingenieur_fabrication { color: #ca8a04; font-weight: 600; }
.role-boutefeu         { color: #ea580c; font-weight: 600; }
.role-operateur_tir    { color: #ea580c; font-weight: 600; }
.role-superviseur_securite { color: #dc2626; font-weight: 600; }
.role-auditeur         { color: #78716c; font-weight: 600; }

/* ──────────────────────────────────────────────
   PAGE HEADER
────────────────────────────────────────────── */
.page-header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.page-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.page-title i { color: var(--primary-dark); font-size: 1.1rem; }

.page-subtitle {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   SECTION DIVIDERS
────────────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

/* ──────────────────────────────────────────────
   STAT CHIP (inline stat)
────────────────────────────────────────────── */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.3rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-chip-gold {
  background: rgba(234,179,8,0.08);
  border-color: rgba(234,179,8,0.25);
  color: #92400e;
}

/* ──────────────────────────────────────────────
   EXPIRY STATUS
────────────────────────────────────────────── */
.expiry-ok      { color: var(--success); }
.expiry-soon    { color: var(--warning); font-weight: 600; }
.expiry-urgent  { color: var(--danger);  font-weight: 700; animation: pulse-text 1.5s infinite; }
@keyframes pulse-text { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* ──────────────────────────────────────────────
   MOBILE SIDEBAR OVERLAY
────────────────────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.55);
  z-index: 199;
  display: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ──────────────────────────────────────────────
   RESPONSIVE MOBILE
────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Sidebar → drawer */
  .sidebar {
    position: fixed !important;
    left: 0; top: 0;
    height: 100% !important;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 32px rgba(0,0,0,0.25);
  }
  .sidebar.open { transform: translateX(0) !important; }

  /* App body pleine largeur */
  .app-body { width: 100%; }

  /* pageContent padding bas pour bottom nav */
  #pageContent {
    padding: 1rem !important;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* KPI grids */
  .kpi-grid-5, .kpi-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .kpi-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }

  /* Grilles 2 colonnes → 1 colonne */
  .lg\\:grid-cols-2 { grid-template-columns: 1fr !important; }
  .md\\:grid-cols-2 { grid-template-columns: 1fr !important; }
  .grid-2col { grid-template-columns: 1fr !important; }

  /* Page header */
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

  /* Topbar */
  .topbar {
    padding-left: max(0.875rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.875rem, env(safe-area-inset-right, 0px));
  }

  /* Hide search on mobile */
  .topbar-search { display: none !important; }

  /* Tables → scroll horizontal */
  .card > .overflow-x-auto,
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Menu burger */
  .menu-burger { display: flex !important; }
}

@media (max-width: 480px) {
  .kpi-grid-5, .kpi-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (min-width: 769px) {
  .menu-burger { display: none !important; }
  .bottom-nav { display: none !important; }
  .sidebar-overlay { display: none !important; pointer-events: none; }
}

/* ──────────────────────────────────────────────
   NUMBER INPUTS
────────────────────────────────────────────── */
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ──────────────────────────────────────────────
   UTILITY CLASSES
────────────────────────────────────────────── */
.text-gold   { color: var(--primary-dark); }
.text-muted  { color: var(--text-muted); }
.text-faint  { color: var(--text-faint); }
.bg-gold-soft { background: rgba(234,179,8,0.08); }
.border-gold  { border-color: rgba(234,179,8,0.3) !important; }
.rounded-xl   { border-radius: 0.875rem; }
.font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ──────────────────────────────────────────────
   STOCKS MODULE — styles spécifiques
────────────────────────────────────────────── */

/* Ligne de table avec indicateur coloré gauche */
.data-table tbody tr[style*="border-left"] td:first-child {
  padding-left: 0.875rem;
}

/* Couleur de fond des lignes de table */
.bg-row {
  background: var(--bg-page);
}

/* Grille responsive 2 colonnes */
.responsive-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .responsive-2col { grid-template-columns: 1fr !important; }
}

/* Icône KPI jaune */
.kpi-icon-yellow { background: rgba(234,179,8,0.12); color: #ca8a04; }

/* Stock tab hover */
.stock-tab:hover {
  background: rgba(234,179,8,0.05) !important;
  color: var(--primary) !important;
}

/* Badge nav sidebar */
.nav-item .nav-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Valeur financière mise en avant */
.valeur-stock {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Alert box générique */
.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem;
  border-radius: 0.5rem;
}
.alert-info    { background: var(--info-bg);    border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.alert-warning { background: var(--warning-bg); border: 1px solid rgba(249,115,22,0.3); color: #fdba74; }
.alert-danger  { background: var(--danger-bg);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-critical{ background: rgba(127,29,29,0.2); border: 1px solid #ef4444; color: #fca5a5; }

/* Grille 5 colonnes responsive pour valorisation */
@media (max-width: 1024px) {
  .kpi-grid-5 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 640px) {
  .kpi-grid-5 { grid-template-columns: repeat(2, 1fr) !important; }
  .responsive-2col { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════════
   SESAME CONSULTING — Powered by / Branding
   ══════════════════════════════════════════════════════ */

/* ── Login footer SESAME ── */
.login-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.login-powered-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.login-powered-link {
  display: inline-flex;
  align-items: center;
}
.login-powered-logo {
  height: 28px;
  width: auto;
  /* Logo a fond blanc — on l'intègre sur fond sombre avec un contour discret */
  background: rgba(255,255,255,0.92);
  border-radius: 6px;
  padding: 3px 8px;
  transition: background .2s, transform .2s;
  display: block;
}
.login-powered-logo:hover {
  background: #fff;
  transform: scale(1.03);
}
.login-powered-tagline {
  font-size: 0.63rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 0.35rem;
  font-style: italic;
}
.login-powered-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.62rem;
}
.login-powered-contacts a {
  color: rgba(234,179,8,0.7);
  text-decoration: none;
  transition: color .2s;
}
.login-powered-contacts a:hover { color: #eab308; }
.login-powered-contacts span { color: rgba(255,255,255,0.2); }

/* ── Sidebar footer SESAME ── */
.sidebar-sesame {
  border-top: 1px solid rgba(234,179,8,0.1);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  text-align: center;
}
.sidebar-sesame-label {
  font-size: 0.57rem;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}
.sidebar-sesame-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-sesame-logo {
  height: 22px;
  width: auto;
  background: rgba(255,255,255,0.88);
  border-radius: 5px;
  padding: 2px 6px;
  transition: background .2s;
  display: block;
}
.sidebar-sesame-logo:hover { background: #fff; }
.sidebar-sesame-contact {
  margin-top: 0.35rem;
  font-size: 0.58rem;
}
.sidebar-sesame-contact a {
  color: rgba(234,179,8,0.65);
  text-decoration: none;
  transition: color .2s;
}
.sidebar-sesame-contact a:hover { color: #eab308; }
