:root {
  --magal-blue-dark: #0b2a52;
  --magal-blue: #123a6b;
  --magal-blue-light: #1e5799;
  --magal-gold: #d4af37;
  --magal-silver: #dfe6ee;
}

body.admin-body {
  background: #f4f6f9;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.topbar {
  background: linear-gradient(90deg, var(--magal-blue-dark), var(--magal-blue-light));
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
  color: #333;
  padding: .6rem 1.2rem;
  border-left: 3px solid transparent;
}
.sidebar .nav-link:hover {
  background: #f0f4fa;
}
.sidebar .nav-link.active {
  color: var(--magal-blue-light);
  background: #eaf1fb;
  border-left-color: var(--magal-blue-light);
  font-weight: 600;
}

.content-area {
  width: 100%;
}

.stat-card {
  border: none;
  border-radius: .75rem;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.stat-card.bg-1 { background: linear-gradient(135deg, #123a6b, #1e5799); }
.stat-card.bg-2 { background: linear-gradient(135deg, #7a5c00, #d4af37); }
.stat-card.bg-3 { background: linear-gradient(135deg, #1b4332, #2d6a4f); }
.stat-card.bg-4 { background: linear-gradient(135deg, #6a040f, #9d0208); }

.qr-thumb {
  width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
}

/* ============ FICHE PUBLIQUE (scan QR) — theme premium ============ */
body.fiche-body {
  background: radial-gradient(circle at 50% 0%, #eef3f9 0%, #dde6f0 55%, #cfd9e6 100%);
  min-height: 100vh;
}
.fiche-wrapper {
  max-width: 480px;
  margin: 0 auto;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.fiche-header {
  text-align: center;
  padding: 1.6rem 1.2rem .6rem;
}
.fiche-header h1 {
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--magal-blue-dark);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.fiche-header .lieu-tel {
  font-size: 1.05rem;
  color: #4b5563;
  font-weight: 600;
}
.fiche-header::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: .85rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--magal-gold), transparent);
}
.fiche-badge {
  background: linear-gradient(135deg, #14213d, #1e3a63);
  color: #f5d67d;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  text-align: center;
  margin: 1rem 1.2rem 1.2rem;
  letter-spacing: 1px;
  border: 1px solid rgba(212,175,55,.55);
  box-shadow: 0 6px 16px rgba(11,42,82,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
.fiche-card {
  background: radial-gradient(circle at 50% 15%, #1e5799 0%, var(--magal-blue) 45%, var(--magal-blue-dark) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
  padding-bottom: 1.75rem;
  box-shadow: 0 12px 30px rgba(11,42,82,.35);
}
.fiche-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--magal-gold), transparent);
}
.fiche-hexagon-wrap {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1rem .5rem;
}
.fiche-hexagon {
  width: 250px;
  height: 250px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(160deg, var(--magal-gold), #b8860b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 0 6px rgba(255,255,255,.06);
}
.fiche-hexagon-inner {
  width: 92%;
  height: 92%;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  overflow: hidden;
  background: #8fc4ec;
}
.fiche-hexagon-inner img {
  width: 100%; height: 100%; object-fit: cover;
}
.fiche-title-inline {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  padding: 0 1.2rem;
  margin-top: .25rem;
  letter-spacing: .5px;
  color: #f5d67d;
}
.fiche-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: .75rem 1.2rem 0;
  letter-spacing: .5px;
}
.fiche-zone {
  padding: .15rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}
.fiche-contact-box {
  margin: 1.1rem 1.2rem 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .6rem;
  padding: .75rem .9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.fiche-contact-btn {
  background: linear-gradient(180deg, #f0c14b, var(--magal-gold));
  color: #1a1a1a;
  border-radius: .4rem;
  padding: .45rem .9rem;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .3px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.fiche-phone {
  font-weight: 700;
  font-size: 1.1rem;
}
.fiche-phone a { color: #fff; text-decoration: none; }
.fiche-phone a:hover { color: var(--magal-gold); }
.fiche-nbr-box {
  margin: 1.25rem 1.2rem 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .6rem;
  padding: 1rem 1rem .9rem;
}
.fiche-nbr-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .5px;
  margin-bottom: .6rem;
  text-align: center;
  color: rgba(255,255,255,.85);
}
.fiche-nbr-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #f5d67d;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.fiche-condiments {
  margin: 1.1rem 1.2rem 0;
}
.fiche-condiments table {
  width: 100%;
  color: #fff;
  font-size: .95rem;
  border-collapse: collapse;
}
.fiche-condiments tr:nth-child(odd) td {
  background: rgba(255,255,255,.04);
}
.fiche-condiments td {
  padding: .5rem .6rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.fiche-footer-note {
  text-align: center;
  color: #6b7280;
  font-size: .8rem;
  padding: 1.2rem 1rem;
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
