/* ==========================================================================
   SEMA Marine — Design system « Blueprint & Télémétrie » (Noir & Orange)
   Chargé conditionnellement ($semaBlueprintCss) : blocs services enrichis.
   Les cartes de la page Réalisations sont dans sema-projects.css.
   ========================================================================== */

:root {
  --bp-bg: #08080a;
  --bp-panel: #141417;
  --bp-orange: #ff6b00;
  --bp-orange-soft: rgba(255, 107, 0, 0.12);
  --bp-orange-line: rgba(255, 107, 0, 0.28);
  --bp-text: #e8e8e8;
  --bp-muted: #9a9a9f;
  --bp-grid: linear-gradient(rgba(255, 107, 0, 0.05) 1px, transparent 1px),
             linear-gradient(90deg, rgba(255, 107, 0, 0.05) 1px, transparent 1px);
}

/* --- Socle des sections --------------------------------------------------- */
.bp-section {
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bp-head { max-width: 760px; margin-bottom: 36px; }
.bp-head .section-headline { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; }
.bp-lead { margin-bottom: 0; }

/* Indicateur « live » orange pulsé */
.bp-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bp-orange);
  box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.6);
  animation: bp-pulse 2.2s infinite;
  flex-shrink: 0;
}

@keyframes bp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.bp-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px auto 0;
  padding: 14px 22px;
  max-width: 760px;
  border: 1px solid var(--bp-orange-line);
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.06);
  color: var(--bp-text);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-align: center;
}

/* --- Listes à puces techniques ------------------------------------------- */
.bp-list { list-style: none; display: grid; gap: 12px; }
.bp-list li { position: relative; padding-left: 30px; color: var(--bp-text); font-size: 0.95rem; line-height: 1.6; }
.bp-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.bp-list-check li::before { content: '✓'; color: #0a0a0a; background: var(--bp-orange); }
.bp-list-cross li { color: var(--bp-muted); }
.bp-list-cross li::before { content: '✕'; color: var(--bp-muted); border: 1px solid rgba(255, 255, 255, 0.15); }

/* --- Bloc Problème → Solution -------------------------------------------- */
.bp-split {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: stretch;
}

.bp-panel {
  position: relative;
  padding: 34px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bp-panel);
}

.bp-panel-before { background: linear-gradient(180deg, #111113, #0b0b0d); }
.bp-panel-after {
  border-color: var(--bp-orange-line);
  background: var(--bp-grid), linear-gradient(180deg, #17120e, #0d0b0a);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 0 20px 60px rgba(255, 107, 0, 0.08), inset 0 1px 0 rgba(255, 107, 0, 0.25);
}

.bp-panel-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bp-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bp-panel-after .bp-panel-tag { color: var(--bp-orange); border-color: var(--bp-orange-line); background: var(--bp-orange-soft); }

.bp-split-arrow { display: grid; place-items: center; }
.bp-split-arrow span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bp-orange-line);
  background: #0b0b0d;
  position: relative;
}
.bp-split-arrow span::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--bp-orange);
  border-right: 2px solid var(--bp-orange);
  transform: translateX(-2px) rotate(45deg);
}

/* --- Bloc Architecture : planche blueprint ------------------------------- */
.bp-board {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--bp-orange-line);
  background: var(--bp-grid), radial-gradient(circle at 20% 0%, rgba(255, 107, 0, 0.1), transparent 55%), var(--bp-bg);
  background-size: 28px 28px, 28px 28px, auto, auto;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.bp-board-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--bp-orange-line);
  background: rgba(8, 8, 10, 0.85);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bp-orange);
}
.bp-board-status { display: inline-flex; align-items: center; gap: 10px; color: var(--bp-text); }

.bp-chain {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 36px 28px;
}

.bp-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(20, 20, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.bp-node:hover { border-color: var(--bp-orange); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(255, 107, 0, 0.15); }

/* Liaison animée entre deux maillons (flux de données) */
.bp-node:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -29px;
  width: 30px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--bp-orange) 0 6px, transparent 6px 10px);
  background-size: 20px 2px;
  animation: bp-flow 1s linear infinite;
}

@keyframes bp-flow { to { background-position: 20px 0; } }

.bp-node-index { position: absolute; top: 14px; right: 16px; font-family: 'Montserrat', sans-serif; font-size: 0.7rem; color: rgba(255, 107, 0, 0.6); letter-spacing: 0.1em; }
.bp-node-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--bp-orange);
  background: var(--bp-orange-soft);
  border: 1px solid var(--bp-orange-line);
}
.bp-node-icon svg { width: 22px; height: 22px; }
.bp-node-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bp-muted); }
.bp-node-label { color: #fff; font-size: 1rem; line-height: 1.35; }
.bp-node-text { color: var(--bp-muted); font-size: 0.88rem; line-height: 1.55; }

.bp-telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--bp-orange-line);
  background: rgba(8, 8, 10, 0.9);
}
.bp-metric { display: flex; flex-direction: column-reverse; gap: 4px; padding: 18px 22px; border-right: 1px solid rgba(255, 107, 0, 0.12); }
.bp-metric:last-child { border-right: 0; }
.bp-metric dd { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--bp-orange); }
.bp-metric dt { font-size: 0.75rem; color: var(--bp-muted); letter-spacing: 0.04em; }

