/* ═══════════════════════════════════════════════════════════════════════════
   CLEARZI — Page « À propos de nous »
   Styles propres à la page. Consomme exclusivement les tokens var(--cz-*)
   définis dans styles.css — aucune valeur brute (hors ombres rgba encre,
   convention déjà en place dans styles.css).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ══ Hero — bandeau clair centré, même langage que l'accueil ══ */
.ap-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(42% 60% at 12% 0%, rgba(124, 247, 212, 0.2), transparent 62%),
    radial-gradient(48% 66% at 88% 16%, rgba(124, 247, 212, 0.14), transparent 68%),
    linear-gradient(180deg, var(--cz-azure) 0%, var(--cz-bg-base) 88%);
}

.ap-hero::before {
  content: ''; 
  position: absolute;
  inset: 0;
  background-image: var(--cz-dots-ink);
  background-size: 26px 26px;
  -webkit-mask: linear-gradient(#000 50%, transparent 92%);
  mask: linear-gradient(#000 50%, transparent 92%);
  opacity: 0.5;
  pointer-events: none;
}

/* halo qui suit le curseur : les points s'allument en teal sous la souris */
.ap-hero-spot {
  position: absolute;
  inset: 0;
  background-image: var(--cz-dots-ink-strong);
  background-size: 26px 26px;
  -webkit-mask: radial-gradient(240px at var(--mx, -500px) var(--my, -500px), #000 0%, transparent 68%);
  mask: radial-gradient(240px at var(--mx, -500px) var(--my, -500px), #000 0%, transparent 68%);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}

.ap-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 168px var(--cz-margin) 88px;
  text-align: center;
}

.ap-hero .section-tag {
  margin-bottom: 24px;
}

.ap-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
  max-width: 17em;
  margin: 0 auto;
}

.ap-hero-sub {
  margin: 28px auto 0;
  max-width: 46em;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--cz-text-soft);
}

.ap-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 38px;
}

/* ══ Enveloppe de section commune ══ */
.ap-section {
  max-width: calc(var(--cz-content-max) + var(--cz-margin) * 2);
  margin: 0 auto;
  padding: 88px var(--cz-margin);
}

/* En-tête de section aligné à gauche (variante de .section-head, centré) */
.ap-head-left {
  max-width: none;
  margin: 0;
  text-align: left;
}

.ap-head-left h2 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.025em;
}

/* ══ Vision — texte à gauche, chronologie à droite ══ */
.ap-vision-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: start;
  max-width: var(--cz-content-max);
  margin: 0 auto;
}

/* deux intérêts opposés (filet entre les deux), puis la résolution Clearzi
   en carte menthe pâle, puis l'ambition en une phrase */
.ap-vision-points {
  margin-top: 10px;
}

.ap-vision-point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
}

.ap-vision-point + .ap-vision-point {
  border-top: 1px solid var(--cz-border-medium);
}

.ap-vision-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--cz-radius-full);
  background: var(--cz-bg-selected);
  box-shadow: inset 0 0 0 1px var(--cz-brand-border-soft);
}

.ap-vision-ic svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--cz-brand-700);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap-vision-point-title {
  font-family: var(--cz-font-medium);
  font-size: 16px;
  line-height: 1.4;
  color: var(--cz-ink);
  margin-bottom: 6px;
}

.ap-vision-point-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--cz-text-soft);
  max-width: 34em;
}

.ap-vision-resolve {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 10px;
  /* la carte déborde de son padding : l'icône et le texte restent alignés
     sur la même verticale que les deux intérêts au-dessus */
  margin-inline: -28px;
  padding: 26px 28px;
  border-radius: var(--cz-radius-card);
  background: var(--cz-bg-selected);
  box-shadow: inset 0 0 0 1px var(--cz-brand-border-soft);
}

/* dans la carte résolution : la marque Clearzi sur pastille encre,
   même langage que le nœud Clearzi du hero de l'accueil (.hw-avatar-c) */
.ap-vision-resolve .ap-vision-ic {
  background: var(--cz-ink);
  border-radius: var(--cz-radius-lg);
  box-shadow: 0 4px 10px rgba(10, 33, 38, 0.28);
}

.ap-vision-ambition {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cz-text-soft);
  max-width: 36em;
}

/* Chronologie : carte blanche, jalons séparés par un filet */
.ap-timeline {
  background: var(--cz-white);
  border: 1px solid var(--cz-border-medium);
  border-radius: var(--cz-radius-pop);
  padding: 10px 28px;
  box-shadow: var(--cz-shadow-card);
}

.ap-tl-head {
  padding: 20px 0 6px;
}

/* jalon : point menthe (première cellule) + filet vertical vers le suivant */
.ap-tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(48px, auto) 1fr;
  gap: 18px;
  padding: 18px 0;
}

.ap-tl-row::before {
  content: '';
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: var(--cz-radius-full);
  background: var(--cz-brand-400);
}

.ap-tl-row::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 38px;
  bottom: -21px;
  width: 1.5px;
  background: var(--cz-border-medium);
}

.ap-tl-row:last-child::after {
  display: none;
}

.ap-tl-year {
  align-self: start;
  font-family: var(--cz-font-medium);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cz-brand-700);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

