/* ============================================================
   ORIOMA — ABOUT PAGE CSS
   Chargé uniquement sur is_page('about') via functions.php
   Hérite de toutes les variables :root de style.css
   ============================================================ */

/* ===== MANIFESTO (kept for legacy use) ===== */
.manifesto { padding: 80px 0 120px; border-bottom: 1px solid var(--line); position: relative; }
.manifesto-text { max-width: 880px; margin: 0 auto; }
.manifesto-text blockquote {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.35;
  letter-spacing: -0.015em; color: var(--ink); font-style: italic;
  border-left: 3px solid var(--orioma-blue); padding-left: 32px; margin-bottom: 32px;
}

/* ===== MISSION ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 60px;
}
.mission-cell {
  background: var(--white);
  padding: 56px 40px;
  transition: background .3s;
}
.mission-cell:hover { background: var(--paper-2); }
.mission-cell-num {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orioma-blue);
  margin-bottom: 20px;
}
.mission-cell h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.15;
}
.mission-cell h3 em { font-style: italic; color: var(--orioma-blue); font-weight: 300; }
.mission-cell p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ===== VALUES ===== */
.values { background: var(--paper); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value {
  background: var(--white);
  padding: 48px 32px;
  transition: background .3s;
  position: relative;
}
.value:hover { background: var(--paper-2); }
.value h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}
.value p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.value-num {
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.value-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orioma-blue-glow);
  display: grid;
  place-items: center;
  color: var(--orioma-blue);
  margin-bottom: 20px;
  transition: all .3s;
}
.value:hover .value-icon-wrap { background: var(--orioma-blue); color: var(--white); }
.value-icon-wrap svg { width: 22px; height: 22px; }

/* ============================================================
   STORY / TIMELINE — dark section with scroll progress
   ============================================================ */
.story {
  background: var(--ink);
  color: var(--white);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.story::after {
  content: "";
  position: absolute;
  top: 30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(8, 68, 124, 0.5) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.story .section-head { position: relative; z-index: 1; }
.story .section-tag { color: var(--accent-cyan); }
.story .section-tag::before { background: var(--accent-cyan); }
.story .section-title { color: var(--white); }
.story .section-title em { color: var(--accent-cyan); }
.story .section-lead { color: rgba(255,255,255,0.6); }

.timeline {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}
.timeline-track {
  position: relative;
  padding-left: 40px;
  --timeline-progress: 0;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.timeline-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-cyan);
  transform: scaleY(var(--timeline-progress));
  transform-origin: top;
  box-shadow: 0 0 12px rgba(91, 194, 194, 0.35);
  transition: transform .4s ease;
}
.tl-event {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 200px 1.1fr 1fr 220px;
  gap: 48px;
  align-items: start;
  position: relative;
  opacity: 0.55;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.tl-event.is-active {
  opacity: 1;
  transform: translateY(0);
}
.tl-event:last-child { border-bottom: none; }
.tl-event::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 40px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent-cyan);
}
.tl-event.milestone::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 0 6px rgba(91, 194, 194, 0.2);
}
.tl-year {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}
.tl-year .ital {
  font-style: italic;
  color: var(--accent-cyan);
  font-size: 18px;
  display: block;
  margin-top: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-weight: 400;
}
.tl-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.2;
  transition: color .3s ease;
}
.tl-event.is-active .tl-title { color: var(--accent-cyan); }
.tl-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.tl-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.tl-media img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.95);
}

/* ============================================================
   IMPACT — Visual hero + numbers grid
   ============================================================ */
.impact {
  background: var(--white);
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
}
.impact-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.impact-hero .section-head { margin-bottom: 0; }
.impact-visual {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  place-items: center;
}
.impact-visual img {
  width: 100%;
  height: auto;
  max-width: 520px;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
}
.impact-item {
  padding: 0 24px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.impact-item:first-child { padding-left: 0; }
.impact-item:last-child { border-right: none; padding-right: 0; }
.impact-num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.impact-num .accent { color: var(--orioma-blue); }
.impact-num .small {
  font-size: 0.45em;
  color: var(--muted);
  font-weight: 300;
}
.impact-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orioma-blue);
  margin-bottom: 12px;
}
.impact-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   TEAM
   ============================================================ */
.team { background: var(--paper); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.person:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(8, 68, 124, 0.15);
}
.person-portrait {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--orioma-blue-glow), rgba(91, 194, 194, 0.1));
  position: relative;
  overflow: hidden;
}
.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform .4s;
}
.person:hover .person-photo { transform: scale(1.03); }
.person-info { padding: 28px 28px 32px; }
.person-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.person-role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orioma-blue);
  margin-bottom: 10px;
}
.person-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
  transition: color .2s;
}
.person-link:hover { color: var(--orioma-blue); }
.person-link::after { content: "↗"; font-size: 10px; }
.person-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   PARTNERS CATEGORIZED
   ============================================================ */
.partners-section { background: var(--white); }
.pcat { margin-bottom: 56px; }
.pcat:last-child { margin-bottom: 0; }
.pcat-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.pcat-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.pcat-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orioma-blue);
  letter-spacing: 0.15em;
}
.pcat-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pcat-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.5;
}
.pcat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pcard {
  background: var(--white);
  padding: 32px 24px;
  transition: background .3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  justify-content: space-between;
}
.pcard:hover { background: var(--paper); }
.pcard-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pcard-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.pcard-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* ============================================================
   ANCHORED — Localisation Moirans
   ============================================================ */
.anchored { background: var(--paper); }
.anchor-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.anchor-text .section-tag { margin-bottom: 24px; }
.anchor-text h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--ink);
}
.anchor-text h2 em { font-style: italic; color: var(--orioma-blue); font-weight: 300; }
.anchor-text p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.anchor-text p strong {
  color: var(--ink);
  font-weight: 600;
}
.anchor-text p em { font-style: italic; color: var(--orioma-blue); }

.anchor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px 40px;
  position: relative;
}
.anchor-card::before {
  content: "📍";
  position: absolute;
  top: -16px;
  left: 40px;
  background: var(--orioma-blue);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 8px 20px -6px rgba(8, 68, 124, 0.4);
}
.anchor-card h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  margin-top: 16px;
}
.anchor-card .anchor-region {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orioma-blue);
  margin-bottom: 24px;
}
.anchor-info {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  gap: 16px;
}
.anchor-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: 14px;
}
.anchor-row .lbl {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 4px;
}
.anchor-row .val {
  color: var(--ink);
  line-height: 1.5;
}
.anchor-row .val a {
  color: var(--orioma-blue);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .2s;
}
.anchor-row .val a:hover { border-color: var(--orioma-blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .manifesto { padding: 60px 0 80px; }
  .mission-grid, .anchor-grid, .impact-grid { grid-template-columns: 1fr; }
  .impact-hero { grid-template-columns: 1fr; gap: 32px; }
  .impact-visual { order: 2; }
  .impact-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }
  .impact-item:last-child { border-bottom: none; }
  .values-grid, .team-grid, .pcat-grid { grid-template-columns: 1fr; }

  /* Timeline mobile: stack everything */
  .tl-event {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .timeline-track { padding-left: 28px; }
  .tl-event::before { left: -33px; top: 28px; }
  .tl-year { font-size: 36px; }
  .tl-media { max-width: 320px; }

  .story, .impact { padding: 80px 0; }
  .mission-cell { padding: 40px 24px; }
  .anchor-card { padding: 36px 28px; }
}

@media (max-width: 640px) {
  .pcat-grid { grid-template-columns: 1fr; }
}