/* =========================================================
   BLOCK — Notre histoire
========================================================= */

.notre-histoire{
  width: 100%;
  padding: 60px 0 40px;
  background: #fff;
  overflow: hidden;
}

.notre-histoire__container{
  max-width: var(--layout-wide-size);
  margin: 0 auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  box-sizing: border-box;
}

.notre-histoire__timeline{
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* =========================================================
   ITEM
========================================================= */

.notre-histoire__item{
  position: relative;
  min-height: 320px;
}

.notre-histoire__item.is-left{
  padding-right: 265px;
}

.notre-histoire__item.is-right{
  padding-left: 265px;
}

/* =========================================================
   CARD
========================================================= */

.notre-histoire__card{
  position: relative;
  background: var(--color-blanc-fonce);
  min-height: 252px;
  padding: 72px 40px 38px;
  box-sizing: border-box;
}

.notre-histoire__item.is-left .notre-histoire__card{
  width: calc(100% - 140px);
  margin-right: auto;
}

.notre-histoire__item.is-right .notre-histoire__card{
  width: calc(100% - 140px);
  margin-left: auto;
}

/* =========================================================
   DATE
========================================================= */

.notre-histoire__date{
  position: absolute;
  font-size: clamp(3.5rem, 5vw, 5.5rem);
  line-height: 0.9;
  font-weight: var(--font-weight-medium);
  color: var(--color-bleu);
  z-index: 3;
  pointer-events: none;
}

.notre-histoire__item.is-left .notre-histoire__date{
  top: -44px;
  left: 40px;
}

.notre-histoire__item.is-right .notre-histoire__date{
  top: -44px;
  right: 40px;
}

/* =========================================================
   MEDIA
========================================================= */

.notre-histoire__media{
  position: absolute;
  top: 100px;
  transform: translateY(-50%);
  width: clamp(220px, 24vw, 320px);
  z-index: 2;
}

.notre-histoire__item.is-left .notre-histoire__media{
  right: 240px;
}

.notre-histoire__item.is-right .notre-histoire__media{
  left: 240px;
}

.notre-histoire__media-frame{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--color-blanc-fonce);
}

.notre-histoire__media-frame img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   TYPO
========================================================= */

.notre-histoire__title{
  margin: 0 0 18px;
  max-width: 620px;
  font-size: var(--font-size-xl);
  line-height: 1.05;
  font-weight: var(--font-weight-medium);
  color: var(--color-noir);
}

.notre-histoire__description,
.notre-histoire__description p{
  max-width: 620px;
  color: var(--color-noir);
  font-size: var(--font-size-s);
  line-height: 1.45;
}

.notre-histoire__description p{
  margin: 0 0 10px;
}

.notre-histoire__description p:last-child{
  margin-bottom: 0;
}

/* =========================================================
   ENCART
========================================================= */

.notre-histoire__encart{
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--color-bleu);
  color: var(--color-bleu);
  font-size: var(--font-size-l);
  line-height: 1.15;
  font-weight: var(--font-weight-medium);
  max-width: 520px;
}

/* =========================================================
   AJUSTEMENTS D'ALIGNEMENT
========================================================= */

.notre-histoire__item.is-left .notre-histoire__card{
  padding-left: 42px;
  padding-right: 230px;
}

.notre-histoire__item.is-right .notre-histoire__card{
  padding-left: 230px;
  padding-right: 42px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px){
  .notre-histoire{
    padding: 36px 0 20px;
  }

  .notre-histoire__timeline{
    gap: 40px;
  }

  .notre-histoire__item,
  .notre-histoire__item.is-left,
  .notre-histoire__item.is-right{
    padding-left: 0;
    padding-right: 0;
    min-height: auto;
  }

  .notre-histoire__media{
    position: relative;
    top: auto;
    left: auto !important;
    right: auto !important;
    transform: none;
    width: min(72vw, 290px);
    margin: 0 auto -36px;
    z-index: 2;
  }

  .notre-histoire__card,
  .notre-histoire__item.is-left .notre-histoire__card,
  .notre-histoire__item.is-right .notre-histoire__card{
    width: 100%;
    margin: 0;
    min-height: auto;
    padding: 68px 24px 28px;
  }

  .notre-histoire__date,
  .notre-histoire__item.is-left .notre-histoire__date,
  .notre-histoire__item.is-right .notre-histoire__date{
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-bottom: 12px;
    font-size: clamp(2.8rem, 16vw, 4.5rem);
    line-height: 0.9;
  }

  .notre-histoire__title{
    max-width: none;
    font-size: clamp(1.7rem, 8vw, 2.35rem);
    margin-bottom: 14px;
  }

  .notre-histoire__description,
  .notre-histoire__description p,
  .notre-histoire__encart{
    max-width: none;
  }

  .notre-histoire__encart{
    margin-top: 20px;
    font-size: clamp(1.1rem, 5.6vw, 1.5rem);
  }
}

@media (max-width: 980px){
  .notre-histoire__timeline{
    gap: 28px;
  }

  .notre-histoire__card{
    min-height: 230px;
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .notre-histoire__date{
    font-size: clamp(3rem, 8vw, 4.5rem);
  }

  .notre-histoire__title{
    font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  }

  .notre-histoire__encart{
    font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  }
}
