/* Arvilo — feuille de style unique */

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --snow: #f7f8f7;
  --ink: #222a2e;
  --red: #a33f46;
  --red-dark: #86343a;
  --glacier: #d8e8ed;
  --rock: #58646b;
  --line-soft: rgb(34 42 46 / 0.2);
  --line-mid: rgb(34 42 46 / 0.38);
  --muted-dark: #9aa6ac;
  --red-light: #e2878d;

  --max: 1296px;
  --pad: clamp(20px, 5vw, 72px);
  --gap: clamp(16px, 2.2vw, 32px);
  /* Marge latérale : au moins --pad, plus large si l'écran dépasse --max. */
  --gutter: max(var(--pad), (100cqw - var(--max)) / 2, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --header-h: 64px;

  --section-space: clamp(112px, 14vw, 208px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Base ─────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Le pied de page est sombre : la zone visible au-delà de la page (rebond en
     bas sur mobile) reste sombre aussi. Le corps de page garde son fond clair. */
  background: var(--ink);
  overscroll-behavior-y: none;
}

body {
  container-type: inline-size;
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-kerning: normal;
  overflow-x: clip;
}

html.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

main:focus,
section:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--snow);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  padding-inline: var(--gutter);
}

.icon {
  flex: none;
  width: 0.875em;
  height: 0.875em;
  transition: transform 0.25s var(--ease);
}

/* Boutons et liens */

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 22px 17px 24px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--red-dark);
}

.button:hover .icon {
  transform: translateX(3px);
}

.hero-actions .button:hover .icon {
  transform: translateY(3px);
}

.button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.link-arrow:hover {
  color: var(--red);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ── En-tête ──────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--snow);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.header-inner::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset-inline: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--ink);
}

.wordmark,
.menu-button {
  position: relative;
  z-index: 2;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: clamp(16px, 2.6vw, 40px);
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-block: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-num {
  color: var(--rock);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-list a:hover::after,
.nav-list a[aria-current='true']::after,
.nav-list a[aria-current='page']::after {
  transform: scaleX(1);
}

.nav-mail,
.menu-button {
  display: none;
}

@media (max-width: 719px) {
  .js .menu-button:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: -8px;
    padding: 10px 8px;
    border: 0;
    background: none;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
  }

  .menu-icon {
    position: relative;
    width: 22px;
    height: 10px;
  }

  .menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }

  .menu-icon span:first-child {
    top: 0;
  }

  .menu-icon span:last-child {
    top: 8.5px;
  }

  .is-open .menu-icon span:first-child {
    top: 4.25px;
    transform: rotate(45deg);
  }

  .is-open .menu-icon span:last-child {
    top: 4.25px;
    transform: rotate(-45deg);
  }

  /* Le menu couvre tout l'écran (fond clair), l'en-tête reste par-dessus. */
  .js .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--header-h) + 8px) var(--gutter) max(32px, env(safe-area-inset-bottom));
    background: var(--snow);
  }

  /* Menu fermé : retiré de l'affichage (et pas seulement masqué). Safari sur iPhone
     colore sa barre du bas d'après les éléments fixés au bord de l'écran. */
  .js .site-header:not(.is-open) .nav {
    display: none;
  }

  .js .is-open .nav {
    animation: menu-in 0.35s var(--ease) both;
  }

  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
  }

  .js .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .js .nav-list li {
    border-bottom: 1px solid var(--line-soft);
  }

  .js .nav-list a {
    display: flex;
    gap: 16px;
    padding-block: 18px;
    font-size: 2rem;
    letter-spacing: -0.025em;
  }

  .js .nav-list a::after {
    display: none;
  }

  .js .nav-list .nav-num {
    min-width: 2em;
    font-size: 0.875rem;
    letter-spacing: 0;
  }

  .js .nav-list a[aria-current='true'],
  .js .nav-list a[aria-current='page'] {
    color: var(--red);
  }

  .js .nav-mail {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
  }

  /* Sans JavaScript : liens compacts sur une ligne. */
  html:not(.js) .nav-num {
    display: none;
  }

  html:not(.js) .nav-list {
    gap: 14px;
  }
}

