:root {
  --team-radius: 3px;
  scroll-behavior: smooth;
}

.space-between {
  justify-content: space-between;
}

.layout-row {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
  gap: 50px;
  flex-wrap: wrap;
}

.layout_col {
  flex-direction: column;
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: stretch;
  flex-grow: 1;
}
.col_1_1 {
  flex-basis: 100%;
}

.col_1_2 {
  flex-basis: calc(50% - 50px);
}

.col_1_3 {
  flex-basis: calc(33% - 100px);
}

.col_2_3 {
  flex-basis: calc(66% - 100px);
}

/* DETAILS PAGE */
.team-details-page {
  margin: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* max-width: 1400px; */
  padding: 0px
    calc(50% - (var(--layout-base-width) / 2) + var(--layout-base-left-margin));
}

.team-details-page .title-container {
  flex-direction: row;
  justify-content: space-between;
  filter: none;
  margin: 20px 0px;
}

.team-details-page .team-page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team-details-page .title-container .title-secondary {
  filter: none;
  color: var(--primary-color);
  white-space: normal;
  flex-grow: 1;
  text-align: right;
}
.team-details-page .back {
  font-size: 16px;
  background-color: #bbbbbb;
  color: white;
  border-radius: 3px;
  box-shadow: 0 0 3px 1px #6b6b6b14;
  text-align: center;
  padding: 5px 15px;
}
.team-details-page .title-container .title {
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.team-details-page .title-container .title-secondary .back:hover {
  background-color: #ec6225;
}

.team-details-page .team-picture-container {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
}

.team-details-page .team-picture {
  background-image: var(--picture-uri);
  aspect-ratio: var(--aspect-ratio);
  background-size: cover;
  background-position: center center;
  border-radius: 12px;
  max-height: var(--max-h);
  max-width: var(--max-w);
  min-width: 350px;
  filter: drop-shadow(3px 3px 4px #777);
  flex-basis: 100%;
}

.team-details-page .member-infos {
  z-index: 1;
}

.team-details-page h2 {
  writing-mode: vertical-lr;
  margin: 0px;
  font-size: 80px !important;
  padding: 20px 2px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 12px;
  text-shadow: 0 0 4px black;
  filter: drop-shadow(0px 0px 4px #cccccc);
  border: 1px solid #f4f4f4;
}

.team-page-members {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.team-page-member {
  max-height: var(--max-h);
  max-width: var(--max-w);
  min-width: 350px;
  min-height: 300px;
  /* flex-grow: 1; */
  flex-basis: calc(50% - 60px);
  aspect-ratio: var(--aspect-ratio);
  display: flex;
  align-items: flex-end;
  background-image: var(--picture-uri);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 12px;
  filter: drop-shadow(3px 3px 4px #777);
  overflow: hidden;
}
.team-page-member-infos {
  padding: 65px 15px 15px 15px;
  background: linear-gradient(#ffffff00 0%, #0404048f 41%, #252525 100%);
  color: white;
  width: 100%;
}
.team-page-member-infos .fa {
  width: 25px;
  margin-left: 5px;
  text-align: center;
}
.member-name {
  display: flex;
  font-weight: bold;
  font-size: 1.6em;
}

.team-page-description {
  padding: 13px 20px;
  border-left: 5px solid var(--primary-color);
  background-color: var(--white);
  min-width: 360px;
}

.header-3 {
  color: var(--secondary-color);
  font-size: 28px;
  margin-bottom: 10px;
}
.header-4 {
  font-size: 24px;
  margin-top: 0.5em;
  font-family: "playfair-display";
}
.main-sponsor-url {
  font-size: 16px;
  text-transform: lowercase;
  display: block;
  line-height: 14px;
  margin-top: -6px;
}
.main-sponsor fieldset {
  margin-top: 20px;
  margin-bottom: 40px;
}

.main-sponsor fieldset.active {
  max-width: 1024px;
  padding: 12px;
  border-style: solid;
  border-radius: 3px;
  margin: auto;
  border-color: #c2c2c2;
}

.main-sponsor fieldset.active legend {
  border: 1px solid #e9e9e9;
  border-radius: 3px;
  padding: 3px 13px;
  background-color: #fbfbfb;
  text-align: center;
}

.main-sponsor-details {
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: justify;
  display: flex;
  padding: 20px 40px;
}

.main-sponsor-logo {
  max-height: 280px;
  max-width: 280px;
  float: left;
  padding: 10px 14px;
  margin: 0px 20px 10px 0px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 0 8px 3px #0000000a;
}

@media screen and (max-width: 550px) {
  .main-sponsor-logo {
    float: none;
    display: flex;
  }
}

.sponsor-list {
  padding: 0px;
  margin-top: 2px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 20px;
  margin: auto;
  justify-content: space-evenly;
  max-width: 1024px;
}
.sponsor-list li {
  list-style: none;
  flex-basis: 100%;
  max-width: 40%;
}
.team-page-vehicule,
.to-follow-us {
  padding: 13px 0px;
}
.team-socials {
  margin-top: 1.5em;
}
.team-socials a {
  font-size: 40px;
}
/* LIST PAGE */
.category-anchors {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.category-anchors .title-container {
  margin: 0px;
  white-space: nowrap;
  padding: 10px 0px;
  transition: 200ms;
  display: flex;
}
.category-anchors .title-container .title {
  margin: 0px;
  white-space: nowrap;
  border-radius: 0px;
  background-color: white;
  transition: 200ms;
}

.category-anchors .title-container .title:hover {
  background-color: var(--primary-color);
  color: white;
}

.category-anchors .title-container:first-child .title {
  border-top-left-radius: var(--team-radius);
  border-bottom-left-radius: var(--team-radius);
}
.category-anchors .title-container:last-child .title {
  border-top-right-radius: var(--team-radius);
  border-bottom-right-radius: var(--team-radius);
}

.team-list-container {
  background-image: url("top-view-cropped.webp");
  background-position-y: bottom;
  background-position-x: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: contain;
  padding-bottom: 250px;
}

.team-list-column {
  width: 100%;
  max-width: 1000px;
  margin: auto;
}
.category {
  max-width: 700px;
  width: 100%;
  background-color: #ffffff00;
  padding-top: 100px;
  margin: auto;
}
.title-container {
  font-size: 28px;
  text-transform: uppercase;
  color: white;
  margin: 20px 12px;
  filter: drop-shadow(5px 5px 8px #00000055);
  display: flex;
  line-height: 40px;
}

.title-container.underlined {
  border-radius: var(--team-radius);
  border-bottom: solid 3px var(--primary-color);
  margin-top: 80px;
  filter: drop-shadow(5px 5px 2px #00000099);
}
.team-collection {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
  /* padding-left: 20px; */
  padding-right: 5px;
}
.team-container {
  display: flex;
  margin: 12px 15px;
  min-width: 220px;
  width: 100%;
  justify-content: flex-end;
  gap: 0px 8px;
  filter: drop-shadow(5px 5px 3px #00000099);
  flex-wrap: wrap;
  flex-direction: row;
  /* max-width: 834px; */
  transform: translateX(-100%);
  transition: 300ms;
}
@media (prefers-reduced-motion: reduce) {
  .team-container {
    transform: translateY(0%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .team-container.scroll-show {
    transform: translateY(0%);
  }
}
.team {
  gap: 6px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  flex-grow: 1;
  max-width: 100%;
}
.team-number {
  font-size: 32px;
  letter-spacing: -2px;
  background-color: var(--primary-color);
  aspect-ratio: 1;
  color: white;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  z-index: 1;
  width: 70px;
  line-height: 63px;
  padding-right: 2px;
  /* height: 70px; */
  border: 3px solid white;
  position: absolute;
  bottom: 0px;
  left: 5px;
  font-family: "exo-2";
  display: inline-flex;
}

.team-members {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: white;
  margin-left: 42px;
  padding-left: 38px;
  flex-wrap: wrap;
  border-radius: 0px var(--team-radius) var(--team-radius) 0px;
  flex-grow: 1;
  flex-direction: column;
}
.gazelle-solidaire {
  width: 65px;
  position: absolute;
  top: -25px;
  right: -84px;
  z-index: -1;
}
.team-details {
  align-items: center;
  background-color: white;
  padding: 15px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--team-radius);
  transition: 400ms ease;
  flex-grow: 0;
  display: flex;
}
.team-details.disabled {
  background-color: #b7b7b7;
  color: #767676;
  opacity: 0.8;
  cursor: default;
  font-style: italic;
}
.team-details:not(.disabled).team-details:hover {
  color: #ec6225;
  background-color: white;
}

.team-member {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-wrap: nowrap;
  flex-grow: 1;
  flex-basis: 50%;
}
.team-members .unskew {
  position: relative;
  width: calc(100% - 88px);
}
.title-container .title {
  background-color: var(--primary-color);
  padding: 12px 20px;
  border-left: var(--primary-color) 5px solid;
  margin-bottom: 0px;
}

.title-container .title-secondary {
  filter: drop-shadow(2px 4px 6px #000000f0);
  white-space: nowrap;
  padding: 12px 8px;
  margin-bottom: -6px;
  display: flex;
  align-items: center;
}

.team-details-page .title-container {
  filter: none;
}

.TeamDrapeau:after {
  margin-top: -10px;
  content: ".";
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 2px;
}
.TeamDrapeau {
  display: flex;
  align-items: center;
}
.TeamDrapeau:after {
  margin-top: -9px;
  content: ".";
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 3px;
}

@media screen and (max-width: 700px) {
  .col_1_2 {
    max-width: none;
    flex-basis: 100%;
  }
  .title-container .title {
    font-size: calc(3vw + 12px);
  }
  .title-container .title-secondary {
    font-size: calc(2vw + 12px);
  }

  .team-details-page {
    margin: 0px 5%;
  }
}

@media screen and (max-width: 500px) {
  .team-container {
    font-size: 17px;
  }
  .team-details-page {
    margin: 0px 10px;
  }
  .team-page-member {
    min-width: 100%;
  }
  .team-number {
    font-size: 26px;
    width: 57px;
    line-height: 52px;
    left: 5px;
  }
  .team-members {
    margin-left: 32px;
    padding-left: 32px;
  }
  .TeamDrapeau:after {
    content: none;
  }
}

