/* Page d'accueil — direction visuelle éditoriale */

.home-hero {
  isolation: isolate;
  padding: clamp(58px, 8vw, 108px) 0 0;
  background:
    linear-gradient(110deg, rgba(8, 33, 49, .98) 0%, rgba(16, 42, 60, .96) 58%, rgba(19, 58, 72, .92) 100%),
    var(--ink);
}

.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 74%);
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}

.home-hero::after {
  z-index: -1;
  top: -28%;
  right: -8%;
  width: min(62vw, 780px);
  background: radial-gradient(circle, rgba(157, 216, 199, .28), transparent 65%);
}

.home-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .62fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: end;
}

.home-hero__copy {
  align-self: center;
  padding-bottom: clamp(52px, 7vw, 92px);
}

.home-hero h1 {
  max-width: 820px;
  font-size: clamp(2.75rem, 5.7vw, 5rem);
  text-wrap: balance;
}

.home-hero .lead {
  max-width: 690px;
}

.founder-portrait {
  position: relative;
  margin: 0;
  align-self: end;
}

.founder-portrait::before {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -18px;
  bottom: 86px;
  left: 18px;
  content: "";
  border: 1px solid rgba(157, 216, 199, .42);
}

.founder-portrait picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 4.85;
  background: #cbd7db;
}

.founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.82) contrast(1.03);
}

.founder-portrait figcaption {
  position: relative;
  z-index: 1;
  display: grid;
  margin: -32px 16px 0 -24px;
  padding: 18px 20px;
  color: #d5e2e9;
  background: #081f2d;
  border-top: 3px solid var(--aqua);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .24);
}

.founder-portrait figcaption strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.founder-portrait figcaption span {
  font-size: .73rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.founder-portrait figcaption a {
  margin-top: 11px;
  color: var(--aqua);
  font-size: .75rem;
  font-weight: 750;
  text-decoration: none;
}

.founder-portrait__signal {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: -22px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--aqua);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-hero .trust-row {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 20px 0 22px;
}

.home-hero + .section {
  position: relative;
}

.home-hero + .section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--blue), transparent 60%);
  transform: translateX(-50%);
}

.home-hero + .section .section-heading h2 {
  text-wrap: balance;
}

.home-hero + .section .link-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding-top: 32px;
  border-top-width: 3px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-hero + .section .link-card::before {
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 145px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(21, 127, 155, .2);
  border-radius: 50%;
  transition: transform .25s ease;
}

.home-hero + .section .link-card::after {
  display: grid;
  width: 34px;
  height: 34px;
  margin-top: 22px;
  content: "↗";
  place-items: center;
  color: var(--ink);
  background: var(--aqua);
  border-radius: 50%;
  font-size: .9rem;
}

.home-hero + .section .link-card:hover {
  border-color: var(--blue);
  box-shadow: 0 20px 50px rgba(16, 42, 60, .1);
  transform: translateY(-5px);
}

.home-hero + .section .link-card:hover::before {
  transform: scale(1.18);
}

.case-study {
  grid-template-columns: minmax(340px, .84fr) minmax(0, 1.16fr);
  box-shadow: 0 28px 75px rgba(16, 42, 60, .15);
}

.case-study__visual {
  position: relative;
  min-height: 540px;
  padding: 0;
  background: #d6e1e5;
}

.case-study__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(7, 29, 42, .92) 0%, rgba(7, 29, 42, .18) 54%, transparent 74%);
}

.case-study__visual picture,
.case-study__visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.case-study__visual picture {
  position: absolute;
  inset: 0;
}

.case-study__visual img {
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(.9) contrast(1.02);
}

.case-study__caption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(28px, 4vw, 48px);
}

.case-study__caption .eyebrow {
  margin-bottom: 12px;
}

.case-study__caption h2 {
  font-size: clamp(2rem, 3.7vw, 3.35rem);
}

.case-study__caption p:last-child {
  margin: 8px 0 0;
  color: #d9e5eb;
}

.case-study__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study__body > h3 {
  max-width: 620px;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  text-wrap: balance;
}

.case-study__body > p {
  max-width: 650px;
  color: #c5d4dd;
}

.case-facts {
  gap: 1px;
  border: 0;
  background: rgba(255, 255, 255, .18);
}

.case-facts div {
  padding: 20px;
  background: #102a3c;
  border: 0;
}

.section--ink .step {
  transition: background-color .2s ease, transform .2s ease;
}

.section--ink .step:hover {
  background: rgba(157, 216, 199, .08);
  transform: translateY(-3px);
}

.section--white .card {
  box-shadow: 0 10px 35px rgba(16, 42, 60, .045);
}

@media (max-width: 1020px) {
  .home-hero__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
    gap: 40px;
  }

  .founder-portrait__signal {
    right: -8px;
  }
}

@media (max-width: 900px) {
  .home-hero {
    padding-top: 70px;
  }

  .home-hero__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, .68fr);
    gap: 32px;
  }

  .home-hero__copy {
    padding-bottom: 54px;
  }

  .home-hero h1 {
    font-size: clamp(2.6rem, 7.5vw, 4rem);
  }

  .home-hero .hero-actions .button {
    width: 100%;
  }

  .founder-portrait figcaption {
    margin-left: -12px;
  }

  .case-study {
    grid-template-columns: 1fr;
  }

  .case-study__visual {
    min-height: min(680px, 88vw);
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding-top: 56px;
  }

  .home-hero__layout {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    padding-bottom: 12px;
  }

  .home-hero h1 {
    font-size: clamp(2.55rem, 12.2vw, 4rem);
  }

  .founder-portrait {
    width: min(100%, 430px);
    margin: 8px auto 0;
  }

  .founder-portrait::before {
    right: 0;
  }

  .founder-portrait__signal {
    right: 8px;
  }

  .home-hero .trust-row {
    margin-top: 10px;
    gap: 10px 20px;
  }
}

@media (max-width: 620px) {
  .home-hero + .section::before {
    width: calc(100% - 32px);
  }

  .case-study__visual {
    min-height: 500px;
  }

  .case-study__caption {
    padding: 28px 24px;
  }

  .case-facts div {
    padding: 17px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero + .section .link-card,
  .home-hero + .section .link-card::before,
  .section--ink .step {
    transition: none;
  }
}
