html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
}

::selection {
  background: white;
  color: black;
}

img {
  max-width: 100%;
}

.hero-title {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-title span {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.service-card,
.step-card,
.commitment {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1.5rem;
  padding: 2rem;
  transition:
    transform 250ms ease,
    background 250ms ease,
    border-color 250ms ease;
}

.service-card:hover,
.step-card:hover,
.commitment:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
}

.service-number,
.step-card span {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: rgb(161, 161, 170);
  letter-spacing: 0.25em;
  font-size: 0.8rem;
}

.service-card h3,
.step-card h3,
.commitment h3 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.service-card p,
.step-card p,
.commitment p {
  color: rgb(212, 212, 216);
  line-height: 1.7;
}

.form-field {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  outline: none;
}

.form-field:focus {
  border-color: rgba(255, 255, 255, 0.55);
}

.form-field::placeholder {
  color: rgb(113, 113, 122);
}

@media (max-width: 640px) {
  .hero-title {
    display: block;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-title span {
    display: block;
    max-width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    padding-left: 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-title + p {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (min-width: 1280px) {
  main#accueil {
    padding-top: 2rem;
  }

  body > header > div:first-child {
    display: grid;
    grid-template-columns: minmax(15.5rem, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    column-gap: 2rem;
    row-gap: 0.65rem;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 0.85rem;
  }

  body > header > div:first-child > a:first-child {
    grid-area: brand;
    min-width: 15.5rem;
    justify-self: start;
  }

  body > header nav {
    grid-area: nav;
    justify-content: center;
    gap: 1.75rem;
    min-width: 0;
    padding-top: 0.25rem;
    font-size: 0.82rem;
  }

  body > header nav a,
  body > header nav button {
    white-space: nowrap;
  }

  body > header nav + div {
    grid-area: actions;
    display: flex;
    justify-self: end;
    justify-content: flex-end;
    min-width: 0;
    gap: 1rem;
    font-size: 0.82rem;
  }

  body > header nav + div > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  body > header nav + div > a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(212, 175, 55, 0.16),
      transparent 32%
    ),
    linear-gradient(135deg, #111827 0%, #1f2937 45%, #0f172a 100%);
  color: #ffffff;
}

.error-section {
  width: 100%;
  padding: 80px 20px;
}

.error-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
  backdrop-filter: blur(10px);
}

.error-card .eyebrow {
  margin-bottom: 16px;
  color: #d4af37;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-card h1 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.error-card p {
  max-width: 620px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.error-actions .btn {
  text-decoration: none;
}

@media (max-width: 640px) {
  .error-card {
    padding: 34px 22px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
