/* Page À propos — parcours visuel, animations, grilles responsive */

/* ─── Layout sections ─── */
.about-main {
  padding-top: 0;
}

.about-section {
  padding: 5rem 1.5rem;
  position: relative;
}

.about-section__container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
}

.about-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-section__label {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.about-section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.about-section__lead {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ─── Hero ─── */
.about-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height, 80px) + 2rem) 1.5rem 4rem;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(6, 26, 65, 0.82) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.92) 100%);
}

.about-hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  text-align: center;
}

.about-hero__label {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.about-hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
}

.about-hero__line {
  display: block;
  overflow: hidden;
}

.about-hero__line span {
  display: inline-block;
}

.about-hero__line.is-visible span {
  animation: about-hero-sweep 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes about-hero-sweep {
  from {
    opacity: 0;
    transform: translateY(110%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Qui sommes-nous ─── */
.about-who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-who__body {
  color: var(--text-secondary);
  margin: 1.5rem 0 1rem;
  font-size: 1.05rem;
}

.about-who__ambition {
  color: var(--text-primary);
  font-weight: 600;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

.about-who__visual {
  display: flex;
  align-items: stretch;
}

.about-who__photo-wrap {
  margin: 0;
  width: 100%;
  border-radius: 1rem;
}

.about-who__photo {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* ─── Effets hover images ─── */
.about-img-hover {
  position: relative;
  overflow: hidden;
}

.about-img-hover img {
  display: block;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
}

.about-img-hover__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-img-hover__shine--subtle {
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 58%
  );
}

.about-img-hover--hero .about-hero__bg img {
  animation: about-ken-burns 28s ease-in-out infinite alternate;
}

.about-img-hover--hero:hover .about-hero__bg img,
.about-img-hover--hero:focus-within .about-hero__bg img {
  animation-play-state: paused;
  transform: scale(1.05);
  filter: brightness(1.06);
}

.about-img-hover--photo {
  border: 1px solid var(--glass-border);
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.about-img-hover--photo:hover,
.about-img-hover--photo:focus-within {
  border-color: rgba(32, 195, 102, 0.45);
  box-shadow:
    0 0 0 1px rgba(32, 195, 102, 0.15),
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(32, 195, 102, 0.12);
}

.about-img-hover--photo:hover img,
.about-img-hover--photo:focus-within img {
  transform: scale(1.06);
  filter: brightness(1.08) saturate(1.05);
}

.about-img-hover--photo:hover .about-img-hover__shine,
.about-img-hover--photo:focus-within .about-img-hover__shine {
  transform: translateX(120%) skewX(-12deg);
}

.about-section--process:hover .about-img-hover--process img {
  transform: scale(1.03);
  filter: brightness(1.12);
}

.about-section--process:hover .about-img-hover--process .about-img-hover__shine {
  transform: translateX(120%) skewX(-12deg);
}

@keyframes about-ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* ─── Mission & Vision — fond carte panafricaine ─── */
.about-section--mv {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.about-mv__map-bg {
  position: absolute;
  inset: -4% 0;
  z-index: 0;
  pointer-events: none;
}

.about-mv__map-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.14;
}

.about-mv__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.82) 100%),
    linear-gradient(to bottom, var(--bg-primary) 0%, transparent 18%, transparent 82%, var(--bg-secondary) 100%);
}

.about-mv__content {
  position: relative;
  z-index: 2;
}

.about-mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-mv-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.about-mv-card:hover {
  transform: translateY(-4px);
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(32, 195, 102, 0.35);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(32, 195, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.about-mv-card__icon {
  width: 44px;
  height: 44px;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.about-mv-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-mv-card__text {
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Valeurs ─── */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.about-value-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.about-value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(32, 195, 102, 0.12), rgba(59, 130, 246, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.about-value-card:hover,
.about-value-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(32, 195, 102, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.about-value-card:hover::before,
.about-value-card:focus-within::before {
  opacity: 1;
}

.about-value-card__icon {
  position: relative;
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-value-card__title {
  position: relative;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-value-card__desc {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-value-card__detail {
  position: relative;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    margin-top 0.35s ease;
}

.about-value-card:hover .about-value-card__desc,
.about-value-card:focus-within .about-value-card__desc {
  opacity: 0.85;
}

.about-value-card:hover .about-value-card__detail,
.about-value-card:focus-within .about-value-card__detail {
  max-height: 6rem;
  opacity: 1;
}

/* ─── Processus ─── */
.about-section--process {
  overflow: hidden;
}

.about-process__parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.14;
}

.about-process__parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.about-process {
  position: relative;
  z-index: 1;
}

.about-process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: process;
}

.about-process-step {
  position: relative;
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.about-process-step:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.about-process-step__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.about-process-step__icon {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin: 0 auto 0.75rem;
  transition: color 0.35s ease;
}

.about-process-step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-process-step__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-process-step.is-active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(32, 195, 102, 0.25);
}

.about-process-step.is-current {
  transform: translateY(-4px);
  background: rgba(32, 195, 102, 0.1);
  border-color: rgba(32, 195, 102, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.about-process-step.is-active .about-process-step__node,
.about-process-step.is-current .about-process-step__node {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-secondary);
  box-shadow: 0 0 20px rgba(32, 195, 102, 0.45);
}

.about-process-step.is-active .about-process-step__icon,
.about-process-step.is-current .about-process-step__icon {
  color: var(--primary);
}

.about-process-step.is-active .about-process-step__text,
.about-process-step.is-current .about-process-step__text {
  color: var(--text-secondary);
}

/* ─── Bande parallax ─── */
.about-parallax-band {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.about-parallax-band__layer {
  position: absolute;
  inset: -15% 0;
  will-change: transform;
}

.about-parallax-band__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.about-parallax-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-primary), transparent, var(--bg-secondary));
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .about-who {
    grid-template-columns: 1fr;
  }

  .about-who__photo {
    min-height: 240px;
  }

  .about-mv-grid {
    grid-template-columns: 1fr;
  }

  .about-process__steps {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    text-align: left;
    align-items: start;
  }

  .about-process-step__node {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .about-process-step__icon {
    display: none;
  }

  .about-process-step__title {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 640px) {
  .about-section {
    padding: 3.5rem 1rem;
  }

  .about-mv__map-bg img {
    opacity: 0.1;
    object-position: center 40%;
  }

  .about-process__steps {
    grid-template-columns: 1fr;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-value-card__detail {
    max-height: none;
    opacity: 1;
    margin-top: 0.5rem;
  }

  .about-parallax-band {
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__line.is-visible span {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .about-hero__bg img,
  .about-mv__map-bg img,
  .about-process__parallax-bg img,
  .about-parallax-band__layer {
    transform: none !important;
  }

  .about-img-hover--hero .about-hero__bg img {
    animation: none;
  }

  .about-img-hover img,
  .about-img-hover:hover img,
  .about-img-hover:focus-within img,
  .about-section--process:hover .about-img-hover--process img {
    transform: none;
    filter: none;
    transition: none;
  }

  .about-img-hover__shine {
    display: none;
  }

  .about-value-card__detail {
    max-height: none;
    opacity: 1;
  }

  .about-mv-card:hover,
  .about-value-card:hover,
  .about-process-step.is-current {
    transform: none;
  }
}
