/* Participant modal */

.lta-modale {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 44, 84, .72);
  font-family: var(--lta-sans);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s;
}

.lta-modale[hidden] {
  display: none !important;
}

.lta-modale.is-open {
  opacity: 1;
  visibility: visible;
}

.lta-modale__carte {
  position: relative;
  box-sizing: border-box;
  width: min(800px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #F6E6D9;
  color: #0E2C54;
  box-shadow: 0 60px 120px -40px rgba(2, 20, 40, .6);
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 44px;
  padding: 56px 56px 56px 0;
  transform: translateY(18px) scale(.985);
  transition: transform .34s cubic-bezier(.2, .7, .2, 1);
}

.lta-modale.is-open .lta-modale__carte {
  transform: none;
}

.lta-modale__media {
  border-right: 1px solid rgba(23, 63, 119, .14);
}

.lta-modale__portrait {
  aspect-ratio: 1 / 1;
  background: #173F77;
  overflow: hidden;
}

.lta-modale__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.lta-modale__content {
  min-width: 0;
  padding: 0 0 0 24px;
}

.lta-modale__name {
  font-weight: 300;
  font-size: 44px;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  color: #173F77;
}

.lta-modale__role {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
}

.lta-modale__company-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lta-modale__logo {
  flex: none;
  display: block;
}

.lta-modale__logo img {
  height: 30px;
  width: auto;
  max-width: none;
  display: block;
  opacity: .9;
}

.lta-modale__rule {
  margin: 28px 0;
  height: 1px;
  background: rgba(23, 63, 119, .14);
}

.lta-modale__label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #173F77;
  margin-bottom: 12px;
}

.lta-modale__bio {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  text-wrap: pretty;
}

.lta-modale__fermer {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #0E2C54;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .lta-modale {
    padding: 44px 0 0;
    align-items: stretch;
  }

  .lta-modale__carte {
    width: 100%;
    max-height: none;
    height: 100%;
    box-shadow: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 0 32px;
  }

  /* Match REF computed render: first-child max-height clips the 1/1 portrait;
     last-child padding rule never applies (close button is last), so keep 0 0 0 24px. */
  .lta-modale__media {
    border-right: 0;
    max-height: 340px;
    overflow: hidden;
  }

  .lta-modale__portrait {
    aspect-ratio: 1 / 1;
    width: 100%;
  }

  .lta-modale__name {
    font-size: 32px;
  }

  .lta-modale__logo img {
    height: 24px;
  }

  .lta-modale__fermer {
    top: 12px;
    right: 12px;
    background: #F6E6D9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lta-modale,
  .lta-modale__carte {
    transition: none;
  }
}
