/* ============================================================
   LA PIZZA DE PAPA — Histoire Page Styles
   ============================================================ */

/* ── Hero ── */
.histoire-hero {
  padding: 18vh 6vw 7vh;
  background: var(--off-white);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
}
.histoire-hero-bg {
  position: absolute;
  right: -3vw;
  bottom: -8%;
  font-family: var(--font-display);
  font-size: 28vw;
  font-weight: 900;
  color: var(--red);
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}
.histoire-hero-inner { max-width: 750px; }
.histoire-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
}
.histoire-hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 13rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
}
.histoire-hero-title em { font-style: italic; color: var(--red); }
.histoire-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(16px);
}

/* ── Intro Quote ── */
.intro-quote {
  padding: 8vh 6vw;
  background: var(--red);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.intro-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}
.big-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0;
  vertical-align: -0.6rem;
  color: rgba(255,255,255,0.25);
  margin: 0 0.2rem;
}
.quote-author {
  position: relative;
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  opacity: 0;
}

/* ── Timeline Section ── */
.timeline-section {
  padding: 8vh 6vw 10vh;
  background: var(--white);
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: content-box;
}
.timeline-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5vh;
  opacity: 0;
  transform: translateY(12px);
}
.timeline {
  position: relative;
  padding-left: 12vw;
}

/* Vertical red line */
.timeline::before {
  content: '';
  position: absolute;
  left: 6.5vw;
  top: 0.6rem;
  bottom: 0;
  width: 1px;
  background: rgba(200, 16, 46, 0.15);
}

/* ── Timeline Item ── */
.timeline-item {
  position: relative;
  padding-bottom: 5vh;
  opacity: 0;
  transform: translateY(30px);
}
.timeline-item:last-child { padding-bottom: 0; }

/* Dot on the line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-5.5vw - 4px);
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
  transition: background 0.2s;
}
.timeline-item.highlight::before,
.timeline-item.current::before {
  background: var(--red);
  width: 12px;
  height: 12px;
  left: calc(-5.5vw - 6px);
  top: 0.4rem;
}
.timeline-item.current::before {
  box-shadow: 0 0 0 4px rgba(200,16,46,0.15);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.timeline-item.highlight .timeline-year { color: var(--red); }
.timeline-item.current  .timeline-year {
  color: var(--red);
  font-style: italic;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.timeline-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 0.75rem;
}
.timeline-body strong { color: var(--text); font-weight: 600; }
.timeline-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid var(--red);
  padding-left: 1rem;
  margin-top: 1rem;
  opacity: 0.8;
  max-width: 560px;
}
.timeline-detail em { font-style: normal; font-weight: 600; color: var(--red); }

/* ── Valeurs Section ── */
.valeurs-section {
  background: var(--off-white);
  padding: 10vh 6vw;
}
.valeurs-header {
  margin-bottom: 4vh;
}
.block-label-v {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
}
.valeurs-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  opacity: 0;
  transform: translateY(30px);
}
.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.07);
}
.valeur-item {
  background: var(--white);
  padding: 2.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: background 0.2s;
}
.valeur-item:hover { background: var(--off-white); }
.valeur-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  opacity: 0.5;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.valeur-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.valeur-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── CTA Section ── */
.histoire-cta {
  background: var(--dark);
  padding: 12vh 6vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.histoire-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.05;
  pointer-events: none;
}
.histoire-cta-inner { position: relative; z-index: 1; }
.histoire-cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
}
.histoire-cta-title em { font-style: italic; color: rgba(255,255,255,0.5); }
.histoire-cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
  opacity: 0;
}
.histoire-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
}
.histoire-cta-actions .cta-button {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.histoire-cta-actions .cta-button:hover { transform: translateY(-2px); }
.histoire-cta-actions .cta-button.primary {
  background: var(--red);
  color: var(--white);
}
.histoire-cta-actions .cta-button.primary:hover { background: var(--red-light); }
.histoire-cta-actions .cta-button.secondary {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}
.histoire-cta-actions .cta-button.secondary:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

/* ── Active nav link ── */
.site-header nav a.active { color: var(--red); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .timeline { padding-left: 16vw; }
  .timeline::before { left: 8vw; }
  .timeline-item::before { left: calc(-7.5vw - 4px); }
  .timeline-item.highlight::before,
  .timeline-item.current::before { left: calc(-7.5vw - 6px); }
  .valeurs-grid { grid-template-columns: 1fr; }
  .histoire-hero-bg { display: none; }
}
@media (max-width: 600px) {
  .timeline { padding-left: 20vw; }
  .timeline::before { left: 10vw; }
  .timeline-item::before { left: calc(-9vw - 4px); }
  .timeline-item.highlight::before,
  .timeline-item.current::before { left: calc(-9vw - 6px); }
}