/* ── Accueil ──────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: var(--snow);
}

.hero-sky {
  position: relative;
  z-index: 2;
  padding-top: clamp(32px, 5.5vw, 72px);
}

.hero-title {
  max-width: 14ch;
  font-size: clamp(2.875rem, 7.3vw, 9rem);
  font-weight: 580;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-title .dot {
  color: var(--red);
}

.hero-row {
  display: grid;
  gap: 32px var(--gap);
  margin-top: clamp(28px, 4vw, 56px);
}

.hero-lead {
  max-width: 38ch;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 28px;
}

.hero-infos {
  align-self: end;
  border-top: 1px solid var(--ink);
}

.hero-infos div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
}

.hero-infos dt {
  color: var(--rock);
}

.hero-infos dd {
  font-weight: 500;
}

.hero-alpes {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  min-height: max(240px, min(31vw, 52svh));
  margin-top: clamp(-140px, -7vw, -24px);
  pointer-events: none;
}

.hero-alpes .alpes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 959px) {
  .hero-infos {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero-bottom {
    grid-column: 1 / 7;
  }

  .hero-infos {
    grid-column: 9 / -1;
  }
}

/* ── Sections ─────────────────────────────────────────── */

.section {
  position: relative;
  z-index: 1;
  padding-top: var(--section-space);
}

/* Dessin au trait fixé en fond de page */
.fond-alpes {
  position: fixed;
  inset: auto 0 0;
  z-index: 0;
  height: 48vh;
  /* Calque à part : le dessin n'est pas redessiné à chaque défilement. */
  transform: translateZ(0);
  will-change: transform;
  contain: strict;
  color: #c7d9e0;
  pointer-events: none;
}

.fond-alpes svg {
  display: block;
  width: calc(100% + 120px);
  height: 100%;
}

/* Section sombre */
.section--dark {
  padding-bottom: var(--section-space);
  background: var(--ink);
  color: var(--snow);
}

.section--dark .section-label {
  background-image: linear-gradient(var(--snow), var(--snow));
  color: var(--muted-dark);
}

.section--dark .section-num {
  color: var(--red-light);
}

.section--dark .services {
  border-bottom-color: var(--snow);
}

.section--dark .service {
  border-top-color: rgb(247 248 247 / 0.16);
}

.section--dark .service:first-child {
  border-top-color: var(--snow);
}

.section--dark .service-num,
.section--dark .service-points {
  color: var(--muted-dark);
}

.section--dark .service-text {
  color: #d3dadd;
}

