/* METAL24H Solidaire — styles campagne + blog (charte navy / copper) */
:root {
  --sol-navy: #14243d;
  --sol-copper: #b8642f;
  --sol-copper-soft: rgba(184, 100, 47, 0.12);
  --sol-surface: #f5f7fa;
  --sol-muted: #4a5568;
  --sol-line: #e4e9f1;
  --sol-white: #fff;
  --sol-shadow: 0 12px 32px rgba(20, 36, 61, 0.08);
  --sol-radius: 16px;
}

.sol-hero {
  position: relative;
  overflow: hidden;
  background: var(--sol-navy);
  color: var(--sol-white);
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
}

.sol-hero__media {
  position: absolute;
  inset: 0;
}

.sol-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.sol-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 36, 61, 0.92) 0%,
    rgba(20, 36, 61, 0.62) 48%,
    rgba(184, 100, 47, 0.42) 100%
  );
}

.sol-hero__inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 48px;
}

.sol-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sol-copper);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(184, 100, 47, 0.35);
}

.sol-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.75rem, 4.8vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.sol-hero__lead {
  margin: 0 0 22px;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
}

.sol-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.sol-hero__reassure {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.sol-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.sol-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.sol-section {
  padding: 56px 0;
}

.sol-section--soft {
  background: var(--sol-surface);
}

.sol-section__head {
  margin-bottom: 28px;
  max-width: 70ch;
}

.sol-section__head h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.2;
  color: var(--sol-navy);
}

.sol-section__head p {
  margin: 0;
  color: var(--sol-muted);
  line-height: 1.6;
}

.sol-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sol-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sol-card {
  background: var(--sol-white);
  border: 1px solid var(--sol-line);
  border-radius: var(--sol-radius);
  padding: 22px 20px;
  box-shadow: var(--sol-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .sol-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(20, 36, 61, 0.12);
  }
}

.sol-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sol-copper-soft);
  color: var(--sol-copper);
  margin-bottom: 14px;
}

.sol-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sol-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--sol-navy);
}

.sol-card p {
  margin: 0;
  color: var(--sol-muted);
  line-height: 1.55;
  font-size: 0.96rem;
}

.sol-card a {
  color: var(--sol-copper);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sol-offer-highlight {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: var(--sol-radius);
  background: linear-gradient(135deg, rgba(20, 36, 61, 0.96), rgba(184, 100, 47, 0.88));
  color: #fff;
  margin-bottom: 22px;
}

.sol-offer-highlight strong {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.sol-steps {
  counter-reset: sol-step;
  display: grid;
  gap: 14px;
}

.sol-step {
  counter-increment: sol-step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  background: var(--sol-white);
  border: 1px solid var(--sol-line);
  border-radius: 14px;
  padding: 16px 18px;
}

.sol-step::before {
  content: counter(sol-step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sol-navy);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.sol-step h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.sol-step p {
  margin: 0;
  color: var(--sol-muted);
  line-height: 1.5;
}

.sol-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sol-line);
  border-radius: 14px;
  background: #fff;
}

.sol-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.sol-table th,
.sol-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--sol-line);
  vertical-align: top;
  line-height: 1.45;
}

.sol-table th {
  background: var(--sol-surface);
  color: var(--sol-navy);
  font-weight: 800;
}

.sol-legal {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--sol-muted);
  line-height: 1.5;
}

.sol-banner {
  border: 1px solid rgba(184, 100, 47, 0.35);
  background: linear-gradient(90deg, rgba(184, 100, 47, 0.1), rgba(20, 36, 61, 0.04));
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.sol-banner p {
  margin: 0;
  color: var(--sol-navy);
  font-weight: 600;
  max-width: 60ch;
}

.sol-articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sol-article-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--sol-line);
  background: #fff;
  box-shadow: var(--sol-shadow);
}

.sol-article-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.sol-article-card p {
  margin: 0;
  color: var(--sol-muted);
  font-size: 0.94rem;
}

.sol-blog {
  padding: 40px 0 64px;
}

.sol-blog__meta {
  color: var(--sol-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.sol-blog__cover {
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid var(--sol-line);
  aspect-ratio: 16 / 9;
  background: var(--sol-surface);
}

.sol-blog__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sol-prose {
  max-width: 72ch;
}

.sol-prose h2 {
  margin: 1.6em 0 0.55em;
  font-size: 1.4rem;
  color: var(--sol-navy);
}

.sol-prose h3 {
  margin: 1.25em 0 0.4em;
  font-size: 1.12rem;
  color: var(--sol-navy);
}

.sol-prose p,
.sol-prose li {
  color: #2a3548;
  line-height: 1.65;
}

.sol-prose a {
  color: var(--sol-copper);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sol-cta-box {
  margin: 32px 0;
  padding: 22px;
  border-radius: 16px;
  background: var(--sol-navy);
  color: #fff;
}

.sol-cta-box h2,
.sol-cta-box h3 {
  margin: 0 0 8px;
  color: #fff;
}

.sol-cta-box p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
}

.sol-cta-box .btn-primary {
  background: var(--sol-copper);
}

.m24-solidarity-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--sol-line);
  box-shadow: 0 10px 28px rgba(20, 36, 61, 0.18);
  backdrop-filter: blur(8px);
}

.m24-solidarity-bar a {
  flex: 1;
  min-height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.m24-solidarity-bar a:first-child {
  background: var(--sol-navy);
  color: #fff;
}

.m24-solidarity-bar a:last-child {
  background: var(--sol-copper);
  color: #fff;
}

body:has(.m24-solidarity-bar) .m24-floating-call {
  display: none !important;
}

@media (max-width: 900px) {
  .sol-grid-3,
  .sol-grid-2,
  .sol-articles {
    grid-template-columns: 1fr;
  }

  .m24-solidarity-bar {
    display: flex;
  }

  main {
    padding-bottom: 84px;
  }
}

@media (max-width: 600px) {
  .sol-hero__inner {
    padding: 40px 0 36px;
  }

  .sol-section {
    padding: 40px 0;
  }
}

@keyframes sol-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sol-hero__inner > * {
    animation: sol-fade-up 0.55s ease both;
  }
  .sol-hero__inner > *:nth-child(2) {
    animation-delay: 0.08s;
  }
  .sol-hero__inner > *:nth-child(3) {
    animation-delay: 0.14s;
  }
  .sol-hero__inner > *:nth-child(4) {
    animation-delay: 0.2s;
  }
}