/* dernier jalon (le rebranding) : badge « NOUVEAU » en pastille aquamarine */
.ap-tl-row.is-latest .ap-tl-year {
  justify-self: start;
  color: var(--cz-ink);
  background: var(--cz-aqua);
  padding: 4px 10px;
  border-radius: var(--cz-radius-full);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ap-tl-title {
  font-family: var(--cz-font-medium);
  font-size: 15px;
  line-height: 1.35;
  color: var(--cz-ink);
  margin-bottom: 5px;
}

.ap-tl-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cz-text-moderate);
}

/* ══ Métriques — posées sur le fond de page, comme la bande de preuve
   de l'accueil (pas de bandeau blanc ni de filets) ══ */
.ap-metrics-inner {
  max-width: var(--cz-content-max);
  margin: 0 auto;
  padding: 8px var(--cz-margin) 24px;
}

/* ══ Équipe ══ */
.ap-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--cz-content-max);
  margin: 56px auto 0;
}

.ap-member {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 30px 20px 26px;
  background: var(--cz-white);
  border: 1px solid var(--cz-border-medium);
  border-radius: var(--cz-radius-pop);
  box-shadow: var(--cz-shadow-xs);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ap-member:hover {
  transform: translateY(-3px);
  border-color: var(--cz-brand-border);
  box-shadow: var(--cz-shadow-card);
}

/* pastille de département : jeton teinté + point coloré.
   Une teinte par département, toutes issues de Clear Design v1 ; texte sombre
   pour garantir le contraste AA, la couleur est portée par le fond + le point. */
.ap-member-dept {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 11px;
  border-radius: var(--cz-radius-full);
  background: var(--cz-bg-selected);
  font-family: var(--cz-font-medium);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cz-ink);
}

.ap-member-dept::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--cz-radius-full);
  background: var(--cz-brand-400);
  flex-shrink: 0;
}

/* Direction — graphite neutre */
.ap-dept-direction {
  background: var(--cz-neutral-100);
}

.ap-dept-direction::before {
  background: var(--cz-ink);
}

/* Tech — teal de marque */
.ap-dept-tech {
  background: var(--cz-bg-selected);
  color: var(--cz-brand-700);
}

.ap-dept-tech::before {
  background: var(--cz-brand-400);
}

/* Fournisseurs — vert (success) */
.ap-dept-suppliers {
  background: var(--cz-success-tint);
}

.ap-dept-suppliers::before {
  background: var(--cz-success);
}

/* Acheteurs — rose (négatif désaturé du site, ici en simple teinte de catégorie) */
.ap-dept-buyers {
  background: var(--cz-negative-tint);
}

.ap-dept-buyers::before {
  background: var(--cz-negative);
}

/* Finance — ambre (warning) */
.ap-dept-finance {
  background: var(--cz-warning-tint);
}

.ap-dept-finance::before {
  background: var(--cz-warning);
}

/* photo : cercle avec halo menthe, badge LinkedIn ancré en bas à droite */
.ap-member-photo {
  position: relative;
}

.ap-avatar {
  width: 128px;
  height: 128px;
  border-radius: var(--cz-radius-full);
  overflow: hidden;
  background: var(--cz-bg-base);
  box-shadow:
    0 0 0 1px var(--cz-border-medium),
    0 0 0 5px var(--cz-white),
    0 0 0 6px var(--cz-brand-border-soft);
}

.ap-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* repli si la photo manque : initiales centrées */
.ap-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--cz-font-medium);
  font-size: 1.5rem;
  color: var(--cz-neutral-bolder);
}

.ap-li {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--cz-radius-full);
  background: var(--cz-ink);
  box-shadow: 0 2px 6px rgba(10, 33, 38, 0.28);
  transition: transform 160ms ease, background-color 160ms ease;
}

.ap-li svg {
  width: 15px;
  height: 15px;
  fill: var(--cz-aqua);
  transition: fill 160ms ease;
}

.ap-li:hover {
  transform: scale(1.08);
  background: var(--cz-brand-700);
}

.ap-li:hover svg {
  fill: var(--cz-white);
}

.ap-member-name {
  font-family: var(--cz-font-medium);
  font-size: 16px;
  color: var(--cz-ink);
}

.ap-member-role {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cz-text-moderate);
}

.ap-member-role small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--cz-neutral-bolder);
}

/* ══ Partenaires ══ */
.ap-partners {
  max-width: var(--cz-content-max);
  margin: 0 auto;
  padding: 8px var(--cz-margin) 96px;
  text-align: center;
}

.ap-partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 36px;
}

.ap-partners-logos img {
  width: auto;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 220ms ease, opacity 220ms ease;
}

.ap-partners-logos img:hover {
  filter: none;
  opacity: 1;
}

.ap-logo-sambrinvest {
  height: 60px;
}

.ap-logo-wallonie {
  height: 116px;
}

/* ══ Responsive ══ */
@media (max-width: 980px) {
  .ap-vision-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  /* le padding de section passe à 20px : on réduit le débord d'autant
     pour garder l'alignement du texte sans créer de scroll horizontal */
  .ap-vision-resolve {
    margin-inline: -20px;
    padding: 26px 20px;
  }

  .ap-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .ap-hero-inner {
    padding: 128px 20px 64px;
  }

  .ap-section {
    padding: 60px 20px;
  }

  .ap-metrics-inner {
    padding: 0 20px 20px;
  }

  .ap-team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .ap-partners {
    padding: 8px 20px 72px;
  }

  .ap-partners-logos {
    gap: 36px;
  }

  .ap-logo-wallonie {
    height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-member,
  .ap-li,
  .ap-hero-spot,
  .ap-partners-logos img {
    transition: none;
  }
}
