@import "../base/kodama.css";

/* intro */

.about-intro {
  margin-bottom: var(--section-pad);
}

.intro-text {
  font-size: 1.45rem;
  line-height: 1.45;
  font-weight: 300;
  margin: 1rem 0;
}

.intro-text strong {
  font-weight: 500;
}

.intro-text strong span {
  display: inline-block;
  background-color: var(--light);
  position: absolute;
  bottom: 0;
  left: 0;
  height: 50%;
  width: 0;
  z-index: -1;

}

/* infos supp */

.about-details {
  width: 800px;
  max-width: 100%;
  margin: 0 auto var(--section-pad);
}

/* cv */

.cv {
  display: flex;
}

.cv-img {
  aspect-ratio: 1/1;
}

.cv-img img {
  object-position: top;
}

.cv > div {
  width: calc(50% - (var(--margin) * 2));
  margin: 0 var(--margin);
}

.cv-description {
  background-color: var(--light);
  padding: var(--section-pad) var(--container-pad);
  max-height: max-content;
}

.cv-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* articles */

.articles {
  margin-top: var(--section-pad);
}

/* swiper */

.swiper {
  overflow-x: hidden;
  padding: 5px 0;
}

.swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
}

.swiper-slide {
  flex: 1 0 auto;
}

.swiper-nav {
  display: flex;
  pointer-events: none;
  justify-content: space-between;
  --margin: 5px;
  margin: calc(-1 * var(--margin));
}

.swiper-nav > * {
  pointer-events: auto;
  transition: .5s;
  background: var(--primary);
  height: var(--dim);
  width: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  --stroke: var(--white);
  padding: 5px;
  margin: var(--margin);
}

.swiper-nav > *.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

.swiper-nav > *:active {
  transform: scale(.9)
}

.swiper-nav .bn-icon .icon {
  transform: none;
  --stroke-width: 1.5;
  height: var(--dim);
  width: var(--dim);
}

/* Les amis de Kodama */

.amis {
  display: flex;
  width: 800px;
  max-width: 100%;
  align-items: center;
  margin: var(--section-pad) auto 0;
}

.amis .title {
  width: 50%;
  line-height: 1.2;
  --gutter: 30px;
  text-align: right;
  padding-right: calc(var(--gutter) * 2);
  margin-right: calc(var(--gutter) * 2);
  border-right: 2px var(--grey) solid;
}

.amis-list {
  display: flex;
  width: 50%;
  margin: calc(-1 * var(--gutter));
}

.ami-item {
  width: 86px;
  aspect-ratio: 1/1;
  margin: 0 var(--gutter);
}

.ami-item a:hover {
  transform: translateY(-5%);
}

.ami-item a {
  display: block;
  height: 100%;
  width: 100%;
}

/* Kodama */

.main .kodama {
  opacity: 0;
  z-index: -1;
  transition: .4s ease-in-out;
}

.kodama .head {
  box-shadow: 0 0 65px 10px rgba(250, 250, 250, 0.4);
}

.kodama-2 {
  right: 0;
  bottom: 0;
  width: 75px;
}

.kodama-3 {
  bottom: 28%;
  left: 5px;
  width: 80px;
  transform: scaleX(-1);
}

.kodama-5 {
  right: 0;
  top: -60px;
  width: 70px;
}


@media screen and (max-width: 900px) {
  .team-item {
    margin: calc(-1 * var(--margin));
  }

  .team-jo {
    position: relative;
    margin-top: var(--margin);
  }

  .team-jo img {
    object-position: left;
  }

  .team-louise img {
    object-position: right;
  }

  .team-img {
    margin: var(--margin);
    width: calc(50% - (var(--margin) * 2));
  }

  .team-cv {
    opacity: 1;
  }

  .close-bn,
  .bn-cv {
    display: none;
  }

  .kodama-3 {
    display: none;
  }

  .kodama-5 {
    top: -50px;
  }
}

@media screen and (max-width: 700px) {
  .intro-text {
    font-size: 1.4rem;
  }

  .cv {
    flex-direction: column;
  }

  .cv > div {
    width: calc(100% - (var(--margin) * 2));
    margin: var(--margin);
  }
}

@media screen and (max-width: 550px) {

  .team-item {
    flex-wrap: wrap;
  }

  .team-img {
    width: 100%;
    aspect-ratio: 16/10;
  }

  .team-cv {
    width: 100%;
  }

  .team-jo .team-img {
    object-position: top;
    order: 1;
  }

  .team-jo img {
    object-position: top;
    order: 1;
  }

  .team-jo .team-cv {
    order: 2;
  }

  .amis {
    flex-direction: column;
  }

  .amis .title {
    width: 100%;
    text-align: center;
    margin-bottom: var(--gutter);
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .amis .title br {
    display: none;
  }

  .amis-list {
    width: 100%;
    justify-content: center;
  }
}




