/* ═══════════════════════════════════════════════════
   XCompany — about.css  v2
   Pixel blocks · Immersive · 3D tilt cards
═══════════════════════════════════════════════════ */

/* ══ HERO ══ */
.ab-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem var(--px) 5rem;
  position: relative;
  overflow: hidden;
}
.ab-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.ab-hero-label {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2rem;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0;
  animation: fadeUp .7s var(--ease) .3s forwards;
}
.ab-hero-title {
  font-family: 'aspekta', 'Orbitron', sans-serif;
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.03em;
  margin-bottom: 2.5rem;
}
.ab-word-mask {
  display: block;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 700px;
}
.ab-word-mask.ab-indent { padding-left: clamp(2rem, 6vw, 7rem); }
.ab-word {
  display: inline-block;
  transform: rotateX(88deg) translateZ(.4em);
  transform-origin: top center;
  opacity: 0;
  animation: w3d 1s var(--ease) forwards;
}
.ab-word-mask:nth-child(1) .ab-word { animation-delay: .2s; }
.ab-word-mask:nth-child(2) .ab-word { animation-delay: .38s; }
.ab-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp .7s var(--ease) .6s forwards;
}

/* Hero pixel canvas */
.ab-pixel-hero {
  position: absolute;
  right: 0; top: 0;
  width: 48%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
#abHeroCanvas { width: 100%; height: 100%; display: block; opacity: .5; }

/* Scroll indicator */
.ab-hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: var(--px);
  opacity: 0;
  animation: fadeUp .6s var(--ease) 1s forwards;
}
.ab-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--violet), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══ MANIFESTE ══ */
.ab-manifeste {
  padding: 8rem var(--px);
  border-top: 1px solid var(--div);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.ab-manifeste-label {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2rem;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 2rem;
}
.ab-manifeste-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.ab-manifeste-body {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.75;
}
.ab-pixel-wall {
  position: relative;
  height: 440px;
  overflow: hidden;
}
#abWallCanvas { width: 100%; height: 100%; display: block; }

/* ══ VALEURS ══ */
.ab-values {
  padding: 8rem var(--px);
  border-top: 1px solid var(--div);
}
.ab-values-header { margin-bottom: 4rem; }
.ab-section-label {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2rem;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}
.ab-values-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}
.ab-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── Value card: magnetic 3D tilt ── */
.ab-value-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--div);
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: border-color .3s, box-shadow .3s, transform .08s linear;
  will-change: transform;
  cursor: default;
}
.ab-value-card:hover {
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 40px rgba(139,92,246,.1);
}
/* Pixel corner accents */
.ab-vc-pixel-corner {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--violet);
  opacity: 0;
  transition: opacity .3s;
}
.ab-value-card:hover .ab-vc-pixel-corner { opacity: 1; }
.ab-vc-pixel-corner.tl { top: -1px;    left: -1px; }
.ab-vc-pixel-corner.tr { top: -1px;    right: -1px; }
.ab-vc-pixel-corner.bl { bottom: -1px; left: -1px; }
.ab-vc-pixel-corner.br { bottom: -1px; right: -1px; }

.ab-vc-num {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15rem;
  color: var(--violet);
  opacity: .5;
  margin-bottom: 1.5rem;
}
.ab-vc-icon {
  width: 48px; height: 48px;
  color: rgba(139,92,246,.55);
  margin-bottom: 1.5rem;
  transition: color .3s, transform .3s;
  transform: translateZ(20px);
}
.ab-value-card:hover .ab-vc-icon {
  color: var(--violet);
  transform: translateZ(30px) scale(1.08);
}
.ab-vc-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
  transform: translateZ(10px);
}
.ab-vc-body {
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.65;
}
/* Inner glow on hover */
.ab-value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(139,92,246,.08) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.ab-value-card:hover::after { opacity: 1; }

