.section {
  padding-block: var(--space-section);
}

.section--surface {
  background: var(--color-surface);
}

.section-head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.section-head__aside {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}

@media (min-width: 960px) {
  .section-head {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 1.5rem;
    align-items: end;
  }

  .section-head__main {
    grid-column: 1 / span 6;
  }

  .section-head__aside {
    grid-column: 8 / -1;
  }
}

/* ——— Hero ———
   Locked to the first screen: title, promise and both CTAs stay
   above the fold. Type and gaps shrink with the viewport height. */
.hero {
  position: relative;
  display: grid;
  padding-top: var(--header-h);
}

.hero__media {
  order: -1;
  height: clamp(10rem, 26svh, 15rem);
}

.hero__media img {
  transform-origin: center;
  object-position: 32% 40%;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem var(--gutter) 1.5rem;
}

.hero__title {
  font-size: clamp(2.45rem, 1.35rem + 5vw, 3.35rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-top: 0.6rem;
  max-width: 11ch;
}

.hero__lead {
  margin-top: 0.65rem;
  max-width: 28ch;
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
}

.hero__text {
  margin-top: 0.55rem;
  max-width: 52ch;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

@media (min-width: 700px) and (max-width: 959px) {
  .hero__media {
    height: clamp(14rem, 32svh, 20rem);
  }
}

.hero__actions .btn {
  min-height: 2.75rem;
  padding-block: 0.65rem;
}

.hero__scroll {
  display: none;
}

@media (max-width: 959px) {
  /* On a phone the actions come before the long paragraph,
     so both CTAs stay above the fold. */
  .hero__text {
    order: 2;
    margin-top: 1.1rem;
  }
}

@media (max-width: 519px) {
  .hero__actions .btn {
    width: 100%;
  }
}

/* Small phones: keep the primary action on the first screen */
@media (max-height: 700px) {
  .hero__media {
    height: 9.5rem;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__copy {
    padding-block: 1.15rem 1.75rem;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }

  .hero__media {
    order: 0;
    height: auto;
    min-height: 0;
  }

  .hero__copy {
    min-height: 0;
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
    padding-right: clamp(1.5rem, 3vw, 3.25rem);
    padding-block: clamp(0.75rem, 2svh, 2.25rem) clamp(3rem, 6.5svh, 4.25rem);
  }

  .hero__title {
    font-size: clamp(2.6rem, min(4.8vw, 8svh), 5.5rem);
    margin-top: clamp(0.4rem, 1.2svh, 1rem);
  }

  .hero__lead {
    margin-top: clamp(0.55rem, 1.5svh, 1.15rem);
  }

  .hero__text {
    margin-top: clamp(0.45rem, 1.2svh, 0.85rem);
    font-size: clamp(0.9rem, 0.82rem + 0.25vw, 1.02rem);
  }

  .hero__actions {
    margin-top: clamp(0.75rem, 2svh, 1.4rem);
  }

  .hero__scroll {
    position: absolute;
    left: max(var(--gutter), calc((100vw - var(--max)) / 2));
    bottom: clamp(0.85rem, 2svh, 1.5rem);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--color-muted);
  }
}

/* Laptops around 768px tall: both CTAs must clear the fold */
@media (min-width: 960px) and (max-height: 820px) {
  .hero__title {
    font-size: clamp(2.2rem, 6.6svh, 3.15rem);
  }

  .hero__lead {
    font-size: 1.12rem;
  }

  .hero__text {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .hero__copy {
    padding-block: 0.5rem 2.6rem;
  }

  .hero__actions .btn {
    min-height: 2.5rem;
    padding-block: 0.5rem;
  }
}

.hero__scroll-line {
  position: relative;
  width: 3rem;
  height: 1px;
  background: var(--color-line-strong);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease-out) infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ——— Réassurance ——— */
.intro__visuals {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.intro__visual--main {
  aspect-ratio: 16 / 10;
}

.intro__visual--side {
  display: none;
}

@media (min-width: 720px) {
  .intro__visuals {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .intro__visual--main {
    grid-column: 1 / span 8;
  }

  .intro__visual--side {
    display: block;
    grid-column: 9 / -1;
    aspect-ratio: 3 / 4;
    margin-top: clamp(3rem, 8vw, 8rem);
  }

  .intro__visual--side img {
    object-position: 78% center;
  }
}

.pillars {
  display: grid;
  gap: 2.5rem;
}

.pillar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line-strong);
}

.pillar__index {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  color: var(--color-taupe);
  margin-bottom: 2.5rem;
}

.pillar h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.85rem;
}

.pillar p {
  color: var(--color-muted);
  max-width: 38ch;
}

@media (min-width: 840px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ——— Secteurs ——— */
.sectors {
  background: var(--color-slate-ink);
  color: var(--color-white);
}

.sectors .eyebrow {
  color: var(--color-taupe-light);
}

.sectors .section-head__aside p {
  color: var(--color-text-light);
}

.sector-stage {
  display: grid;
  gap: 1.5rem;
}

.sector-panel {
  display: none;
}

.sector-list {
  display: grid;
  gap: 2.5rem;
}

.sector-item {
  display: grid;
  gap: 1rem;
  width: 100%;
  text-align: left;
  color: inherit;
}

.sector-item__media {
  aspect-ratio: 4 / 3;
}

.sector-item__head {
  font-size: var(--text-lg);
}

.sector-item__trigger {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
  cursor: default;
}

.sector-item__index {
  width: 1.6rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  color: var(--color-taupe);
  flex-shrink: 0;
}

.sector-item p {
  color: var(--color-text-light);
  max-width: 46ch;
}

@media (min-width: 960px) {
  .sector-stage {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }

  .sector-list {
    grid-column: 1 / span 5;
    gap: 0;
    align-content: center;
  }

  .sector-panel {
    position: relative;
    display: block;
    grid-column: 7 / -1;
    min-height: 34rem;
    overflow: hidden;
    background: var(--color-slate-deep);
  }

  .sector-panel__img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition:
      opacity var(--duration-slow) var(--ease-out),
      transform 1.2s var(--ease-out);
  }

  .sector-panel__img.is-active {
    opacity: 1;
    transform: scale(1);
  }

  .sector-panel__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sector-panel__count {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 2;
    padding: 0.4rem 0.75rem;
    background: rgba(18, 26, 36, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: var(--tracking-label);
    font-variant-numeric: tabular-nums;
  }

  .sector-item {
    gap: 0;
    padding-block: 1.6rem;
    border-top: 1px solid var(--color-line-light);
    cursor: pointer;
  }

  .sector-item:last-child {
    border-bottom: 1px solid var(--color-line-light);
  }

  .sector-item__media {
    display: none;
  }

  .sector-item__trigger {
    cursor: pointer;
  }

  .sector-item__head {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--duration) var(--ease-out);
  }

  .sector-item.is-active .sector-item__head,
  .sector-item:hover .sector-item__head {
    color: var(--color-white);
  }

  .sector-item__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-slow) var(--ease-out);
  }

  .sector-item__body > p {
    overflow: hidden;
    opacity: 0;
    transition: opacity var(--duration) var(--ease-out);
  }

  .sector-item.is-active .sector-item__body {
    grid-template-rows: 1fr;
  }

  .sector-item.is-active .sector-item__body > p {
    opacity: 1;
    padding-top: 0.85rem;
    padding-left: 2.6rem;
  }
}

