/**
 * Color palette ordered by color field according to AFNOR X08-010.
 * Color shades are ordered from lightest (100) to darkest (200).
 * @source https://fr.wikipedia.org/wiki/Champ_chromatique#Recensement_des_champs_chromatiques
 * @source https://adobe.design/stories/design-for-scale/naming-colors-in-design-systems
 */
/**
 * Breakpoints
 */
/**
 * Layout sizes
 */
.about-us__surtitle, .key-figures__sub-title {
  font-size: 1.6rem;
  line-height: 1.25;
}

.about-us__title {
  font-size: 3rem;
  line-height: 1.25;
}

@media (min-width: 900px) {
  .about-us__title {
    font-size: 5rem;
  }
}

.about-us__surtitle {
  display: flex;
  align-items: center;
}
.about-us__surtitle::before {
  content: "";
  mask-image: url(../assets/svg/irena-monogram.svg);
  -webkit-mask-image: url(../assets/svg/irena-monogram.svg);
  background-color: #c3623f;
  display: inline-block;
  min-width: 1.2rem;
  min-height: 1.2rem;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
  vertical-align: middle;
  margin-right: 0.8rem;
}

.about-us {
  position: relative;
}
.about-us__red-line {
  content: "";
  position: absolute;
  width: 2px;
  top: -6rem;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #c3623f;
  z-index: -1;
  -webkit-clip-path: inset(0 0 100% 0);
          clip-path: inset(0 0 100% 0);
}

.about-us__wrapper {
  display: grid;
  grid-template-columns: auto;
  grid-template-areas: "images" "intro" "key-figures";
}

.about-us__images {
  grid-area: "images";
  display: grid;
}
.about-us__images img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}

.about-us__small-image {
  aspect-ratio: 1/1;
}

.about-us__big-image {
  aspect-ratio: 17/20;
  aspect-ratio: 10/8;
}

.about-us-intro {
  grid-area: "intro";
  margin-bottom: 6rem;
}
.about-us-intro > :not(:last-child) {
  margin-bottom: 4rem;
}

.about-us .about-us__surtitle {
  margin-bottom: 2rem;
}

.about-us__title {
  color: #c3623f;
}

.about-us__surtitle {
  text-transform: uppercase;
  font-weight: 600;
}
.about-us__surtitle::before {
  background-color: #003057;
}

.key-figures {
  grid-area: "key-figures";
}
.key-figures__slide {
  width: 50%;
  padding: 1.2rem;
  background-color: #ffffff;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.key-figures__slide:first-child::before, .key-figures__slide:nth-last-child(2)::before {
  content: "";
  position: absolute;
  background-color: #ffffff;
  right: -2px;
}
.key-figures__slide:first-child::before {
  bottom: -2px;
  width: calc(3rem + 2px);
  height: calc(3rem + 2px);
}
.key-figures__slide:nth-last-child(2)::before {
  top: -2px;
  width: calc(7rem + 2px);
  height: calc(5rem + 2px);
}
.key-figures__key {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1;
  display: none;
}
.key-figures__key--active {
  display: block;
}
.key-figures .key-figures__title {
  margin-bottom: 0;
  color: #c3623f;
}
.key-figures__contents {
  display: flex;
  overflow: hidden;
}
.key-figures__contents-wrapper {
  display: flex;
  transform: translateX(0);
  transition: transform 300ms ease-in-out;
  min-width: 100%;
}
.key-figures__content {
  min-width: 100%;
}
.key-figures__navigation {
  display: block;
  position: absolute;
  bottom: 0;
  right: 2rem;
}
.key-figures__prev {
  margin-right: 0.8rem;
}
.key-figures__prev, .key-figures__next {
  font-size: 3.2rem;
  cursor: pointer;
}
.key-figures__prev--disable, .key-figures__next--disable {
  pointer-events: none;
  opacity: 0.3;
}

.irena-monogram-bottom-left,
.irena-monogram-top-right {
  display: none;
}