/* ══ STATS SECTION ══ */
.ab-stats-section {
  position: relative;
  padding: 7rem var(--px);
  border-top: 1px solid var(--div);
  overflow: hidden;
}
.ab-stats-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
#abStatsBgCanvas { width: 100%; height: 100%; display: block; opacity: .6; }
.ab-stats-inner {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ab-stat-block {
  flex: 1;
  text-align: center;
  padding: 3rem 2rem;
}
.ab-stat-divider {
  width: 1px; height: 100px;
  background: var(--div);
  flex-shrink: 0;
}
.ab-stat-glyph { width: 40px; height: 40px; margin: 0 auto 1.5rem; }
.ab-stat-num {
  display: block;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--text), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ab-stat-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15rem;
  text-transform: uppercase;
  color: var(--gray);
}

/* ══ TIMELINE ══ */
.ab-timeline {
  padding: 8rem var(--px);
  border-top: 1px solid var(--div);
}
.ab-timeline-header { margin-bottom: 5rem; }
.ab-timeline-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-top: 1rem;
}
.ab-timeline-track {
  display: flex;
  flex-direction: column;
  max-width: 860px;
}
.ab-tl-item {
  display: grid;
  grid-template-columns: 90px 40px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-top: 1px solid var(--div);
}
.ab-tl-year {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1rem;
  color: var(--violet);
  padding-top: .2rem;
}
.ab-tl-px-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ab-tl-dot {
  width: 10px; height: 10px;
  border: 2px solid rgba(139,92,246,.4);
  background: var(--bg);
  flex-shrink: 0;
}
.ab-tl-dot.active {
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 0 16px rgba(139,92,246,.6);
}
.ab-tl-line {
  flex: 1; width: 1px;
  background: var(--div);
  min-height: 70px;
  margin-top: 4px;
}
.ab-tl-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.ab-tl-content p {
  font-size: .9375rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ══ EXPERTISE ══ */
.ab-expertise {
  padding: 8rem var(--px);
  border-top: 1px solid var(--div);
}
.ab-expertise-header { margin-bottom: 4rem; }
.ab-expertise-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-top: 1rem;
}
.ab-expertise-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 760px;
}
.ab-exp-item {
  display: grid;
  grid-template-columns: 160px 1fr 48px;
  align-items: center;
  gap: 1.5rem;
}
.ab-exp-name {
  font-size: .875rem;
  font-weight: 600;
}
.ab-exp-bar-wrap {
  height: 2px;
  background: var(--div);
  overflow: hidden;
  position: relative;
}
.ab-exp-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), rgba(139,92,246,.4));
  transition: width 1.4s var(--ease);
  position: relative;
}
.ab-exp-bar::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--violet);
  box-shadow: 0 0 8px rgba(139,92,246,.9);
}
.ab-exp-pct {
  font-size: .75rem;
  font-weight: 700;
  color: var(--violet);
  text-align: right;
}

/* ══ CTA ══ */
.ab-cta {
  position: relative;
  padding: 10rem var(--px);
  border-top: 1px solid var(--div);
  text-align: center;
  overflow: hidden;
}
.ab-cta-px-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
#abCtaCanvas { width: 100%; height: 100%; display: block; }
.ab-cta-inner { position: relative; z-index: 2; }
.ab-cta-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1.5rem 0 3rem;
}
.ab-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2.5rem;
  background: var(--violet);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .05rem;
  border: 1px solid var(--violet);
  transition: box-shadow .3s, transform .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.ab-cta-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
}
.ab-cta-btn:hover::before { transform: translateX(0); }
.ab-cta-btn:hover { box-shadow: 0 0 40px rgba(139,92,246,.5); transform: translateY(-3px); }
.ab-cta-btn svg { transition: transform .35s var(--ease); }
.ab-cta-btn:hover svg { transform: translateX(5px); }

