/* status.dental-addict.be — page publique customer-facing.
   Theme clair (creme + blanc), accent rose Dental Addict (#e8327c),
   police Ubuntu (Brand Book v1.0). Volontairement decouple du dark
   theme interne : audience differente. */

:root {
  --da-pink: #e8327c;
  --da-pink-dark: #c91e66;
  --da-grey: #214152;
  --da-purple: #2c2d55;
  --bg-page: #faf7f1;
  --bg-card: #ffffff;
  --bg-soft: #f3eee5;
  --border: #e7e1d5;
  --border-strong: #d6cfc1;
  --text-primary: #1a1a1a;
  --text-secondary: #5b6573;
  --text-muted: #8c95a3;
  --green: #1f9d55;
  --green-soft: rgba(31, 157, 85, 0.12);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.12);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.12);
  --shadow-sm: 0 1px 2px rgba(33, 65, 82, 0.05);
  --radius: 12px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.status-page {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--da-pink-dark); }

/* ----- Header ------------------------------------------------------ */
.status-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.status-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.status-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.status-brand__name {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  font-weight: 500;
}
.status-brand__sep { color: var(--border-strong); }
.status-brand__page { font-weight: 500; color: var(--text-primary); }
.status-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}
.status-header__back:hover { color: var(--text-primary); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lang-switch a {
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.lang-switch a.is-active {
  color: var(--da-pink);
  background: rgba(232, 50, 124, 0.08);
}
.lang-switch__sep { color: var(--border-strong); }

/* ----- Hero -------------------------------------------------------- */
.status-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 32px;
}
.status-hero__row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.status-hero__title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.status-hero__subtitle {
  margin: 0 0 8px 0;
  font-size: 17px;
  color: var(--text-secondary);
}
.status-hero__meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ----- Status dots ------------------------------------------------- */
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--text-muted);
}
.status-dot--green { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.status-dot--amber { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.status-dot--red   { background: var(--red);   box-shadow: 0 0 0 4px var(--red-soft); }
.status-dot--unknown { background: var(--text-muted); box-shadow: 0 0 0 4px rgba(140, 149, 163, 0.12); }
.status-dot.is-pulsing { animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ----- KPI grid ---------------------------------------------------- */
.kpi-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.kpi-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.kpi-card__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}
.kpi-card__value {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.kpi-card__value--soft {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}
.kpi-card__chart {
  position: relative;
  width: 100%;
  height: 56px;
  margin-bottom: 8px;
}
.kpi-card__chart canvas { width: 100% !important; height: 56px !important; }
.kpi-card__target {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ----- Sections ---------------------------------------------------- */
.status-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 8px;
}
.status-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.status-section__title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.empty-hint {
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  margin: 0;
}

/* ----- Journal ----------------------------------------------------- */
.journal-list { display: flex; flex-direction: column; gap: 14px; }
.journal-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.journal-entry__head { margin-bottom: 10px; }
.journal-entry__title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 500;
}
.journal-entry__meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.journal-entry__body {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ----- Incidents --------------------------------------------------- */
.incident-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.incident-row { border-bottom: 1px solid var(--border); }
.incident-row:last-child { border-bottom: none; }
.incident-row__summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.15s;
}
.incident-row__summary::-webkit-details-marker { display: none; }
.incident-row__summary:hover { background: var(--bg-soft); }
.incident-row__head { flex: 1; min-width: 0; }
.incident-row__title {
  margin: 0 0 2px 0;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.incident-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.incident-badge--resolved {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(31, 157, 85, 0.30);
}
.incident-badge--ongoing {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(217, 119, 6, 0.30);
}
.incident-row__period {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.incident-row__chevron {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.incident-row__body {
  padding: 4px 22px 22px 50px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.incident-row__body p { margin: 0; }

/* ----- Footer ------------------------------------------------------ */
.status-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: 48px;
}
.status-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.status-footer__company { margin: 0; color: var(--text-secondary); }
.status-footer__tagline { margin: 4px 0 0 0; font-size: 12px; }
.status-footer__links a { color: var(--text-secondary); }
.status-footer__links a:hover { color: var(--da-pink-dark); }

/* ----- Responsive -------------------------------------------------- */
@media (max-width: 640px) {
  .status-hero { padding: 40px 20px 24px; }
  .status-section { padding: 20px 20px 4px; }
  .kpi-grid { padding: 0 20px 24px; }
  .incident-row__summary { padding: 14px 18px; }
  .incident-row__body { padding-left: 44px; }
}
