/* ============================================================
   ASE EVENTS — Thème partagé (tous les outils internes)
   Inspiré de dev.ase-events.fr
   ============================================================ */

:root {
  --ase-bg:       #111111;
  --ase-bg2:      #1a1a1a;
  --ase-bg3:      #222222;
  --ase-border:   #2e2e2e;
  --ase-border2:  #3e3e3e;
  --ase-gold:     #c9a84c;
  --ase-gold-l:   #e8c97a;
  --ase-text:     #f0ede6;
  --ase-muted:    #888888;
  --ase-muted2:   #555555;
  --ase-green:    #4a9c5d;
  --ase-red:      #c0392b;
  --ase-blue:     #3b82c4;
  --ase-radius:   10px;
  --ase-radius-sm:6px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--ase-bg);
  color: var(--ase-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Topbar ── */
.ase-topbar {
  background: var(--ase-bg2);
  border-bottom: 1px solid var(--ase-border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.ase-topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ase-topbar-logo img { height: 28px; }
.ase-topbar-logo span {
  font-size: 13px;
  color: var(--ase-muted);
  font-style: italic;
}
.ase-topbar-nav { display: flex; gap: 4px; align-items: center; }
.ase-topbar-nav a {
  padding: 6px 12px;
  border-radius: var(--ase-radius-sm);
  color: var(--ase-muted);
  text-decoration: none;
  font-size: 13px;
  transition: all .2s;
}
.ase-topbar-nav a:hover { color: var(--ase-text); background: var(--ase-bg3); }
.ase-topbar-nav a.active { color: var(--ase-gold); background: rgba(201,168,76,.1); }

/* ── Page wrapper ── */
.ase-page { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }
.ase-page-wide { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ── Eyebrow / Hero ── */
.ase-eyebrow {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ase-gold);
  margin-bottom: .5rem;
}
.ase-hero-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--ase-text);
  margin-bottom: .5rem;
}
.ase-hero-title em { font-style: italic; color: var(--ase-gold); font-weight: 400; }
.ase-hero-sub { font-size: 14px; color: var(--ase-muted); }

/* ── Cards ── */
.ase-card {
  background: var(--ase-bg2);
  border: 1px solid var(--ase-border);
  border-radius: var(--ase-radius);
  padding: 1.25rem;
}
.ase-card:hover { border-color: var(--ase-border2); }
.ase-card-gold { border-color: var(--ase-gold); }

/* ── Stat cards ── */
.ase-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.ase-stat {
  background: var(--ase-bg2);
  border: 1px solid var(--ase-border);
  border-radius: var(--ase-radius-sm);
  padding: 14px;
  text-align: center;
}
.ase-stat-num { font-size: 24px; font-weight: 300; color: var(--ase-gold); }
.ase-stat-lbl { font-size: 11px; color: var(--ase-muted); margin-top: 2px; }

/* ── Buttons ── */
.ase-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--ase-radius-sm);
  border: 1px solid var(--ase-border2);
  background: var(--ase-bg2);
  color: var(--ase-text);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.ase-btn:hover { border-color: var(--ase-gold); color: var(--ase-gold); }
.ase-btn-gold {
  background: var(--ase-gold);
  border-color: var(--ase-gold);
  color: #111;
  font-weight: 500;
}
.ase-btn-gold:hover { background: var(--ase-gold-l); border-color: var(--ase-gold-l); color: #111; }
.ase-btn-danger { border-color: var(--ase-red); color: var(--ase-red); }
.ase-btn-danger:hover { background: rgba(192,57,43,.1); }

/* ── Forms ── */
.ase-form-group { margin-bottom: 1.25rem; }
.ase-label {
  display: block;
  font-size: 12px;
  color: var(--ase-muted);
  margin-bottom: 5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ase-label .req { color: var(--ase-gold); }
.ase-input, .ase-select, .ase-textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--ase-bg3);
  border: 1px solid var(--ase-border);
  border-radius: var(--ase-radius-sm);
  color: var(--ase-text);
  font-size: 14px;
  transition: border-color .2s;
  outline: none;
}
.ase-input:focus, .ase-select:focus, .ase-textarea:focus { border-color: var(--ase-gold); }
.ase-input.error { border-color: var(--ase-red); }
.ase-input-error { font-size: 12px; color: var(--ase-red); margin-top: 4px; display: none; }
.ase-input.error + .ase-input-error { display: block; }
.ase-select { cursor: pointer; }
.ase-select option { background: var(--ase-bg3); }
.ase-textarea { resize: vertical; min-height: 80px; }
.ase-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ase-form-row { grid-template-columns: 1fr; } }

