/* ═════════════════════════════════════════════════════════════════
   maintenance.css — composants visuels uniques à la page /maintenance/
   Thème : carnet d'entretien premium + station de service mission control
   ─────────────────────────────────────────────────────────────────
   Composants : carnet ouvert 2 pages, tampons rotatifs, checklist
   d'inspection, panneau de jauges santé, voyants mission control,
   timeline d'interventions, uptime strip 90j, cve cards, oncall card,
   handwriting note Caveat, anneau circulaire de health.
═════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────
   1 · CARNET D'ENTRETIEN — wrapper 2 pages + pliage central
───────────────────────────────────────────────────────────────── */
.carnet-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background:
    radial-gradient(ellipse at center, rgba(12, 15, 26, 0.16) 0%, transparent 65%),
    #ece5d6;
  border-radius: 6px;
  box-shadow:
    0 28px 60px -30px rgba(12, 15, 26, 0.55),
    0 6px 18px -8px rgba(12, 15, 26, 0.18),
    inset 0 0 0 1px rgba(12, 15, 26, 0.08);
  overflow: hidden;
}

.carnet-spread::before {
  /* Couverture cuir bordeaux visible en haut (tranche) */
  content: "";
  position: absolute;
  inset: -10px -10px auto -10px;
  height: 18px;
  background: linear-gradient(180deg, #5a1224 0%, #3a0a17 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 4px 6px -2px rgba(12, 15, 26, 0.25);
  z-index: 1;
}

.carnet-spread::after {
  /* Couverture cuir bordeaux visible en bas (tranche) */
  content: "";
  position: absolute;
  inset: auto -10px -10px -10px;
  height: 14px;
  background: linear-gradient(180deg, #3a0a17 0%, #5a1224 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 -4px 6px -2px rgba(12, 15, 26, 0.18);
  z-index: 1;
}

.carnet-page-left,
.carnet-page-right {
  position: relative;
  padding: 2.4rem 2rem 2.2rem;
  background-image:
    linear-gradient(to bottom, rgba(12, 15, 26, 0.035) 1px, transparent 1px);
  background-size: 100% 1.7rem;
  background-position: 0 2.8rem;
  min-height: 540px;
}

.carnet-page-left {
  border-right: 1px solid rgba(12, 15, 26, 0.08);
  background-color: #ece5d6;
}

.carnet-page-right {
  background-color: #e8e1cf;
}

@media (max-width: 768px) {
  .carnet-spread {
    grid-template-columns: 1fr;
  }
  .carnet-page-left {
    border-right: none;
    border-bottom: 1px solid rgba(12, 15, 26, 0.08);
  }
}

/* Pliage central — ombrage relief */
.carnet-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 36px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(12, 15, 26, 0.10) 30%,
      rgba(12, 15, 26, 0.22) 50%,
      rgba(12, 15, 26, 0.10) 70%,
      transparent 100%);
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 768px) {
  .carnet-spine { display: none; }
}

/* Coin corné replié haut-droit du carnet */
.carnet-spread .corner-fold {
  position: absolute;
  top: 18px;
  right: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, transparent 50%, rgba(12, 15, 26, 0.08) 50%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  z-index: 1;
}

/* Bandeau "ATELIER · CARNET D'ENTRETIEN" en haut de chaque page */
.carnet-cover-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: #5a1224;
  color: #f5ecd9;
  border-radius: 3px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

.carnet-cover-strip.is-ink {
  background: #0c0f1a;
}

.carnet-cover-strip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e2a8a0;
  display: inline-block;
  margin: 0 0.55rem;
  vertical-align: middle;
}


/* ─────────────────────────────────────────────────────────────────
   2 · IDENTIFICATION LINES — fiche d'admin (label : value)
───────────────────────────────────────────────────────────────── */
.identification-line {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(12, 15, 26, 0.18);
}

.identification-line:last-child { border-bottom: none; }

.identification-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6557;
}

.identification-value {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.05rem;
  color: #0c0f1a;
  line-height: 1.25;
  font-weight: 500;
}

.identification-value em {
  font-style: italic;
  color: #5a1224;
}


/* ─────────────────────────────────────────────────────────────────
   3 · REVISION STAMP — gros tampon rotatif
───────────────────────────────────────────────────────────────── */
.revision-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1.1rem;
  border: 2.5px solid #5a1224;
  color: #5a1224;
  background: rgba(90, 18, 36, 0.04);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1.5px rgba(90, 18, 36, 0.35);
  position: relative;
  opacity: 0;
  animation: stamp-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--stamp-delay, 0s);
}

.revision-stamp.is-skew-right { transform: rotate(3deg); }
.revision-stamp.is-skew-far   { transform: rotate(-7deg); }
.revision-stamp.is-straight   { transform: rotate(0deg); }

.revision-stamp.is-ink {
  border-color: #0c0f1a;
  color: #0c0f1a;
  background: rgba(12, 15, 26, 0.04);
  box-shadow: inset 0 0 0 1.5px rgba(12, 15, 26, 0.35);
}

.revision-stamp.is-accent {
  border-color: #6b8169;
  color: #6b8169;
  background: rgba(107, 129, 105, 0.04);
  box-shadow: inset 0 0 0 1.5px rgba(107, 129, 105, 0.35);
}

