/* ==========================================================================
   HAZON — Accueil
   ========================================================================== */

/* ---------- 1 · Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + var(--safe-top) + 18px);
}
.hero__wrap { position: relative; z-index: 2; }
.fan { z-index: 2; }
.hero__meta {
  display: flex; justify-content: space-between; gap: 16px;
  font: 500 .68rem/1.35 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--grey);
  margin-bottom: clamp(26px, 6vw, 44px);
}
.hero__meta span:last-child { text-align: right; }

/* The navy block echoes the vertical colour field of the reference, in the brand's dominant blue.
   --bl / --bw drive both the block and the colour switch inside the title. */
.hero__stage { --bl: 50%; --bw: 34%; position: relative; }
.hero__block {
  position: absolute; left: var(--bl); width: var(--bw);
  top: -14px; bottom: -26px;
  background: var(--mist);
  clip-path: inset(0 0 0 0);
}
.js .hero__block { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-in-out) .05s; }
.js .is-ready .hero__block { clip-path: inset(0 0 0 0); }

.hero__title { position: relative; color: var(--white); font-size: clamp(3.6rem, 21vw, 11.5rem); }
/* text crossing the block turns white: same geometry as the block */
.hero__title .ln > span {
  background: linear-gradient(90deg, var(--white) var(--bl), var(--navy) var(--bl), var(--navy) calc(var(--bl) + var(--bw)), var(--white) calc(var(--bl) + var(--bw)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .hero__title .ln > span { transition-delay: calc(.45s + var(--i, 0) * 90ms); }

.hero__copy { margin-top: clamp(34px, 8vw, 56px); display: grid; gap: 14px; }
.hero__copy .lead { font-size: clamp(1.05rem, 3.9vw, 1.3rem); }
.hero__what { max-width: 40ch; font-size: .92rem; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }

/* ---------- Hero background film ----------
   The city at night gives energy and scale; desaturating it and tinting it with the brand navy
   keeps the palette intact (charte : bleu dominant, orange en accent). Text sits on a darker gradient. */
.hero { background: var(--ink); color: var(--white); --fg: var(--white); --fg-muted: rgba(255, 255, 255, .74); --rule: rgba(255, 255, 255, .2); }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  filter: grayscale(1) contrast(1.15) brightness(.95);
  transform: scale(1.04); transition: opacity 1.2s var(--ease);
}
.hero__tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 31, 51, .55) 0%, rgba(10, 31, 51, .15) 30%, rgba(10, 31, 51, .35) 60%, rgba(10, 31, 51, .92) 100%),
    var(--navy);
  background-blend-mode: normal, normal;
  mix-blend-mode: normal;
  opacity: .82;
}
@supports (mix-blend-mode: color) {
  /* duotone: the navy colours the film, a separate gradient guarantees contrast */
  .hero__tint { background: var(--navy); mix-blend-mode: color; opacity: 1; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 31, 51, .7) 0%, rgba(11, 65, 115, .45) 30%, rgba(10, 31, 51, .72) 55%, rgba(10, 31, 51, .96) 100%); }
}
.hero__meta { color: rgba(255, 255, 255, .72); }
.hero__copy .lead { color: var(--white); }
.hero .link-arrow { color: var(--white); }
.hero .link-arrow span { color: var(--orange); }
.fan__ring { color: rgba(255, 255, 255, .5); }
.fan__ring text { fill: rgba(255, 255, 255, .7); }

/* ---------- Fan of cards ---------- */

