/* Section équipe et partenaires */
.index-page #team {
  position: relative;
  isolation: isolate;
  background: transparent !important;
}

.index-page #team::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 22%;
  right: -14%;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  background: rgba(17, 153, 238, 0.045);
  filter: blur(100px);
  pointer-events: none;
}

.team-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-bottom: 44px;
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid rgba(54, 142, 205, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 10%, rgba(17, 153, 238, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(7, 26, 50, 0.74), rgba(3, 13, 32, 0.84));
}

.team-intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: #1199ee;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-intro-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: #1199ee;
}

.team-intro h3 {
  max-width: 670px;
  margin: 0 0 13px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.team-intro p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.96rem;
  line-height: 1.75;
}

.team-intro-points {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-intro-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid rgba(54, 142, 205, 0.16);
  border-radius: 14px;
  background: rgba(2, 8, 20, 0.36);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 600;
}

.team-intro-points i {
  display: inline-flex;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(17, 153, 238, 0.1);
  color: #1199ee;
}

.team-grid {
  --bs-gutter-x: 22px;
  --bs-gutter-y: 22px;
}

.team-profile-card {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(54, 142, 205, 0.2);
  border-radius: 21px;
  background:
    radial-gradient(circle at 92% 8%, rgba(17, 153, 238, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(7, 26, 50, 0.98), rgba(3, 13, 32, 0.99));
  box-shadow: 0 18px 40px rgba(0, 2, 10, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-profile-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #1199ee;
  transition: background-color 0.25s ease;
}

.team-role-visual {
  position: relative;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  background: #020814;
}

.team-role-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 13, 32, 0.96), rgba(3, 13, 32, 0.04) 54%, transparent);
  pointer-events: none;
}

.team-role-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.team-role-label {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(71, 170, 235, 0.26);
  border-radius: 999px;
  background: rgba(3, 13, 32, 0.8);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.team-role-label i {
  color: #1199ee;
}

.team-profile-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0 22px 22px;
}

.team-identity {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 13px;
  align-items: end;
  margin-top: -34px;
  margin-bottom: 17px;
}

.team-company-logo {
  width: 72px;
  height: 72px;
  padding: 7px;
  border: 2px solid rgba(64, 155, 220, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 22%, rgba(17, 153, 238, 0.16), transparent 48%),
    #061629;
  object-fit: contain;
  box-shadow: 0 12px 26px rgba(0, 2, 10, 0.38);
}

.team-company-logo--site-creativ {
  padding: 6px;
  background:
    radial-gradient(circle at 35% 24%, rgba(17, 153, 238, 0.22), transparent 52%),
    linear-gradient(145deg, #071c36, #030d20);
}

.team-company-logo--light {
  padding: 4px;
  background: #f4f7fb;
}

.team-company-logo--cyber {
  padding: 4px;
  background: #000722;
}

.team-identity-copy {
  min-width: 0;
  padding-bottom: 4px;
}

.team-identity h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.25;
}

.team-identity p {
  margin: 0;
  color: #1199ee;
  font-size: 0.69rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.team-summary {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.87rem;
  line-height: 1.67;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.team-tags li {
  padding: 6px 9px;
  border: 1px solid rgba(54, 142, 205, 0.16);
  border-radius: 999px;
  background: rgba(17, 153, 238, 0.055);
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.68rem;
  font-weight: 650;
}

.team-desc-btn {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding: 11px 15px;
  border: 1px solid rgba(17, 153, 238, 0.64);
  border-radius: 12px;
  background: rgba(17, 153, 238, 0.08);
  color: #1199ee;
  font-size: 0.82rem;
  font-weight: 750;
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.team-desc-btn i {
  transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .team-profile-card:hover {
    transform: translateY(-7px);
    border-color: rgba(248, 177, 46, 0.4);
    box-shadow: 0 24px 48px rgba(0, 2, 10, 0.38);
  }

  .team-profile-card:hover::before {
    background: #f8b12e;
  }

  .team-profile-card:hover .team-role-visual > img {
    transform: scale(1.045);
  }

  .team-desc-btn:hover {
    transform: translateY(-2px);
    border-color: #f8b12e;
    background: #f8b12e;
    color: #fff;
  }

  .team-desc-btn:hover i {
    transform: translateX(3px);
  }
}

/* Fenêtre de profil */
body.team-modal-open {
  overflow: hidden;
}

.team-modal {
  position: fixed;
  z-index: 200000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 3, 12, 0.82);
  backdrop-filter: blur(12px);
}

.team-modal.active {
  display: flex;
}

.team-modal-content {
  position: relative;
  display: grid;
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  max-height: calc(100dvh - 48px);
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  padding: 0 !important;
  overflow: hidden auto;
  border: 1px solid rgba(54, 142, 205, 0.26) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 96% 4%, rgba(17, 153, 238, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(7, 26, 50, 0.99), rgba(3, 13, 32, 1)) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52) !important;
}

.team-modal-close {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(2, 8, 20, 0.74);
  color: #fff;
  font-size: 1.25rem;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.team-modal-close:hover {
  transform: rotate(4deg);
  border-color: rgba(248, 177, 46, 0.5);
  color: #f8b12e;
}

.team-modal-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #020814;
}

.team-modal-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 13, 32, 0.98), rgba(3, 13, 32, 0.04) 66%);
}