.revision-stamp .stamp-title {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  margin-bottom: 0.18rem;
}

.revision-stamp .stamp-date {
  font-size: 0.6rem;
  opacity: 0.85;
  letter-spacing: 0.1em;
}

.revision-stamp .stamp-check {
  position: absolute;
  bottom: -0.55rem;
  right: -0.55rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #6b8169;
  color: #f5ecd9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid #ece5d6;
  transform: rotate(8deg);
}

@keyframes stamp-in {
  0%   { opacity: 0; transform: rotate(var(--stamp-rot, -4deg)) scale(2.4); }
  60%  { opacity: 1; transform: rotate(var(--stamp-rot, -4deg)) scale(0.92); }
  100% { opacity: 1; transform: rotate(var(--stamp-rot, -4deg)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .revision-stamp {
    animation: none;
    opacity: 1;
  }
}


/* ─────────────────────────────────────────────────────────────────
   4 · INSPECTION CHECKLIST — checklist tamponnée
───────────────────────────────────────────────────────────────── */
.inspection-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.2rem;
}

.inspection-item {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px dotted rgba(12, 15, 26, 0.18);
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 0.98rem;
  color: #0c0f1a;
}

.inspection-item .inspection-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  color: #6b6557;
  font-size: 0.85rem;
}

.inspection-item.is-done .inspection-icon {
  color: #6b8169;
}

.inspection-item.is-warn .inspection-icon {
  color: #b0822d;
}

.inspection-item .inspection-stamp {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b8169;
  border: 1.5px solid #6b8169;
  border-radius: 2px;
  padding: 0.18rem 0.42rem;
  transform: rotate(-2deg);
  background: rgba(107, 129, 105, 0.05);
}

.inspection-item.is-warn .inspection-stamp {
  color: #b0822d;
  border-color: #b0822d;
  background: rgba(176, 130, 45, 0.05);
}

.inspection-item.is-fail .inspection-stamp {
  color: #b00020;
  border-color: #b00020;
  background: rgba(176, 0, 32, 0.05);
}


/* ─────────────────────────────────────────────────────────────────
   5 · HEALTH PANEL — panneau de jauges santé mission control
───────────────────────────────────────────────────────────────── */
.health-panel {
  position: relative;
  background: #0c0f1a;
  color: #f5ecd9;
  border-radius: 14px;
  padding: 1.5rem 1.6rem 1.3rem;
  border: 1px solid rgba(245, 236, 217, 0.10);
  box-shadow:
    0 24px 50px -28px rgba(12, 15, 26, 0.55),
    inset 0 0 0 1px rgba(245, 236, 217, 0.04);
  overflow: hidden;
}

.health-panel::before {
  /* Scanline subtile */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(245, 236, 217, 0.03) 0px,
    rgba(245, 236, 217, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  opacity: 0.6;
}

.health-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(245, 236, 217, 0.10);
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  position: relative;
  z-index: 1;
}

.health-panel-title {
  color: #f5ecd9;
  font-weight: 500;
}

.health-panel-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b8169;
}

.health-panel-clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b8169;
  box-shadow: 0 0 6px rgba(107, 129, 105, 0.85);
  animation: oncall-pulse 2.4s ease-in-out infinite;
}

.health-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .health-panel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ─────────────────────────────────────────────────────────────────
   6 · HEALTH GAUGE — jauge style oil/pressure
───────────────────────────────────────────────────────────────── */
.health-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.4rem 0.3rem 0.55rem;
}