.fan {
  --cw: min(32vw, 148px); --ch: calc(var(--cw) * 1.36);
  --spread: 15deg; --open: 0; --lift: 0px;
  position: relative; flex: 1;
  min-height: calc(var(--ch) * 1.12 + 24px);
  margin-top: 12px;
}
.fan__ring {
  position: absolute; left: 50%; bottom: calc(var(--ch) * -1.1);
  width: calc(var(--ch) * 2.6); height: auto;
  transform: translateX(-50%) rotate(var(--ring, 0deg));
  color: var(--grey); opacity: .55;
}
.fan__ring text { font: 600 15px var(--f-display); letter-spacing: 6px; fill: var(--grey); }
.fan__cards { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.fan__cards li {
  position: absolute; left: 50%; bottom: calc(var(--ch) * -.08);
  width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2);
  transform-origin: 50% calc(100% + var(--ch) * 1.25);
  transform: translate3d(0, var(--lift), 0) rotate(calc(var(--n) * var(--spread) * var(--open)));
  z-index: calc(10 - var(--n) * var(--n));
  will-change: transform;
}
.card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; height: 100%; padding: 14px 14px 16px;
  border-radius: 16px; text-decoration: none; overflow: hidden;
  box-shadow: 0 1px 0 rgba(10, 31, 51, .06), 0 28px 44px -26px rgba(10, 31, 51, .55);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.fan__cards li:hover .card, .card:focus-visible { transform: translateY(-16px); }
.card__num { font: 500 .66rem/1 var(--f-display); letter-spacing: .18em; }
.card__line { font: 400 .8rem/1.35 var(--f-body); max-width: 14ch; }
.card__name { font: 700 clamp(1.05rem, 4.6vw, 1.45rem)/1 var(--f-display); letter-spacing: -.02em; }
.card--white { background: var(--white); color: var(--ink); }
.card--navy { background: var(--navy); color: var(--white); }
.card--ink { background: var(--ink); color: var(--white); }
.card--sky { background: var(--sky); color: var(--navy); }
.card--orange { background: var(--orange); color: var(--ink); align-items: center; justify-content: center; }
.card--orange img { width: 52%; height: auto; }
.card__tag { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font: 500 .62rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; }
.card--white .card__num, .card--sky .card__num { color: var(--grey); }
.card--sky .card__num { color: var(--navy); }

/* ---------- 2 · Conviction ---------- */

.conviction .label { margin-bottom: clamp(28px, 6vw, 48px); }
.conviction__title em { font-style: normal; color: var(--orange); }
.conviction__cols { display: grid; gap: 22px; margin-top: clamp(36px, 8vw, 64px); color: var(--fg-muted); font-size: clamp(1rem, 3.6vw, 1.12rem); }
.conviction__for { margin-top: clamp(48px, 10vw, 88px); padding-top: 28px; border-top: 1px solid var(--rule); }
.conviction__for ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.conviction__for li { font: 600 clamp(1.15rem, 4.8vw, 2rem)/1.25 var(--f-display); letter-spacing: -.02em; }
.conviction__for li:not(:last-child)::after { content: "·"; color: var(--orange); margin: 0 .45em; }
.conviction__link { margin-top: 36px; color: var(--white); }
@media (min-width: 900px) {
  .conviction__cols { grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1100px; margin-left: auto; }
}

/* ---------- 3 · Expertises ---------- */

.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 9vw, 80px); }
@media (min-width: 1000px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 64px; }
  .section-head .label { grid-column: 1 / -1; }
  .section-head .lead { justify-self: end; }
}
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__item { border-bottom: 1px solid var(--line); }
.svc__item a {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px;
  padding: 26px 0 28px; text-decoration: none; color: var(--ink);
}
.svc__num { grid-column: 1 / -1; font: 500 .74rem/1 var(--f-display); letter-spacing: .18em; color: var(--grey); }
.svc__title { font: 600 clamp(1.45rem, 6vw, 2.6rem)/1.05 var(--f-display); letter-spacing: -.03em; transition: transform .6s var(--ease), color .3s; }
.svc__text { grid-column: 1 / -1; color: var(--grey); max-width: 46ch; }
.svc__go { grid-row: 2; grid-column: 2; align-self: start; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .35s, border-color .35s, transform .5s var(--ease), color .35s; }
.svc__item a:hover .svc__go, .svc__item a:focus-visible .svc__go { background: var(--navy); border-color: var(--navy); color: var(--white); transform: rotate(-45deg); }
.svc__item a:hover .svc__title { color: var(--navy); }
.svc__item a::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.svc__item a:hover::before { transform: scaleX(1); }
@media (min-width: 900px) {
  .svc__item a { grid-template-columns: 90px minmax(0, 1.15fr) minmax(0, 1fr) 52px; align-items: center; gap: 32px; padding: 36px 0; }
  .svc__num { grid-column: 1; }
  .svc__text { grid-column: 3; }
  .svc__go { grid-row: 1; grid-column: 4; align-self: center; }
  .svc__item a:hover .svc__title { transform: translateX(10px); }
}