.section--dark .service-name {
  font-size: clamp(1.875rem, 4.8vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

@media (hover: hover) {
  .section--dark .service:hover .service-name {
    color: var(--red-light);
  }
}

/* Chiffres */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px var(--gap);
  margin-bottom: var(--section-space);
}

.stat {
  padding-top: 16px;
  border-top: 1px solid rgb(247 248 247 / 0.28);
}

.stat-value {
  display: block;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

/* Deux chiffres : chacun occupe une moitié de la grille, en très grand. */
@media (min-width: 640px) {
  .stats--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stats--2 .stat-value {
  font-size: clamp(5.5rem, 15vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.stats--2 .stat-label {
  max-width: 28ch;
  margin-top: 18px;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
}

.stat-suffix {
  margin-left: 0.06em;
  font-size: 0.5em;
  letter-spacing: -0.02em;
}

.stat:first-child .stat-value {
  color: var(--red-light);
}

.stat-label {
  display: block;
  max-width: 24ch;
  margin-top: 14px;
  color: var(--muted-dark);
  font-size: 0.9375rem;
  text-wrap: pretty;
}


/* Mentions légales */
.legal {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 7vw, 96px) calc(var(--section-space) + clamp(60px, 9vw, 150px));
}

.legal-h1 {
  max-width: none;
}

.legal-h1 .dot {
  color: var(--red);
}

.legal-date {
  margin-top: 20px;
  color: var(--rock);
  font-size: 0.875rem;
}

.legal-block {
  display: grid;
  gap: 16px var(--gap);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.legal-title {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.legal-body {
  max-width: 62ch;
  padding: 0 0 4px;
  background: rgb(247 248 247 / 0.86);
}

.legal-body p + p,
.legal-body h3 + p,
.legal-body p + p:empty {
  margin-top: 14px;
}

.legal-body h3 {
  margin-top: 32px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.legal-body a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--red);
}

.legal-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 4px 24px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.legal-list div:first-child {
  padding-top: 0;
}

.legal-list dt {
  color: var(--rock);
}

@media (max-width: 559px) {
  .legal-list div {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .legal-block {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .legal-title {
    grid-column: 1 / 6;
  }

  .legal-body {
    grid-column: 6 / -1;
  }
}

/* Bandeau défilant */
/* La zone prolonge l'anthracite au-dessus et le blanc en dessous : aucun vide
   n'apparaît autour du bandeau incliné, quelle que soit la largeur d'écran. */
.bandeau-zone {
  position: relative;
  z-index: 2;
  padding-block: calc(2.5vw + 12px);
  background: linear-gradient(to bottom, var(--ink) 50%, var(--snow) 50%);
}

.bandeau {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--snow);
  transform: rotate(-1.6deg) scale(1.06);
}

.bandeau-track {
  display: flex;
  width: max-content;
  animation: defile 42s linear infinite;
}

.bandeau p {
  display: flex;
  flex: none;
  padding-block: clamp(16px, 2.2vw, 28px);
}

.bandeau span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding-right: 0.45em;
  font-size: clamp(2rem, 5.4vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.bandeau span::after {
  content: '';
  width: 0.24em;
  height: 0.24em;
  background: var(--snow);
}

@keyframes defile {
  to {
    transform: translateX(-50%);
  }
}

.section-label {
  display: flex;
  gap: var(--gap);
  padding-top: 14px;
  background: linear-gradient(var(--ink), var(--ink)) top left / 100% 1px no-repeat;
  color: var(--rock);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.section-num {
  min-width: 2.5em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.section-title {
  max-width: 13ch;
  margin-top: clamp(40px, 6vw, 80px);
  font-size: clamp(2.375rem, 6.4vw, 5rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.section-title--wide {
  max-width: 19ch;
}

@media (min-width: 768px) {
  .section-label {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .section-num {
    grid-column: 1 / 7;
  }

  .section-label > :last-child {
    grid-column: 7 / -1;
  }
}

/* Prestations */

.services {
  margin-top: clamp(56px, 8vw, 112px);
  border-bottom: 1px solid var(--ink);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 12px;
  padding-block: clamp(26px, 3.4vw, 44px);
  border-top: 1px solid var(--line-soft);
}

.service:first-child {
  border-top-color: var(--ink);
}

.service::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.service-num {
  grid-row: 1 / 3;
  padding-top: 0.45em;
  color: var(--rock);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.service-name {
  font-size: clamp(1.5rem, 3.1vw, 2.625rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: transform 0.45s var(--ease), color 0.3s ease;
}

.service-body {
  margin-top: 12px;
}

.service-text {
  max-width: 42ch;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  text-wrap: pretty;
}

.service-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  color: var(--rock);
  font-size: 0.875rem;
  font-weight: 500;
}

.service-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-points li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--red);
}

@media (hover: hover) {
  .service:hover::before {
    transform: scaleX(1);
  }

  .service:hover .service-name {
    transform: translateX(10px);
    color: var(--red);
  }
}

@media (min-width: 768px) {
  .service {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .service-num {
    grid-column: 1;
    grid-row: 1;
  }

  .service-name {
    grid-column: 2 / 7;
    padding-right: var(--gap);
  }

  .service-body {
    grid-column: 7 / -1;
    margin-top: 0;
    padding-top: 0.35em;
  }
}

/* Réalisations */

.projects {
  margin-top: clamp(56px, 8vw, 112px);
}

.project + .project {
  margin-top: clamp(80px, 11vw, 160px);
}

.project-shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--glacier);
  outline: 1px solid var(--line-soft);
  outline-offset: -1px;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease);
}

@media (hover: hover) {
  .project:hover .project-shot img {
    transform: scale(1.025);
  }
}

.project-meta {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 12px;
  padding-top: 20px;
}

.project-num {
  grid-row: 1 / 5;
  padding-top: 0.5em;
  color: var(--rock);
  font-size: 0.875rem;
  font-weight: 500;
}

.project-name {
  font-size: clamp(1.5rem, 3.1vw, 2.625rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--rock);
  font-size: 0.875rem;
  font-weight: 500;
}

.project-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--red);
}

.project-text {
  max-width: 44ch;
  margin-top: 10px;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  text-wrap: pretty;
}

.project-link {
  margin-top: 14px;
}

@media (min-width: 768px) {
  .project-meta {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .project-num {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .project-name,
  .project-tag {
    grid-column: 2 / 7;
  }

  .project-text,
  .project-link {
    grid-column: 7 / -1;
  }

  .project-name,
  .project-text {
    grid-row: 1;
  }

  .project-text {
    margin-top: 0;
    padding-top: 0.35em;
  }
}

/* Visibilité (SEO) */

.section-intro {
  max-width: 46ch;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  text-wrap: pretty;
}

.seo {
  display: grid;
  gap: 64px var(--gap);
  margin-top: clamp(56px, 8vw, 112px);
}

.serp {
  position: relative;
  align-self: start;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--ink);
  background: var(--snow);
  box-shadow: 14px 14px 0 var(--glacier);
}

.serp-tag {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 4px 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.serp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-mid);
  font-size: 1rem;
}

.serp-loupe {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--rock);
}

.serp-caret {
  width: 2px;
  height: 1.15em;
  margin-left: -6px;
  background: var(--red);
  animation: clignote 1s steps(1) infinite;
}

@keyframes clignote {
  50% {
    opacity: 0;
  }
}

.serp-results {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.serp-map {
  position: relative;
  height: clamp(110px, 12vw, 150px);
  overflow: hidden;
  background:
    linear-gradient(118deg, transparent 46%, #f7f8f7 46%, #f7f8f7 49%, transparent 49%),
    linear-gradient(28deg, transparent 62%, #f7f8f7 62%, #f7f8f7 64%, transparent 64%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgb(34 42 46 / 0.06) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgb(34 42 46 / 0.06) 23px 24px),
    var(--glacier);
}

.serp-pin {
  position: absolute;
  top: 40%;
  left: 57%;
  width: 14px;
  height: 14px;
  background: var(--red);
  box-shadow: 0 0 0 7px rgb(163 63 70 / 0.18);
  transform: rotate(45deg);
}

.serp-place strong {
  display: block;
  font-weight: 600;
}

.serp-place span {
  color: var(--rock);
  font-size: 0.875rem;
}

.serp-hit {
  padding-left: 14px;
  border-left: 3px solid var(--red);
}

.serp-url {
  color: var(--rock);
  font-size: 0.8125rem;
}

.serp-title {
  margin-top: 2px;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: underline 1px;
  text-underline-offset: 4px;
}

.serp-desc {
  margin-top: 6px;
  color: #3c474c;
  font-size: 0.9375rem;
}

.serp-ghost span {
  display: block;
  height: 8px;
  margin-top: 8px;
  background: rgb(34 42 46 / 0.09);
}

.serp-ghost span:nth-child(1) {
  width: 38%;
}

.serp-ghost span:nth-child(2) {
  width: 82%;
  height: 11px;
}

.serp-ghost span:nth-child(3) {
  width: 64%;
}

.seo-points {
  display: grid;
  gap: 36px var(--gap);
}

.seo-point {
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.seo-num {
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.seo-name {
  margin-top: 10px;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.seo-text {
  margin-top: 6px;
  color: var(--rock);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .seo-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .seo {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .serp {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    grid-column: 1 / 6;
  }

  .seo-points {
    grid-column: 7 / -1;
  }
}

/* Démarche */

.steps {
  display: grid;
  gap: 48px var(--gap);
  margin-top: clamp(56px, 8vw, 112px);
}

.step {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.step::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--red);
}

.step-num {
  display: block;
  color: transparent;
  font-size: clamp(4.5rem, 8.5vw, 8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 1.5px var(--ink);
  transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease;
}

.step:hover .step-num {
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
}

.step-name {
  margin-top: clamp(28px, 4vw, 56px);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step-text {
  max-width: 30ch;
  margin-top: 8px;
  color: var(--rock);
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Contact ──────────────────────────────────────────── */

.contact {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--section-space) + clamp(60px, 9vw, 150px));
  padding-block: clamp(28px, 4vw, 48px) clamp(96px, 12vw, 168px);
  background: var(--glacier);
}

.contact-grid {
  display: grid;
  gap: 72px var(--gap);
}

.contact .section-title {
  max-width: 11ch;
}

.contact-text {
  max-width: 38ch;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  text-wrap: pretty;
}

.contact-mail-label {
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--rock);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-mail {
  margin-top: 6px;
  font-size: clamp(2.25rem, 11vw, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.contact-mail a {
  text-decoration-line: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  transition: color 0.2s ease;
}

.contact-mail a:hover {
  color: var(--red);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
}

.copy-button {
  appearance: none;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-button:hover {
  background: var(--ink);
  color: var(--glacier);
}

.copy-status {
  color: var(--rock);
  font-size: 0.875rem;
}

.contact-place {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 14px;
  border-top: 1px solid var(--line-mid);
  color: var(--rock);
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .contact-intro {
    grid-column: 1 / 6;
  }

  .contact-form {
    grid-column: 7 / -1;
    padding-top: clamp(40px, 6vw, 80px);
  }
}

/* Formulaire */

.form {
  display: grid;
  gap: 26px;
}

.form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-mid);
}

.form-delai {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.form-delai::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--red);
}

.form-legend {
  color: var(--rock);
  font-size: 0.8125rem;
}

.form-legend span,
.req {
  color: var(--red);
}

.field-row {
  display: grid;
  gap: 26px var(--gap);
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  min-width: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.optional {
  color: var(--rock);
  font-weight: 400;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--line-mid);
  border-radius: 0;
  background: var(--snow);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field select {
  display: block;
  width: 100%;
  padding: 14px 44px 14px 14px;
  border: 1px solid var(--line-mid);
  border-radius: 0;
  background: var(--snow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6' fill='none' stroke='%23222a2e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  appearance: none;
  cursor: pointer;
}

.field select:hover {
  border-color: var(--ink);
}

.field select:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--red);
}

.field textarea::placeholder,
.field input::placeholder {
  color: #8a959b;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--red);
}

.field [aria-invalid='true'] {
  border-color: var(--red);
  box-shadow: inset 3px 0 0 var(--red);
}

.field-error {
  color: var(--red-dark);
  font-size: 0.875rem;
  font-weight: 500;
}

.field-error:not(:empty) {
  margin-top: 8px;
}

.choices {
  padding: 0;
  border: 0;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-mid);
  background: var(--snow);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.choice span::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.choice:hover span {
  border-color: var(--ink);
}

.choice input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--snow);
}

.choice input:checked + span::before {
  border-color: var(--red);
  background: var(--red);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}

.form-note {
  max-width: 30ch;
  color: var(--rock);
  font-size: 0.8125rem;
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  background: var(--snow);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-success {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.form-success:focus {
  outline: none;
}

.form-success-title {
  max-width: 22ch;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.form-success .link-arrow {
  margin-top: 24px;
}

/* Arêtes entre les sections */
.contact-arete,
.footer-arete {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(60px, 9vw, 150px);
  pointer-events: none;
}

.arete {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Pied de page ─────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 1;
  padding-top: 28px;
  /* Remplit aussi la zone de l'indicateur d'accueil sur iPhone. */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ink);
  color: var(--muted-dark);
}

.site-footer .wrap {
  overflow: hidden;
}

.footer-row {
  display: grid;
  gap: 4px 24px;
  padding-top: 18px;
  border-top: 1px solid rgb(247 248 247 / 0.2);
  font-size: 0.875rem;
}

.footer-row a {
  color: var(--snow);
}

.site-footer :focus-visible {
  outline-color: var(--snow);
}

@media (min-width: 768px) {
  .footer-row {
    grid-template-columns: repeat(5, auto);
    justify-content: space-between;
  }
}

.footer-mark {
  margin: clamp(32px, 5vw, 64px) 0 -0.2em -0.04em;
  color: #2c363b;
  font-size: min(26cqw, 26rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  user-select: none;
}

/* Page de remerciement (sans JavaScript) */

.merci {
  min-height: 70vh;
  padding-block: clamp(64px, 10vw, 128px) clamp(96px, 14vw, 192px);
}

.merci .section-title {
  max-width: 20ch;
}

.merci-back {
  margin-top: 40px;
}

/* ── Animations (désactivées si l'utilisateur réduit les mouvements) ── */

@media (prefers-reduced-motion: no-preference) {
  .hero-title,
  .hero-bottom,
  .hero-infos {
    animation: rise 1s var(--ease) both;
  }

  .hero-bottom {
    animation-delay: 0.12s;
  }

  .hero-infos {
    animation-delay: 0.24s;
  }

  .alpes-layer {
    animation: monte 1.6s var(--ease) backwards;
  }

  .alpes-layer:nth-of-type(2) {
    animation-delay: 0.12s;
  }

  .alpes-layer:nth-of-type(3) {
    animation-delay: 0.24s;
  }

  .alpes-layer:nth-of-type(4) {
    animation-delay: 0.36s;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.6s ease-out, transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js .section-label[data-reveal] {
    transform: none;
    background-size: 0% 1px;
    transition: opacity 0.6s ease, background-size 1.2s var(--ease);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js .section-label[data-reveal].is-in {
    background-size: 100% 1px;
  }

  .js .serp .serp-results {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s ease, transform 0.9s var(--ease);
  }

  .js .serp.is-typed .serp-results {
    opacity: 1;
    transform: none;
  }
}

@keyframes monte {
  from {
    transform: translateY(140px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bandeau-track {
    animation: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Formulaire : sections, services offerts ── */

.form-section {
  display: grid;
  gap: 22px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-section > legend {
  width: 100%;
  margin-bottom: 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-mid);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.form-section > legend .optional {
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .field-row--npa {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  }
}

.field-note {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--red);
  background: rgb(247 248 247 / 0.7);
  font-size: 0.9375rem;
}

.offers {
  display: grid;
  gap: 10px;
}

.offer {
  position: relative;
  display: block;
  cursor: pointer;
}

.offer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.offer-box {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-mid);
  background: var(--snow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.offer-box::before {
  content: '';
  grid-row: 1 / 3;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 1.5px solid var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.offer-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-weight: 600;
}

.offer-badge {
  padding: 2px 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-detail {
  grid-column: 2;
  margin-top: 2px;
  color: var(--rock);
  font-size: 0.9375rem;
}

.offer:hover .offer-box {
  border-color: var(--ink);
}

.offer input:checked + .offer-box {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--red);
}

.offer input:checked + .offer-box::before {
  border-color: var(--red);
  background: var(--red);
}

.offer input:focus-visible + .offer-box {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}


/* Bas de l'accueil : e-mail ou formulaire */
.contact-cta {
  align-self: start;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--ink);
  border-top: 4px solid var(--red);
  background: var(--snow);
}

.contact-cta-label {
  color: var(--rock);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-cta-title {
  margin-top: 10px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contact-cta-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.contact-cta-points li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.0625rem;
}

.contact-cta-points li::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--red);
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .contact-grid--accueil .contact-cta {
    grid-column: 7 / -1;
    margin-top: clamp(40px, 6vw, 80px);
  }
}

/* Page contact */
/* Même écart entre l'en-tête et le filet de rubrique que sur les autres sections. */
.contact-page {
  margin-top: 0;
  padding-top: 36px;
}

.contact-page .contact-arete {
  display: none;
}

.contact-page .section-title {
  max-width: 12ch;
}

@media (min-width: 1024px) {
  .contact-page .contact-intro {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

/* Téléphone et tablette (une colonne) : titre, phrase d'intro, puis le formulaire tout de suite. */
@media (max-width: 1023px) {
  .contact-page .contact-grid {
    gap: 36px;
  }

  .contact-page .contact-direct {
    display: none;
  }
}