.health-gauge-svg {
  width: 100%;
  max-width: 92px;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.health-gauge-bg {
  fill: none;
  stroke: rgba(245, 236, 217, 0.12);
  stroke-width: 7;
}

.health-gauge-fill {
  fill: none;
  stroke: #6b8169;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 142;
  stroke-dashoffset: var(--gauge-offset, 14);
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.health-gauge.is-warn .health-gauge-fill { stroke: #b0822d; }
.health-gauge.is-crit .health-gauge-fill { stroke: #b00020; }

.health-gauge-value {
  font-family: "Fraunces", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 500;
  color: #f5ecd9;
  line-height: 1;
  margin-top: -2.7rem;
  margin-bottom: 1.6rem;
  pointer-events: none;
  text-align: center;
}

.health-gauge-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.6);
}

.health-gauge-label strong {
  display: block;
  color: #f5ecd9;
  font-size: 0.7rem;
  margin-bottom: 0.18rem;
  font-weight: 600;
}


/* ─────────────────────────────────────────────────────────────────
   7 · HEALTH SCORE — score global géant
───────────────────────────────────────────────────────────────── */
.health-score {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 1rem 0;
  border-top: 1px dashed rgba(12, 15, 26, 0.2);
  border-bottom: 1px dashed rgba(12, 15, 26, 0.2);
  margin: 1.3rem 0 1rem;
}

.health-score-num {
  font-family: "Fraunces", "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 3.6rem;
  line-height: 0.9;
  color: #6b8169;
  font-variant-numeric: tabular-nums;
}

.health-score-num small {
  font-size: 1.4rem;
  color: rgba(12, 15, 26, 0.45);
  font-style: italic;
  margin-left: 0.1rem;
}

.health-score-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6557;
  line-height: 1.4;
  flex: 1;
}

.health-score-label strong {
  display: block;
  font-family: "Fraunces", "Times New Roman", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #0c0f1a;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.15rem;
}


/* ─────────────────────────────────────────────────────────────────
   8 · MISSION CONTROL BAR — bandeau status voyants
───────────────────────────────────────────────────────────────── */
.mission-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 1.1rem;
  background: #0c0f1a;
  color: #f5ecd9;
  border-radius: 8px;
  border: 1px solid rgba(245, 236, 217, 0.12);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.mission-control-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(245, 236, 217, 0.02) 0px,
    rgba(245, 236, 217, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.mission-control-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(245, 236, 217, 0.85);
  position: relative;
  z-index: 1;
}

.mission-control-divider {
  width: 1px;
  height: 14px;
  background: rgba(245, 236, 217, 0.18);
  display: inline-block;
  flex: none;
}


/* ─────────────────────────────────────────────────────────────────
   9 · STATUS LIGHT — voyant rond clignotant
───────────────────────────────────────────────────────────────── */
.status-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6b8169;
  flex: none;
  box-shadow:
    0 0 8px rgba(107, 129, 105, 0.8),
    0 0 0 0 rgba(107, 129, 105, 0.55);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.status-light.is-orange {
  background: #b0822d;
  box-shadow:
    0 0 8px rgba(176, 130, 45, 0.8),
    0 0 0 0 rgba(176, 130, 45, 0.55);
  animation-name: status-pulse-orange;
}

.status-light.is-red {
  background: #b00020;
  box-shadow:
    0 0 8px rgba(176, 0, 32, 0.8),
    0 0 0 0 rgba(176, 0, 32, 0.55);
  animation-name: status-pulse-red;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(107, 129, 105, 0.8), 0 0 0 0 rgba(107, 129, 105, 0.55); }
  70%      { box-shadow: 0 0 8px rgba(107, 129, 105, 0.8), 0 0 0 7px rgba(107, 129, 105, 0); }
}

@keyframes status-pulse-orange {
  0%, 100% { box-shadow: 0 0 8px rgba(176, 130, 45, 0.8), 0 0 0 0 rgba(176, 130, 45, 0.55); }
  70%      { box-shadow: 0 0 8px rgba(176, 130, 45, 0.8), 0 0 0 7px rgba(176, 130, 45, 0); }
}

@keyframes status-pulse-red {
  0%, 100% { box-shadow: 0 0 8px rgba(176, 0, 32, 0.8), 0 0 0 0 rgba(176, 0, 32, 0.55); }
  70%      { box-shadow: 0 0 8px rgba(176, 0, 32, 0.8), 0 0 0 7px rgba(176, 0, 32, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-light { animation: none; }
}


/* ─────────────────────────────────────────────────────────────────
   10 · INTERVENTION LOG — timeline mission log
───────────────────────────────────────────────────────────────── */
.intervention-log {
  background: #0c0f1a;
  color: #f5ecd9;
  border-radius: 10px;
  border: 1px solid rgba(245, 236, 217, 0.10);
  overflow: hidden;
  position: relative;
}

.intervention-log::before {
  /* Scanline */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(245, 236, 217, 0.022) 0px,
    rgba(245, 236, 217, 0.022) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  opacity: 0.7;
}

.intervention-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.1rem;
  background: rgba(245, 236, 217, 0.04);
  border-bottom: 1px solid rgba(245, 236, 217, 0.10);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.65);
  position: relative;
  z-index: 1;
}

.intervention-log-head-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6b8169;
}

.intervention-log-body {
  position: relative;
  z-index: 1;
}

.intervention-row {
  display: grid;
  grid-template-columns: 5.5rem 7rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid rgba(245, 236, 217, 0.06);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: rgba(245, 236, 217, 0.78);
  transition: background-color 0.4s ease;
}

.intervention-row:hover {
  background: rgba(245, 236, 217, 0.025);
}

.intervention-row:last-child { border-bottom: none; }

.intervention-row .intervention-date {
  color: rgba(245, 236, 217, 0.5);
  letter-spacing: 0.05em;
  font-size: 0.68rem;
}

.intervention-row .intervention-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  color: #f5ecd9;
  letter-spacing: 0;
  text-transform: none;
}

.intervention-row .intervention-title em {
  font-style: italic;
  color: #e2a8a0;
}

@media (max-width: 768px) {
  .intervention-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.85rem 1.1rem;
  }
}


/* ─────────────────────────────────────────────────────────────────
   11 · INTERVENTION TYPE BADGE
───────────────────────────────────────────────────────────────── */
.intervention-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  width: fit-content;
}