/* ---------- 4 · Réalisations ---------- */

.work__head { display: grid; gap: 24px; margin-bottom: clamp(36px, 8vw, 64px); }
.work__head .label { margin-bottom: 26px; }
@media (min-width: 1000px) { .work__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }
.work__rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.work__rail::-webkit-scrollbar { display: none; }
.work__list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(76vw, 320px); gap: 14px; max-width: var(--max); }
.work__list li { scroll-snap-align: start; }
.work__list a { display: block; text-decoration: none; color: var(--ink); }
.work__list img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.work__list a:hover img { transform: translateY(-8px); }
.work__cap { display: grid; gap: 4px; margin-top: 14px; }
.work__cap b { font: 600 1.05rem/1.25 var(--f-display); letter-spacing: -.01em; }
.work__cap span { font-size: .88rem; color: var(--grey); }
@media (min-width: 1000px) { .work__list { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 24px; } .work__rail { overflow: visible; } }

/* ---------- 5 · Engagements ---------- */

.trust .label { margin-bottom: clamp(28px, 6vw, 44px); }
.trust__grid { list-style: none; margin: clamp(44px, 9vw, 80px) 0 0; padding: 0; display: grid; gap: 0; }
.trust__grid li { padding: 26px 0 30px; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.trust__num { font: 500 .74rem/1 var(--f-display); letter-spacing: .18em; color: var(--white); display: inline-flex; align-items: center; gap: 10px; }
.trust__num::before { content: ""; width: 18px; height: 2px; background: var(--orange); }
.trust__grid p { color: var(--fg-muted); }
@media (min-width: 700px) { .trust__grid { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 6 · Méthode ---------- */

.method__head .label { margin-bottom: 26px; }
.method__head .lead { margin-top: 22px; }
.steps { list-style: none; margin: clamp(40px, 9vw, 64px) 0 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.step__num { font: 700 1.6rem/1 var(--f-display); color: var(--navy); letter-spacing: -.03em; }
.step__hook { font: 600 1.05rem/1.35 var(--f-display); margin: 8px 0 8px; color: var(--ink); }
.step p:last-child { color: var(--grey); }
@media (min-width: 1000px) {
  .method__wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
  .method__head { position: sticky; top: calc(var(--header-h) + 40px); }
  .steps { margin-top: 0; }
  .step { grid-template-columns: 90px 1fr; padding: 36px 0; }
  .step__num { font-size: 2.4rem; }
}

/* ---------- 7 · Démarrer ---------- */

.start__wrap { display: grid; gap: 32px; }
.start .label { margin-bottom: 22px; }
.start__title { color: var(--navy); }
.start__side { display: grid; gap: 26px; align-content: end; }
.start__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) { .start__wrap { grid-template-columns: 1.2fr .8fr; align-items: end; gap: 64px; } }

/* ---------- Larger screens: hero ---------- */

@media (min-width: 768px) {
  .hero__stage { --bl: 46%; --bw: 24%; }
  .fan { --cw: 176px; --spread: 13deg; margin-top: 40px; }
}
@media (min-width: 1100px) {
  .hero__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); column-gap: 48px; }
  .hero__meta { grid-column: 1 / -1; }
  .hero__stage { grid-column: 1 / -1; --bl: 29%; --bw: 14%; }
  .hero__title { font-size: min(10rem, 17svh); }
  .hero__copy { grid-column: 2; margin-top: -1.4em; position: relative; z-index: 3; }
  .fan { --cw: min(196px, 22svh); --spread: 12deg; margin-top: -24px; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .hero__copy { margin-top: 28px; }
  .fan { --cw: 168px; }
}

/* wide screens: the copy sits on the right, so the film is quieted there too */
@media (min-width: 1100px) {
  .hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, transparent 45%, rgba(10, 31, 51, .65) 85%); }
}
