:root {
  --violine: #be1566;
  --fuschia: #e50055;
  --vertFeuille: rgb(118, 184, 42);
  --jauneOr: rgb(252, 190, 21);
  --lavande: rgb(167, 139, 192);
  --violet: rgb(112, 34, 131);
  --blanc: rgb(255, 255, 255);
  --noir: rgb(0, 0, 0);
}

.hidden {
  display: none;
}

body {
  font-family: "Barlow", sans-serif;
  width: 100%;
}

.containerCustom {
  width: 1366px;
  max-width: 90%;
  margin: auto;
}

h1 {
  color: var(--violine);
  font-weight: bolder;
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

h2 {
  color: var(--violine);
  font-weight: bolder;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

h3 {
  color: var(--noir);
  font-weight: bolder;
  margin-bottom: 10px;
}

p {
  text-indent: 20px;
  margin-bottom: 10px;
  line-height: 1.3rem;
}

.center {
  text-align: center;
}

/* header */

header {
  /* background: linear-gradient(0deg, var(--fuschia), var(--fuschia)); */
  height: 50vh;
  width: 100%;
  padding-top: 3vh;
  background-color: #be1566;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpath fill='%23be1566' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%23be1566' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%23be1566' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23be1566' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%23BE1566' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%23c61164' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23cd0d61' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23d5095d' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23dd0459' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%23E50055' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
  transition: all 0.3s ease-in-out;
}

header.sticky {
  height: 100px;
  position: sticky;
  top: 0px;
  transition: all 0.3s ease-in-out;
  z-index: 100;
}

header.sticky .containerCustom > img {
  width: 200px;
  transition: all 0.3s ease-in-out;
}

.home img {
  height: 25px;
}

header .containerCustom {
  display: flex;
  justify-content: space-between;
}

header > .containerCustom > a {
  width: 10%;
}

header .containerCustom > img {
  width: 50%;
  max-height: 23vh;
  transition: all 0.3s ease-in-out;
}

header nav {
  width: 40%;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

header nav ul li {
  margin: 0px 10px;
  text-align: center;
}

header nav ul li:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  color: var(--blanc);
}

header nav a {
  font-weight: lighter;
  color: var(--blanc);
  text-decoration: none;
}

header nav a:hover {
  text-decoration: underline;
}

header nav a.active {
  font-weight: bolder;
}

/* contenu */

.firstContainerCustom {
  border-radius: 30px;
  margin-top: -25vh;
  background-color: var(--blanc);
  padding: 50px;
  box-sizing: border-box;
  position: relative;
  transition: all 0.3s ease-in-out;
  z-index: 101;
}

.firstContainerCustom.sticky {
  margin-top: 20px;
  transition: all 0.3s ease-in-out;
  animation: removeZindex 0.1s ease-in 0.3s;
  animation-fill-mode: forwards;
}

@keyframes removeZindex {
  from {
    z-index: 101;
  }

  to {
    z-index: 0;
  }
}

.contenu {
  display: flex;
}

.contenu img {
  width: 25%;
  margin-right: 5%;
}

/* juxtapose */
.juxtapose {
  margin-bottom: 50px;
}

.juxtapose img {
  width: 100%;
}

.juxtapose h3 {
  background-color: var(--vertFeuille);
  color: var(--blanc);
  font-size: 2rem;
  padding: 10px 20px;
  border-radius: 100vmax;
  width: calc(50% - 50px);
  text-align: center;
  display: inline-block;
  position: absolute;
  bottom: 0px;
}

.juxtapose .imageDiff__right h3 {
  left: 50px;
}

.juxtapose .imageDiff__left h3 {
  right: 50px;
}

/* projects */

.projects {
  display: flex;
  justify-content: space-between;
  align-content: stretch;
  margin-bottom: 50px;
}

.projects h2 {
  text-align: center;
}

.project {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project:first-child {
  border-right: 2px solid var(--fuschia);
}

.project {
  width: 46%;
}

.project img {
  width: 100%;
}

/* form */
form {
  align-items: center;
  text-align: center;
}

.formVote {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

form#vote button {
  font-size: 1rem;
}

.formVote label {
  width: 30%;
}

label {
  margin-bottom: 20px;
  display: block;
}

.formVote h3 {
  text-align: center;
}

.formVote input {
  width: 100%;
  height: 40px;
}

.nl {
  text-align: left;
  display: flex;
  align-items: center;
  align-content: center;
}

.nl h3 {
  margin-bottom: 0px;
  margin-right: 10px;
}

input[type="email"],
input[type="text"],
input[type="tel"],
select,
textarea {
  border: 1px solid #bbb;
  box-sizing: border-box;
  height: 40px;
  padding: 0px 20px;
  width: 400px;
  max-width: 100%;
  font-size: 1rem;
}

textarea {
  height: 100px;
}

form fieldset {
  width: 70%;
  margin-left: 50px;
}

form button {
  width: 400px;
  max-width: 100%;
  height: 40px;
  border: 2px solid var(--violine);
  background: var(--violine);
  color: var(--blanc);
  font-weight: lighter;
  font-size: 1.4rem;
  transition: all 0.3s ease-in-out;
}

form button:hover {
  background: var(--blanc);
  color: var(--violine);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.choice {
  display: flex;
  vertical-align: middle;
}

.choice button {
  width: 45%;
}

.choice span {
  width: 10%;
  display: inline-block;
  text-align: center;
  line-height: 40px;
}

/* footer */
footer {
  color: var(--blanc);
  background-color: var(--vertFeuille);
  padding: 30px 0px;
  margin-top: 30px;
}

footer .containerCustom {
  display: flex;
  justify-content: space-around;
}

footer ul[title]::before {
  content: attr(title);
  font-weight: bolder;
  text-transform: uppercase;
}

footer ul li:first-child {
  margin-top: 10px;
}

footer ul li:not(:last-child) {
  margin-bottom: 10px;
}

footer a {
  text-decoration: none;
  color: var(--blanc);
}

/* share */
ul.share-buttons {
  list-style: none;
  padding: 0;
}

ul.share-buttons li {
  display: inline;
}

ul.share-buttons .sr-only {
  position: absolute;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.precision {
  background-color: #eee;
  padding: 30px;
  margin-bottom: 20px;
  display: inline-block;
}

.form-ok {
  text-align: center;
}

.roster {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: stretch;
}

.roster__persona {
  img {
    width: 100%;
  }
}

.category-color-violine {
  --categoryColor: var(--violine);
}
.category-color-fuschia {
  --categoryColor: var(--fuschia);
}
.category-color-vertFeuille {
  --categoryColor: var(--vertFeuille);
}
.category-color-jauneOr {
  --categoryColor: var(--jauneOr);
}
.category-color-lavande {
  --categoryColor: var(--lavande);
}
.category-color-violet {
  --categoryColor: var(--violet);
}

aux-persona {
  button {
    background: none;
    border: none;
    text-align: left;
    color: var(--noir);
  }
  img {
  }

  h3 {
    color: var(--vertFeuille);
    margin-bottom: 0.3rem;
    font-weight: bolder;
  }

  h4 {
    color: var(--violine);
    font-weight: normal;
    margin-bottom: 0.6rem;
  }

  p {
    text-indent: 0;
  }

  ul {
    li {
      display: inline-block;
      a {
        width: 1.6rem;
        height: 1.6rem;
        margin-right: 0.4rem;
        background-color: #bbb;
        display: block;
        transition: all ease-in-out 0.3s;

        &:hover,
        &:active {
          background-color: #000;
          cursor: pointer;
          transform: scale(1.2);
          transition: all ease-in-out 0.3s;
        }
      }

      .facebook {
        mask: url(/assets/socialNetwork/Icons8/facebook.svg) no-repeat center / contain;
      }

      .instagram {
        mask: url(/assets/socialNetwork/Icons8/instagram.svg) no-repeat center / contain;
      }

      .x {
        mask: url(/assets/socialNetwork/Icons8/x.svg) no-repeat center / contain;
      }
    }
  }
}

.roster__main {
  aux-persona {
    width: 100%;
    margin-bottom: 50px;

    .roster__persona {
      display: flex;
      gap: 30px;
      align-items: center;

      img {
        width: 40%;
      }

      h3 {
        font-size: 2rem;
      }
    }
  }
}

.roster__lead {
  aux-persona {
    width: 30%;
    margin-bottom: 30px;
    padding: 1%;
    transform: scale(1);
    transition: all ease-in-out 0.3s;

    img {
      margin-bottom: 10px;
    }

    h3 {
      font-size: 1.4rem;
    }

    p {
      display: block;
      width: 100%;
      text-overflow: ellipsis;
      overflow: hidden;
      max-height: 200px;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      transition: all ease-in-out 0.3s;
    }

    &:hover,
    &:active {
      transform: scale(1.05);
      z-index: 1010;
      background-color: #fff;
      transition: all ease-in-out 0.3s;
      p {
        text-overflow: ellipsis;
        overflow: hidden;
        max-height: 1000px;
        display: block;
        -webkit-line-clamp: auto;
        -webkit-box-orient: vertical;
        transition: all ease-in-out 0.3s;
      }
    }
  }
}

@supports (animation-timeline: view()) {
  @property --opacity {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
  }

  @property --top-min-opacity {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
  }

  @property --bottom-min-opacity {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
  }

  @property --is-top {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
  }

  @keyframes y-distribution {
    0% {
      --opacity: 0;
      --is-top: 1;
    }

    25% {
      --opacity: 1;
    }

    50% {
      --is-top: 1;
    }

    51% {
      --is-top: 0;
    }

    75% {
      --opacity: 1;
    }

    100% {
      --opacity: 0;
      --is-top: 0;
    }
  }

  @keyframes top-proximity {
    0% {
      --top-min-opacity: 0;
    }

    100% {
      --top-min-opacity: 1;
    }
  }

  @keyframes bottom-proximity {
    0% {
      --bottom-min-opacity: 1;
    }

    100% {
      --bottom-min-opacity: 0;
    }
  }

  aux-persona {
    --min-opacity: var(--is-top) * var(--top-min-opacity) + (1 - var(--is-top)) * var(--bottom-min-opacity);

    opacity: max(var(--opacity), var(--min-opacity));
    animation: y-distribution ease-in-out reverse both, top-proximity ease-in-out reverse both,
      bottom-proximity ease-in-out reverse both;
    animation-timeline: view(), scroll(), scroll();
    animation-range: normal, 0% 3rem, calc(100% - 3rem) 100%;
  }
}

.aux-persona {
  padding: 1rem;
  border-radius: 1rem;
}

.aux-persona + .aux-persona {
  margin-top: 1rem;
}

aux-block-numbers {
  border-bottom: 2px solid var(--categoryColor);
  border-right: 2px solid var(--categoryColor);
  color: var(--categoryColor);
  display: inline-block;
  padding-right: 1rem;
  padding-bottom: 1rem;
  li {
    margin-bottom: 0.8rem;
  }
  p {
    margin-bottom: 0;
    text-indent: 0;
  }
  .value {
    font-size: 1.4rem;
    strong {
      font-weight: bolder;
    }
  }

  .description {
    font-size: 1rem;
  }
}

aux-block-keys {
  border: 2px solid var(--categoryColor);
  display: inline-block;
  padding: 1rem;
  color: var(--categoryColor);
  ul {
    li:not(:last-child) {
      margin-bottom: 1.4rem;
      position: relative;
    }
    li:not(:last-child):after {
      content: "";
      position: absolute;
      left: 50%;
      top: calc(100% + 0.2rem);
      background-color: var(--categoryColor);
      height: 1rem;
      width: 0.1rem;
    }
  }
}

aux-block-text {
  display: inline-block;
  background-color: var(--categoryColor);
  color: var(--blanc);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  p {
    text-indent: 0;
  }
}

.aux-image {
  border: 2px solid var(--categoryColor);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.aux-title {
  color: var(--categoryColor);
  font-size: 1.4rem;
  font-weight: bolder;
  margin-bottom: 1rem;
}

.aux-sub-title {
  color: var(--categoryColor);
}