.intervention-type.is-security { color: #e2a8a0; background: rgba(226, 168, 160, 0.08); }
.intervention-type.is-backup   { color: #6b8169; background: rgba(107, 129, 105, 0.10); }
.intervention-type.is-update   { color: #8ba4d6; background: rgba(139, 164, 214, 0.08); }
.intervention-type.is-incident { color: #d97a6e; background: rgba(217, 122, 110, 0.10); }
.intervention-type.is-optim    { color: #c9a96e; background: rgba(201, 169, 110, 0.10); }


/* ─────────────────────────────────────────────────────────────────
   12 · UPCOMING REVISION — carte prochaine révision
───────────────────────────────────────────────────────────────── */
.upcoming-revision {
  background: #fdf6e3;
  border: 1.5px dashed #5a1224;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-top: 1.2rem;
  position: relative;
}

.upcoming-revision::before {
  content: "★";
  position: absolute;
  top: -0.65rem;
  left: 0.9rem;
  background: #fdf6e3;
  color: #5a1224;
  font-size: 1rem;
  padding: 0 0.4rem;
  line-height: 1;
}

.upcoming-revision-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6557;
  margin-bottom: 0.4rem;
}

.upcoming-revision-value {
  font-family: "Fraunces", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.45rem;
  color: #0c0f1a;
  line-height: 1.15;
  font-weight: 500;
}

.upcoming-revision-value strong {
  color: #5a1224;
  font-weight: 500;
}


/* ─────────────────────────────────────────────────────────────────
   13 · CALENDAR STRIP — bande calendrier prochaines maintenances
───────────────────────────────────────────────────────────────── */
.calendar-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
}

.calendar-day {
  flex: 1 1 5.5rem;
  min-width: 5rem;
  padding: 0.7rem 0.65rem 0.6rem;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.12);
  border-radius: 6px;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6557;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.calendar-day:hover {
  transform: translateY(-2px);
  border-color: #5a1224;
}

.calendar-day .calendar-day-num {
  display: block;
  font-family: "Fraunces", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #0c0f1a;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0.18rem 0 0.3rem;
}

.calendar-day .calendar-day-label {
  display: block;
  font-size: 0.55rem;
  color: #5a1224;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-top: 0.18rem;
}

.calendar-day.is-today {
  background: #5a1224;
  color: #f5ecd9;
}
.calendar-day.is-today .calendar-day-num,
.calendar-day.is-today .calendar-day-label {
  color: #f5ecd9;
}


/* ─────────────────────────────────────────────────────────────────
   14 · CVE CARD — vulnérabilité corrigée
───────────────────────────────────────────────────────────────── */
.cve-card {
  position: relative;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.12);
  border-left: 4px solid #6b8169;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: #0c0f1a;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cve-card:hover {
  transform: translateX(2px);
}

.cve-card .cve-id {
  font-size: 0.66rem;
  color: #6b6557;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

.cve-card .cve-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  color: #0c0f1a;
  font-weight: 600;
  margin-bottom: 0.45rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.cve-card .cve-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b8169;
  padding: 0.18rem 0.42rem;
  border: 1.5px solid #6b8169;
  border-radius: 2px;
  background: rgba(107, 129, 105, 0.06);
}

.cve-card.is-crit {
  border-left-color: #b00020;
}

.cve-card.is-crit .cve-id { color: #b00020; }


/* ─────────────────────────────────────────────────────────────────
   15 · BACKUP SNAPSHOT — visualisation backup
───────────────────────────────────────────────────────────────── */
.backup-snapshot {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: #6b6557;
}

.backup-snapshot-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(107, 129, 105, 0.12);
  color: #6b8169;
  font-size: 1rem;
}

.backup-snapshot-date {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.backup-snapshot-size {
  display: block;
  font-family: "Fraunces", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #0c0f1a;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.18rem;
}

.backup-snapshot-stamp {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b8169;
  padding: 0.18rem 0.42rem;
  border: 1.5px solid #6b8169;
  border-radius: 2px;
  background: rgba(107, 129, 105, 0.06);
  transform: rotate(-2deg);
}


/* ─────────────────────────────────────────────────────────────────
   16 · ONCALL CARD — qui est on-call
───────────────────────────────────────────────────────────────── */
.oncall-card {
  position: relative;
  background: #0c0f1a;
  color: #f5ecd9;
  border-radius: 10px;
  padding: 1.4rem 1.5rem 1.3rem;
  border: 1px solid rgba(245, 236, 217, 0.10);
  overflow: hidden;
}

.oncall-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(245, 236, 217, 0.02) 0px,
    rgba(245, 236, 217, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.oncall-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  position: relative;
  z-index: 1;
}

.oncall-card-body {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.oncall-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a1224 0%, #3a0a17 100%);
  color: #f5ecd9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.5rem;
  flex: none;
  position: relative;
}

.oncall-avatar::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #6b8169;
  border: 2px solid #0c0f1a;
  box-shadow: 0 0 8px rgba(107, 129, 105, 0.8);
  animation: oncall-pulse 2.4s ease-in-out infinite;
}

@keyframes oncall-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .oncall-avatar::after,
  .health-panel-clock-dot { animation: none; }
}

.oncall-name {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: #f5ecd9;
  line-height: 1.1;
  font-weight: 500;
}

.oncall-name em {
  font-style: italic;
  color: #e2a8a0;
}

.oncall-shift {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  margin-top: 0.4rem;
}

.oncall-card-foot {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 236, 217, 0.10);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.oncall-card-foot strong {
  color: #f5ecd9;
  font-weight: 600;
}


/* ─────────────────────────────────────────────────────────────────
   17 · UPTIME STRIP — bande de 90j d'uptime
───────────────────────────────────────────────────────────────── */
.uptime-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 1.1rem 1.2rem;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 8px;
}

