/* ============================================
   PAGE NOTRE HISTOIRE — 91 FM
   ============================================ */

/* ── Hero (pattern standard pages listantes) ── */
.histo-hero {
  position: relative;
  overflow: hidden; /* repli pour les navigateurs sans `clip` */
  overflow: clip;
  padding: 72px 0 64px;
}
.histo-hero::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: linear-gradient(135deg, #0f1726 0%, #1a0a0c 50%, #0d1420 100%);
  z-index: 0;
}
.histo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(217,19,25,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(255,255,255,.03) 0%, transparent 60%);
  z-index: 1;
}
.histo-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.histo-h1 {
  margin: 0 0 18px;
}
.histo-hero-sub {
  margin: 0;
  max-width: 640px;
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

/* ── Corps ── */
.histo-body {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

/* ── Timeline ── */
.histo-timeline {
  display: flex;
  flex-direction: column;
}
.histo-jalon {
  display: flex;
  gap: 24px;
}
.histo-jalon-rail {
  position: relative;
  width: 18px;
  flex-shrink: 0;
}
.histo-jalon-rail::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(217,19,25,.35), rgba(217,19,25,.12));
}
.histo-jalon:first-child .histo-jalon-rail::before { top: 10px; }
.histo-jalon:last-child  .histo-jalon-rail::before { bottom: auto; height: 10px; }
.histo-jalon-dot {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand, #D91319);
  box-shadow: 0 0 0 4px rgba(217,19,25,.15);
}
.histo-jalon-dot-live {
  animation: histo-pulse 2.2s ease-out infinite;
}
@keyframes histo-pulse {
  0%   { box-shadow: 0 0 0 4px rgba(217,19,25,.25); }
  60%  { box-shadow: 0 0 0 12px rgba(217,19,25,0); }
  100% { box-shadow: 0 0 0 4px rgba(217,19,25,0); }
}
@media (prefers-reduced-motion: reduce) {
  .histo-jalon-dot-live { animation: none; }
}
.histo-jalon-content {
  flex: 1;
  min-width: 0;
  padding: 0 0 56px;
}
.histo-jalon-year {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(217,19,25,.08);
  color: var(--brand, #D91319);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}
.histo-jalon-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 3.4vw, 27px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--text, #0B0B0D);
}
.histo-jalon-desc {
  margin: 0;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted, #52525B);
}

/* ── Galerie photos ── */
.histo-jalon-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.histo-photo {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef0f4;
}
.histo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.histo-photo:hover img {
  transform: scale(1.06);
}

/* ── CTA final ── */
.histo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.histo-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--brand, #D91319);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .2s ease, background .2s ease, color .2s ease;
}
.histo-cta-btn:hover { filter: brightness(1.08); }
.histo-cta-btn-ghost {
  background: transparent;
  color: var(--brand, #D91319);
  box-shadow: inset 0 0 0 2px rgba(217,19,25,.35);
}
.histo-cta-btn-ghost:hover {
  background: rgba(217,19,25,.06);
  filter: none;
}

/* ── Vide ── */
.histo-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted, #6b7280);
  font-style: italic;
}

/* ── Lightbox galerie ── */
#histo-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
#histo-lb.open { display: flex; }
.histo-lb-lock, .histo-lb-lock body { overflow: hidden; }
.histo-lb-figure {
  margin: 0;
  max-width: min(1100px, calc(100% - 120px));
  max-height: calc(100% - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.histo-lb-img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.histo-lb-caption {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-align: center;
}
.histo-lb-close,
.histo-lb-prev,
.histo-lb-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.histo-lb-close:hover,
.histo-lb-prev:hover,
.histo-lb-next:hover { background: rgba(217,19,25,.8); }
.histo-lb-close { top: 18px; right: 18px; }
.histo-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.histo-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .histo-lb-figure { max-width: calc(100% - 16px); }
  .histo-lb-img { max-height: calc(100vh - 170px); border-radius: 8px; }
  .histo-lb-prev { left: 6px; top: auto; bottom: 18px; transform: none; }
  .histo-lb-next { right: 6px; top: auto; bottom: 18px; transform: none; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .histo-jalon { gap: 16px; }
  .histo-jalon-content { padding-bottom: 44px; }
  .histo-jalon-photos { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
}