.team-modal-visual > img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
}

.team-modal-specialty {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  left: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
}

.team-modal-specialty::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 11px;
  border-radius: 99px;
  background: #1199ee;
}

.team-modal-main {
  min-width: 0;
  padding: clamp(28px, 4vw, 46px);
}

.team-modal-header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  padding-right: 40px;
}

.team-modal-company-logo {
  width: 64px;
  height: 64px;
  padding: 6px;
  border: 2px solid rgba(17, 153, 238, 0.34);
  border-radius: 17px;
  background:
    radial-gradient(circle at 35% 24%, rgba(17, 153, 238, 0.16), transparent 52%),
    #061629;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(0, 2, 10, 0.34);
}

.team-modal-company-logo.team-company-logo--light {
  padding: 4px;
  background: #f4f7fb;
}

.team-modal-company-logo.team-company-logo--cyber {
  padding: 4px;
  background: #000722;
}

.team-modal-eyebrow {
  margin: 0 0 4px;
  color: #1199ee;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team-modal-header h3 {
  margin: 0 0 3px;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.team-modal-header .modal-role {
  margin: 0;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.team-modal-lead {
  margin: 0 0 23px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.7;
}

.team-modal-details {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.team-modal-detail {
  padding: 15px 16px;
  border: 1px solid rgba(54, 142, 205, 0.16);
  border-radius: 14px;
  background: rgba(2, 8, 20, 0.34);
}

.team-modal-detail h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.team-modal-detail h4 i {
  color: #1199ee;
}

.team-modal-detail p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.84rem;
  line-height: 1.62;
}

.team-modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-modal-skills li {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(17, 153, 238, 0.09);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  font-weight: 650;
}

.team-modal-highlight {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 13px 15px;
  border-left: 3px solid #1199ee;
  border-radius: 0 12px 12px 0;
  background: rgba(17, 153, 238, 0.065);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  line-height: 1.6;
}

.team-modal-highlight i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #1199ee;
}

.team-modal-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid #1199ee;
  border-radius: 12px;
  background: #1199ee;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: 0 12px 24px rgba(17, 153, 238, 0.18);
}

.team-modal-cta:hover {
  border-color: #f8b12e;
  background: #f8b12e;
}

@media (max-width: 991px) {
  .team-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .team-modal-content {
    grid-template-columns: 1fr;
  }

  .team-modal-visual {
    min-height: 200px;
    max-height: 250px;
  }

  .team-modal-visual > img {
    min-height: 0;
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 575px) {
  .team-intro {
    margin-bottom: 28px;
    padding: 20px 17px;
    border-radius: 17px;
  }

  .team-intro h3 {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
    line-height: 1.26;
  }

  .team-intro p {
    font-size: 0.9rem;
    line-height: 1.66;
  }

  .team-profile-card {
    border-radius: 17px;
  }

  .team-role-visual {
    aspect-ratio: 16 / 8.8;
  }

  .team-profile-body {
    padding: 0 17px 18px;
  }

  .team-identity {
    grid-template-columns: 64px minmax(0, 1fr);
    margin-top: -30px;
  }

  .team-company-logo {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .team-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .team-modal-content {
    max-height: calc(100dvh - 20px);
    border-radius: 19px !important;
  }

  .team-modal-visual {
    max-height: 180px;
  }

  .team-modal-main {
    padding: 22px 17px 20px;
  }

  .team-modal-header {
    grid-template-columns: 56px minmax(0, 1fr);
    margin-bottom: 18px;
    padding-right: 34px;
  }

  .team-modal-company-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .team-modal-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-profile-card,
  .team-role-visual > img,
  .team-desc-btn,
  .team-desc-btn i,
  .team-modal-close {
    transition: none !important;
  }
}


/* Logos des societes sans fond */
.team-identity {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  margin-top: 18px;
}

.team-company-logo,
.team-company-logo--site-creativ,
.team-company-logo--light,
.team-company-logo--cyber {
  width: 104px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.team-modal-header {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.team-modal-company-logo,
.team-modal-company-logo.team-company-logo--light,
.team-modal-company-logo.team-company-logo--cyber,
.team-modal-company-logo.team-company-logo--site-creativ {
  width: 96px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

@media (max-width: 575px) {
  .team-identity {
    grid-template-columns: 84px minmax(0, 1fr);
    margin-top: 16px;
  }

  .team-company-logo,
  .team-company-logo--site-creativ,
  .team-company-logo--light,
  .team-company-logo--cyber {
    width: 84px;
    height: 62px;
  }

  .team-modal-header {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .team-modal-company-logo,
  .team-modal-company-logo.team-company-logo--light,
  .team-modal-company-logo.team-company-logo--cyber,
  .team-modal-company-logo.team-company-logo--site-creativ {
    width: 78px;
    height: 58px;
  }
}