.uptime-day {
  flex: 1 1 calc(100% / 30 - 3px);
  min-width: 6px;
  height: 26px;
  border-radius: 2px;
  background: #6b8169;
  position: relative;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.uptime-day:hover {
  transform: translateY(-3px) scale(1.15);
  z-index: 2;
}

.uptime-day.is-warn { background: #b0822d; }
.uptime-day.is-fail { background: #b00020; }
.uptime-day.is-future { background: rgba(12, 15, 26, 0.08); }

.uptime-day[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0c0f1a;
  color: #f5ecd9;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 3;
}

.uptime-strip-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 0.85rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6557;
}

.uptime-strip-legend .legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}


/* ─────────────────────────────────────────────────────────────────
   18 · SLA CARD — carte des engagements (RTO, RPO, Uptime)
───────────────────────────────────────────────────────────────── */
.sla-card {
  position: relative;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 10px;
  padding: 1.4rem 1.5rem 1.5rem;
  text-align: center;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.sla-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 18, 36, 0.35);
}

.sla-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #5a1224, #3a0a17);
  border-radius: 0 0 10px 10px;
}

.sla-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(90, 18, 36, 0.08);
  color: #5a1224;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 0.85rem;
}

.sla-card-value {
  font-family: "Fraunces", "Times New Roman", serif;
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 500;
  color: #5a1224;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.sla-card-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6557;
  margin-top: 0.55rem;
}

.sla-card-label strong {
  display: block;
  color: #0c0f1a;
  font-weight: 600;
  margin-bottom: 0.18rem;
}


/* ─────────────────────────────────────────────────────────────────
   19 · ALERT BANNER — bannière incident
───────────────────────────────────────────────────────────────── */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: rgba(176, 0, 32, 0.06);
  border: 1px solid rgba(176, 0, 32, 0.35);
  border-left: 4px solid #b00020;
  border-radius: 6px;
  color: #0c0f1a;
}

.alert-banner-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: rgba(176, 0, 32, 0.12);
  color: #b00020;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1rem;
  animation: alert-pulse 1.4s ease-in-out infinite;
}

@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(176, 0, 32, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(176, 0, 32, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .alert-banner-icon { animation: none; }
}

.alert-banner-title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0c0f1a;
}

.alert-banner-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6557;
  margin-top: 0.2rem;
}


/* ─────────────────────────────────────────────────────────────────
   20 · TOOLBOX CARD — outil utilisé (Sentry, UptimeRobot…)
───────────────────────────────────────────────────────────────── */
.toolbox-card {
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 10px;
  padding: 1.5rem 1.4rem 1.3rem;
  transition: transform 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.toolbox-card:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 18, 36, 0.35);
}

.toolbox-card-num {
  position: absolute;
  top: 0.8rem;
  right: 1.1rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 3.5rem;
  font-weight: 500;
  color: rgba(90, 18, 36, 0.07);
  line-height: 0.85;
  pointer-events: none;
}

.toolbox-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(90, 18, 36, 0.08);
  color: #5a1224;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.toolbox-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: #0c0f1a;
  font-weight: 500;
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.toolbox-card-title em {
  font-style: italic;
  color: #5a1224;
}

.toolbox-card-desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  color: #4b5360;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.toolbox-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6557;
  border-top: 1px dashed rgba(12, 15, 26, 0.15);
  padding-top: 0.85rem;
}

.toolbox-card-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.toolbox-card-list li::before {
  content: "▮";
  color: #6b8169;
  font-size: 0.7rem;
}


/* ─────────────────────────────────────────────────────────────────
   21 · HEALTH METER CIRCLE (anneau circulaire SVG)
───────────────────────────────────────────────────────────────── */
.health-meter-circle {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
}

.health-meter-circle svg {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-90deg);
}

.health-meter-circle .ring-bg {
  fill: none;
  stroke: rgba(12, 15, 26, 0.08);
  stroke-width: 9;
}

.health-meter-circle .ring-fill {
  fill: none;
  stroke: #6b8169;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: var(--ring-offset, 44);
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.health-meter-circle-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 500;
  color: #0c0f1a;
  line-height: 0.95;
}

.health-meter-circle-value small {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  font-style: normal;
  color: #6b6557;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.45rem;
}


/* ─────────────────────────────────────────────────────────────────
   22 · HANDWRITING NOTE — annotation manuscrite Caveat
───────────────────────────────────────────────────────────────── */
.handwriting-note {
  position: relative;
  display: inline-block;
  background: #fffce0;
  padding: 0.85rem 1.05rem 0.95rem;
  font-family: "Caveat", "Brush Script MT", cursive;
  font-size: 1.35rem;
  color: #5a1224;
  line-height: 1.15;
  transform: rotate(-2deg);
  box-shadow:
    0 6px 16px -10px rgba(12, 15, 26, 0.4),
    inset 0 -2px 0 rgba(12, 15, 26, 0.06);
  max-width: 18rem;
}

.handwriting-note::before {
  /* Bout de scotch jaune */
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 56px;
  height: 18px;
  background: rgba(217, 184, 88, 0.55);
  border: 1px solid rgba(168, 142, 60, 0.25);
  transform: translateX(-50%) rotate(-3deg);
}

