/* ===================================================================
   ONG VISION CITOYENNE — home.css
   Sections propres à la page d'accueil : bandeau partenaires,
   projet phare avant/après, chronologie 2018 → aujourd'hui.
   =================================================================== */

/* ===== BANDEAU CONFIANCE — PARTENAIRES ===== */
.trust-strip {
  background: #f2f7fd;
  padding: 14px 0 22px;
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.trust-label {
  flex: none;
  max-width: 118px;
  font-family: var(--head);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.trust-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.trust-marquee:hover .trust-track { animation-play-state: paused; }
.trust-group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 48px 0 0;
  margin: 0;
  list-style: none;
}
.trust-group img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  /* Fond blanc des logos JPG fondu dans le bandeau */
  mix-blend-mode: multiply;
  transition: transform .25s var(--ease);
}
.trust-group img:hover { transform: scale(1.06); }
.trust-group img.is-round { border-radius: 50%; }
.trust-link {
  flex: none;
  font-family: var(--head);
  font-size: .84rem;
  font-weight: 700;
  color: var(--blue-700);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease);
}
.trust-link:hover,
.trust-link:focus-visible { border-bottom-color: var(--gold); }

/* ===== NOTRE HORIZON — au-delà du WASH ===== */
.horizon {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  margin-top: 36px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(197, 211, 228, .8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.horizon-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 34px 32px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(66, 165, 245, .35), transparent 45%),
    radial-gradient(circle at 8% 100%, rgba(245, 124, 0, .22), transparent 50%),
    var(--grad-hero);
}
/* Ondes concentriques discrètes, rappel de l'eau */
.horizon-intro::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .04), 0 0 0 56px rgba(255, 255, 255, .025);
  pointer-events: none;
}
.horizon-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-family: var(--head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--yellow);
}
.horizon-intro h3 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.4px;
  color: #fff;
}
.horizon-intro p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: .93rem;
  line-height: 1.6;
  color: rgba(227, 242, 253, .9);
}
.horizon-link {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 6px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--gold);
  font-family: var(--head);
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.horizon-link:hover,
.horizon-link:focus-visible { color: var(--yellow); border-bottom-color: var(--yellow); }

.horizon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 22px;
  list-style: none;
  background: linear-gradient(135deg, var(--blue-50) 0%, #fff 70%);
}
.horizon-item {
  --c: var(--blue-600);
  --c-soft: var(--blue-100);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(197, 211, 228, .8);
  border-left: 4px solid var(--c);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--head);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.horizon-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-soft);
  color: var(--c);
}
.horizon-icon svg { width: 22px; height: 22px; }
.horizon-item--orange { --c: var(--gold); --c-soft: #fff1e0; }
.horizon-item--yellow { --c: #c98a00; --c-soft: var(--yellow-soft); }
.horizon-item--red    { --c: var(--red); --c-soft: #fee2e2; }
.horizon-item--green  { --c: var(--green); --c-soft: #d1fae5; }
.horizon-item--blue   { --c: var(--blue-600); --c-soft: var(--blue-100); }
.horizon-item--navy   { --c: var(--blue-900); --c-soft: #dbe7f7; }

/* ===== PROJET PHARE ===== */
.featured-project {
  background: #fff;
  padding: 72px 0;
  overflow: hidden;
}
.fp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.fp-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.fp-visual .ba { flex: 1 1 100%; }
.fp-visual .ba-hint { margin: 0; }
.fp-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid rgba(197, 211, 228, .8);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-family: var(--head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue-900);
}
.fp-date svg { width: 16px; height: 16px; color: var(--gold); }

.fp-content .section-tag {
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.fp-content h2 {
  margin: 4px 0 14px;
  font-family: var(--head);
  font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.6px;
  color: var(--ink);
}
.fp-lead {
  margin: 0 0 20px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}
.fp-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.fp-list li {
  position: relative;
  padding-left: 30px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.fp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231665c0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.fp-partners {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-soft);
  font-size: .87rem;
  line-height: 1.5;
  color: var(--muted);
}
.fp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== CHRONOLOGIE ===== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  max-width: 1000px;
  margin: 14px auto 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue-200) 0%, var(--blue-600) 55%, var(--gold) 100%);
}
/* Zig-zag : une étape par ligne, la suivante remonte à mi-hauteur du côté opposé */
.tl-item {
  position: relative;
  margin-bottom: -56px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-item:nth-child(odd)  { grid-column: 1; }
.tl-item:nth-child(even) { grid-column: 2; }
.tl-item:nth-child(1) { grid-row: 1; }
.tl-item:nth-child(2) { grid-row: 2; }
.tl-item:nth-child(3) { grid-row: 3; }
.tl-item:nth-child(4) { grid-row: 4; }
.tl-item:nth-child(5) { grid-row: 5; }
.tl-item:nth-child(6) { grid-row: 6; }
.tl-item:nth-child(7) { grid-row: 7; }
.tl-item:nth-child(8) { grid-row: 8; }

.tl-item::before {
  content: '';
  position: absolute;
  top: 24px;
  z-index: 1;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue-600);
  box-shadow: 0 0 0 5px rgba(30, 136, 229, .14);
}
.tl-item:nth-child(odd)::before  { right: -49px; }
.tl-item:nth-child(even)::before { left: -49px; }
.tl-item--now::before {
  border-color: var(--gold);
  animation: tl-pulse 2.4s ease-out infinite;
}
@keyframes tl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 124, 0, .45); }
  70%  { box-shadow: 0 0 0 12px rgba(245, 124, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 124, 0, 0); }
}

