/* ============================================================
   RollerClub Events — Feuille de style principale
   Thème : Bleu #1565C0 / Blanc / Jaune #F9C200
   Mobile-first, responsive
   ============================================================ */

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

:root {
  --blue:        #1565C0;
  --blue2:       #1976D2;
  --blue-dark:   #0D3F7A;
  --blue-light:  #E3F0FB;
  --yellow:      #F9C200;
  --yellow-light:#FFF8D6;
  --yellow-dark: #7A5000;
  --white:       #ffffff;
  --gray:        #6B7280;
  --gray-light:  #F3F4F6;
  --border:      #D1D5DB;
  --danger:      #DC2626;
  --danger-light:#FEE2E2;
  --success:     #15803D;
  --success-light:#DCFCE7;
  --warn:        #B45309;
  --warn-light:  #FEF3C7;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.08);
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #EEF3FA;
  color: #111827;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Topbar ---- */
.topbar {
  background: var(--blue);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-logo { display: flex; align-items: center; gap: 10px; }
.topbar-logo .icon { font-size: 26px; }
.topbar h1 { font-size: 16px; font-weight: 600; }
.topbar p  { font-size: 10px; opacity: .7; margin-top: 1px; }

/* ---- Nav tabs ---- */
.tabs {
  background: var(--blue-dark);
  display: flex;
  position: sticky;
  top: 57px;
  z-index: 49;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 9px 4px 7px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: .15s;
  text-decoration: none;
  display: block;
}
.tab.active, .tab:hover { color: #fff; border-bottom-color: var(--yellow); }
.tab .ti { display: block; font-size: 20px; margin-bottom: 2px; }

/* ---- Layout ---- */
.container { max-width: 640px; margin: 0 auto; padding: 14px 12px 80px; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: .5px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-hero {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  color: rgba(255,255,255,.35);
  position: relative;
}
.card-hero img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 4px; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
}
.b-green   { background: var(--success-light); color: var(--success); }
.b-yellow  { background: var(--yellow-light); color: var(--yellow-dark); }
.b-red     { background: var(--danger-light); color: var(--danger); }
.b-blue    { background: var(--blue-light); color: var(--blue); }
.b-gray    { background: var(--gray-light); color: var(--gray); }
.b-orange  { background: #FEF3C7; color: #92400E; }

/* ---- Meta info ---- */
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--gray); margin: 6px 0; }
.meta span { display: flex; align-items: center; gap: 3px; }

/* ---- Progress bar ---- */
.pbar  { height: 5px; background: #E5E7EB; border-radius: 5px; margin: 8px 0; }
.pfill { height: 100%; border-radius: 5px; background: var(--blue); }
.pfull { background: var(--danger); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: .15s;
  font-family: inherit;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue2); }
.btn-yellow { background: var(--yellow); color: var(--yellow-dark); }
.btn-yellow:hover { background: #f0b800; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--blue); }
.btn-outline:hover { background: var(--gray-light); }
.btn-danger { background: var(--danger-light); color: var(--danger); }
.btn-success { background: var(--success-light); color: var(--success); }
.btn-sm  { padding: 6px 12px; font-size: 12px; }
.btn-w   { width: 100%; justify-content: center; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---- Forms ---- */
.form-group { margin-bottom: 12px; }
label { font-size: 12px; color: var(--gray); display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel],
input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=password],
select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--white);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- Alerts ---- */
.alert {
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
  margin: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.a-info    { background: var(--blue-light); color: var(--blue); }
.a-ok      { background: var(--success-light); color: var(--success); }
.a-warn    { background: var(--warn-light); color: var(--warn); }
.a-danger  { background: var(--danger-light); color: var(--danger); }

/* ---- Stepper ---- */
.stepper { display: flex; margin: 16px 0; }
.si { flex: 1; text-align: center; position: relative; }
.si:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px; left: 50%;
  width: 100%; height: 2px;
  background: #E5E7EB; z-index: 0;
}
.si.done::after { background: var(--blue); }
.sc {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 5px;
  position: relative; z-index: 1;
  font-size: 12px; font-weight: 600;
}
.sc-done   { background: var(--blue); color: #fff; }
.sc-active { background: var(--yellow); color: var(--yellow-dark); box-shadow: 0 0 0 3px rgba(249,194,0,.25); }
.sc-wait   { background: #E5E7EB; color: var(--gray); }
.sl { font-size: 10px; color: var(--gray); }
.sl-active { color: var(--blue); font-weight: 600; }

/* ---- Payment cards ---- */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.pcard {
  background: var(--gray-light);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: .15s;
}
.pcard:hover { border-color: var(--blue); }
.pcard.sel   { border-color: var(--blue); background: var(--blue-light); }
.pcard i     { font-size: 22px; color: var(--gray); display: block; margin-bottom: 4px; }
.pcard.sel i { color: var(--blue); }
.pcard span  { font-size: 11px; color: var(--gray); font-weight: 600; }
.pcard.sel span { color: var(--blue); }

/* Hello Asso button */
.hbtn {
  background: #00A388; color: #fff;
  border: none; border-radius: 8px;
  padding: 11px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center;
  gap: 7px; width: 100%; justify-content: center;
  font-family: inherit;
}

/* ---- Upload zone ---- */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 9px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: var(--gray-light);
  margin: 6px 0;
  transition: border-color .15s;
}
.upload-zone:hover { border-color: var(--blue); }
.upload-zone i { font-size: 32px; color: var(--gray); display: block; margin-bottom: 6px; }
.upload-zone span { font-size: 13px; color: var(--gray); }

/* ---- Stats grid ---- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 14px; }
.stat { background: var(--white); border-radius: 8px; border: .5px solid var(--border); padding: 10px 13px; text-align: center; }
.stat .v { font-size: 22px; font-weight: 700; color: var(--blue); }
.stat .l { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ---- AI box ---- */
.ai-box {
  background: var(--blue-light);
  border-radius: 9px;
  padding: 12px 14px;
  margin: 10px 0;
  border: .5px solid #B5D4F4;
}
.ai-label { font-size: 12px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ai-text  { font-size: 13px; color: #0C447C; line-height: 1.55; }
.dots { display: flex; gap: 4px; align-items: center; }
.dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: blink 1.2s infinite; }
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{opacity:.2} 40%{opacity:1} }

/* ---- Admin table ---- */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--gray-light); font-size: 12px; font-weight: 600; color: var(--gray); padding: 8px 10px; text-align: left; }
.admin-table td { font-size: 13px; padding: 9px 10px; border-bottom: .5px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FAFAFA; }

/* ---- Section title ---- */
.sec { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .6px; margin: 14px 0 8px; }

/* ---- Divider ---- */
.divider { height: .5px; background: var(--border); margin: 12px 0; }

/* ---- Tag ---- */
.tag { display: inline-block; background: var(--gray-light); color: var(--gray); font-size: 11px; padding: 2px 8px; border-radius: 20px; margin-right: 4px; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .form-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .card-title { font-size: 14px; }
}

/* ---- Loader overlay ---- */
.loader-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.8);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  display: none;
}

/* ---- Flash messages ---- */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash-ok     { background: var(--success-light); color: var(--success); }
.flash-error  { background: var(--danger-light); color: var(--danger); }
.flash-warn   { background: var(--warn-light); color: var(--warn); }

/* ---- Footer nav mobile ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: .5px solid var(--border);
  display: flex;
  z-index: 50;
  max-width: 640px;
  margin: 0 auto;
}
