/* Qui sommes-nous — équipe (maquette sombre teal) */
.founder-section {
  --founder-bg: #123049;
  --founder-yellow: #ffc72c;
  --founder-sky: #5bc6f0;
  --founder-white: #ffffff;
  --founder-muted: rgba(255, 255, 255, 0.92);

  position: relative;
  z-index: 21;
  width: 100%;
  background:
    linear-gradient(180deg, #163a56 0%, var(--founder-bg) 42%, #0e2638 100%);
  padding: 4rem max(1.5rem, env(safe-area-inset-left, 0px)) 5rem
    max(1.5rem, env(safe-area-inset-right, 0px));
  overflow: hidden;
}

@media (min-width: 768px) {
  .founder-section {
    padding: 5rem 2.5rem 6rem;
  }
}

@media (min-width: 1024px) {
  .founder-section {
    padding: 5.5rem 4rem 6.5rem;
  }
}

.founder-section__title {
  margin: 0 auto 2.75rem;
  max-width: 72rem;
  text-align: center;
  font-family: var(--font-display, "Audiowide", sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--founder-white);
}

.founder-section__inner {
  margin: 0 auto;
  display: grid;
  width: 100%;
  max-width: 72rem;
  align-items: center;
  gap: 2.75rem;
}

@media (min-width: 1024px) {
  .founder-section__inner {
    grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.15fr);
    gap: 4rem;
  }
}

.founder-section__visual {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.85rem;
}

@media (min-width: 1024px) {
  .founder-section__visual {
    justify-content: flex-start;
    gap: 1rem;
  }
}

.founder-section__media {
  position: relative;
  width: min(100%, 20rem);
  aspect-ratio: 1 / 1;
  flex: 0 1 auto;
}

@media (min-width: 768px) {
  .founder-section__media {
    width: min(100%, 22rem);
  }
}

@media (min-width: 1024px) {
  .founder-section__media {
    width: min(100%, 24rem);
  }
}

.founder-section__accent {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.founder-section__accent--yellow {
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--founder-yellow);
}

.founder-section__accent--sky {
  right: -0.65rem;
  bottom: -0.65rem;
  width: 58%;
  height: 42%;
  background: var(--founder-sky);
}

@media (min-width: 768px) {
  .founder-section__accent--yellow {
    top: -0.75rem;
    left: -0.75rem;
    width: 4.25rem;
    height: 4.25rem;
  }

  .founder-section__accent--sky {
    right: -1.15rem;
    bottom: -1.15rem;
    width: 62%;
    height: 44%;
  }
}

.founder-section__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d2433;
}

.founder-section__photo--placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
}

.founder-section__photo[hidden],
.founder-section__photo--placeholder[hidden] {
  display: none !important;
}

.founder-section__rail {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding-top: 0.35rem;
}

.founder-section__rail-btn {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.2rem;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.founder-section__rail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.founder-section__rail-btn.is-active {
  border-color: var(--founder-yellow);
  box-shadow: 0 0 0 1px var(--founder-yellow);
}

.founder-section__rail-btn:focus-visible {
  outline: 2px solid var(--founder-sky);
  outline-offset: 2px;
}

.founder-section__rail-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-section__rail-icon {
  display: grid;
  place-items: center;
  color: #111827;
}

.founder-section__panels {
  min-width: 0;
}

.founder-section__content {
  color: var(--founder-white);
  max-width: 36rem;
}

.founder-section__content[hidden] {
  display: none !important;
}

.founder-section__name {
  margin: 0;
  font-family: var(--font-display, "Audiowide", sans-serif);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--founder-yellow);
}

.founder-section__role {
  margin: 0.85rem 0 0;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--founder-white);
}

.founder-section__bio {
  margin-top: 1.75rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--founder-muted);
  text-align: justify;
}

.founder-section__bio :is(p, ul, ol) {
  margin: 0 0 1rem;
}

.founder-section__bio a {
  color: var(--founder-yellow);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.founder-section__cta {
  margin-top: 1.75rem;
}

.founder-section__mail,
.founder-section__cta .button-wrapper a,
.founder-section__cta .button-wrapper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px !important;
  border: 2px solid var(--founder-yellow) !important;
  background: transparent !important;
  color: var(--founder-yellow) !important;
  box-shadow: none !important;
  padding: 0.7rem 1.7rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.founder-section__mail:hover,
.founder-section__cta .button-wrapper a:hover,
.founder-section__cta .button-wrapper button:hover {
  background: var(--founder-yellow) !important;
  color: var(--founder-bg) !important;
}

.founder-section__cta .button-wrapper {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .founder-section__visual {
    flex-direction: column;
    align-items: center;
  }

  .founder-section__rail {
    flex-direction: row;
    justify-content: center;
    padding-top: 0;
  }
}