.tl-card {
  overflow: hidden;
  padding: 18px 20px 20px;
  background: var(--card-bg);
  border: 1px solid rgba(197, 211, 228, .7);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.tl-card--media {
  display: grid;
  grid-template-columns: 136px 1fr;
  padding: 0;
}
.tl-card--media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}
.tl-body { padding: 18px 20px 20px; }
.tl-year {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  font-family: var(--head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--blue-700);
}
.tl-item--now .tl-year { color: var(--gold-deep); }
.tl-tag {
  display: inline-block;
  padding: 3px 9px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.tl-tag--live { background: #dcfce7; color: #15803d; }
.tl-card h3 {
  margin: 8px 0 6px;
  font-family: var(--head);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.tl-card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
}

.history-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .horizon { grid-template-columns: 1fr; }
  .horizon-intro { padding: 26px 22px; }
  .fp-grid { grid-template-columns: 1fr; gap: 32px; }
  .fp-visual { max-width: 620px; margin: 0 auto; width: 100%; }

  .timeline {
    grid-template-columns: 1fr;
    column-gap: 0;
    max-width: 640px;
    padding-left: 34px;
  }
  .timeline::before { left: 11px; transform: none; }
  .timeline > .tl-item { grid-column: 1; grid-row: auto; margin-bottom: 16px; }
  .timeline > .tl-item:last-child { margin-bottom: 0; }
  .timeline > .tl-item::before { left: -31px; right: auto; top: 20px; }
}

@media (max-width: 768px) {
  .trust-strip { padding: 12px 0 18px; }
  .trust-inner { flex-direction: column; gap: 10px; }
  .trust-label { max-width: none; text-align: center; }
  .trust-marquee { width: 100%; }
  .trust-group { gap: 34px; padding-right: 34px; }
  .trust-group img { height: 34px; max-width: 110px; }

  .featured-project { padding: 44px 0; }
  .fp-visual { justify-content: center; }
  .fp-date { padding: 8px 12px; font-size: .76rem; }
}

@media (max-width: 560px) {
  .horizon-grid { gap: 10px; padding: 14px; }
  .horizon-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
    border-left-width: 1px;
    border-top: 4px solid var(--c);
    font-size: .84rem;
  }
  .horizon-icon { width: 40px; height: 40px; }
  .tl-card--media { display: block; }
  .tl-card--media img { height: 150px; min-height: 0; }
}

@media (max-width: 480px) {
  .fp-list { grid-template-columns: 1fr; gap: 10px; }
  .fp-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .tl-card, .tl-body { padding: 16px 16px 18px; }
  .tl-card--media { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; width: auto; }
  .trust-group { flex-wrap: wrap; justify-content: center; padding-right: 0; row-gap: 18px; }
  .trust-group[aria-hidden="true"] { display: none; }
  .trust-marquee { -webkit-mask-image: none; mask-image: none; }
  .tl-item--now::before { animation: none; }
}