@media screen and (max-width: 899px) {
  .about-us-intro,
  .key-figures {
    max-width: 156.4rem;
    width: 100%;
    padding-right: 4rem;
    padding-left: 4rem;
    margin-right: auto;
    margin-left: auto;
  }
  .about-us-intro {
    margin-bottom: 0;
    padding-bottom: 6rem;
    padding-top: 1.8rem;
    background-color: #ffffff;
  }
  .about-us__wrapper > svg {
    margin: 4.4rem auto;
    background-color: #ffffff;
    transform: translateX(-1px);
  }
  .about-us__images {
    grid-template-columns: repeat(2, minmax(1rem, 1fr));
    grid-template-rows: 4rem auto 4rem;
  }
  .about-us__big-image {
    grid-row: 2/4;
    width: calc(100% + 4rem);
    transform: translateX(-4rem);
  }
  .about-us__small-image {
    grid-row: 1/3;
    z-index: 1;
    width: calc(100% - 4rem);
    height: auto;
    justify-self: end;
  }
  .key-figures {
    background-color: #ffffff;
  }
  .key-figures .about-us__title {
    margin-bottom: 4rem;
  }
  .key-figures__slide {
    border: solid 2px #c3623f;
  }
  .key-figures__slide:nth-child(2) {
    margin-left: auto;
    width: calc(50% + 1.8rem);
    margin-top: -1.8rem;
    z-index: 2;
    position: relative;
  }
  .key-figures__slide:nth-last-child(2) {
    margin-top: -4rem;
    width: calc(50% + 4.2rem);
  }
  .key-figures__sliders {
    position: relative;
  }
  .key-figures__slide--border-top,
  .key-figures__slide--border-bottom {
    display: none;
  }
}
@media screen and (min-width: 900px) {
  .about-us__wrapper {
    grid-template-columns: 2fr 8.4rem 8.4rem 1fr 1fr;
    width: 100%;
  }
  .about-us__images {
    grid-column: 3/6;
    grid-row: 1/3;
    display: grid;
    grid-template-columns: 8.4rem 3fr 15rem 4fr;
    grid-template-rows: 0.5fr 15rem 1fr;
  }
  .about-us__small-image {
    aspect-ratio: unset;
    grid-column: 1/4;
    min-width: 100%;
    grid-row: 1/3;
  }
  .about-us__big-image {
    grid-column: 3/5;
    grid-row: 2/4;
    aspect-ratio: 1/1;
    position: relative;
  }
  .about-us__irena-monogram {
    grid-column: 2/4;
    grid-row: 2/3;
    width: 100%;
    height: -moz-fit-content;
    height: fit-content;
    background-color: #ffffff;
    transform: translateX(-2px);
  }
  .about-us__irena-monogram svg {
    width: 100%;
    height: auto;
  }
  .about-us__irena-monogram #irena-monogram-half-circle {
    stroke-dasharray: 167;
    stroke-dashoffset: 167;
  }
  .about-us-intro {
    grid-column: 1/2;
    grid-row: 1/2;
    margin-bottom: 0;
    max-width: 69.8rem;
    margin-left: auto;
    padding-left: 4rem;
  }
  .about-us__surtitle {
    font-size: 2rem;
  }
  .key-figures {
    grid-column: 1/6;
    grid-row: 2/4;
    padding-right: 4rem;
    padding-left: 4rem;
    margin-top: 24rem;
    margin-left: max((100% - 156.4rem) / 2, 0px);
    display: grid;
    grid-template-columns: repeat(5, minmax(1rem, 36rem)) 1fr;
    grid-template-rows: repeat(2, auto);
    grid-row-gap: 10rem;
    position: relative;
  }
  .key-figures::after {
    content: "";
    border-top: 2px solid #c3623f;
    border-right: 2px solid #c3623f;
    grid-column: 3/-1;
    position: absolute;
    bottom: -6rem;
    height: 18%;
    width: 100%;
    z-index: -1;
  }
  .key-figures__intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1/1;
    background-color: #003057;
    grid-column: 1/2;
    grid-row: 1/2;
    padding: 2rem;
  }
  .key-figures__intro .about-us__title {
    font-size: 3rem;
  }
  .key-figures__intro .about-us__surtitle {
    color: #ffffff;
  }
  .key-figures__intro .about-us__surtitle::before {
    background-color: #ffffff;
  }
  .key-figures__sliders {
    display: contents;
  }
  .key-figures__slide {
    grid-row: 2/3;
    width: 100%;
    padding-right: 25%;
    position: relative;
    z-index: 2;
  }
  .key-figures__slide--draw-line .key-figures__slide--border-top:before, .key-figures__slide--draw-line .key-figures__slide--border-top:after {
    opacity: 1;
    animation: open 0.4s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
    animation-direction: normal;
  }
  .key-figures__slide--draw-line .key-figures__slide--border-bottom:before, .key-figures__slide--draw-line .key-figures__slide--border-bottom:after {
    opacity: 1;
    animation: openB 0.4s;
    animation-delay: 0.4s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
    animation-direction: normal;
  }
  .key-figures__slide--border-top {
    width: 100%;
    position: absolute;
    top: 0;
    height: 100%;
    left: 0;
  }
  .key-figures__slide--border-top:before {
    position: absolute;
    content: "";
    height: 0;
    width: 0;
    display: block;
    opacity: 0;
    border-top: solid 2px #c3623f;
    border-left: solid 2px #c3623f;
    right: 50%;
  }
  .key-figures__slide--border-top:after {
    position: absolute;
    content: "";
    height: 0;
    width: 0;
    display: block;
    opacity: 0;
    border-top: solid 2px #c3623f;
    border-right: solid 2px #c3623f;
    left: 50%;
  }
  .key-figures__slide--border-bottom {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  .key-figures__slide--border-bottom:before {
    position: absolute;
    content: "";
    height: 0;
    width: 0;
    display: block;
    opacity: 0;
    border-bottom: solid 2px #c3623f;
    right: 0;
    height: 50%;
  }
  .key-figures__slide--border-bottom:after {
    position: absolute;
    content: "";
    height: 0;
    width: 0;
    display: block;
    opacity: 0;
    border-bottom: solid 2px #c3623f;
    left: 0;
  }
  .key-figures__slide:nth-child(1) {
    grid-column: 2/3;
  }
  .key-figures__slide:nth-child(1)::before {
    bottom: unset;
    top: -3px;
    right: -3px;
    width: calc(25% + 1.8rem + 3px);
    height: calc(25% + 1.8rem + 3px);
    z-index: 1;
  }
  .key-figures__slide:nth-child(2) {
    grid-column: 3/4;
    transform: translate(-25%, -75%);
  }
  .key-figures__slide:nth-child(2)::before {
    content: "";
    position: absolute;
    background-color: #ffffff;
    right: -3px;
    bottom: -3px;
    width: calc(25% + 1.8rem + 3px);
    height: calc(50% + 1.8rem + 3px);
    z-index: 1;
  }
  .key-figures__slide:nth-child(3) {
    grid-column: 4/5;
    transform: translate(-50%, -25%);
  }
  .key-figures__slide:nth-child(3)::before {
    content: unset;
  }
  .key-figures {
    font-size: 7.2rem;
  }
  .key-figures__navigation {
    grid-column: 1/2;
    grid-row: 1/2;
    color: #ffffff;
    right: 2rem;
    top: 2rem;
  }
  .irena-monogram-bottom-left {
    display: block;
    position: absolute;
    bottom: -6rem;
    left: 0;
  }
  .irena-monogram-top-right {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
  }
  @keyframes open {
    0% {
      width: 0;
      height: 0;
    }
    50% {
      width: 50%;
      height: 0;
    }
    100% {
      width: 50%;
      height: 100%;
    }
  }
  @keyframes openB {
    0% {
      width: 0px;
    }
    100% {
      width: 50%;
    }
  }
}