/* =============================================================================
   pages/collectif.css · Page Collectif.
     1. Origine
     2. Notre histoire (frise + tableau de bord)
     3. Modèle du collectif
     4. Réseau
     5. Interlocuteur
   ========================================================================== */

/* --- 1. Origine ------------------------------------------------------------------- */

/* Introduit le panneau du modèle : la respiration basse vient de celui-ci. */
.origin { padding: var(--section-y) 0 0; }

.origin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 110px);
}

.origin__grid h2 { max-width: 20ch; font-size: var(--fs-h2); }
.origin__grid p { margin-top: 22px; color: var(--ink-muted); line-height: 1.75; }
.origin__grid p.origin__lead { margin-top: 0; color: var(--ink-strong); font-size: 1.1875rem; }

@media (max-width: 820px) {
  .origin__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- 2. Notre histoire -------------------------------------------------------------- */

.story__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  gap: clamp(40px, 6vw, 90px);
}

.story__heading { grid-column: 1 / -1; }
.story__heading h2 { max-width: 22ch; margin-bottom: 24px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); letter-spacing: var(--tracking-display); }
.story__heading h2 span { color: #146dbe; }
.story__heading p { max-width: 62ch; color: var(--ink-muted); font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.75; }

.timeline { position: relative; }

.timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 25px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--cyan), var(--blue), rgba(23, 104, 255, 0.15));
  transform-origin: top;
  animation: grow-y 2.4s var(--ease) both;
}

