:root {
  --encre: #0B0E14;
  --encre-doux: #4A5160;
  --papier: #FFFFFF;
  --fond: #F7F8FA;
  --bord: #E4E7EC;
  --accent: #F46416;
  --accent-fonce: #C0490D;
  --accent-pale: #FFF3EC;
  --e1: 4px;
  --e2: 8px;
  --e3: 12px;
  --e4: 16px;
  --e5: 24px;
  --e6: 32px;
  --e7: 48px;
  --e8: 64px;
  --e9: 96px;
  --e10: 128px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--encre);
  background: var(--papier);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--encre);
  background: var(--papier);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-fonce);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: var(--e3);
  left: var(--e3);
  z-index: 10;
  transform: translateY(-160%);
  padding: var(--e3) var(--e4);
  border: 1px solid var(--bord);
  border-radius: 8px;
  background: var(--papier);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  max-width: none;
}

.site-header {
  border-bottom: 1px solid var(--bord);
  background: var(--papier);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--e5);
  min-height: 76px;
}

.brand-link,
.header-cta,
.button {
  min-height: 44px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.main-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2) var(--e4);
}

.main-nav {
  margin-left: auto;
  font-size: 0.95rem;
}

.main-nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.main-nav [aria-current="page"] {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}

.section,
.hero {
  padding-block: 72px;
}

.hero {
  padding-top: 56px;
  padding-bottom: 80px;
}

.page-hero {
  padding-top: var(--e8);
}

.alt {
  background: var(--fond);
}

.hero-inner {
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 15em;
  margin-bottom: var(--e5);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  margin-bottom: var(--e5);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: var(--e3);
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: 0;
}

h4 {
  margin-bottom: var(--e2);
  font-size: 1rem;
}

.lead {
  max-width: 68ch;
  color: var(--encre-doux);
  font-size: 1.25rem;
}

.narrow p {
  max-width: 68ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
  margin-top: var(--e6);
}

.button,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--e3) var(--e5);
  border: 1px solid var(--encre);
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.primary,
.header-cta {
  color: var(--papier);
  background: var(--encre);
}

.primary:hover,
.header-cta:hover {
  color: var(--papier);
  box-shadow: 0 2px 0 var(--accent);
}

.secondary {
  color: var(--encre);
  background: var(--papier);
}

.card-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--e4);
}

.card,
.price-card,
.estimate-panel,
.warning {
  border: 1px solid var(--bord);
  border-radius: 8px;
  background: var(--papier);
  padding: var(--e5);
}

.link-card {
  display: block;
  min-height: 100%;
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--accent);
}

.price {
  color: var(--encre);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.price.large,
.estimate-value {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
}

.disclaimer,
.help,
.updated,
.estimate-label,
.estimate-meta {
  color: var(--encre-doux);
}

.disclaimer {
  max-width: 68ch;
  margin-top: var(--e5);
  padding-left: var(--e4);
  border-left: 4px solid var(--accent);
}

.check-list {
  display: grid;
  gap: var(--e3);
  padding-left: 1.2em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--e4);
  padding: 0;
  list-style: none;
}

.steps li {
  border: 1px solid var(--bord);
  border-radius: 8px;
  background: var(--papier);
  padding: var(--e5);
}

.steps span {
  display: block;
  margin-bottom: var(--e4);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.faq-list {
  display: grid;
  gap: var(--e3);
}

details {
  border: 1px solid var(--bord);
  border-radius: 8px;
  background: var(--papier);
  padding: var(--e4);
}

summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}

.final-cta {
  text-align: left;
}

.final-cta h2 {
  max-width: 68ch;
}

.quote-layout {
  max-width: 820px;
}

.quote-form {
  display: grid;
  gap: var(--e6);
}

.form-group {
  display: grid;
  gap: var(--e3);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label {
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: var(--e3);
  border: 1px solid var(--bord);
  border-radius: 8px;
  color: var(--encre);
  background: var(--papier);
  font: inherit;
}

textarea {
  resize: vertical;
}

.choices {
  display: grid;
  gap: var(--e3);
}

.choice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--e3);
  align-items: start;
  min-height: 44px;
  padding: var(--e3);
  border: 1px solid var(--bord);
  border-radius: 8px;
  background: var(--papier);
  font-weight: 400;
}

.choice input {
  width: 20px;
  min-height: 20px;
  margin-top: 0.25em;
}

.consent {
  background: var(--accent-pale);
}

.submit {
  width: fit-content;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.estimate-errors {
  margin: 0;
  color: var(--accent-fonce);
}

.warning {
  margin-block: var(--e5);
  border-color: var(--accent);
  background: var(--accent-pale);
}

.legal-section {
  margin-top: var(--e7);
}

.site-footer {
  border-top: 1px solid var(--bord);
  background: var(--encre);
  color: var(--papier);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--e6);
  padding-block: var(--e7);
}

.site-footer p {
  margin-bottom: var(--e1);
  color: #D8DDE7;
}

.site-footer a:hover {
  color: var(--papier);
}

@media (max-width: 860px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    margin-left: 0;
  }

  .header-cta {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .section,
  .hero {
    padding-block: var(--e7);
  }

  .hero {
    padding-block: var(--e7);
  }

  h1 {
    max-width: 100%;
  }

  .lead {
    font-size: 1.125rem;
  }

  .button,
  .submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