/* ——— Bénéfices ——— */
.benefits {
  display: grid;
  gap: 1rem;
}

.benefits__visual {
  aspect-ratio: 16 / 10;
}

.benefits__visual img {
  position: absolute;
  inset: 0;
}

.benefits__grid {
  display: grid;
  gap: 1rem;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 2px;
}

.benefit__icon {
  display: block;
  color: var(--color-slate);
}

.benefit__icon svg {
  width: 2.75rem;
  height: 2.75rem;
}

.benefit h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem);
  margin-bottom: 0.5rem;
}

.benefit p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

@media (min-width: 700px) {
  .benefits__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .benefits {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }

  .benefits__visual {
    grid-column: 1 / span 5;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .benefits__grid {
    grid-column: 7 / -1;
    gap: 1.15rem;
  }
}

/* ——— Preuves ——— */
.cases {
  display: grid;
  gap: 3rem;
}

.case__media {
  aspect-ratio: 4 / 3;
}

.case__media img {
  transition: transform 1.2s var(--ease-out);
}

@media (hover: hover) {
  .case:hover .case__media img {
    transform: scale(1.04);
  }
}

.case dl {
  margin-top: 1.5rem;
}

.case dl div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) 1fr;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--color-line);
  font-size: var(--text-sm);
}

.case dl div:first-child {
  border-top: 1px solid var(--color-line-strong);
}