.handwriting-note.is-skew-right { transform: rotate(2deg); }
.handwriting-note.is-skew-left  { transform: rotate(-4deg); }

.handwriting-note small {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6557;
  margin-top: 0.45rem;
}


/* ─────────────────────────────────────────────────────────────────
   23 · ANATOMY MODULE CARD — fiche programme d'entretien
───────────────────────────────────────────────────────────────── */
.module-card {
  position: relative;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 12px;
  padding: 1.8rem 1.6rem 1.5rem;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #5a1224 0%, #3a0a17 100%);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 18, 36, 0.4);
}

.module-card-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 3.2rem;
  font-weight: 500;
  color: rgba(90, 18, 36, 0.08);
  line-height: 0.85;
  pointer-events: none;
}

.module-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: #0c0f1a;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

.module-card-title em {
  font-style: italic;
  color: #5a1224;
}

.module-card-desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #4b5360;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.module-card-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  color: #0c0f1a;
}

.module-card-details li {
  display: flex;
  gap: 0.55rem;
  line-height: 1.4;
}

.module-card-details li::before {
  content: "▸";
  color: #5a1224;
  flex: none;
}

.module-card-frequency {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  padding: 0.32rem 0.55rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b8169;
  border: 1.5px solid #6b8169;
  border-radius: 2px;
  background: rgba(107, 129, 105, 0.06);
}


/* ─────────────────────────────────────────────────────────────────
   24 · PROFILE CARD — typologies de chassis maintenus
───────────────────────────────────────────────────────────────── */
.profile-card {
  position: relative;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 12px;
  padding: 1.6rem 1.5rem;
  transition: transform 0.4s ease, border-color 0.4s ease;
  height: 100%;
}

.profile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 18, 36, 0.35);
}

.profile-card-num {
  position: absolute;
  top: 1.3rem;
  right: 1.4rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: #6b6557;
}

.profile-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a1224 0%, #3a0a17 100%);
  color: #f5ecd9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.profile-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: #0c0f1a;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.profile-card-title em {
  font-style: italic;
  color: #5a1224;
}

.profile-card-desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  color: #4b5360;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.profile-card-tag {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b8169;
  border-top: 1px dashed rgba(12, 15, 26, 0.15);
  padding-top: 0.65rem;
  margin-top: auto;
  width: 100%;
}


/* ─────────────────────────────────────────────────────────────────
   25 · CONSTAT CARD — rapport d'expert / accident report
───────────────────────────────────────────────────────────────── */
.constat-card {
  position: relative;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 10px;
  padding: 1.6rem 1.5rem 1.4rem;
  overflow: hidden;
}

.constat-card::before {
  /* Bandeau "RAPPORT N°XX" */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: repeating-linear-gradient(
    45deg,
    #b00020,
    #b00020 8px,
    #0c0f1a 8px,
    #0c0f1a 16px
  );
}

.constat-card-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b00020;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.constat-card-num::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b00020;
}

.constat-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  color: #0c0f1a;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.constat-card-title em {
  font-style: italic;
  color: #b00020;
}

.constat-card-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #4b5360;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.constat-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(12, 15, 26, 0.15);
  padding-top: 0.8rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.constat-card-foot .constat-impact {
  color: #b00020;
  font-weight: 700;
}

.constat-card-foot .constat-tag {
  color: #6b6557;
}


/* ─────────────────────────────────────────────────────────────────
   26 · METHOD STEP — étape protocole d'entretien
───────────────────────────────────────────────────────────────── */
.method-step {
  position: relative;
  background: rgba(245, 236, 217, 0.04);
  border: 1px solid rgba(245, 236, 217, 0.12);
  border-radius: 10px;
  padding: 1.6rem 1.5rem 1.4rem;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.method-step:hover {
  border-color: rgba(226, 168, 160, 0.4);
  transform: translateY(-3px);
}

.method-step-num {
  position: absolute;
  top: 1rem;
  right: 1.3rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  color: rgba(245, 236, 217, 0.10);
  line-height: 0.85;
}

.method-step-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e2a8a0;
  margin-bottom: 0.45rem;
}

.method-step-title {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: #f5ecd9;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.method-step-title em {
  font-style: italic;
  color: #e2a8a0;
}

.method-step-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  color: rgba(245, 236, 217, 0.75);
  line-height: 1.6;
}

.method-step-deliverable {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
}

.method-step-deliverable::before {
  content: "▮";
  color: #6b8169;
}


/* ─────────────────────────────────────────────────────────────────
   27 · MANIFESTE PRINCIPLE — charte de garantie technique
───────────────────────────────────────────────────────────────── */
.principle-card {
  position: relative;
  background: rgba(245, 236, 217, 0.04);
  border: 1px solid rgba(245, 236, 217, 0.12);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.3rem;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.principle-card:hover {
  border-color: rgba(226, 168, 160, 0.4);
  transform: translateY(-3px);
}

.principle-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(226, 168, 160, 0.12);
  color: #e2a8a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.95rem;
}

.principle-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.18rem;
  color: #f5ecd9;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.principle-card-title em {
  font-style: italic;
  color: #e2a8a0;
}

