:root {
  --orange: #F77F00;
  --green: #009E60;
  --ink: #111827;
  --sand: #F7F4EF;
  --dark: #0B1220;
  --card: #fff;
  --line: rgba(17, 24, 39, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(247,127,0,.12), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(0,158,96,.12), transparent 26%),
    var(--sand);
  color: var(--ink);
}
a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,244,239,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .04em; color: inherit; }
.brand img.logo, img.logo {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.footer-brand img.logo { width: 36px; height: 36px; }
.side-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  margin-bottom: 8px; font-weight: 700;
}
.side-brand img.logo { width: 36px; height: 36px; border-radius: 8px; }
.mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--green));
  color: #fff; display: grid; place-items: center; font-family: "JetBrains Mono", monospace; font-size: 13px;
  box-shadow: 0 8px 18px rgba(247,127,0,.25);
}
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: rgba(17,24,39,.78); }
.nav a:hover, .nav a.active { color: var(--orange); }
.cart-link { position: relative; text-decoration: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; display: inline-flex; align-items: center; gap: 6px; }
.badge { background: var(--orange); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; font-size: 11px; display: inline-grid; place-items: center; padding: 0 5px; font-weight: 700; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; }
.hero {
  margin: 28px 0; border-radius: 28px; overflow: hidden; color: #fff;
  background: linear-gradient(145deg, #0B1220, #163024 55%, #F77F00);
  box-shadow: 0 24px 50px rgba(11,18,32,.18); padding: 48px 40px;
}
.kicker { font-family: "JetBrains Mono", monospace; color: #ffb15a; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: Oxanium, Outfit, sans-serif; margin: 0 0 8px; }
.hero h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.05; }
.lead { max-width: 640px; color: rgba(255,255,255,.82); }
.btn, button.btn, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; text-decoration: none; border: 0;
  border-radius: 14px; padding: 12px 18px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 24px rgba(247,127,0,.22);
}
.btn-green { background: var(--green); box-shadow: none; }
.hero.has-slides { background-size: cover; background-position: center; transition: background-image .6s ease; }
.hero-dots { display: flex; gap: 6px; margin-top: 18px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.on { background: #fff; }
.feature-card { text-align: center; }
.feature-card .ico { font-size: 28px; margin-bottom: 8px; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 16px 40px rgba(17,24,39,.06); padding: 18px;
}
.product-card { text-decoration: none; display: block; overflow: hidden; }
.product-card h3 { font-size: 18px; }
.price { color: var(--ink); font-weight: 800; font-size: 18px; }
.price-wrap { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price-old { color: rgba(17,24,39,.45); font-weight: 600; font-size: 14px; text-decoration: line-through; }
.price-promo { color: #b91c1c; }
.promo-badge {
  display: inline-block; font-size: 11px; font-weight: 800; font-family: "JetBrains Mono", monospace;
  color: #fff; background: #b91c1c; padding: 2px 7px; border-radius: 999px; letter-spacing: .02em;
}
.muted { color: rgba(17,24,39,.6); }
label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: inherit; background: #fff;
}
textarea { min-height: 120px; }
.form-grid { display: grid; gap: 14px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.alert-ok { background: rgba(0,158,96,.12); }
.alert-error { background: #fee2e2; color: #991b1b; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--orange); }
.stage {
  position: relative; aspect-ratio: 5/6; border-radius: 20px; overflow: hidden;
  background: linear-gradient(#f7f4ef, #fff 40%, #efeae3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 18px 40px rgba(11,18,32,.12);
}
.stage img.base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.design-layer {
  position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%);
  width: min(100px, 22.3%); height: auto; object-fit: contain;
}
.prenom {
  position: absolute; left: 0; right: 0; top: 42%; transform: translateY(-50%);
  text-align: center; font-family: "JetBrains Mono", monospace; font-weight: 800;
  font-size: 11px; text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.pills { display: flex; gap: 8px; }
.pill { border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; background: #fff; }
.pill.on { background: var(--orange); color: #fff; }
.designs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 520px; overflow: auto; }
.designs button { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 6px; cursor: pointer; text-align: left; }
.designs button.on { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(247,127,0,.25); }
.designs img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f7f4ef; border-radius: 10px; }
.wa {
  position: fixed; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.18); z-index: 30;
}
footer { margin-top: 40px; background: var(--dark); color: rgba(255,255,255,.78); padding: 28px 0; }
footer a { color: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: var(--dark); color: #fff; padding: 18px; }
.side a { display: block; color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 0; }
.side a:hover, .side a.active { color: #ffb15a; }
.side .group { margin-top: 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.main { padding: 22px; }
.tag { font-size: 11px; font-family: "JetBrains Mono", monospace; color: var(--orange); background: rgba(247,127,0,.1); padding: 2px 6px; border-radius: 6px; margin-right: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--orange); cursor: pointer; font-size: inherit; text-decoration: underline; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox-label input { width: auto; }
table.table th, table.table td { padding: 10px 8px; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 13px; color: rgba(17,24,39,.62); margin: 0 0 16px;
}
.crumbs a { text-decoration: none; color: rgba(17,24,39,.72); font-weight: 600; }
.crumbs a:hover { color: var(--orange); }
.crumbs-sep { opacity: .45; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }
.seo-faq details { margin-top: 10px; }
.seo-faq summary { cursor: pointer; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.dataTables_wrapper { margin-top: 8px; font-size: 14px; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate { color: rgba(17,24,39,.72); }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important; border: 1px solid var(--line) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--orange) !important; color: #fff !important; border-color: var(--orange) !important;
}
table.dataTable thead th { font-family: Oxanium, Outfit, sans-serif; }
table.dataTable.no-footer { border-bottom: 1px solid var(--line); }
table.dataTable tbody tr.odd { background: rgba(247,127,0,.03); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat h3 { font-size: 28px; }
.stat-lottery { border-color: rgba(0,158,96,.35); background: linear-gradient(180deg, #fff, #f0fdf6); }
.kpi-hero {
  background: linear-gradient(135deg, #0B1220, #163024 60%, #1a3a28);
  color: #fff; border-radius: 22px; padding: 22px 24px;
  box-shadow: 0 18px 40px rgba(11,18,32,.16);
}
.kpi-hero-empty { background: #fff; color: var(--ink); border: 1px dashed var(--line); box-shadow: none; }
.kpi-hero-badge {
  display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: #0B1220;
  background: #7dffb3; border-radius: 999px; padding: 4px 10px; margin-bottom: 12px;
}
.kpi-hero-body { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: end; }
.kpi-hero-metrics { display: flex; gap: 28px; }
.kpi-hero-metrics strong { display: block; font-size: 26px; font-family: Oxanium, Outfit, sans-serif; }
.kpi-hero-metrics span { font-size: 12px; color: rgba(255,255,255,.65); }
.lottery-bar {
  height: 10px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.lottery-bar div {
  height: 100%; background: linear-gradient(90deg, var(--green), #7dffb3); border-radius: 999px;
  transition: width .4s ease;
}
.card .lottery-bar { background: rgba(17,24,39,.06); border-color: transparent; }
.lottery-geek {
  margin-top: 28px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px;
  background: linear-gradient(145deg, #071018, #0f2a22 55%, #122018);
  border-radius: 28px; padding: 28px; color: #fff;
  box-shadow: 0 24px 50px rgba(11,18,32,.2);
  border: 1px solid rgba(125,255,179,.15);
}
.lottery-geek h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); }
.lottery-period { font-family: "JetBrains Mono", monospace; font-size: 13px; color: #7dffb3; margin: 14px 0 8px; }
.lottery-winner { margin-top: 12px; }
.lottery-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.lottery-actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.lottery-mine { margin-top: 10px; font-size: 13px; }
.lottery-mine code {
  font-family: "JetBrains Mono", monospace; background: rgba(125,255,179,.12);
  color: #7dffb3; padding: 2px 6px; border-radius: 6px; margin-right: 4px;
}
.lottery-terminal {
  background: #05080d; border-radius: 18px; padding: 14px 14px 16px;
  border: 1px solid rgba(125,255,179,.2);
  box-shadow: inset 0 0 40px rgba(0,158,96,.08);
}
.lottery-terminal-bar {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: rgba(255,255,255,.45);
}
.lottery-terminal-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff5f56;
}
.lottery-terminal-bar span:nth-child(2) { background: #ffbd2e; }
.lottery-terminal-bar span:nth-child(3) { background: #27c93f; }
.lottery-terminal-bar em { margin-left: auto; font-style: normal; }
.lottery-screen {
  margin: 0 0 12px; min-height: 110px; padding: 12px;
  background: #0a1210; color: #7dffb3; border-radius: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.55;
  white-space: pre-wrap; border: 1px solid rgba(125,255,179,.12);
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 76px; background: #fff; padding: 16px; border-bottom: 1px solid var(--line); z-index: 25; }
  .menu-btn { display: inline-flex; }
  .grid-3, .grid-2, .form-2, .lottery-geek { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .hero { padding: 28px 20px; }
  .prenom { font-size: 9px; }
  .kpi-hero-metrics { width: 100%; justify-content: space-between; }
}
