
/* ========== Page Historique ========== */

.page-hero {
  position: relative;
  padding: 100px 0 72px;
  color: #fff;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center / cover no-repeat;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(12, 61, 92, 0.94) 0%,
    rgba(26, 107, 156, 0.88) 55%,
    rgba(20, 85, 125, 0.92) 100%
  );
}

.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
  background-size: 28px 28px;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.page-hero-breadcrumb a {
  color: rgba(255,255,255,.9);
}

.page-hero-breadcrumb a:hover { color: #fff; }

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.page-hero-lead {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

.nav-desktop a.active,
.nav-mobile a.active {
  color: var(--blue);
  font-weight: 600;
}

/* Intro strip */
.history-intro {
  padding: 72px 0 40px;
}

.history-intro-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.history-intro-text h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.history-intro-text p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 1.02rem;
}

.history-intro-card {
  background: linear-gradient(145deg, var(--blue-deep), var(--blue-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.history-intro-card .quote {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 20px;
  font-style: italic;
  opacity: 0.95;
}

.history-intro-card .author {
  font-size: 0.9rem;
  opacity: 0.75;
}

.history-intro-card .author strong {
  display: block;
  font-size: 1rem;
  opacity: 1;
  margin-bottom: 2px;
}

/* Timeline */
.timeline-section {
  padding: 40px 0 88px;
  background: var(--card);
  border-block: 1px solid var(--border);
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue-light), var(--blue), var(--blue-light));
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 48px;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
  padding-right: 48px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 48px;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--blue);
  border: 4px solid var(--card);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--blue-light);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
  transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
  transform: translateX(-50%);
}

.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.timeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 8px;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.timeline-item-current .timeline-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
  width: 22px;
  height: 22px;
  top: 6px;
}

.timeline-item-current .timeline-year {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.timeline-item-current .timeline-card {
  border-color: var(--blue);
  background: linear-gradient(145deg, #fff, var(--blue-light));
}

/* Values */
.values-section {
  padding: 88px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Heritage banner */
.heritage-banner {
  background: linear-gradient(135deg, var(--blue-light), #fff);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.heritage-banner img {
  border-radius: var(--radius);
  height: 280px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.heritage-banner h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0 0 12px;
}

.heritage-banner p {
  color: var(--muted);
  margin: 0 0 20px;
}

.history-cta {
  padding: 0 0 88px;
  text-align: center;
}

.history-cta .btn { margin: 0 6px 10px; }

@media (max-width: 900px) {
  .history-intro-inner,
  .heritage-banner,
  .values-grid { grid-template-columns: 1fr; }
  .heritage-banner img { height: 220px; }
}

@media (max-width: 720px) {
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 40px 52px;
    text-align: left;
  }
  .timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: left;
  }
  .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 20px;
    right: auto;
    transform: translateX(-50%);
  }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 80px 0 56px; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}
