
:root{
  --black:#101010;
  --softblack:#181818;
  --card:#1f1f1f;
  --orange:#f59e0b;
  --yellow:#ffd21f;
  --red:#c62828;
  --white:#fafafa;
  --muted:#c7c7c7;
  --line:rgba(255,255,255,.12);
  --shadow:0 24px 60px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left,rgba(245,158,11,.2),transparent 32rem),
    radial-gradient(circle at bottom right,rgba(198,40,40,.18),transparent 28rem),
    var(--black);
  color:var(--white);
}
a{color:var(--yellow)}
.header{
  max-width:1180px;
  margin:0 auto;
  padding:28px 16px 20px;
  text-align:center;
}
.badge{
  width:160px;
  height:160px;
  object-fit:cover;
  border-radius:50%;
  border:7px solid #fff;
  margin:0 auto 14px;
  box-shadow:var(--shadow);
  background:#000;
}
h1{
  margin:0;
  font-size:clamp(2.8rem,8vw,5.5rem);
  color:var(--orange);
  text-transform:uppercase;
  letter-spacing:-.06em;
  line-height:.9;
}
.header p{
  color:var(--muted);
  font-weight:800;
  margin:12px auto 0;
  max-width:760px;
}
.notice{
  background:linear-gradient(90deg,var(--orange),var(--yellow));
  color:#111;
  text-align:center;
  padding:13px 10px;
  font-weight:1000;
  text-transform:uppercase;
}
main{
  max-width:1180px;
  margin:26px auto;
  padding:0 16px 50px;
  display:grid;
  grid-template-columns:1fr 390px;
  gap:22px;
  align-items:start;
}
main.admin-main{grid-template-columns:1fr}
.card{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
}
.card.light{
  background:#f8f8f8;
  color:#111;
}
h2{
  margin:0 0 16px;
  color:var(--orange);
  text-transform:uppercase;
}
.card.light h2{color:#111}
.pizza-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
.pizza-card{
  background:#141414;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
}
.pizza-card img{
  width:100%;
  height:180px;
  object-fit:cover;
  background:#222;
}
.pizza-body{
  padding:18px;
}
.pizza-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.pizza-head h3{
  margin:0;
  color:var(--orange);
  font-size:1.45rem;
  text-transform:uppercase;
}
.price{
  color:var(--yellow);
  font-weight:1000;
  white-space:nowrap;
}
.desc{
  color:var(--muted);
  line-height:1.45;
  min-height:64px;
}
label{
  display:block;
  font-weight:900;
  margin:10px 0 6px;
}
input,select,textarea,button{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.16);
  padding:12px;
  font:inherit;
}
input,select,textarea{
  background:#fff;
  color:#111;
}
button{
  border:0;
  background:linear-gradient(90deg,var(--orange),var(--yellow));
  color:#111;
  font-weight:1000;
  cursor:pointer;
  text-transform:uppercase;
}
button.secondary{background:#333;color:white}
button.danger{background:#c62828;color:white}
button.success{background:#15803d;color:white}
button:disabled{opacity:.45;cursor:not-allowed}
aside{position:sticky;top:14px}
.cart-item,.order{
  border-bottom:1px solid rgba(0,0,0,.12);
  padding:12px 0;
}
.summary{display:grid;gap:8px;margin-top:16px}
.row{display:flex;justify-content:space-between;gap:12px}
.total{border-top:2px solid rgba(0,0,0,.15);padding-top:12px;font-size:1.3rem;font-weight:1000}
.warning,.success-msg{
  display:none;
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  font-weight:900;
}
.warning{background:#fff3cd;color:#7a4b00}
.success-msg{background:#dcfce7;color:#166534}
.kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.kpi{
  background:#f8f8f8;
  color:#111;
  border-radius:20px;
  padding:20px;
}
.kpi span{display:block;color:#555;font-weight:800}
.kpi strong{display:block;font-size:2.2rem;margin-top:4px}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;min-width:900px;background:#fff;color:#111;border-radius:14px;overflow:hidden}
th,td{padding:12px;border-bottom:1px solid #ddd;text-align:left;vertical-align:top}
th{background:#f59e0b;color:#111}
@media(max-width:900px){
  main{grid-template-columns:1fr}
  aside{position:static}
  .pizza-grid,.kpis{grid-template-columns:1fr}
  .badge{width:120px;height:120px}
}


/* V3 : badge rond Facebook uniquement */
.header.compact {
  padding-top: 22px;
  padding-bottom: 18px;
}
.badge {
  object-fit: cover;
  object-position: center;
  background: #000;
}
