:root {
  --bg: #0b0c10;
  --card: #11131a;
  --muted: #aab1c5;
  --text: #e9eefb;
  --accent: #4c8dff;
  --accent-2: #36d399;
  --shadow: 0 10px 35px rgba(0,0,0,.35);
}
/* Thème clair */
:root[data-theme="light"] {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0c1222;
  --muted: #5c6785;
  --accent: #2457ff;
  --accent-2: #0abf70;
}
/* Thème sombre */
:root[data-theme="dark"] {
  --bg: #0b0c10;
  --card: #10131a;
  --text: #e9eefb;
  --muted: #9aa4bd;
  --accent: #4c8dff;
  --accent-2: #36d399;
}
/* Thème marque (par défaut) – identité spécifique */
:root[data-theme="brand"] {
  --bg: #0b0c10;
  --card: #10131a;
  --text: #f2f5ff;
  --muted: #9fb3d9;
  --accent: #7c3aed;   /* primaire marque */
  --accent-2: #22d3ee; /* secondaire marque */
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container { max-width: 980px; margin: 0 auto; padding: 20px; }

.header {
  padding-top: 28px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand { display:flex; align-items:center; gap:16px; }
.logo { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.06); }
h1 { font-weight: 800; letter-spacing: -0.02em; margin:0; }
.subtitle { color: var(--muted); margin-top: .25rem; }

.theme-switcher button {
  background: var(--card);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 6px;
}
.theme-switcher button:hover { opacity: .9; }

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .grid { grid-template-columns: 1fr 1fr; } }

.progress-header { display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.last-update { color: var(--muted); font-size: .9rem; }
.progress-bar {
  height: 16px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden;
  margin: 12px 0 10px; border: 1px solid rgba(255,255,255,.06);
}
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s ease; }
.progress-meta { display:flex; align-items:center; justify-content:space-between; font-size: 0.98rem; }
.status { display:flex; align-items:center; gap: 8px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 999px; display:inline-block; box-shadow: 0 0 10px rgba(0,0,0,.3); }
.dot--live { background: var(--accent-2); } .dot--idle { background: #777; }

.milestones { list-style: none; padding: 0; margin: 0; }
.milestones li { display:flex; align-items:center; gap:12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.milestones li:last-child { border-bottom: none; }
.milestones .check { width: 22px; height: 22px; border-radius: 6px; display:inline-grid; place-items:center; border: 2px solid rgba(255,255,255,.2); font-size: 14px; }
.milestones .check.done { background: rgba(54,211,153,.12); border-color: var(--accent-2); }
.milestones .title { font-weight: 600; }
.milestones .date { color: var(--muted); font-size: .9rem; margin-left:auto; }

.footer { display:flex; align-items:center; gap:10px; justify-content:center; color: var(--muted); padding: 32px 0 40px; }
.footer a { color: var(--muted); text-decoration: underline; }
.details { color: var(--muted); font-size: .95rem; }

/* ===== HERO INTRO — améliorée ===== */
.intro {
  background: var(--card);
  border-left: 6px solid var(--accent);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 18px 0 22px;
  box-shadow: var(--shadow);
  font-size: 1.08rem;
  line-height: 1.7;
}
:root[data-theme="brand"] .intro {
  background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(124,58,237,0.06));
  border-color: #7c3aed;
}
:root[data-theme="dark"] .intro {
  background: linear-gradient(180deg, rgba(76,141,255,0.14), rgba(76,141,255,0.08));
  border-color: #4c8dff;
}
:root[data-theme="light"] .intro {
  background: linear-gradient(180deg, rgba(36,87,255,0.10), rgba(36,87,255,0.06));
  border-color: #2457ff;
}
.intro h2 {
  margin: 0 0 .55rem 0;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.intro h2::before {
  content: "✨";
  font-size: 1.05em;
  line-height: 1;
}
.intro p {
  margin: 0;
  font-style: italic;
  color: var(--text);
  opacity: .98;
}
@media (max-width: 640px) {
  .intro { font-size: 1rem; padding: 18px; }
  .intro h2 { font-size: 1.15rem; }
}


