/* ── Page Qui sommes-nous ── */

.page-about {
  background: #000000;
}

.page-about .about-hero.ec-hero {
  --ec-hero-shift: 0vh;
  color: var(--white);
  min-height: 100svh;
}

.page-about .about-hero__image {
  object-position: center 35%;
}

.page-about .about-hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.28) 30%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.88) 84%,
    #000000 100%
  );
}

.page-about .about-hero__content {
  max-width: 44rem;
}

.about-hero__intro {
  width: 100%;
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}

.about-hero__lead {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--white);
}

.about-hero__lead strong {
  font-weight: 800;
  color: var(--orange, #f08a3c);
}

.about-hero__more {
  position: relative;
}

.about-hero__more-body {
  overflow: hidden;
  max-height: 4.6rem;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-hero__more.is-expanded .about-hero__more-body {
  max-height: 28rem;
}

.about-hero__more::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.6rem;
  height: 4.2rem;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.72) 48%,
    rgba(0, 0, 0, 0.96) 100%
  );
  transition: opacity 0.35s ease;
}

.about-hero__more.is-expanded::after {
  opacity: 0;
  pointer-events: none;
}

.about-hero__bio {
  margin: 0 0 1.1rem;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.about-hero__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.about-hero__pills li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.about-hero__expand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.about-hero__expand:hover {
  color: var(--white);
}

.about-hero__expand-icon {
  transition: transform 0.35s ease;
  animation: about-expand-nudge 1.8s ease-in-out infinite;
}

.about-hero__more.is-expanded .about-hero__expand-icon {
  transform: rotate(180deg);
  animation: none;
}

@keyframes about-expand-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Apparition au scroll — visible par défaut si JS absent */
.about-reveal {
  opacity: 1;
  transform: none;
}

.has-about-js .about-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

.has-about-js .about-reveal {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 0.12s);
}

.has-about-js .about-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.about-reveal[data-reveal-delay='1'] { --reveal-delay: 1; }
.about-reveal[data-reveal-delay='2'] { --reveal-delay: 2; }
.about-reveal[data-reveal-delay='3'] { --reveal-delay: 3; }

@media (prefers-reduced-motion: reduce) {
  .has-about-js .about-reveal:not(.is-visible),
  .has-about-js .about-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-hero__more-body {
    max-height: none;
  }

  .about-hero__more::after {
    display: none;
  }

  .about-hero__expand-icon {
    animation: none;
  }
}

.about-story {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--page-bg, #09090b);
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #fafafa);
}

.about-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-story__title {
  margin-top: 0.75rem;
  max-width: 12ch;
  color: var(--text-primary, #fafafa);
}

.about-story__copy p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary, #d4d4d8);
  margin: 0 0 1.15rem;
}

.about-story__copy p:last-child {
  margin-bottom: 0;
}

.about-story__copy strong {
  color: var(--text-primary, #fafafa);
  font-weight: 600;
}

.about-team {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--page-bg, #09090b);
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #fafafa);
}

.about-team__title {
  margin: 0.75rem 0 1.5rem;
  max-width: 18ch;
  color: var(--text-primary, #fafafa);
}

.about-team__figure {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  max-width: min(100%, 920px);
}

.about-team__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 1.25rem);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-team__caption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted, #71717a);
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.about-founder {
  padding: 0;
  border: 0;
  background: none;
}

.about-founder__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #71717a);
  margin: 0 0 0.65rem;
}

.about-founder__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary, #fafafa);
  margin: 0 0 0.35rem;
}

.about-founder__tag {
  font-size: 0.95rem;
  color: var(--orange, #f08a3c);
  margin: 0 0 0.85rem;
}

.about-founder__bio {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary, #a1a1aa);
  margin: 0;
}

.about-timeline {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--page-bg, #09090b);
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #fafafa);
}

.about-timeline__title {
  margin: 0.75rem 0 0.75rem;
}

.about-timeline__lead {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  max-width: 36rem;
  color: var(--text-secondary, #a1a1aa);
  font-size: 1.05rem;
  line-height: 1.55;
}

.about-timeline__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 720px;
  position: relative;
}

.about-timeline__track::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(240, 138, 60, 0.55),
    rgba(255, 255, 255, 0.08)
  );
}

