/* Energy Spirit Construct — blog V3.
   Structure reprise du blog Nemelec validé : figures éditoriales et carte « Nos chantiers ». */

:root {
  --esb-accent-contrast: #a64500;
  --esb-on-accent: #211006;
}

.prose .esb-chantiers {
  margin: 40px 0;
  padding: 36px 28px;
  text-align: center;
  background: color-mix(in srgb, var(--accent) 10%, var(--fond));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 24px;
}

.prose .esb-chantiers .esb-eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--esb-accent-contrast);
}

.prose .esb-chantiers h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--titre);
}

.prose .esb-chantiers .esb-sub {
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--texte-doux);
}

.prose .esb-chantiers .esb-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
}

.prose .esb-chantiers a.esb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--esb-on-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 40px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: background .2s, transform .2s, box-shadow .2s;
}

.prose .esb-chantiers a.esb-btn span {
  transition: transform .18s ease;
}

.prose .esb-chantiers a.esb-btn:hover {
  background: var(--esb-accent-contrast);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent);
}

.prose .esb-chantiers a.esb-btn:hover span {
  transform: translateX(4px);
}

.prose .esb-chantiers a.esb-btn:focus-visible {
  outline: 3px solid var(--esb-accent-contrast);
  outline-offset: 3px;
}

.prose .esb-figure {
  margin: 0 0 28px;
}

.prose .esb-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border-radius: 20px;
  cursor: zoom-in;
}

.prose .esb-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--texte-doux);
}

@media (max-width: 520px) {
  .prose .esb-chantiers {
    margin: 32px 0;
    padding: 28px 18px;
    border-radius: 20px;
  }

  .prose .esb-chantiers a.esb-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }

  .prose .esb-figure img {
    max-height: none;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prose .esb-chantiers a.esb-btn,
  .prose .esb-chantiers a.esb-btn span {
    transition: none;
  }
}
