:root {
  --navy: #0b1a26;
  --navy2: #091521;
  --red: #e0483f;
  --text: #e9f1ff;
  --muted: #9eb2ce;
}

/* Reset + base (compat CEF) */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font: 500 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
}

/* ===== BACKGROUND ===== */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Effet balayage */
.sweep {
  position: fixed;
  inset: -20% -20%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, #0000 0 40%, #ffffff08 50%, #0000 60%);
  animation: sweep 7s linear infinite;
}
@keyframes sweep {
  from { transform: translateX(-20%); }
  to   { transform: translateX(20%); }
}

/* Particules */
.particles { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.dot {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff3; border-radius: 50%; opacity: .6;
  animation: float 14s linear infinite;
}
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-40vh); } }

/* ===== LAYOUT ===== */
.wrap { position: relative; z-index: 3; display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.hero { display: grid; place-items: center; gap: 22px; }

/* Badge (logo + cercle) */
.badge {
  position: relative; display: grid; place-items: center;
  width: min(360px, 62vw); height: min(360px, 62vw);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #13283f 0%, #0c1d2d 65%, #091521 100%);
  border: 2px solid #19344d;
  box-shadow: inset 0 0 60px #000a, 0 30px 80px #000a;
  overflow: hidden;
}
.badge::before {
  content: ""; position: absolute; inset: -20px; border-radius: 50%;
  box-shadow: 0 0 60px 12px #e0483f33, inset 0 0 60px #e0483f22;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.4;} 50%{opacity:.9;} }

.logoWrap { position: relative; z-index: 2; width: 90%; display: grid; place-items: center; }
.logoWrap img { width: 100%; height: auto; display: block; }

/* Anneau */
.ring { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; }

/* Titres */
.title { text-align: center; font-weight: 900; letter-spacing: .12em; margin: 0; }
.title .lp { color: var(--red); }
.subtitle { color: var(--muted); text-align: center; margin-top: -6px; }

/* Carte infos */
.card {
  margin-top: 14px; position: relative; width: min(980px, 92vw);
  background: linear-gradient(180deg, #0d1d2fdd, #0a1627dd);
  border: 1px solid #1b3750; box-shadow: 0 10px 40px #0009;
  border-radius: 18px; overflow: hidden;
}
.grid { display: grid; gap: 12px; padding: 12px 18px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info {
  background: linear-gradient(180deg, #0c1a2a, #0a1522);
  border: 1px solid #18324b; border-radius: 12px; padding: 10px; min-width: 0;
}
.info label { display: block; color: #93abc8; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.info div { font-weight: 700; font-size: 15px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Progression */
.progress { padding: 10px 18px 16px; }
.bar {
  height: 12px; background: #08121b;
  border: 1px solid #18324b; border-radius: 999px;
  overflow: hidden; position: relative;
}
/* >>> FIX barre horizontale : block + height:100% + z-index */
.bar > i#barfill{
  display: block;
  position: absolute; left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #ff7c75);
  box-shadow: 0 0 18px #e0483f55;
  transition: width .25s linear;
  z-index: 1;
}
.pulse {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, #ffffff06 0 10px, #0000 10px 20px);
  z-index: 0;
}

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px 16px; }
.tips { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.tipdot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); }
.tip { color: #d8e6f6; }
.controls { display: flex; align-items: center; gap: 10px; }
.btn {
  background: linear-gradient(180deg, #0f1d2e, #0b1725);
  border: 1px solid #1b3953; border-radius: 12px; padding: 10px 14px;
  color: var(--text); cursor: pointer; font-weight: 700;
}
.btn[aria-pressed="true"] { outline: 2px solid var(--red); box-shadow: 0 0 20px #e0483f33; }

/* Responsive */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { flex-direction: column; align-items: stretch; }
  .subtitle { display: none; }
}