.about-step {
  position: relative;
  padding-left: 3rem;
}

.has-about-js .about-step:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

.has-about-js .about-step.is-visible {
  opacity: 1;
  transform: none;
  animation: about-step-shake 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-step__card {
  padding: 1.35rem 1.35rem 1.45rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-lg, 1.25rem);
  background: rgba(255, 255, 255, 0.03);
}

.about-step__index {
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--page-bg, #09090b);
  border: 1px solid rgba(240, 138, 60, 0.55);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange, #f08a3c);
  z-index: 1;
}

.about-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary, #fafafa);
  margin: 0 0 0.85rem;
}

.about-step__pills {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.about-step__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary, #a1a1aa);
}

.about-step__pill--place {
  border-color: rgba(94, 197, 255, 0.35);
  color: #8ed4f7;
}

.about-step__pill--theme {
  border-color: rgba(240, 138, 60, 0.4);
  color: #f3b07a;
}

.about-step__media {
  margin: 0 0 1rem;
}

.about-step__placeholder,
.about-step__media img,
.about-carousel__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.9rem;
  object-fit: cover;
}

.about-step__placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(240, 138, 60, 0.08)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.025) 10px,
      rgba(255, 255, 255, 0.025) 20px
    );
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: var(--text-muted, #71717a);
  font-size: 0.9rem;
  font-weight: 500;
}

.about-carousel {
  margin: 0 0 1rem;
}

.about-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
}

.about-carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.about-carousel__slide {
  display: none;
  margin: 0;
}

.about-carousel__slide.is-active {
  display: block;
  animation: about-carousel-fade 0.35s ease;
}

.about-carousel__slide img {
  border-radius: 0.9rem;
}

.about-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.about-carousel__btn {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary, #fafafa);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.about-carousel__btn:hover {
  border-color: rgba(240, 138, 60, 0.55);
  background: rgba(240, 138, 60, 0.12);
  color: var(--orange, #f08a3c);
}

.about-carousel__btn:focus-visible {
  outline: 2px solid var(--orange, #f08a3c);
  outline-offset: 2px;
}

.about-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.about-carousel__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.about-carousel__dot.is-active {
  background: var(--orange, #f08a3c);
  transform: scale(1.25);
}

.about-carousel__dot:focus-visible {
  outline: 2px solid var(--orange, #f08a3c);
  outline-offset: 2px;
}

@keyframes about-carousel-fade {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-carousel__slide.is-active {
    animation: none;
  }
}

.about-step__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary, #a1a1aa);
}

.about-step__text p {
  margin: 0 0 0.75rem;
}

.about-step__text p:last-child {
  margin-bottom: 0;
}

.about-step__text strong {
  color: var(--text-primary, #fafafa);
  font-weight: 600;
}

@keyframes about-step-shake {
  0% {
    opacity: 0;
    transform: translate3d(-10px, 24px, 0) rotate(-0.6deg);
  }
  35% {
    opacity: 1;
    transform: translate3d(7px, -2px, 0) rotate(0.55deg);
  }
  55% {
    transform: translate3d(-5px, 1px, 0) rotate(-0.35deg);
  }
  75% {
    transform: translate3d(3px, 0, 0) rotate(0.2deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-about-js .about-step:not(.is-visible),
  .has-about-js .about-step.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.about-cta {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(240, 138, 60, 0.12), transparent 60%),
    var(--page-bg, #09090b);
}

.about-cta__inner {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}

.about-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary, #fafafa);
  margin: 0 0 0.75rem;
}

.about-cta__lead {
  font-size: 1.05rem;
  color: var(--text-secondary, #a1a1aa);
  margin: 0 0 1.75rem;
}

.about-cta .hero-cta {
  justify-content: center;
}

@media (max-width: 900px) {
  .about-story__grid,
  .about-team__grid {
    grid-template-columns: 1fr;
  }

  .about-story__title,
  .about-team__title {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .about-cta .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .about-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