/* ── Section titles ── */
.ase-section {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ase-gold);
  margin: 1.5rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ase-border);
}

/* ── Badges / Status pills ── */
.ase-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.ase-badge-gold   { background: rgba(201,168,76,.15); color: var(--ase-gold); border: 1px solid rgba(201,168,76,.3); }
.ase-badge-green  { background: rgba(74,156,93,.15);  color: #6dbf7e; border: 1px solid rgba(74,156,93,.3); }
.ase-badge-red    { background: rgba(192,57,43,.15);  color: #e07060; border: 1px solid rgba(192,57,43,.3); }
.ase-badge-blue   { background: rgba(59,130,196,.15); color: #7bb3e8; border: 1px solid rgba(59,130,196,.3); }
.ase-badge-gray   { background: rgba(136,136,136,.1); color: var(--ase-muted); border: 1px solid var(--ase-border); }

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

/* ── Stepper ── */
.ase-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ase-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.ase-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ase-border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ase-muted);
  flex-shrink: 0;
  transition: all .3s;
}
.ase-step.active .ase-step-num  { border-color: var(--ase-gold); color: var(--ase-gold); background: rgba(201,168,76,.1); }
.ase-step.done .ase-step-num    { border-color: var(--ase-green); background: var(--ase-green); color: #111; }
.ase-step-label { font-size: 12px; color: var(--ase-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ase-step.active .ase-step-label { color: var(--ase-text); }
.ase-step-line { flex: 1; height: 1px; background: var(--ase-border); margin: 0 8px; min-width: 16px; }

/* ── Toast notifications ── */
.ase-toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.ase-toast {
  background: var(--ase-bg2);
  border: 1px solid var(--ase-border);
  border-left: 3px solid var(--ase-gold);
  border-radius: var(--ase-radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ase-text);
  min-width: 240px;
  animation: toastIn .2s ease;
}
.ase-toast.success { border-left-color: var(--ase-green); }
.ase-toast.error   { border-left-color: var(--ase-red); }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }

/* ── Tables ── */
.ase-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ase-table th { padding: 8px 12px; text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ase-muted); border-bottom: 1px solid var(--ase-border); }
.ase-table td { padding: 10px 12px; border-bottom: 1px solid var(--ase-border); color: var(--ase-text); }
.ase-table tr:hover td { background: rgba(255,255,255,.02); }

/* ── Login page ── */
.ase-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.ase-login-box {
  background: var(--ase-bg2);
  border: 1px solid var(--ase-border);
  border-radius: var(--ase-radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.ase-login-logo { height: 40px; margin-bottom: 1.5rem; }
.ase-login-error {
  background: rgba(192,57,43,.1);
  border: 1px solid rgba(192,57,43,.3);
  border-radius: var(--ase-radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: #e07060;
  margin-bottom: 1rem;
  display: none;
}
.ase-login-error.show { display: block; }

/* ── Search / Filter bar ── */
.ase-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.25rem; align-items: center; }
.ase-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  background: var(--ase-bg3);
  border: 1px solid var(--ase-border);
  border-radius: var(--ase-radius-sm);
  color: var(--ase-text);
  font-size: 13px;
  outline: none;
}
.ase-search:focus { border-color: var(--ase-gold); }
.ase-filter-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--ase-border);
  background: var(--ase-bg2);
  color: var(--ase-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.ase-filter-chip.active { border-color: var(--ase-gold); color: var(--ase-gold); background: rgba(201,168,76,.08); }

/* ── Scrollbar styling ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ase-bg); }
::-webkit-scrollbar-thumb { background: var(--ase-border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ase-muted2); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .ase-page, .ase-page-wide { padding: 1rem; }
  .ase-hero-title { font-size: 22px; }
  .ase-topbar-nav { display: none; }
}
