/* ==========================================================================
   HAZON — inner pages: Expertises · Notre histoire · Contact
   ========================================================================== */

/* ---------- Expertises ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 6vw, 44px); }
.chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: .9rem; text-decoration: none; color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s;
}
.chips a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.expertise { padding-block: clamp(64px, 14vw, 128px); border-top: 1px solid var(--rule); scroll-margin-top: var(--header-h); }
.expertise.on-navy, .expertise.on-white { border-top: 0; }
.expertise__grid { display: grid; gap: 28px; }
.expertise__num { display: inline-flex; align-items: center; gap: 12px; font: 500 .78rem/1 var(--f-display); letter-spacing: .2em; color: var(--fg); margin-bottom: 18px; }
.expertise__num::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.expertise__media { margin-top: 28px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky-soft); }
.expertise__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.expertise__media:hover img { transform: scale(1.03); }
.on-navy .expertise__media { box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .7); }
.expertise__hook { font: 600 clamp(1.2rem, 4.6vw, 1.6rem)/1.3 var(--f-display); letter-spacing: -.015em; margin-bottom: 18px; }
.expertise__body > p:not(.expertise__hook) { color: var(--fg-muted); max-width: 58ch; }
.expertise__sub { margin: 32px 0 14px; font: 500 .72rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted); }
.deliverables { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.deliverables li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); }
.deliverables li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 2px; background: var(--orange); }
@media (min-width: 1000px) {
  .expertise__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
  .expertise__head { position: sticky; top: calc(var(--header-h) + 40px); }
}

.beyond .label { margin-bottom: 22px; }
.beyond .lead { margin-top: 22px; }
.beyond__grid { list-style: none; margin: clamp(40px, 8vw, 64px) 0 0; padding: 0; display: grid; gap: 12px; }
.beyond__grid li { background: var(--white); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }
.beyond__img { width: calc(100% + 48px); max-width: none; margin: -24px -24px 8px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.beyond__grid li { overflow: hidden; }
.beyond__grid h3 { font: 600 1.12rem/1.25 var(--f-display); letter-spacing: -.01em; color: var(--navy); }
.beyond__grid p { color: var(--grey); font-size: .95rem; }
@media (min-width: 700px) { .beyond__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .beyond__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Notre histoire ---------- */

.story-why .label { margin-bottom: 26px; }
.story-why__grid { display: grid; gap: 36px; }
.story-why__text { display: grid; gap: 18px; color: var(--fg-muted); font-size: clamp(1rem, 3.6vw, 1.1rem); }
@media (min-width: 1000px) { .story-why__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

.timeline-section .label { margin-bottom: 22px; }
.timeline {
  --p: 0;
  position: relative; list-style: none; margin: clamp(44px, 9vw, 72px) 0 0; padding: 0 0 0 30px;
  display: grid; gap: clamp(36px, 8vw, 56px);
}
/* the rule fills with the reading progress */
.timeline::before, .timeline::after { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--navy); transform-origin: top; transform: scaleY(var(--p)); }
.timeline__item { position: relative; display: grid; gap: 8px; max-width: 56ch; }
.timeline__item::before {
  content: ""; position: absolute; left: -30px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--mist); border: 2px solid var(--line); z-index: 1;
  transition: background-color .4s, border-color .4s, transform .5s var(--ease);
}
.timeline__item.is-reached::before { background: var(--navy); border-color: var(--navy); transform: scale(1.15); }
.timeline__item--now.is-reached::before { background: var(--orange); border-color: var(--orange); }
.timeline__item time { font: 500 .78rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.timeline__item p { color: var(--grey); }
.timeline__item .link-arrow { margin-top: 6px; }
@media (min-width: 900px) {
  .timeline { padding-left: 0; grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .timeline::before, .timeline::after { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 2px; }
  .timeline::after { transform-origin: left; transform: scaleX(var(--p)); }
  .timeline__item { padding-top: 36px; }
  .timeline__item::before { left: 0; top: 0; }
}

.vm { display: grid; gap: 40px; }
.vm__item { display: grid; gap: 20px; padding-top: 28px; border-top: 2px solid var(--navy); }
.vm__text { font: 600 clamp(1.5rem, 6vw, 2.6rem)/1.15 var(--f-display); letter-spacing: -.03em; color: var(--navy); max-width: 20ch; }
@media (min-width: 900px) { .vm { grid-template-columns: 1fr 1fr; gap: 64px; } }

.values__grid { display: grid; gap: 36px; }
.values__head .label { margin-bottom: 22px; }
.values__head .h2 { max-width: 14ch; }
.values__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.value { padding: 24px 0 26px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.value__word {
  font: 700 clamp(2.4rem, 12vw, 5.6rem)/.95 var(--f-display); letter-spacing: -.045em;
  color: var(--line); transition: color .6s var(--ease);
}
.value p { color: var(--grey); max-width: 46ch; opacity: .45; transition: opacity .6s var(--ease); }
.value.is-active .value__word { color: var(--navy); }
.value.is-active p { opacity: 1; }
@media (min-width: 1000px) {
  .values__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .values__head { position: sticky; top: calc(var(--header-h) + 40px); }
}

.team .label { margin-bottom: 22px; }
.team .lead { margin-top: 22px; }
.team__grid { list-style: none; margin: clamp(40px, 8vw, 64px) 0 0; padding: 0; display: grid; }
.team__grid li { padding: 22px 0 24px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.team__grid h3 { font: 600 1.15rem/1.25 var(--f-display); }
.team__grid p { color: var(--fg-muted); }
.team__signature { margin-top: clamp(40px, 8vw, 64px); font: 600 clamp(1.2rem, 4.6vw, 1.7rem)/1.3 var(--f-display); letter-spacing: -.015em; max-width: 30ch; }
.team__signature::before { content: ""; display: block; width: 40px; height: 2px; background: var(--orange); margin-bottom: 18px; }
@media (min-width: 700px) { .team__grid { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) { .team__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Contact ---------- */

.contact-hero { padding-bottom: clamp(36px, 8vw, 64px); }
.contact-main { padding-bottom: clamp(80px, 14vw, 140px); }
.contact-main__grid { display: grid; gap: 40px; }
.brief-card { border-radius: 22px; padding: 28px 20px 26px; box-shadow: 0 30px 60px -40px rgba(10, 31, 51, .35); scroll-margin-top: calc(var(--header-h) + 16px); outline: none; }
@media (min-width: 560px) { .brief-card { padding: 40px 36px 36px; } }
.contact-side { display: grid; gap: 32px; align-content: start; }
.contact-block { display: grid; gap: 14px; }
.contact-block address { font-style: normal; color: var(--grey); line-height: 1.6; }
.contact-big { font: 600 clamp(1.4rem, 6vw, 2rem)/1.1 var(--f-display); letter-spacing: -.02em; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-big:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact-map { position: relative; height: clamp(280px, 70vw, 380px); border-radius: 22px; overflow: hidden; background: #060a13; isolation: isolate; }
.contact-map__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.contact-map.is-map-ready .contact-map__canvas { opacity: 1; }
.contact-map .hz-map__vignette { z-index: 450; pointer-events: none; }
.contact-map__error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: rgba(255, 255, 255, .8); font-size: .9rem; }
@media (min-width: 1000px) {
  .contact-main__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: start; }
  .contact-side { position: sticky; top: calc(var(--header-h) + 24px); }
}