.principle-card-desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  color: rgba(245, 236, 217, 0.7);
  line-height: 1.55;
}

.principle-card-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.95rem;
  padding: 0.18rem 0.45rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b8169;
  border: 1.5px solid #6b8169;
  border-radius: 2px;
  background: rgba(107, 129, 105, 0.06);
  transform: rotate(-1.5deg);
}


/* ─────────────────────────────────────────────────────────────────
   28 · OPS KPI CARD — dashboard mission control KPI
───────────────────────────────────────────────────────────────── */
.ops-kpi-card {
  position: relative;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 10px;
  padding: 1.5rem 1.4rem 1.3rem;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.ops-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #5a1224 0%, #6b8169 100%);
}

.ops-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 18, 36, 0.35);
}

.ops-kpi-card-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6557;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ops-kpi-card-label .status-light {
  width: 7px;
  height: 7px;
}

.ops-kpi-card-value {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 0.95;
  color: #5a1224;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.ops-kpi-card-value small {
  font-size: 1.1rem;
  color: rgba(12, 15, 26, 0.5);
  margin-left: 0.18rem;
}

.ops-kpi-card-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: #6b6557;
  line-height: 1.4;
}

.ops-kpi-card-meta strong {
  color: #6b8169;
  font-weight: 600;
}


/* ─────────────────────────────────────────────────────────────────
   29 · CASE CARD — cas client de longue durée
───────────────────────────────────────────────────────────────── */
.case-card {
  position: relative;
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 18, 36, 0.35);
}

.case-card-cover {
  position: relative;
  aspect-ratio: 5 / 3;
  background: linear-gradient(135deg, #5a1224 0%, #3a0a17 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-card-cover.is-marine { background: linear-gradient(135deg, #13234f 0%, #0a1530 100%); }
.case-card-cover.is-accent { background: linear-gradient(135deg, #6b8169 0%, #4a5f48 100%); }

.case-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(245, 236, 217, 0.12) 0%, transparent 35%),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 12px,
      rgba(245, 236, 217, 0.04) 12px,
      rgba(245, 236, 217, 0.04) 13px
    );
}

.case-card-cover .case-icon {
  position: relative;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 4.5rem;
  color: rgba(245, 236, 217, 0.85);
  letter-spacing: -0.03em;
  z-index: 1;
}

.case-card-stamp {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: #f5ecd9;
  color: #5a1224;
  border: 2px solid #5a1224;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.55rem;
  border-radius: 2px;
  transform: rotate(-4deg);
  z-index: 2;
}

.case-card-body {
  padding: 1.4rem 1.5rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-card-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6557;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.case-card-meta .case-duration {
  color: #6b8169;
  font-weight: 700;
}

.case-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: #0c0f1a;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.case-card-title em {
  font-style: italic;
  color: #5a1224;
}

.case-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.85rem 0;
  border-top: 1px dashed rgba(12, 15, 26, 0.15);
  border-bottom: 1px dashed rgba(12, 15, 26, 0.15);
  margin: 0.85rem 0;
}

.case-card-stat {
  text-align: center;
}

.case-card-stat-value {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #5a1224;
  font-weight: 500;
  line-height: 1;
  display: block;
}

.case-card-stat-label {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6557;
  margin-top: 0.25rem;
}

.case-card-link {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a1224;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: gap 0.3s ease;
}

.case-card-link:hover {
  gap: 0.7rem;
}


/* ─────────────────────────────────────────────────────────────────
   30 · ANTI CLAUSE — clause d'engagement refusé
───────────────────────────────────────────────────────────────── */
.anti-clause {
  position: relative;
  padding: 1.1rem 0 1.1rem 4rem;
  border-bottom: 1px solid rgba(12, 15, 26, 0.12);
}

.anti-clause:last-child { border-bottom: none; }

.anti-clause::before {
  content: counter(anti-counter, decimal-leading-zero);
  counter-increment: anti-counter;
  position: absolute;
  top: 1.1rem;
  left: 0;
  width: 2.6rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 2.2rem;
  color: rgba(176, 0, 32, 0.4);
  line-height: 0.9;
  font-weight: 500;
}

.anti-clause::after {
  content: "✕";
  position: absolute;
  top: 1.65rem;
  left: 2.6rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #b00020;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 700;
}

.anti-clause-title {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: #0c0f1a;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.anti-clause-title em {
  font-style: italic;
  color: #b00020;
}

.anti-clause-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  color: #4b5360;
  line-height: 1.55;
  max-width: 60ch;
}

.anti-clauses-wrap {
  counter-reset: anti-counter;
}


/* ─────────────────────────────────────────────────────────────────
   31 · CHAT / TICKET MOCK — service client section 12
───────────────────────────────────────────────────────────────── */
.ticket-mock {
  background: #fdf6e3;
  border: 1px solid rgba(12, 15, 26, 0.10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 44px -22px rgba(12, 15, 26, 0.3);
}

.ticket-mock-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.2rem;
  background: #0c0f1a;
  color: #f5ecd9;
  border-bottom: 1px solid rgba(245, 236, 217, 0.08);
}

.ticket-mock-id {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
}

.ticket-mock-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b8169;
}

