:root {
  --bg: #0b1020;
  --bg-soft: #0f1530;
  --card: rgba(255, 255, 255, .06);
  --card-border: rgba(255, 255, 255, .12);
  --text: #e6e9f2;
  --muted: #a1a8c7;
  --primary: #4c6fff;
  --primary-strong: #3557ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7ff;
    --bg-soft: #eef2ff;
    --card: #fff;
    --card-border: #e6eaff;
    --text: #0f172a;
    --muted: #475569;
    --shadow: 0 10px 30px rgba(21, 33, 66, .1);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Inter,
    Roboto,
    Helvetica,
    Arial;
  background:
    radial-gradient(1200px 800px at 10% -10%, #5b7cfa33 0, transparent 50%),
    radial-gradient(900px 700px at 110% -20%, #9b59ff33 0, transparent 40%),
    var(--bg);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding: 28px;
}

.hero {
  position: relative;
  margin-top: 16px;
  border: 1px solid var(--card-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  backdrop-filter: blur(8px);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Remplace l'ancien style inline du wrapper Header */
.hero-row {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.title {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(24px, 2.5vw, 34px);
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--card-border);
  color: var(--text);
}

.cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(76, 111, 255, .35);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
  box-shadow: none;
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 980px) {
  .grid {
    grid-template-columns: 2fr 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.mt-18 {
  margin-top: 18px;
}

h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

p.muted {
  color: var(--muted);
  margin: 6px 0 0;
}

.timeline {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.timeline li {
  padding: 5px 0;
}

.timeline li.li {
  border-bottom: 1px dashed var(--card-border);
  padding: 12px 0;
}

.timeline li:last-child {
  border-bottom: 0;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text);
  font-weight: 700;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(76, 111, 255, .12);
  color: #cdd6ff;
  border: 1px solid rgba(76, 111, 255, .25);
}

.date {
  color: var(--muted);
  font-size: 12px;
}

ul.bullets {
  margin: 8px 0 0 18px;
}

.road {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--card-border);
}

.road:last-child {
  border-bottom: 0;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status.plan {
  background: rgba(148, 163, 184, .15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .25);
}

.status.run {
  background: rgba(76, 111, 255, .15);
  color: #cdd6ff;
  border: 1px solid rgba(76, 111, 255, .25);
}

.status.done {
  background: rgba(34, 197, 94, .15);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, .25);
}

.status.stopped {
  background: rgba(220, 38, 38, .15);
  color: #fecaca;
  border: 1px solid rgba(220, 38, 38, .25);
}

/* Ajouts pour remplacer les styles inline */
.road-title {
  font-weight: 700;
}

.muted-sm {
  font-size: 13px;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.label {
  font-weight: 700;
  margin: 0;
}

.p-compact {
  margin: 4px 0;
}

.p-compact-bottom {
  margin: 4px 0 10px;
}

.link {
  color: var(--primary);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.contact-block {
  margin-top: 18px;
}

.quote {
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--card-border);
  padding-left: 12px;
  margin: 10px 0;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.kpi {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
}

.link-inline {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.link-inline:hover {
  color: var(--primary);
  text-decoration: underline;
}

footer {
  color: var(--muted);
  text-align: center;
  padding: 28px 18px;
}

.contact-form {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  margin-top: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form.hidden {
  display: none;
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-form label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.form-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.project-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 6px;
  margin-left: 4px;
  border-radius: 4px;
  object-fit: cover;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform .2s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

.maxilogo {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  transition: transform .2s ease;
}

.maxilogo:hover {
  transform: scale(1.05);
}