/* ============================================================
   Section 7 — Pourquoi TC Dépannage
   Pattern DCR : visuel ciné + panneau éditorial + timeline
   ============================================================ */

.story {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(420px, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: stretch;
  padding: clamp(92px, 10vw, 138px) var(--gutter) clamp(76px, 9vw, 124px);
  scroll-margin-top: 96px;
  background:
    radial-gradient(circle at 10% 14%, rgba(193, 39, 45, 0.12), transparent 28vw),
    linear-gradient(180deg, #0d0f12 0%, var(--ink) 100%);
  color: var(--paper);
}

.story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 241, 234, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 234, 0.035) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.story-visual,
.story-body-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container);
}

.story-visual {
  min-height: clamp(500px, 52vw, 680px);
  overflow: hidden;
  border: 1px solid rgba(245, 241, 234, 0.16);
  border-radius: var(--r-md);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  isolation: isolate;
}

.story-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(18, 19, 22, 0.08) 0%, rgba(18, 19, 22, 0.28) 42%, rgba(18, 19, 22, 0.88) 100%),
    linear-gradient(90deg, rgba(18, 19, 22, 0.78) 0%, rgba(18, 19, 22, 0.16) 56%, rgba(18, 19, 22, 0.34) 100%);
}

.story-visual::after {
  content: none;
}

.story-visual-overlay {
  position: absolute;
  left: clamp(22px, 4vw, 46px);
  right: clamp(22px, 4vw, 46px);
  bottom: clamp(28px, 5vw, 58px);
  z-index: 2;
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.story-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(245, 241, 234, 0.18);
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.32);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.story-visual-title {
  max-width: 10.5ch;
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.story-visual-title em {
  display: block;
  color: var(--signal);
  font-style: normal;
}

.story-body-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.story-body-grid {
  width: 100%;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.story-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.story-timeline-line {
  display: none;
}

.story-timeline-item {
  min-height: 126px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(245, 241, 234, 0.12);
  border-radius: var(--r-card);
  background: rgba(245, 241, 234, 0.055);
  box-shadow: inset 0 1px 0 rgba(245, 241, 234, 0.08);
}

.story-year {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.story-milestone {
  color: rgba(245, 241, 234, 0.72);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.story-milestone strong {
  display: block;
  margin-bottom: 4px;
  color: var(--paper);
  font-weight: 700;
}

.story-body {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(245, 241, 234, 0.12);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(245, 241, 234, 0.06);
}

.story-lede {
  max-width: 42ch;
  margin: 0 0 20px;
  padding-left: 18px;
  border-left: 2px solid var(--signal);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.38;
}

.story-body p:not(.story-lede) {
  max-width: 62ch;
  margin: 0;
  color: rgba(245, 241, 234, 0.68);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.72;
}

.story-body p + p {
  margin-top: 14px;
}

.story-body strong {
  color: var(--paper);
  font-weight: 700;
}

.story-signature {
  margin-top: 24px;
  color: rgba(245, 241, 234, 0.78);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .story {
    grid-template-columns: 1fr;
  }

  .story-visual {
    min-height: 500px;
  }
}

@media (max-width: 740px) {
  .story {
    padding: 58px 16px;
  }

  .story-visual {
    min-height: 420px;
  }

  .story-visual-overlay {
    left: 20px;
    right: 20px;
    bottom: 28px;
  }

  .story-visual-title {
    font-size: 42px;
  }

  .story-timeline {
    grid-template-columns: 1fr;
  }

  .story-timeline-item {
    min-height: 0;
  }

  .story-body {
    padding: 22px 18px;
  }

  .story-lede {
    padding-left: 14px;
    font-size: 18px;
  }
}

@media (max-width: 460px) {
  .story-visual {
    min-height: 360px;
  }

  .story-visual-title {
    font-size: 36px;
    max-width: 12ch;
  }
}
