/* =========================================================
   BLOCK — Header biseau
========================================================= */

.header-biseau{
  width: 100%;
  border-right: 20px solid #fff;

  --hb-pad: 0px;

  /* content du thème */
  --hb-content-size: var(--layout-wide-size, 1440px);

  /* alignement content */
  --hb-content-pad: clamp(
    var(--hb-pad),
    calc((100vw - var(--hb-content-size)) / 2 + var(--hb-pad)),
    999px
  );
}

.header-biseau__inner{
  position: relative;
  width: 100%;
  min-height: 260px;
  background: var(--color-blanc);
  overflow: hidden;
}

.header-biseau__container{
  width: 100%;
  margin: 0 auto;

  display: flex;
  align-items: stretch;
  justify-content: space-between;

  position: relative;
  height: 460px;
}

.header-biseau__surtitle{
  margin: 0 0 10px;
  font-size: var(--font-size-s);
  font-weight: 500;
  line-height: 1.2;
}
/* =========================================================
   CONTENT (SANS site-gutter par défaut)
========================================================= */

.header-biseau__content{
  flex: 0 0 55%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;

  padding-left: var(--hb-content-pad);
  padding-right: clamp(20px, 4vw, 64px);
}

.header-biseau__title{
  margin: 0;
  text-transform: uppercase;
  font-size: var(--font-size-xxl);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--page-accent);
  max-width: 90%;
}

/* bouton */
.header-biseau__content .btn_primary{
  width: auto;
  display: inline-flex;
}

/* =========================================================
   IMAGE full-bleed
========================================================= */

.header-biseau__media{
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;

  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.header-biseau__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* =========================================================
   BOTTOM (breadcrumb)
========================================================= */

.header-biseau__bottom{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;

  display: flex;
  justify-content: flex-start;
  align-items: flex-end;

  padding: 0 var(--hb-content-pad) 28px;
}

.header-biseau__bottom .breadcrumb{
  font-size: var(--font-size-xs, 12px);
  line-height: 1.2;
  color: var(--color-noir, #000);
}

/* =========================================================
   ANIMATION D'ENTRÉE — HEADER BISEAU
========================================================= */

@keyframes headerBiseauReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* état initial */
.header-biseau__surtitle,
.header-biseau__title,
.header-biseau__content .btn_primary,
.header-biseau__media,
.header-biseau__bottom .breadcrumb {
  opacity: 0;
  transform: translateY(18px);
}

/* cascade */
.header-biseau__surtitle {
  animation: headerBiseauReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.08s;
}

.header-biseau__title {
  animation: headerBiseauReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.18s;
}

.header-biseau__content .btn_primary {
  animation: headerBiseauReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.28s;
}

.header-biseau__media {
  animation: headerBiseauReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.22s;
}

.header-biseau__bottom .breadcrumb {
  animation: headerBiseauReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.38s;
}

/* accessibilité */
@media (prefers-reduced-motion: reduce) {
  .header-biseau__surtitle,
  .header-biseau__title,
  .header-biseau__content .btn_primary,
  .header-biseau__media,
  .header-biseau__bottom .breadcrumb {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =========================================================
   ⬇️ AJOUT DU SITE-GUTTER UNIQUEMENT < 1440px
========================================================= */

@media (max-width: 1470px){

  .header-biseau__content{
    padding-left: calc(var(--hb-content-pad) + var(--site-gutter));
    padding-right: calc(clamp(20px, 4vw, 64px) + var(--site-gutter));
  }

  .header-biseau__bottom{
    padding: 0 calc(var(--hb-content-pad) + var(--site-gutter)) 28px;
  }
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 860px){

  .header-biseau{
    border-right: 15px solid #fff;

    --hb-pad: 20px;
    --hb-content-pad: var(--hb-pad);
  }

  .header-biseau__container{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;

    padding: 0 0 30px 0;
    height: auto;
    min-height: unset;
  }

  .header-biseau__media{
    order: 1;
    width: calc(100% - 30px);
    flex: 0 0 auto;
    clip-path: none;
  }

  .header-biseau__media img{
    width: 100%;
    height: auto;
  }

  .header-biseau__content{
    order: 2;
    width: 100%;
    flex: 0 0 auto;

    gap: 16px;

    padding-left: calc(var(--hb-content-pad) + var(--site-gutter));
    padding-right: calc(var(--hb-pad) + var(--site-gutter));
  }

  .header-biseau__bottom{
    order: 3;
    position: static;
    width: 100%;
    padding: 0 calc(var(--hb-content-pad) + var(--site-gutter));
  }

  .header-biseau__inner .breadcrumb{
    position: absolute;
    top: 13px;
    right: 23px;

    transform: rotate(-90deg)!important;
    transform-origin: top right;

    text-align: right;
    white-space: nowrap;
    z-index: 5;
  }
}
