/* Hero V1 CSS extracted verbatim from the LIVE theme, except h1 -> .cz-brand-hero-headline
   and unused styles removed. No 27k-line legacy stylesheet is loaded. */
.cz-brand-hero {
  background: #fff;
  padding: 88px 0 0;
  overflow: hidden;
}

.cz-brand-hero-copy {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.cz-brand-hero .cz-brand-hero-headline {
  /* Preserve the V1 mobile font size; desktop H2 stays a single typographic system. */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1500px, calc(100vw - 32px));
  max-width: none;
  margin: 0;

  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 750;
  color: #101312;

  text-wrap: balance;
}

.cz-brand-hero-subtitle {
  max-width: 790px;
  margin: 32px auto 0;

  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.015em;
  font-weight: 450;
  color: #646866;

  text-wrap: balance;
}


/* CTA */

.cz-brand-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin-top: 30px;
}

.cz-brand-cta {
  min-height: 42px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 9px;

  font: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;

  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;

  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.cz-brand-cta:hover {
  transform: translateY(-1px);
}

.cz-brand-cta:active {
  transform: translateY(0);
}


/* CTA principal Cleanyz */

.cz-brand-cta--primary {
  background: #FB4D8D;
  color: #fff;

  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(251, 77, 141, 0.16);
}

.cz-brand-cta--primary:hover {
  background: #f34284;
}


/* CTA secondaire */

/* =========================================================
   HERO IMAGE
   ========================================================= */

.cz-brand-hero-media-shell {
  --cz-hero-side-gap: 0px;
  --cz-hero-radius: 0px;

  width: calc(100% - (var(--cz-hero-side-gap) * 2));
  margin:
    72px
    var(--cz-hero-side-gap)
    0;

  transition:
    width 450ms cubic-bezier(.22, 1, .36, 1),
    margin 450ms cubic-bezier(.22, 1, .36, 1);
}

.cz-brand-hero-media {
  position: relative;
  overflow: hidden;

  width: 100%;
  aspect-ratio: 2.65 / 1;

  border-radius: var(--cz-hero-radius);

  transition:
    border-radius 450ms cubic-bezier(.22, 1, .36, 1);

  will-change: border-radius;
}

.cz-brand-hero-media img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1.002);
}


/*
 * Effet Bolt :
 * dès que le visiteur descend dans l'image,
 * elle se détache légèrement des bords.
 */

.cz-brand-hero-media-shell.is-condensed {
  --cz-hero-side-gap: 24px;
  --cz-hero-radius: 13px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

  .cz-brand-hero {
    padding-top: 68px;
  }

  .cz-brand-hero-subtitle {
    max-width: 720px;
  }

  .cz-brand-hero-media-shell {
    margin-top: 58px;
  }

  .cz-brand-hero-media {
    aspect-ratio: 2.1 / 1;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .cz-brand-hero {
    padding-top: 42px;
  }

  .cz-brand-hero-copy {
    width: calc(100% - 32px);
  }

  .cz-brand-hero .cz-brand-hero-headline {
    /* Tested at 320, 375, 390 and 428 CSS px: longest rotating phrase
       fits in two lines, following three fixed lines. */
    font-size: clamp(32.5px, 10.2vw, 43px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 740;
  }

  .cz-brand-hero-subtitle {
    margin-top: 19px;

    font-size: 17px;
    line-height: 1.5;
  }

  .cz-brand-hero-actions {
    flex-direction: column;
    gap: 9px;

    margin-top: 22px;
  }

  .cz-brand-cta {
    width: 100%;
    max-width: 340px;

    min-height: 44px;
  }

  .cz-brand-hero-media-shell {
    margin-top: 44px;
  }

  .cz-brand-hero-media {
    /*
     * On ne massacre pas le panorama en le passant en portrait.
     * On lui donne simplement davantage de hauteur.
     */
    aspect-ratio: 1.45 / 1;
  }

  .cz-brand-hero-media img {
    /*
     * Les personnages étant à droite,
     * on conserve cette zone importante au crop mobile.
     */
    object-position: 65% center;
  }

  .cz-brand-hero-media-shell.is-condensed {
    --cz-hero-side-gap: 10px;
    --cz-hero-radius: 12px;
  }

}

.cz-brand-hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {

  .cz-brand-hero-media {
    aspect-ratio: 3 / 4;
  }

}


/* V2 typography hierarchy: visual H2; small, visible SEO H1. */
.cz-brand-hero .cz-brand-hero-eyebrow {
  max-width:880px;
  margin:0 auto 22px;
  color:#62666a;
  font-family:inherit;
  font-size:13px;
  line-height:1.35;
  font-weight:650;
  letter-spacing:.055em;
}
.cz-brand-hero .cz-brand-hero-headline {
  padding:0;
  text-align:center;
}
.cz-brand-hero-headline-fixed {
  display:block;
  color:#4B4B4B;
}
.cz-brand-hero-headline-fixed-desktop {display:block;}
.cz-brand-hero-headline-fixed-mobile {display:none;}
.cz-brand-hero-headline-fixed-line {
  display:block;
  white-space:nowrap;
}
/* All three desktop rows have the same baseline spacing (line-height:1.1).
   The rotating row shares that typography and does not add a top gap. */
.cz-brand-hero-headline-dynamic {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  position:relative;
  width:100%;
  min-height:1.16em;
  margin:0;
  padding:0 0 .05em;
  overflow:visible;
  color:#000000;
  line-height:1.1;
}
.cz-hero-rotating-phrase {
  grid-area:1 / 1;
  justify-self:center;
  align-self:start;
  display:block;
  position:relative;
  width:max-content;
  max-width:none;
  margin:0;
  opacity:0;
  visibility:hidden;
  white-space:nowrap;
  text-wrap:nowrap;
  font:inherit;
  line-height:1.1;
  color:#000000;
  transform:translateY(.10em);
  transition:opacity .22s ease,transform .22s ease;
}
.cz-hero-rotating-phrase.is-active {
  visibility:visible;
  opacity:1;
  transform:translateY(0);
}
@media (max-width:768px) {
  .cz-brand-hero-headline-fixed-desktop {display:none;}
  .cz-brand-hero-headline-fixed-mobile {
    display:block;
    white-space:normal;
    text-wrap:balance;
    overflow-wrap:normal;
    line-height:.98; /* Original V1 mobile title rhythm. */
  }
  .cz-brand-hero-headline-dynamic {
    margin-top:0;
    min-height:1.2em;
    padding:0 0 .08em;
    line-height:1.04;
  }
  .cz-hero-rotating-phrase {
    width:auto;
    max-width:100%;
    text-align:center;
    white-space:normal;
    text-wrap:balance;
    line-height:1.04;
  }
}
.cz-hero-sr-only {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
.cz-brand-hero-actions .cz-brand-cta--primary:visited {color:#fff;}
@media (max-width:768px) {
  .cz-brand-hero .cz-brand-hero-eyebrow {
    font-size:11px;
    margin-bottom:16px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .cz-hero-rotating-phrase {transition:none;transform:translate(-50%,0);}
}