/* --- Bloc Formules -------------------------------------------------------- */
.bp-offers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.bp-offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, #141417, #0b0b0d);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bp-offer-featured {
  border-color: var(--bp-orange);
  background: var(--bp-grid), linear-gradient(180deg, #1a130d, #0b0b0d);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: 0 24px 70px rgba(255, 107, 0, 0.14);
}
.bp-offer-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bp-orange);
  background: var(--bp-orange-soft);
  border: 1px solid var(--bp-orange-line);
}
.bp-offer-name { font-size: 1.35rem; color: #fff; line-height: 1.3; }
.bp-offer-target { color: var(--bp-muted); font-size: 0.95rem; }
.bp-offer-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bp-orange);
  padding: 12px 0;
  border-top: 1px dashed var(--bp-orange-line);
  border-bottom: 1px dashed var(--bp-orange-line);
}
.bp-offer-included { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bp-muted); }
.bp-offer .bp-list { flex-grow: 1; margin-bottom: 12px; }
.bp-cta { align-self: flex-start; }
.bp-cta svg { width: 18px; height: 18px; }

/* --- Bloc Tableau des urgences ------------------------------------------- */
.bp-urgency-wrap { border-radius: 20px; border: 1px solid var(--bp-orange-line); overflow: hidden; background: var(--bp-bg); }
.bp-urgency { width: 100%; border-collapse: collapse; }
.bp-urgency thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bp-orange);
  background: rgba(255, 107, 0, 0.06);
  border-bottom: 1px solid var(--bp-orange-line);
}
.bp-urgency tbody th,
.bp-urgency td { padding: 18px 20px; text-align: left; vertical-align: top; font-size: 0.92rem; color: var(--bp-text); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.bp-urgency tbody th { color: #fff; font-weight: 600; }
.bp-urgency-row { transition: background 0.25s ease; }
.bp-urgency-row:hover { background: rgba(255, 107, 0, 0.04); }
.bp-urgency-row:last-child th,
.bp-urgency-row:last-child td { border-bottom: 0; }

.bp-level { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.bp-level-critical { color: #0a0a0a; background: var(--bp-orange); box-shadow: 0 0 18px rgba(255, 107, 0, 0.45); }
.bp-level-high { color: var(--bp-orange); border: 1px solid var(--bp-orange); }
.bp-level-medium { color: var(--bp-muted); border: 1px solid rgba(255, 255, 255, 0.18); }

/* --- Bloc Processus ------------------------------------------------------- */
.bp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: bp-step; position: relative; }
.bp-steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bp-orange-line), var(--bp-orange-line), transparent);
}
.bp-step {
  position: relative;
  padding: 26px 24px;
  border-radius: 18px;
  background: var(--bp-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.bp-step-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #0a0a0a;
  background: var(--bp-orange);
  box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.12);
}
.bp-step h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.bp-step p { color: var(--bp-muted); font-size: 0.92rem; line-height: 1.6; }
.bp-process-cta { display: flex; justify-content: center; margin-top: 32px; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .bp-chain { grid-template-columns: repeat(2, 1fr); }
  .bp-node:nth-child(2n)::after { display: none; }
  .bp-telemetry { grid-template-columns: repeat(2, 1fr); }
  .bp-metric:nth-child(2n) { border-right: 0; }
}

@media (max-width: 860px) {
  .bp-section { padding: 52px 0; }
  .bp-split { grid-template-columns: 1fr; gap: 14px; }
  .bp-split-arrow span { transform: rotate(90deg); }
  .bp-offers-grid,
  .bp-steps { grid-template-columns: 1fr; }
  .bp-steps::before { display: none; }

  /* Tableau des urgences → cartes empilées */
  .bp-urgency thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bp-urgency,
  .bp-urgency tbody,
  .bp-urgency tr,
  .bp-urgency th,
  .bp-urgency td { display: block; width: 100%; }
  .bp-urgency-row { padding: 16px 18px; border-bottom: 1px solid var(--bp-orange-line); }
  .bp-urgency tbody th,
  .bp-urgency td { padding: 6px 0; border-bottom: 0; }
  .bp-urgency td::before,
  .bp-urgency tbody th::before {
    content: attr(data-label);
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bp-orange);
    margin-bottom: 2px;
  }
}

@media (max-width: 560px) {
  .bp-chain { grid-template-columns: 1fr; padding: 24px 18px; gap: 22px; }
  .bp-node::after { display: none; }
  .bp-node:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 42px;
    bottom: -23px;
    width: 2px;
    height: 22px;
    background: repeating-linear-gradient(180deg, var(--bp-orange) 0 5px, transparent 5px 9px);
  }
  .bp-board-bar { padding: 12px 16px; font-size: 0.62rem; letter-spacing: 0.12em; }
  .bp-panel,
  .bp-offer { padding: 26px 20px; }
  .bp-promise { border-radius: 16px; font-size: 0.8rem; padding: 12px 16px; }
  .bp-cta { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-live-dot,
  .bp-node::after { animation: none; }
}
