@font-face {
  font-family: 'Everett Agence';
  src: url('/assets/fonts/everett-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
:root:has([data-agency]) { scroll-padding-top: 0; }
.hb-agency {
  --agency-bubble: color-mix(in srgb, var(--hb-color-lime) 42%, var(--hb-color-paper));
  --agency-vh: 100svh;
  background: var(--hb-color-paper);
  color: var(--hb-color-ink);
}
.hb-agency h1,.hb-agency h2,.hb-agency p,.hb-agency ol,.hb-agency ul,.hb-agency blockquote { margin: 0; }
.hb-agency ol,.hb-agency ul { list-style: none; padding: 0; }
.hb-agency h1,.hb-agency h2 { font-family: var(--hb-font-heading); font-weight: 500; letter-spacing: -.055em; }
.hb-agency__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hb-agency__line>span { display: block; }
.hb-agency__journey { position: relative; }
.hb-agency__stage { position: relative; padding: 150px 5vw 70px; }
.hb-agency__breadcrumb { margin-bottom: 30px; }
.hb-agency .hb-breadcrumb { color: var(--hb-color-ink); font: 400 12px/1.5 var(--hb-font-body); }
.hb-agency__headline { color: var(--hb-color-forest); font-size: min(16vw,27vh); line-height: .92; text-align: center; text-transform: uppercase; }
.hb-agency__headline>.hb-agency__line { white-space: nowrap; }
.hb-agency__headline>.hb-agency__line:nth-child(2) { font-size: min(13.4vw,24vh); }
.hb-agency__headline-mark { margin-inline-start: .12em; }
.hb-agency__headline-mark svg { display: inline-block; width: .57em; height: .57em; vertical-align: .015em; fill: currentColor; }
.hb-agency__story-heading { margin-block: 70px 35px; }
.hb-agency__story-heading h2 { font-size: 6vw; line-height: .9; }
.hb-agency__story-heading .hb-agency__line { padding-bottom: .18em; margin-bottom: -.18em; }
.hb-agency__story-heading>p { max-width: 360px; margin-top: 28px; font: 400 18px/1.35 var(--hb-font-body); }
.hb-agency__gallery { display: contents; }
.hb-agency__gallery-bar, .hb-agency__quote-role { display: none; }
.hb-agency__portraits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.hb-agency__portrait { min-width: 0; }
.hb-agency__print {
  aspect-ratio: 820 / 1080;
  padding: 5% 5% 9%;
  background: #f6f7f0;
}
.hb-agency__print img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hb-agency__portrait--mascot img { background: var(--hb-color-pine); object-position: 50% 60%; }
.hb-agency__speech { margin-top: 35px; }
.hb-agency__quotes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.hb-agency__quotes li { padding: 25px; background: var(--agency-bubble); border-radius: 24px; }
.hb-agency__quotes blockquote { font: 400 18px/1.3 var(--hb-font-body); }
.hb-agency__panels { position: relative; z-index: 2; background: var(--hb-color-forest); }
.hb-agency__panels-stage { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.hb-agency__studio-photo { position: relative; grid-area: 1/1; min-height: 650px; }
.hb-agency__studio-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-agency__studio-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 24 17 / .42), transparent 67%); }
.hb-agency__manifesto-title { position: absolute; z-index: 1; left: 5%; top: clamp(120px, 8.5vw, 200px); width: 40%; font-size: 5.3vw; line-height: .9; color: var(--hb-color-paper); }
.hb-agency__accent { color: var(--hb-color-lime); }
.hb-agency__ribbon { display: contents; }
.hb-agency__manifesto { grid-area: 1/2; position: relative; min-height: 650px; display: flex; align-items: center; padding: 120px 10% 145px; background: var(--hb-color-forest); color: var(--hb-color-paper); }
.hb-agency__manifesto>p { font: 500 clamp(20px,2vw,36px)/1.12 var(--hb-font-heading); letter-spacing: -.035em; }
.hb-agency__marquee { position: absolute; left: 0; right: 0; bottom: 40px; padding-block: 20px; border-block: 2px solid color-mix(in srgb, var(--hb-color-paper) 26%, transparent); overflow: hidden; font: 400 15px/1 var(--hb-font-body); text-transform: uppercase; }
.hb-agency__marquee>div { display: flex; width: max-content; animation: hb-agency-marquee 24s linear infinite; }
.hb-agency__marquee>div>span { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.hb-agency__marquee i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--hb-color-orange); }
.hb-agency__values {
  grid-area: 2/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 650px;
  padding: clamp(105px, 13vh, 150px) 5vw clamp(24px, 5vh, 72px);
  background: var(--hb-color-paper);
}
.hb-agency__values-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1.4 var(--hb-font-body);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hb-agency__values-label svg { width: 17px; height: 17px; fill: var(--hb-color-orange); }
.hb-agency__values h2 {
  margin-block: clamp(14px, 2vh, 26px) clamp(20px, 4vh, 44px);
  font-size: clamp(42px, min(5vw, 9.5vh), 100px);
  line-height: .94;
}
.hb-agency__value-list {
  --values-rule: color-mix(in srgb, var(--hb-color-ink) 20%, transparent);
  border-bottom: 1px solid var(--values-rule);
}
.hb-agency__value-list>li {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(8px, 1vw, 21px);
  padding-block: clamp(10px, 2vh, 22px);
  border-top: 1px solid var(--values-rule);
}
.hb-agency__value-number { color: var(--hb-color-forest); font: 500 11px/1.4 var(--hb-font-body); }
.hb-agency__value-title { font: 500 clamp(16px, 1.7vw, 31px)/1.1 var(--hb-font-heading); letter-spacing: -.035em; }
.hb-agency__value-list p { color: color-mix(in srgb, var(--hb-color-ink) 75%, var(--hb-color-muted)); font: 400 clamp(12px, 1vw, 16px)/1.45 var(--hb-font-body); }
.hb-agency__jungle {
  position: relative;
  grid-area: 2/2;
  min-height: 650px;
  overflow: hidden;
  container-type: inline-size;
}
.hb-agency__jungle-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hb-agency__jungle-reveal { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hb-agency__jungle-mascot {
  position: absolute;
  top: 12%;
  right: 50cqw;
  width: min(52cqw, 40vh, 430px);
  aspect-ratio: 2 / 3;
  translate: 40% 0;
  mask-image: linear-gradient(transparent, #000 8%);
}
.hb-agency__jungle-mascot .hb-mascot__frames { filter: saturate(.86) brightness(.91) drop-shadow(0 10px 12px #10211945); }
/* Une seule scène continue : collage → pile et bulles, sans capturer la molette. */
.hb-agency.is-enhanced .hb-agency__journey { height: calc(10 * var(--agency-vh)); }
.hb-agency.is-enhanced .hb-agency__stage { position: sticky; top: 0; height: var(--agency-vh); padding: 0; overflow: hidden; isolation: isolate; }
.hb-agency.is-enhanced .hb-agency__letter { display: inline-block; }
.hb-agency.is-enhanced .hb-agency__letter--foreground { position: relative; z-index: 21; }
.hb-agency.is-enhanced .hb-agency__letter--between-portraits { position: relative; z-index: 13; }
.hb-agency.is-enhanced .hb-agency__story-heading .hb-agency__letter { transform: translateY(115%); }
.hb-agency.is-enhanced .hb-agency__portraits { position: absolute; inset: 0; display: block; pointer-events: none; transform-origin: 50% calc(50% + 1.5vw); }
.hb-agency.is-enhanced .hb-agency__portrait { position: absolute; left: 50%; top: calc(50% + 1.5vw); width: min(16vw,46vh); transform: translate(-50%,-50%); }
.hb-agency.is-enhanced .hb-agency__story-heading { position: absolute; left: 5%; top: 40%; width: 30%; margin: 0; }
.hb-agency.is-enhanced .hb-agency__story-heading>p { font-size: clamp(15px,1.45vw,22px); line-height: 1.3; }
.hb-agency.is-enhanced .hb-agency__speech { position: absolute; z-index: 22; top: 52%; left: 67%; width: 18%; margin: 0; transform: translateY(-50%); }
.hb-agency.is-enhanced .hb-agency__speech::before,.hb-agency.is-enhanced .hb-agency__speech::after { content: ''; position: absolute; background: var(--agency-bubble); border-radius: 50%; }
.hb-agency.is-enhanced .hb-agency__speech::before { width: 3vw; height: 3vw; bottom: -1vw; left: -1vw; transform: scale(var(--speech-dot-large, 0)); }
.hb-agency.is-enhanced .hb-agency__speech::after { width: 1vw; height: 1vw; bottom: -2.4vw; left: -2vw; transform: scale(var(--speech-dot-small, 0)); }
.hb-agency.is-enhanced .hb-agency__quotes { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: 0; border-radius: 2vw; background: var(--agency-bubble); }
.hb-agency.is-enhanced .hb-agency__quotes>li { grid-area: 1/1; align-self: start; padding: 2vw 1.8vw; background: none; }
.hb-agency.is-enhanced .hb-agency__quotes blockquote { margin-top: calc(var(--quote-offset, 0) * 1lh); font-size: clamp(14px,1.25vw,20px); line-height: 1.3; }
@media (min-width:761px) {
  .hb-agency .hb-agency__headline { font-family: 'Everett Agence', var(--hb-font-heading); }
  .hb-agency.is-enhanced .hb-agency__panels { height: calc(4 * var(--agency-vh)); margin-top: calc(-1 * var(--agency-vh)); }
  .hb-agency.is-enhanced .hb-agency__panels-stage { position: sticky; top: 0; display: block; height: var(--agency-vh); overflow: hidden; isolation: isolate; }
  .hb-agency.is-enhanced .hb-agency__studio-photo { position: absolute; inset: 0 50% 0 0; min-height: 0; z-index: -1; }
  .hb-agency.is-enhanced .hb-agency__jungle { position: absolute; inset: 0 0 0 50%; min-height: 0; z-index: -1; }
  .hb-agency.is-enhanced .hb-agency__jungle-reveal { left: calc((1 - var(--jungle-reveal, 0)) * 100%); }
  .hb-agency.is-enhanced .hb-agency__ribbon { position: absolute; z-index: 2; left: 50%; top: 0; width: 100%; height: 100%; display: flex; }
  .hb-agency.is-enhanced .hb-agency__manifesto,.hb-agency.is-enhanced .hb-agency__values { width: 50%; height: 100%; min-height: 0; flex: none; }
  .hb-agency.is-enhanced .hb-agency__manifesto { padding: 100px 10% 130px; }
}
@media (min-width:761px) and (min-height:580px) and (prefers-reduced-motion: no-preference) {
  /* Le titre occupe les mêmes lignes avant et après le démarrage du script. */
  .hb-agency__stage { padding-top: var(--agency-vh); }
  .hb-agency__breadcrumb { position: absolute; z-index: 23; left: 22vw; top: 107px; margin: 0; }
  .hb-agency__headline {
    position: absolute;
    inset: 105px 5vw auto;
    height: calc(var(--agency-vh) - 130px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
  }
  .hb-agency__headline .hb-agency__letter { display: inline-block; }
}
@media (max-width:760px) {
  .hb-agency__journey {
    --agency-light-rule: color-mix(in srgb, var(--hb-color-paper) 24%, transparent);
    --agency-copy: color-mix(in srgb, var(--hb-color-paper) 81%, var(--hb-color-forest));
    background: var(--hb-color-forest);
    color: var(--hb-color-paper);
  }
  .hb-agency__stage { padding: 108px var(--hb-gutter-mobile) 44px; }
  .hb-agency__breadcrumb { margin-bottom: 24px; }
  .hb-agency .hb-agency__breadcrumb .hb-breadcrumb,
  .hb-agency .hb-agency__breadcrumb [aria-current] { color: var(--agency-copy); }
  .hb-agency__headline {
    color: var(--hb-color-paper);
    font-size: clamp(var(--hb-font-size-page-h1), 12vw, 62px);
    line-height: .98;
    text-align: left;
  }
  .hb-agency__headline>.hb-agency__line:nth-child(2) { font-size: inherit; }
  .hb-agency__headline>.hb-agency__line:last-child { color: var(--hb-color-lime); }
  .hb-agency__gallery {
    display: block;
    margin: 24px calc(-1 * var(--hb-gutter-mobile)) 0;
  }
  .hb-agency .hb-agency__portraits {
    display: flex;
    gap: 10px;
    padding-inline: var(--hb-gutter-mobile);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--hb-gutter-mobile);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .hb-agency__portrait { flex: 0 0 min(440px, calc(100% - 42px)); scroll-snap-align: start; }
  .hb-agency__portrait:last-child { scroll-snap-align: end; }
  .hb-agency__print {
    aspect-ratio: 1.12;
    padding: 0;
    background: var(--hb-color-pine);
    border-radius: var(--hb-radius-card);
    overflow: hidden;
  }
  .hb-agency__print img, .hb-agency__portrait--mascot img { object-position: 50% 22%; }
  .hb-agency__gallery-bar:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px var(--hb-gutter-mobile) 0;
  }
  .hb-agency__gallery-label { color: var(--hb-color-lime); font: 500 18px/1.15 var(--hb-font-heading); letter-spacing: -.025em; }
  .hb-agency__gallery-controls { display: flex; gap: 8px; }
  .hb-agency__gallery-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--agency-light-rule);
    border-radius: 50%;
    color: var(--hb-color-paper);
  }
  .hb-agency__gallery-controls button:last-child:not(:disabled) { background: var(--hb-color-paper); color: var(--hb-color-forest); }
  .hb-agency__gallery-controls button:disabled { opacity: .42; }
  .hb-agency__gallery-controls svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .hb-agency__gallery-controls button:first-child svg { rotate: 180deg; }
  .hb-agency__story { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--agency-light-rule); }
  .hb-agency__story-heading { margin: 0; }
  .hb-agency__story-heading h2 { font-size: var(--hb-font-size-page-h2); line-height: 1.08; }
  .hb-agency__story-heading .hb-agency__line, .hb-agency__story-heading .hb-agency__line>span { display: inline; padding: 0; margin: 0; }
  .hb-agency__story-heading>p { max-width: 52ch; margin-top: 12px; color: var(--agency-copy); font-size: 15px; line-height: 1.6; }
  .hb-agency__speech { margin-top: 20px; }
  .hb-agency__quotes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hb-agency__quotes li { padding: 0 0 0 14px; background: none; border-radius: 0; border-left: 2px solid var(--hb-color-orange); }
  .hb-agency .hb-agency__quote-role { display: block; margin-bottom: 5px; font: 500 14px/1.35 var(--hb-font-heading); color: var(--hb-color-lime); }
  .hb-agency__quotes blockquote { max-width: 52ch; font-size: 15px; line-height: 1.6; }
  .hb-agency.is-portrait-gallery .hb-agency__quotes li { grid-area: 1 / 1; visibility: hidden; }
  .hb-agency.is-portrait-gallery .hb-agency__quotes li[data-agency-active] { visibility: visible; }
  .hb-agency.is-portrait-gallery .hb-agency__quote-role { display: none; }
  .hb-agency__panels { padding: 28px var(--hb-gutter-mobile) 40px; background: var(--hb-color-paper); }
  .hb-agency__panels-stage { grid-template-columns: minmax(0, 1fr); }
  .hb-agency__studio-photo { min-height: 0; aspect-ratio: 5 / 4; max-height: 62svh; border-radius: var(--hb-radius-card) var(--hb-radius-card) 0 0; overflow: hidden; }
  .hb-agency__studio-photo::after { background: linear-gradient(0deg, #102119da, transparent 70%); }
  .hb-agency__manifesto-title {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    align-self: end;
    width: auto;
    padding: 0 20px 20px;
    font-size: var(--hb-font-size-page-h2);
    line-height: 1;
  }
  .hb-agency__manifesto { grid-area: 2 / 1; min-height: 0; padding: 24px 20px 70px; border-radius: 0 0 var(--hb-radius-card) var(--hb-radius-card); }
  .hb-agency__manifesto>p { max-width: 54ch; font: 400 15px/1.65 var(--hb-font-body); letter-spacing: normal; }
  .hb-agency__manifesto>p>span { display: block; }
  .hb-agency__manifesto>p>span+span { margin-top: 12px; }
  .hb-agency__marquee { bottom: 14px; padding-block: 13px; border-width: 1px; font-size: 10px; }
  .hb-agency__values { grid-area: 3 / 1; min-height: 0; padding: 40px 0 24px; }
  .hb-agency__values h2 { font-size: var(--hb-font-size-page-h2); }
  .hb-agency__value-list>li { grid-template-columns: 2ch minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding-block: 13px; }
  .hb-agency__value-title { font-size: 20px; }
  .hb-agency__value-list p { grid-column: 2; font-size: var(--hb-font-size-text-sm); }
  .hb-agency__jungle { grid-area: 4 / 1; min-height: 0; aspect-ratio: 1; border-radius: var(--hb-radius-card); }
}
@media (prefers-reduced-motion:reduce) { .hb-agency *, .hb-agency *::before,.hb-agency *::after { animation: none !important; transition: none !important; } }
@keyframes hb-agency-marquee { to { transform: translateX(-50%); } }