.timeline__item {
  position: relative;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__node {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #f4fbff;
  border: 5px solid #e9f5ff;
  border-radius: 50%;
  background: #0a75a2;
  box-shadow: 0 10px 25px rgba(15, 101, 155, 0.2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}

.timeline__item small {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline__item h3 { max-width: 30ch; margin: 10px 0 12px; font-size: var(--fs-h2-sm); font-weight: 580; letter-spacing: var(--tracking-display); line-height: 1.12; }
.timeline__item p { max-width: 62ch; color: var(--ink-muted); font-size: var(--fs-small); line-height: 1.72; }

/* Tableau de bord « aujourd'hui » : toujours sombre, même dans un bandeau clair. */
.board {
  align-self: start;
  padding: 30px;
  color: #f4f8ff;
  border: 1px solid rgba(32, 213, 223, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 5%, rgba(32, 213, 223, 0.15), transparent 18rem),
    #071a31;
  box-shadow: 0 32px 70px rgba(25, 69, 111, 0.18);
}

.board__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #9fb3ca;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board__top > div { display: flex; align-items: center; gap: 9px; }
.board__top strong { color: #6d839c; font-weight: 500; }

.board__stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(174, 205, 239, 0.17);
  border-left: 1px solid rgba(174, 205, 239, 0.17);
}

.board__stats > div {
  min-height: 128px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(174, 205, 239, 0.17);
  border-bottom: 1px solid rgba(174, 205, 239, 0.17);
}

.board__stats strong { color: var(--cyan); font-size: 36px; font-weight: 620; letter-spacing: var(--tracking-display); }
.board__stats span { margin-top: auto; color: #b5c5d7; font-size: 12px; }

.board__chart-label {
  margin-top: 30px;
  display: block;
  color: #9bb2ca;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board__chart { margin-top: 10px; display: grid; gap: 16px; }
.board__chart > div { display: grid; grid-template-columns: 85px 1fr; align-items: center; gap: 15px; }
.board__chart span { color: #7e93ab; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; }

.board__chart i {
  position: relative;
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(174, 205, 239, 0.1);
}

.board__chart i::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: var(--gradient-brand);
  transform-origin: left;
  animation: grow-x 1.8s var(--ease) both;
}

.board > p { margin-top: 24px; color: #70859d; font-size: 10px; line-height: 1.55; }

@media (max-width: 900px) {
  .story__layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .timeline__item { grid-template-columns: 44px 1fr; gap: 20px; }
  .timeline::before { left: 21px; }
  .timeline__node { width: 44px; height: 44px; }
  .board { padding: 22px; }
}

/* --- 3. Modèle du collectif ---------------------------------------------------------- */

.collective-model {
  margin-top: var(--section-y-sm);
  padding: clamp(28px, 4.5vw, 80px);
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: clamp(32px, 5vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 45%, rgba(25, 105, 225, 0.15), transparent 20rem),
    rgba(6, 15, 33, 0.65);
}

.collective-core {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(99, 158, 239, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(21, 98, 209, 0.08);
}

.collective-core img { width: 180px; opacity: 0.64; }
.collective-core p { margin-top: 16px; letter-spacing: 0.25em; font-weight: 600; }
.collective-core span { margin-top: 9px; color: var(--ink-subtle); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }

.collective-roles { display: grid; gap: 12px; }

.role {
  padding: 28px;
  display: grid;
  grid-template-columns: 60px 170px 1fr;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.role > span { color: var(--cyan); font-family: var(--font-mono); font-size: var(--fs-mono); }
.role__label { color: var(--ink-subtle); font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.6; text-transform: uppercase; }
.role h3 { font-size: 1.3rem; font-weight: 520; }
.role > p:last-child { grid-column: 3; color: var(--ink-muted); font-size: var(--fs-small); line-height: 1.65; }

@media (max-width: 1080px) {
  .collective-model { grid-template-columns: 0.65fr 1.35fr; }
  .collective-core { min-height: 420px; }
  .role { grid-template-columns: 45px 1fr; }
  .role h3,
  .role > p:last-child { grid-column: 2; }
}

@media (max-width: 820px) {
  .collective-model { grid-template-columns: 1fr; }
  .collective-core { min-height: 340px; }
  .collective-core img { width: 140px; }
}

@media (max-width: 560px) {
  .role { grid-template-columns: 34px 1fr; padding: 22px; }
}

/* --- 4. Réseau ------------------------------------------------------------------------ */

.network {
  margin-top: var(--section-y-sm);
  padding: clamp(28px, 4.5vw, 80px);
  border: 1px solid rgba(114, 167, 255, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(32, 213, 223, 0.11), transparent 24rem),
    var(--navy-700);
}

.network__heading { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 26px clamp(32px, 5vw, 70px); }
.network__heading .kicker { grid-column: 1 / -1; }
.network__heading h2 { font-size: var(--fs-h2-sm); font-weight: 530; letter-spacing: var(--tracking-display); line-height: 1.04; }
.network__heading > p { max-width: 60ch; color: var(--ink-muted); font-size: clamp(1rem, 1.1vw, 1.0625rem); line-height: 1.75; }
.network .rail { margin-top: clamp(40px, 5vw, 66px); }

@media (max-width: 820px) {
  .network__heading { grid-template-columns: 1fr; }
}

/* --- 5. Interlocuteur ------------------------------------------------------------------ */

.person {
  margin-top: var(--section-y);
  padding: clamp(40px, 5vw, 70px) 0;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.person__photo { position: relative; }

.person__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: saturate(0.76) contrast(1.05);
}

.person__photo > span {
  position: absolute;
  right: -15px;
  bottom: 22px;
  padding: 10px 13px;
  color: var(--navy-900);
  border-radius: 6px;
  background: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
}

.person__copy { align-self: center; }
.person__copy h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }

.person__role {
  margin-top: 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person__copy > p:not(.person__role) { max-width: 62ch; margin-top: 20px; color: var(--ink-muted); line-height: 1.75; }

.escp-badge {
  width: fit-content;
  margin: 22px 0;
  padding: 9px 16px 9px 9px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #17203c;
  border-radius: var(--radius-pill);
  background: #f6f3ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.escp-badge img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  background: #fff;
}

.escp-badge span { font-size: 13px; font-weight: 620; }

.person__links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.person__links a {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.person__links a:hover { color: var(--cyan); border-color: rgba(32, 213, 223, 0.35); }

@media (max-width: 820px) {
  .person { grid-template-columns: 240px 1fr; }
}

@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; }
  .person__photo { max-width: 280px; }
}

/* --- Valeurs ---------------------------------------------------------------------------- */

.values { padding: var(--section-y) 0 var(--section-y-sm); }
.values .rail { margin-top: 28px; }

/* <picture> ne doit pas créer de boîte intermédiaire : l'image reste l'enfant
   direct de la grille ou du conteneur flex. */
.person__photo picture { display: contents; }