/* ══ LOGO SECTION (fond blanc) ══ */
.ab-logo-section {
  background: #fff;
  padding: 5rem var(--px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ab-logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.ab-logo-video {
  width: min(320px, 60vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(139,92,246,.2));
}
.ab-logo-cta {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12rem;
  text-transform: uppercase;
  color: #07070a;
  border-bottom: 1px solid rgba(7,7,10,.25);
  padding-bottom: .25rem;
  transition: color .3s, border-color .3s;
}
.ab-logo-cta:hover { color: var(--violet); border-color: var(--violet); }

/* ══ TEAM ══ */
.ab-team {
  padding: 8rem var(--px);
  border-top: 1px solid var(--div);
}
.ab-team-header {
  margin-bottom: 5rem;
}
.ab-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  gap: 2.5rem;
  max-width: 960px;
}
.ab-team-card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  cursor: default;
}
/* Photo frame — portrait rectangle */
.ab-tm-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  margin: 0 auto;
  overflow: hidden;
}
.ab-tm-photo-wrap .ab-tm-photo,
.ab-tm-photo-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top;
}
.ab-tm-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
  filter: grayscale(20%);
}
.ab-team-card:hover .ab-tm-photo { transform: scale(1.04); filter: grayscale(0%); }
.ab-tm-photo-placeholder {
  width: 100%; height: 100%;
  background: var(--bg2, #0f0f14);
  display: flex; align-items: center; justify-content: center;
}
.ab-tm-photo-placeholder span {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem; font-weight: 800;
  color: rgba(139,92,246,.35);
}
/* Decorative pixel corners */
.ab-tm-photo-wrap::before,
.ab-tm-photo-wrap::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--violet);
  border-style: solid;
  z-index: 2;
  transition: width .3s var(--ease), height .3s var(--ease);
}
.ab-tm-photo-wrap::before {
  top: 0; left: 0;
  border-width: 2px 0 0 2px;
}
.ab-tm-photo-wrap::after {
  bottom: 0; right: 0;
  border-width: 0 2px 2px 0;
}
.ab-team-card:hover .ab-tm-photo-wrap::before,
.ab-team-card:hover .ab-tm-photo-wrap::after {
  width: 30px; height: 30px;
}
/* Info */
.ab-tm-info { display: flex; flex-direction: column; gap: .45rem; }
.ab-tm-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .04em;
  color: var(--white, #f0f0f0);
}
.ab-tm-role {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet);
}
.ab-tm-desc {
  font-size: .875rem;
  color: var(--gray, #888896);
  line-height: 1.7;
  margin-top: .25rem;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .ab-values-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-manifeste { grid-template-columns: 1fr; gap: 3rem; }
  .ab-pixel-wall { height: 260px; }
}
@media (max-width: 768px) {
  .ab-values-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .ab-stats-inner { flex-direction: column; gap: 2rem; }
  .ab-stat-divider { width: 80px; height: 1px; }
  .ab-tl-item { grid-template-columns: 70px 28px 1fr; gap: 1rem; }
  .ab-pixel-hero { display: none; }
  .ab-exp-item { grid-template-columns: 130px 1fr 40px; }
  .ab-manifeste { gap: 2.5rem; }
  .ab-manifeste-title { font-size: clamp(2rem, 9vw, 3.5rem); }
  .ab-hero-sub { font-size: clamp(1rem, 3.5vw, 1.3rem); }
  .ab-team { padding: 5rem var(--pxs); }
  .ab-team-header { margin-bottom: 3rem; }
  .ab-values { padding: 5rem var(--pxs); }
  .ab-timeline-section { padding: 5rem var(--pxs); }
}
@media (max-width: 480px) {
  .ab-values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ab-exp-item { grid-template-columns: 1fr auto; gap: 1rem; }
  .ab-exp-bar-wrap { display: none; }
  .ab-tl-item { grid-template-columns: 60px 22px 1fr; gap: .6rem; }
  .ab-tl-year { font-size: .7rem; }
  .ab-stats-inner { gap: 1.5rem; }
}
@media (max-width: 430px) {
  .ab-team-grid { grid-template-columns: 1fr; }
  .ab-tm-photo-wrap { width: 100%; aspect-ratio: 3 / 4; }
  .ab-manifeste-title { font-size: clamp(1.7rem, 10vw, 2.6rem); }
}
