/* ==========================================================
   OFFRE — styles spécifiques à offre.html
   Dépend de base.css + article.css
   ========================================================== */

/* ==========================================================
   TRAJECTOIRE — frise 5 étapes
   ========================================================== */
.traject {
  margin: 32px 0;
  padding: 28px 24px 22px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  position: relative;
}
.traject__rail {
  position: absolute;
  top: 56px;
  left: 38px;
  right: 38px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--c-gold) 0%,
    var(--c-blue) 50%,
    var(--c-teal) 100%);
  border-radius: 2px;
  opacity: .35;
}
.traject__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .traject__rail { display: none; }
  .traject__steps { grid-template-columns: 1fr; gap: 10px; }
}
.t-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
}
.t-step__n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-gold-soft);
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--c-bg);
  box-shadow: 0 0 0 1px var(--c-line);
  margin-bottom: 14px;
}
.t-step__body { display: flex; flex-direction: column; gap: 3px; }
.t-step__t {
  font-family: var(--ff-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.2;
}
.t-step__d {
  font-size: 11.5px;
  color: var(--c-text-mute);
  line-height: 1.35;
}
@media (max-width: 640px) {
  .t-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 12px; }
  .t-step__n { margin-bottom: 0; }
}
.traject__pills {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}
@media (max-width: 640px) { .traject__pills { flex-direction: column; gap: 8px; align-items: stretch; } }
.t-pill {
  font-family: var(--ff-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
}
.t-pill--court { color: var(--c-gold); background: var(--c-gold-dim); border: 1px solid var(--c-gold-bd); }
.t-pill--moyen { color: var(--c-blue); background: var(--c-blue-soft); border: 1px solid rgba(4, 93, 163, 0.2); }
.t-pill--long  { color: var(--c-teal); background: var(--c-teal-soft); border: 1px solid rgba(7, 162, 168, 0.25); }

/* ==========================================================
   COURBE DE CHARGE (SVG injecté par offre.js)
   ========================================================== */
#charge-chart { background: var(--c-bg-soft); padding: 14px 12px 6px; }
#charge-chart svg { width: 100%; height: auto; display: block; font-family: var(--ff-body); }
.chart-block .chart-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-weight: 700;
}
.chart-block .chart-title { text-align: center; font-style: italic; }
.chart-block .chart-annotations { margin-top: 22px; }
.charge-axis { font-size: 10px; fill: var(--c-text-mute); }
.charge-grid { stroke: var(--c-line); stroke-width: 1; }
.charge-area-before { fill: rgba(193, 154, 47, 0.10); }
.charge-line-before {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 4 3;
}
.charge-area-after { fill: rgba(7, 162, 168, 0.16); }
.charge-line-after {
  fill: none;
  stroke: var(--c-teal);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.charge-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 12px;
  color: var(--c-navy);
  padding-top: 6px;
}
.charge-legend span { display: inline-flex; align-items: center; gap: 7px; }
.charge-legend i {
  width: 18px; height: 3px; border-radius: 2px; display: inline-block;
}
.charge-legend .lg-before { background: var(--c-gold); }
.charge-legend .lg-after  { background: var(--c-teal); }

/* ==========================================================
   POLLUTION — chaîne d'impact
   ========================================================== */
.pollu {
  margin: 30px 0 8px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.pollu__node {
  flex: 1 1 0;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.pollu__node--end {
  background: var(--c-navy);
  color: #fff;
  border-color: transparent;
}
.pollu__ico {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-gold-dim);
  color: var(--c-gold);
}
.pollu__node--end .pollu__ico { background: var(--c-gold-dim); color: var(--c-gold-soft); }
.pollu__ico svg { width: 18px; height: 18px; stroke-width: 2; }
.pollu__lbl {
  font-family: var(--ff-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.3;
}
.pollu__node--end .pollu__lbl { color: #fff; }
.pollu__arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: 18px;
  color: var(--c-text-mute);
  font-weight: 700;
}
@media (max-width: 640px) {
  .pollu { justify-content: flex-start; }

  /* vertical fallback */
  .pollu { flex-direction: column; overflow-x: visible; }
  .pollu__arrow { transform: rotate(90deg); padding: 2px 0; }
}

/* ==========================================================
   DIAGNOSTIC — 4 pastilles
   ========================================================== */
.diag-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0;
}
@media (max-width: 560px) { .diag-steps { grid-template-columns: 1fr 1fr; } }
.diag-step {
  padding: 18px 14px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-blue);
  border-radius: var(--r-md);
  text-align: center;
}
.diag-step__n {
  display: inline-flex;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-gold-soft);
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.diag-step__t {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
}

/* ==========================================================
   AMO / AMOE — 2 cartes
   ========================================================== */
.amo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
@media (max-width: 600px) { .amo-grid { grid-template-columns: 1fr; } }
.amo-card {
  padding: 24px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
}
.amo-card--navy {
  background: var(--c-navy);
  color: #fff;
  border-color: transparent;
}
.amo-card--gold {
  background: var(--c-gold-dim);
  border-color: var(--c-gold-bd);
}
.amo-card__tag {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.amo-card--navy .amo-card__tag { background: var(--c-gold-dim); color: var(--c-gold-soft); border: 1px solid var(--c-gold-bd); }
.amo-card--gold .amo-card__tag { background: #fff; color: var(--c-gold); border: 1px solid var(--c-gold-bd); }
.amo-card h3 {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: inherit;
}
.amo-card--navy h3 { color: #fff; }
.amo-card--gold h3 { color: var(--c-navy); }
.amo-card ul { list-style: none; padding: 0; margin: 0; }
.amo-card li {
  font-size: 13px;
  line-height: 1.5;
  padding: 6px 0 6px 20px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.amo-card--gold li { border-top-color: var(--c-gold-bd); color: var(--c-navy); }
.amo-card li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 8px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 1px;
}
.amo-card--navy li:first-child, .amo-card--gold li:first-child { border-top: none; }

/* ==========================================================
   EnR — flux 3 étapes
   ========================================================== */
.enr-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
@media (max-width: 600px) { .enr-flow { grid-template-columns: 1fr; } }
.enr-step {
  padding: 20px 18px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  border-top: 3px solid var(--c-teal);
}
.enr-step__n {
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-teal);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.enr-step__t {
  font-family: var(--ff-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.enr-step p { font-size: 12.5px; line-height: 1.55; color: var(--c-text-mute); margin: 0; }