/* ═══ PAGE À PROPOS ═══ */

/* ── 1. HERO ── */
.apropos-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.apropos-hero-overlay {
  position: absolute;
  inset: 0;
  height: 1300px;
  background: linear-gradient(to right, rgba(2,8,23,0.78) 0%, rgba(2,8,23,0.35) 65%, rgba(2,8,23,0.1) 100%);
}

.apropos-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 580px;
  padding: 2rem 0 1% 0;
}

.apropos-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin: 0 0 0.9rem;
  line-height: 1.2;
}

.apropos-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.75rem;
  line-height: 1.65;
  max-width: 48ch;
}

.apropos-hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.ap-btn-main {
  background: white;
  color: var(--brand-ink);
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.ap-btn-main:hover { background: var(--soft); transform: translateY(-2px); }

.ap-btn-ghost {
  border: 2px solid rgba(255,255,255,0.55);
  color: white;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.ap-btn-ghost:hover { border-color: white; transform: translateY(-2px); }

/* ── 2. STATS ── */
.apropos-stats {
  background: var(--brand-ink);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stat-item:last-child { border-right: none; }
.stat-item:nth-child(2) { transition-delay: 80ms; }
.stat-item:nth-child(3) { transition-delay: 160ms; }
.stat-item:nth-child(4) { transition-delay: 240ms; }

.stat-item.visible { opacity: 1; transform: translateY(0); }

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--ring);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* ── 3. VALEURS ── */
.apropos-values {
  padding: 5rem 0;
  background: var(--soft);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  color: var(--brand-ink);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--bg);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-card:nth-child(2) { transition-delay: 100ms; }
.value-card:nth-child(3) { transition-delay: 200ms; }

.value-card.visible { opacity: 1; transform: translateY(0); }
.value-card.visible:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(2,8,23,0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-icon { font-size: 2.4rem; line-height: 1; }

.value-card h3 {
  color: var(--brand-ink);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
}

.value-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ── 4. TIMELINE ── */
.apropos-timeline {
  padding: 5rem 0;
}

.timeline-track {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 0.5rem;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ring) 0%, var(--brand) 100%);
  transform: translateX(-50%);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 0 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.tl-item.visible { opacity: 1; transform: translateY(0); }

/* DOT central */
.tl-dot {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

.tl-dot-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--brand);
  flex-shrink: 0;
}

.tl-item.highlight .tl-dot-circle {
  background: var(--brand-ink);
  box-shadow: 0 0 0 2px var(--brand-ink), 0 0 14px rgba(7,89,133,0.45);
  width: 18px;
  height: 18px;
}

/* Carte */
.tl-card {
  background: var(--bg);
  border: 1px solid var(--ring);
  border-radius: 0.85rem;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 4px 14px rgba(2,8,23,0.07);
}

.tl-item.highlight .tl-card {
  border-color: var(--brand-ink);
  background: var(--soft);
}

.tl-year-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--soft);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 0.5rem;
}

.tl-item.highlight .tl-year-tag {
  background: var(--ring);
}

.tl-card h3 {
  color: var(--brand-ink);
  font-size: 0.97rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.tl-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0;
}

/* Alternance : items impairs → carte à gauche */
.tl-item:nth-child(odd) .tl-card  { grid-column: 1; grid-row: 1; text-align: right; }
.tl-item:nth-child(odd) .tl-dot   { grid-column: 2; grid-row: 1; }
.tl-item:nth-child(odd) .tl-empty { grid-column: 3; grid-row: 1; }

/* Items pairs → carte à droite */
.tl-item:nth-child(even) .tl-empty { grid-column: 1; grid-row: 1; }
.tl-item:nth-child(even) .tl-dot   { grid-column: 2; grid-row: 1; }
.tl-item:nth-child(even) .tl-card  { grid-column: 3; grid-row: 1; }

.tl-item:nth-child(odd) .tl-year-tag { float: right; }

/* ── 5. CTA FINALE ── */
.apropos-cta {
  background: var(--brand-ink);
  padding: 4.5rem 0;
  text-align: center;
}

.apropos-cta h2 {
  color: white;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 0.65rem;
}

.apropos-cta > .container > p {
  color: rgba(255,255,255,0.78);
  margin: 0 0 2rem;
  font-size: 1rem;
}

.apropos-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .apropos-hero{ min-height: 300px;}
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }

  .values-grid { grid-template-columns: 1fr; }

  /* Timeline mobile : tout à droite, ligne à gauche */
  .timeline-track::before { left: 7px; }

  .tl-item {
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto;
  }

  .tl-item:nth-child(odd) .tl-card,
  .tl-item:nth-child(even) .tl-card {
    grid-column: 2; grid-row: 1;
    text-align: left;
  }

  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot {
    grid-column: 1; grid-row: 1;
  }

  .tl-item:nth-child(odd) .tl-empty,
  .tl-item:nth-child(even) .tl-empty { display: none; }

  .tl-item:nth-child(odd) .tl-year-tag { float: none; }

  .apropos-hero-content h1 { font-size: 1.65rem; }
  .apropos-hero-actions { flex-direction: column; align-items: flex-start; }
  .apropos-cta-actions { flex-direction: column; align-items: center; }
}
