/* ============================================================
   AFRISHOP — Design System Principal
   Palette: Or africain + Vert émeraude + Blanc ivoire
   ============================================================ */

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

:root {
  --gold:      #C9941A;
  --gold-lt:   #F5C842;
  --green:     #1A7A4A;
  --green-lt:  #27AE60;
  --dark:      #1C1C1E;
  --darker:    #111113;
  --white:     #FDFAF4;
  --grey-1:    #F5F2EC;
  --grey-2:    #E8E3D8;
  --grey-3:    #9E9689;
  --red:       #C0392B;
  --red-lt:    #E74C3C;
  --blue:      #2980B9;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,.14);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ======================== TYPOGRAPHY ======================== */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem,5vw,3.5rem); }
h2 { font-size: clamp(1.4rem,3vw,2.2rem); }
h3 { font-size: 1.3rem; }
p  { color: #555; }

/* ======================== NAVBAR ======================== */
.navbar {
  background: var(--darker);
  position: sticky; top: 0; z-index: 1000;
  padding: 0 2rem;
  display: flex; align-items: center; gap: 1.5rem;
  height: 64px;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 900;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -.5px;
  margin-right: auto;
}
.navbar-brand span { color: var(--white); }

/* Dropdown menu */
.nav-menu { display: flex; gap: .5rem; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  color: var(--grey-2); font-weight: 500; font-size: .9rem;
  padding: .5rem 1rem; border-radius: var(--radius);
  text-decoration: none; display: flex; align-items: center; gap: .4rem;
  transition: var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--gold); background: rgba(201,148,26,.1); }
.nav-menu > li > a .arrow { font-size: .65rem; transition: var(--transition); }
.nav-menu > li:hover > a .arrow { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px;
  background: var(--darker);
  border: 1px solid rgba(201,148,26,.2);
  border-radius: var(--radius);
  padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: .5rem .9rem;
  color: var(--grey-2); font-size: .88rem;
  text-decoration: none; border-radius: 8px;
  transition: var(--transition);
}
.dropdown a:hover { background: rgba(201,148,26,.12); color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.btn-cart {
  position: relative;
  background: none; border: none; cursor: pointer;
  color: var(--white); font-size: 1.3rem; padding: .4rem;
  transition: var(--transition);
}
.btn-cart:hover { color: var(--gold); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: var(--darker);
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.nav-user {
  display: flex; align-items: center; gap: .5rem;
  color: var(--white); font-size: .88rem;
  cursor: pointer; padding: .4rem .8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}
.nav-user:hover { border-color: var(--gold); color: var(--gold); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--darker);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px;
  background: var(--darker);
  border: 1px solid rgba(201,148,26,.2);
  border-radius: var(--radius);
  padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-user:hover .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown a {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; color: var(--grey-2);
  text-decoration: none; border-radius: 8px; font-size: .88rem;
  transition: var(--transition);
}
.nav-user.active .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown a:hover { background: rgba(201,148,26,.1); color: var(--gold); }
.user-dropdown .divider { height: 1px; background: rgba(255,255,255,.07); margin: .3rem 0; }
.user-dropdown .logout { color: var(--red-lt) !important; }

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.4rem; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--darker); }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,148,26,.4); }
.btn-secondary { background: var(--green); color: #fff; }
.btn-secondary:hover { background: var(--green-lt); }
.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--darker); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-lt); }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ======================== FORMS ======================== */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; color: var(--dark); }
.form-control {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--grey-2);
  border-radius: var(--radius); font-size: .9rem;
  background: #fff; color: var(--dark);
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,148,26,.15); }
.form-control.is-invalid { border-color: var(--red); }
.form-error { color: var(--red); font-size: .8rem; margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

/* ======================== CARDS ======================== */
.card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 1.2rem; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.card-price { font-family: 'Playfair Display',serif; font-size: 1.2rem; color: var(--gold); font-weight: 700; }
.card-cat { font-size: .75rem; color: var(--grey-3); text-transform: uppercase; letter-spacing: .5px; }

/* ======================== STOCK BADGES ======================== */
.badge-stock {
  display: inline-block; padding: .25rem .7rem;
  border-radius: 50px; font-size: .75rem; font-weight: 600;
}
.badge-stock.out  { background: #FDECEA; color: var(--red); }
.badge-stock.low  { background: #FFF8E1; color: #E65100; }
.badge-stock.in   { background: #E8F5E9; color: var(--green); }

/* ======================== LAYOUT ======================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrapper { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--grey-1);
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--grey-2);
}
.main-content { flex: 1; padding: 2rem; overflow-x: hidden; }

/* Sidebar nav */
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-title {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--grey-3); padding: .3rem .75rem; margin-bottom: .4rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem; border-radius: var(--radius);
  color: var(--dark); text-decoration: none; font-size: .9rem;
  transition: var(--transition); font-weight: 500;
}
.sidebar-link:hover,.sidebar-link.active {
  background: var(--gold); color: var(--darker);
}
.sidebar-link .icon { font-size: 1rem; width: 20px; text-align: center; }

/* ======================== GRID ARTICLES ======================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ======================== HERO ======================== */
.hero {
  background: linear-gradient(135deg, var(--darker) 0%, #2C1810 50%, #1A3020 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9941A' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero p { color: var(--grey-2); font-size: 1.1rem; max-width: 550px; margin: 0 auto 2rem; }

/* ======================== TABLE ======================== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; }
thead tr { background: var(--darker); color: var(--white); }
thead th { padding: .9rem 1rem; text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--grey-2); transition: var(--transition); }
tbody tr:hover { background: var(--grey-1); }
tbody td { padding: .8rem 1rem; font-size: .88rem; vertical-align: middle; }

/* ======================== STATUT BADGES ======================== */
.statut-badge {
  display: inline-block; padding: .25rem .75rem;
  border-radius: 50px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}
.statut-enregistree  { background: #E3F2FD; color: #1565C0; }
.statut-preparee     { background: #FFF8E1; color: #E65100; }
.statut-avec_livreur { background: #F3E5F5; color: #6A1B9A; }
.statut-livree       { background: #E8F5E9; color: var(--green); }
.statut-annulee      { background: #FFEBEE; color: var(--red); }

/* ======================== ALERTS ======================== */
.alert {
  padding: .9rem 1.2rem; border-radius: var(--radius);
  font-size: .9rem; display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid var(--green); }
.alert-danger  { background: #FFEBEE; color: #C62828; border-left: 4px solid var(--red); }
.alert-warning { background: #FFF8E1; color: #E65100; border-left: 4px solid var(--gold); }
.alert-info    { background: #E3F2FD; color: #1565C0; border-left: 4px solid var(--blue); }

/* ======================== MODAL ======================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 1rem;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  max-width: 520px; width: 100%;
  transform: scale(.95); transition: var(--transition);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  padding: 1.5rem; border-bottom: 1px solid var(--grey-2);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--grey-3); }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--grey-2); display: flex; gap: .75rem; justify-content: flex-end; }

/* ======================== PANIER SIDEBAR ======================== */
.cart-sidebar {
  position: fixed; top: 0; right: -400px; width: 380px; height: 100vh;
  background: #fff; z-index: 1500;
  box-shadow: -8px 0 32px rgba(0,0,0,.15);
  transition: right var(--transition);
  display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 1400; opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-header {
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--grey-2);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-item {
  display: flex; gap: .75rem; padding: .75rem 0;
  border-bottom: 1px solid var(--grey-2);
}
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: .88rem; }
.cart-item-price { color: var(--gold); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid var(--grey-2); background: var(--grey-1);
  cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--gold); color: var(--darker); border-color: var(--gold); }
.cart-footer { padding: 1.2rem 1.5rem; border-top: 1px solid var(--grey-2); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-total-label { font-weight: 600; }
.cart-total-amount { font-family: 'Playfair Display',serif; font-size: 1.3rem; color: var(--gold); font-weight: 700; }

/* ======================== BREADCRUMB ======================== */
.breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--grey-3); margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ======================== DASHBOARD STATS ======================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.gold   { background: rgba(201,148,26,.15); }
.stat-icon.green  { background: rgba(26,122,74,.15); }
.stat-icon.blue   { background: rgba(41,128,185,.15); }
.stat-icon.red    { background: rgba(192,57,43,.15); }
.stat-value { font-family: 'Playfair Display',serif; font-size: 1.6rem; font-weight: 700; }
.stat-label { font-size: .8rem; color: var(--grey-3); }

/* ======================== SUIVI COMMANDE ======================== */
.tracking-steps {
  display: flex; gap: 0; margin: 1.5rem 0; flex-wrap: wrap;
}
.tracking-step {
  flex: 1; min-width: 120px;
  text-align: center; position: relative;
}
.tracking-step::before {
  content: ''; position: absolute; top: 20px; left: 50%; right: -50%;
  height: 2px; background: var(--grey-2); z-index: 0;
}
.tracking-step:last-child::before { display: none; }
.step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grey-2); color: var(--grey-3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .5rem; font-size: 1rem;
  position: relative; z-index: 1; transition: var(--transition);
}
.tracking-step.done .step-circle { background: var(--green); color: #fff; }
.tracking-step.active .step-circle { background: var(--gold); color: var(--darker); box-shadow: 0 0 0 4px rgba(201,148,26,.2); }
.step-label { font-size: .75rem; font-weight: 600; color: var(--grey-3); }
.tracking-step.done .step-label,
.tracking-step.active .step-label { color: var(--dark); }

/* ======================== FOOTER ======================== */
footer {
  background: var(--darker); color: var(--grey-2);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand { font-family: 'Playfair Display',serif; font-size: 1.4rem; color: var(--gold); margin-bottom: .5rem; }
.footer-desc { font-size: .85rem; line-height: 1.7; }
.footer-title { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: .8rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--grey-3); text-decoration: none; font-size: .85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem; text-align: center; font-size: .8rem; color: var(--grey-3);
}

/* ======================== AUTH PAGES ======================== */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--darker) 0%, #1A3020 100%);
  padding: 2rem;
}
.auth-card {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.auth-header {
  background: var(--darker); padding: 2rem;
  text-align: center;
}
.auth-logo { font-family: 'Playfair Display',serif; font-size: 2rem; font-weight: 900; color: var(--gold); }
.auth-logo span { color: var(--white); }
.auth-subtitle { color: var(--grey-3); font-size: .85rem; margin-top: .3rem; }
.auth-body { padding: 2rem; }
.auth-footer { padding: 1rem 2rem 1.5rem; text-align: center; font-size: .85rem; color: var(--grey-3); }
.auth-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--grey-2); margin-bottom: 1.5rem; }
.auth-tab {
  flex: 1; padding: .7rem; text-align: center;
  font-weight: 600; font-size: .88rem; cursor: pointer;
  color: var(--grey-3); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: var(--transition);
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .sidebar { width: 220px; }
}
@media (max-width: 768px) {
  .page-wrapper { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--grey-2); padding: 1rem; }
  .main-content { padding: 1.2rem; }
  .nav-menu { display: none; }
  .mobile-menu-btn { display: flex !important; }
  .navbar { padding: 0 1rem; }
  .articles-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.4rem; cursor: pointer;
}
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: var(--darker); z-index: 999;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer;
}
.mobile-cat { margin-bottom: .5rem; }
.mobile-cat-title {
  color: var(--gold); font-weight: 700; font-size: 1rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  display: flex; justify-content: space-between;
}
.mobile-sublinks { display: none; padding-left: 1rem; }
.mobile-sublinks.open { display: block; }
.mobile-sublinks a { display: block; color: var(--grey-2); padding: .5rem 0; text-decoration: none; font-size: .9rem; }

/* ======================== MISC ======================== */
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--grey-3); }
.fw-bold     { font-weight: 700; }
.d-flex      { display: flex; }
.gap-1       { gap: .5rem; }
.gap-2       { gap: 1rem; }
.align-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.p-2 { padding: 1rem; }
.text-center { text-align: center; }

input[type=number]::-webkit-inner-spin-button { opacity: 1; }

.loading { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.1); border-top-color: var(--gold); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page-title { margin-bottom: 1.5rem; }
.page-title h2 { margin-bottom: .3rem; }
.page-title p { color: var(--grey-3); font-size: .9rem; }

.section-title { margin-bottom: 1.5rem; }
.section-title h2 { color: var(--dark); }
.section-title h2 span { color: var(--gold); }


.historique-container {
  border-left: 3px solid #007BFF;
  margin: 1.5rem 0;
  padding-left: 1rem;
}

.historique-entry {
  position: relative;
  margin-bottom: 1rem;
}

.historique-entry::before {
  content: '•';
  position: absolute;
  left: -1.3rem;
  top: 0.2rem;
  font-size: 1.3rem;
  color: #007BFF;
}

.historique-entry .status {
  font-weight: 600;
  color: #007BFF;
}

.historique-entry .meta {
  font-size: .85rem;
  color: #555;
}

.historique-entry .meta .user {
  margin-left: .4rem;
  color: #777;
}

.historique-entry .commentaire {
  font-size: .85rem;
  margin-top: .25rem;
  color: #444;
}