.case dt {
  color: var(--color-muted);
}

.case dd {
  font-weight: 500;
}

@media (min-width: 840px) {
  .cases {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .case:nth-child(2) {
    margin-top: 5rem;
  }

  .case dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (min-width: 1200px) {
  .case dl div {
    grid-template-columns: minmax(0, 10rem) 1fr;
    gap: 1rem;
  }
}

/* ——— Méthode ——— */
.steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

.steps__track {
  display: none;
}

.step {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--color-line-strong);
}

.step__index {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-taupe);
  margin-bottom: 1.5rem;
}

.step h3 {
  font-size: var(--text-md);
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  max-width: 34ch;
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 2.5rem;
  }

  .steps__track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    height: 1px;
    background: var(--color-line-strong);
  }

  .steps__fill {
    position: absolute;
    inset: 0;
    background: var(--color-slate);
    transform-origin: left;
  }

  .step {
    padding-left: 0;
    border-left: none;
  }

  .step::before {
    content: "";
    position: absolute;
    top: calc(-2.5rem - 4px);
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--color-white);
    border: 1px solid var(--color-slate);
    border-radius: 50%;
  }
}

/* ——— Appels d'offres ——— */
.ao {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-slate-ink);
}

.ao__media {
  position: absolute;
  inset: -12% 0;
}

.ao__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ao::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 26, 36, 0.92) 0%, rgba(18, 26, 36, 0.72) 50%, rgba(18, 26, 36, 0.35) 100%);
}

.ao__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(6rem, 4rem + 8vw, 11rem);
}

.ao__content {
  max-width: 40rem;
}

.ao h2 {
  font-size: var(--text-xl);
}

.ao p {
  margin-top: 1.5rem;
  font-size: var(--text-md);
  color: var(--color-text-light);
  max-width: 48ch;
}

.ao .btn {
  margin-top: 2.25rem;
}

/* ——— Contact ——— */
.contact__layout {
  display: grid;
  gap: 3rem;
}

.contact__title {
  font-size: var(--text-xl);
  max-width: 13ch;
}

.contact__visual {
  display: none;
}

@media (min-width: 960px) {
  .contact__layout {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }

  .contact__aside {
    grid-column: 1 / span 5;
  }

  .contact__visual {
    display: block;
    margin-top: 3rem;
    aspect-ratio: 4 / 5;
    max-width: 26rem;
  }

  .contact__form {
    grid-column: 7 / -1;
  }
}

.contact__form {
  width: 100%;
  min-height: 36rem;
}

/* ——— FAQ ——— */
.faq__layout {
  display: grid;
  gap: 2.5rem;
}

.faq__title {
  font-size: var(--text-xl);
}

@media (min-width: 960px) {
  .faq__layout {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }

  .faq__head {
    grid-column: 1 / span 4;
  }

  .faq__list {
    grid-column: 6 / -1;
  }
}

/* ——— Footer ——— */
.site-footer {
  background: var(--color-slate-ink);
  color: var(--color-text-light);
  padding-block: clamp(4rem, 3rem + 4vw, 6.5rem) 2rem;
  font-size: var(--text-sm);
}

.footer__top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--color-line-light);
}

.footer__brand .site-logo {
  width: 12rem;
  margin-bottom: 1.5rem;
}

.footer__brand .eyebrow {
  color: var(--color-text-light);
  max-width: 34ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer__cols h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-taupe);
  margin-bottom: 1.25rem;
}

.footer__cols li + li {
  margin-top: 0.6rem;
}

.footer__cols a {
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__cols a:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: var(--text-xs);
}

/* ——— Thank-you / Merci ——— */
.thanks {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 3rem) 0 var(--space-section);
  background:
    linear-gradient(180deg, rgba(244, 243, 241, 0.92) 0%, var(--color-surface) 45%, #ebe8e3 100%);
}

.thanks__inner {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.thanks__eyebrow {
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-taupe);
}

.thanks__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  color: var(--color-ink);
}

.thanks__text {
  margin: 1.25rem auto 0;
  max-width: 32rem;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-muted);
}

.thanks__text p {
  margin: 0 0 0.85rem;
}

.thanks__text p:last-child {
  margin-bottom: 0;
}

.thanks__btn {
  margin-top: 2.25rem;
}

@media (min-width: 840px) {
  .footer__top {
    grid-template-columns: 5fr 7fr;
  }

  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
