/* Homepage — première extension de l'identité visuelle validée. */
.identity-home {
  --identity-paper: #fcfaf6;
  --identity-ink: #123653;
  --identity-ink-soft: #526574;
  --identity-saffron: #f5a300;
  --identity-saffron-ink: #805000;
  --identity-line: #d5d9d8;
  --identity-font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: clip;
}

.identity-home .site-header {
  background: rgba(252, 250, 246, .96);
  border-color: var(--identity-line);
}
.identity-home .nav { max-width: 1280px; min-height: 82px; }
.identity-home .brand {
  color: var(--identity-ink);
  font-family: var(--identity-font);
  font-size: 1.25rem;
  gap: .72rem;
  letter-spacing: -.035em;
}
.identity-home .brand-logo { flex: 0 0 38px; height: 38px; width: 38px; }
.identity-home .nav-links a { color: var(--identity-ink); font-family: var(--identity-font); }
.identity-home .nav-links .nav-cta { border-color: var(--identity-ink); }
.identity-home .nav-toggle { border-color: var(--identity-ink); color: var(--identity-ink); }

.identity-home .identity-hero {
  align-items: center;
  display: grid;
  gap: clamp(6rem, 9vw, 9rem);
  grid-template-columns: minmax(0, 1fr) 21rem;
  isolation: isolate;
  margin-left: 50%;
  max-width: none;
  min-height: calc(100svh - 82px);
  padding: clamp(5rem, 9vw, 9rem) 1.5rem;
  position: relative;
  transform: translateX(-50%);
  width: min(calc(100% + 5.5rem), calc(100vw - 1rem), 1280px);
}
.identity-home .identity-hero::before {
  background: var(--identity-paper);
  box-shadow: 0 0 0 100vmax var(--identity-paper);
  clip-path: inset(0 -100vmax);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}
.identity-home .identity-hero-copy { max-width: 770px; }
.identity-home .identity-hero .eyebrow {
  align-items: center;
  color: var(--identity-saffron-ink);
  display: flex;
  font-family: var(--identity-font);
  font-size: .75rem;
  font-weight: 750;
  gap: .75rem;
  letter-spacing: .12em;
  margin-bottom: 2.5rem;
}
.identity-home .identity-hero .eyebrow::before {
  align-items: center;
  border: 1px solid var(--identity-ink);
  color: var(--identity-ink);
  content: "01";
  display: inline-flex;
  flex: 0 0 2.2rem;
  height: 2.2rem;
  justify-content: center;
  letter-spacing: 0;
}
.identity-home .identity-hero h1 {
  color: var(--identity-ink);
  font-family: var(--identity-font);
  font-size: clamp(3.6rem, 5.95vw, 6.2rem);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .9;
  margin: 0 0 2.5rem;
  max-width: 820px;
}
.identity-home .identity-hero h1 em {
  color: var(--identity-ink);
  display: inline-block;
  font-style: normal;
  font-weight: 650;
  isolation: isolate;
  position: relative;
}
.identity-home .identity-hero h1 em::after {
  background: var(--identity-saffron);
  bottom: -.08em;
  content: "";
  height: clamp(5px, .075em, 9px);
  left: .02em;
  position: absolute;
  transform: rotate(-1.5deg);
  width: .96em;
  z-index: -1;
}
.identity-home .identity-hero .lead {
  color: var(--identity-ink-soft);
  font-family: var(--identity-font);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  margin: 0;
  max-width: 690px;
}
.identity-home .identity-hero .scroll-cue {
  color: var(--identity-ink);
  font-family: var(--identity-font);
  font-size: .88rem;
  font-weight: 650;
  margin-top: 2.5rem;
  text-decoration-color: var(--identity-saffron);
  text-decoration-thickness: 3px;
}

.identity-home .identity-hero-field {
  aspect-ratio: 4 / 5;
  justify-self: end;
  margin: 0 2rem 0 0;
  min-height: 0;
  overflow: visible;
  position: relative;
  transform: translateY(2rem);
  width: 21rem;
}
.identity-home .identity-hero-field::before {
  background-image:
    linear-gradient(rgba(18, 54, 83, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 54, 83, .065) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  inset: -18% -27% -20% -24%;
  mask-image: radial-gradient(ellipse at 56% 50%, #000 0%, rgba(0, 0, 0, .66) 43%, transparent 78%);
  opacity: .82;
  pointer-events: none;
  position: absolute;
  transform: rotate(.7deg);
  -webkit-mask-image: radial-gradient(ellipse at 56% 50%, #000 0%, rgba(0, 0, 0, .66) 43%, transparent 78%);
}
.identity-home .identity-hero-sign {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
  z-index: 1;
}

@media (max-width: 980px) {
  .identity-home .nav { min-height: 72px; }
  .identity-home .identity-hero {
    gap: clamp(4.5rem, 9vw, 6.5rem);
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: clamp(5rem, 10vw, 7rem);
  }
  .identity-home .identity-hero-field {
    margin-right: 4rem;
    transform: none;
    width: min(46%, 23rem);
  }
}

@media (max-width: 620px) {
  .identity-home .brand { font-size: 1.15rem; }
  .identity-home .brand-logo { flex-basis: 36px; height: 36px; width: 36px; }
  .identity-home .identity-hero { gap: 4.75rem; padding: 4.5rem 1rem 5.5rem; }
  .identity-home .identity-hero .eyebrow { align-items: flex-start; font-size: .68rem; line-height: 1.45; margin-bottom: 1.8rem; }
  .identity-home .identity-hero .eyebrow::before { flex-basis: 1.9rem; height: 1.9rem; }
  .identity-home .identity-hero h1 { font-size: clamp(3.1rem, 13.6vw, 4.1rem); line-height: .9; margin-bottom: 1.8rem; }
  .identity-home .identity-hero .lead { font-size: 1.08rem; }
  .identity-home .identity-hero .scroll-cue { margin-top: 2rem; }
  .identity-home .identity-hero-field { margin-right: 3rem; width: 12rem; }
  .identity-home .identity-hero-field::before { background-size: 31px 31px; inset: -14% -18% -16% -18%; }
}