.ticket-mock-body {
  padding: 1.4rem 1.2rem;
  background:
    linear-gradient(to bottom, rgba(12, 15, 26, 0.022) 1px, transparent 1px);
  background-size: 100% 1.75rem;
  background-position: 0 0.7rem;
}

.ticket-mock-msg {
  margin-bottom: 1.1rem;
}

.ticket-mock-msg-head {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6557;
  margin-bottom: 0.35rem;
}

.ticket-mock-msg-head strong {
  color: #5a1224;
  font-weight: 700;
}

.ticket-mock-msg-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  color: #0c0f1a;
  line-height: 1.55;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(12, 15, 26, 0.08);
  border-radius: 8px;
}

.ticket-mock-msg.is-agent .ticket-mock-msg-head strong {
  color: #6b8169;
}

.ticket-mock-msg.is-agent .ticket-mock-msg-body {
  background: rgba(107, 129, 105, 0.06);
  border-color: rgba(107, 129, 105, 0.25);
}

.ticket-mock-resolution {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(12, 15, 26, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6557;
}

.ticket-mock-resolution strong {
  color: #6b8169;
  font-weight: 700;
}


/* ─────────────────────────────────────────────────────────────────
   32 · CTA CARD — récap final audit gratuit
───────────────────────────────────────────────────────────────── */
.cta-recap {
  background: rgba(245, 236, 217, 0.04);
  border: 1px solid rgba(245, 236, 217, 0.18);
  border-radius: 12px;
  padding: 1.8rem 1.7rem;
}

.cta-recap-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(245, 236, 217, 0.15);
  margin-bottom: 1rem;
}

.cta-recap-line {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(245, 236, 217, 0.10);
}

.cta-recap-line:last-of-type { border-bottom: none; }

.cta-recap-line-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(226, 168, 160, 0.15);
  color: #e2a8a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.cta-recap-line-text {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  color: #f5ecd9;
}

.cta-recap-line-text small {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  margin-top: 0.18rem;
}

.cta-recap-line-price {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #e2a8a0;
  font-weight: 500;
}

.cta-recap-line-price.is-free {
  color: #6b8169;
}

.cta-recap-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
  margin-top: 0.6rem;
  border-top: 2px solid rgba(245, 236, 217, 0.20);
}

.cta-recap-total-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5ecd9;
  font-weight: 600;
}

.cta-recap-total-value {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 2.4rem;
  color: #e2a8a0;
  font-weight: 500;
  line-height: 1;
}


/* ─────────────────────────────────────────────────────────────────
   33 · STACK ECHELON — outils section 9
───────────────────────────────────────────────────────────────── */
.stack-table {
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  color: #0c0f1a;
  border-collapse: collapse;
}

.stack-table th,
.stack-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(12, 15, 26, 0.10);
  vertical-align: top;
}

.stack-table th {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6557;
  font-weight: 500;
  background: rgba(12, 15, 26, 0.025);
}

.stack-table tr:last-child td {
  border-bottom: none;
}

.stack-table .stack-name {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: #5a1224;
  font-style: italic;
  font-weight: 500;
}

.stack-table .stack-role {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6557;
  display: block;
  margin-top: 0.2rem;
}


/* ─────────────────────────────────────────────────────────────────
   34 · TOP BANNER (promo astreinte 24/7)
───────────────────────────────────────────────────────────────── */
.maint-topbar {
  position: relative;
  overflow: hidden;
  background: #0c0f1a;
  color: #f5ecd9;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(245, 236, 217, 0.08);
}

.maint-topbar-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.maint-topbar-track strong {
  color: #e2a8a0;
}

.maint-topbar-divider {
  color: rgba(245, 236, 217, 0.25);
}

.maint-topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b8169;
  display: inline-block;
  box-shadow: 0 0 6px rgba(107, 129, 105, 0.8);
  animation: status-pulse 2.4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .maint-topbar-track {
    font-size: 0.6rem;
    gap: 0.85rem;
  }
}


/* ─────────────────────────────────────────────────────────────────
   35 · BREADCRUMB MAINTENANCE
───────────────────────────────────────────────────────────────── */
.maint-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6557;
}

.maint-breadcrumb a {
  color: #6b6557;
  transition: color 0.3s ease;
}

.maint-breadcrumb a:hover { color: #5a1224; }
.maint-breadcrumb .sep { color: rgba(12, 15, 26, 0.3); }
.maint-breadcrumb .current { color: #0c0f1a; }


/* ─────────────────────────────────────────────────────────────────
   36 · REVEAL ANIMATIONS — fade-in au scroll
───────────────────────────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; }
}


/* ─────────────────────────────────────────────────────────────────
   37 · UPTIME COUNTER — compteur d'uptime géant
───────────────────────────────────────────────────────────────── */
.uptime-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.65rem 1.05rem;
  background: rgba(107, 129, 105, 0.10);
  border: 1.5px solid rgba(107, 129, 105, 0.35);
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b8169;
}

.uptime-counter strong {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #4a5e48;
  font-variant-numeric: tabular-nums;
}

.uptime-counter .uptime-counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b8169;
  display: inline-block;
  box-shadow: 0 0 6px rgba(107, 129, 105, 0.85);
  animation: status-pulse 2.4s ease-in-out infinite;
}
