:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --surface-soft: #f1eadc;
  --text: #17251f;
  --muted: #667069;
  --green: #123c2d;
  --green-2: #1b513d;
  --gold: #c59b56;
  --border: #ded8cd;
  --shadow: 0 18px 50px rgba(25, 38, 31, .10);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(222, 216, 205, .8);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
}

.brand strong,
.site-footer h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.35rem;
}

.brand small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .65rem;
  letter-spacing: .12em;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a {
  text-decoration: none;
  font-size: .95rem;
}

.main-nav a:hover {
  color: var(--gold);
}

.phone-link {
  text-decoration: none;
  background: var(--green);
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.nav-toggle {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  -webkit-appearance: none;
  appearance: none;
}

.nav-toggle:hover,
.nav-toggle:focus,
.nav-toggle:active {
  color: var(--green);
  background: transparent;
  outline: none;
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(rgba(12, 30, 23, .34), rgba(12, 30, 23, .50)),
    url('../images/pexels-tizzy-29995960.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 18, 14, .66), rgba(5, 18, 14, .08));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 90px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--gold);
}

.hero h1,
.section h2 {
  font-family: Georgia, 'Times New Roman', serif;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  line-height: .93;
}

.hero h1 em {
  color: #efc77f;
  font-weight: 400;
}

.hero-text {
  max-width: 560px;
  margin: 26px 0;
  font-size: 1.22rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #e2ba72;
  color: #17251f;
}

.btn-dark {
  background: var(--green);
  color: white;
  width: 100%;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  font-size: .95rem;
}

.section {
  padding: 90px 0;
}

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

.section-heading {
  max-width: 720px;
  text-align: center;
  margin: 0 auto 46px;
}

.section-heading h2,
.quote-intro h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 15px;
}

.section-heading p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #e8e4da;
}

.card-body {
  padding: 26px;
}

.card-body h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.7rem;
  margin: 0 0 10px;
}

.card-body p {
  color: var(--muted);
}

.text-link {
  text-decoration: none;
  color: var(--green);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 7px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.quote-grid {
  display: grid;
  grid-template-columns: .85fr 1.7fr;
  gap: 70px;
  align-items: start;
}

.quote-intro {
  position: sticky;
  top: 110px;
}

.quote-intro p {
  color: var(--muted);
}

.benefits {
  padding: 0;
  list-style: none;
}

.benefits li {
  margin: 12px 0;
}

.quote-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

label,
legend {
  font-size: .93rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(197, 155, 86, .35);
  border-color: var(--gold);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 28px 0;
}

legend {
  margin-bottom: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  margin: 10px 0;
}

.check-row input {
  width: auto;
  margin: 0;
}

.quantity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
}

.quantity-grid label {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  gap: 12px;
}

.quantity-grid input {
  margin: 0;
}

.consent {
  margin: 18px 0;
}

.form-note {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 16px;
}

.site-footer {
  background: var(--green);
  color: white;
  padding: 58px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.site-footer a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

.site-footer p {
  color: rgba(255,255,255,.78);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 22px;
  margin-top: 32px;
  font-size: .84rem;
  color: rgba(255,255,255,.68);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
    flex-direction: column;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .phone-link {
    display: none;
  }

  .cards,
  .steps,
  .quote-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quote-intro {
    position: static;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 610px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-features {
    flex-direction: column;
    gap: 8px;
  }

  .quote-form {
    padding: 20px;
  }

  .quantity-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}


.service-card {
  position: relative;
}

.service-card-main {
  border: 2px solid var(--gold);
}

.badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--green);
  border: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.badge-main {
  background: var(--gold);
  color: #17251f;
  border-color: var(--gold);
}

.fieldset-help {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: .88rem;
}


.locked-fieldset {
  position: relative;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: #f6f4ef;
  transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}

.locked-fieldset.is-unlocked {
  background: #fff;
  border-style: solid;
  border-color: var(--gold);
}

.locked-fieldset:not(.is-unlocked) .quantity-grid {
  opacity: .45;
}

.legend-note {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
}

.lock-message {
  margin: 4px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #efe8da;
  color: var(--green);
  font-size: .88rem;
}

.locked-fieldset.is-unlocked .lock-message {
  display: none;
}


.mandatory-service-note {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef3ee;
  border: 1px solid #cbd8cd;
  color: var(--green);
  font-size: .92rem;
}


.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

.distance-check {
  margin: 18px 0 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf9f5;
}

.distance-status {
  margin: 12px 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.distance-status.ok {
  color: #17643b;
  font-weight: 700;
}

.distance-status.error {
  color: #9b2f2f;
  font-weight: 700;
}

.distance-status.loading {
  color: var(--green);
  font-weight: 700;
}


/* Pages légales */
.legal-main {
  padding: 70px 0 90px;
}

.legal-shell {
  width: min(calc(100% - 40px), 900px);
  margin-inline: auto;
}

.legal-shell h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.legal-shell h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  margin: 38px 0 10px;
}

.legal-shell h3 {
  margin-top: 24px;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

.legal-shell a {
  color: var(--green);
  font-weight: 700;
}

.legal-intro {
  font-size: 1.08rem;
  max-width: 760px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.placeholder-box {
  border: 2px dashed var(--gold);
  background: #fffaf0;
  border-radius: 14px;
  padding: 18px;
  margin: 22px 0;
}

.placeholder-box strong {
  color: #7d5b1f;
}

.privacy-notice {
  margin: 20px 0;
  padding: 16px 18px;
  background: #f7f4ec;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: .9rem;
}

.privacy-notice p {
  margin: 6px 0;
}

.privacy-notice a {
  color: var(--green);
  font-weight: 700;
}

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
  font-weight: 700;
}

.legal-list {
  padding-left: 20px;
}


.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

.success-panel {
  width: min(calc(100% - 40px), 760px);
  margin: 90px auto;
  padding: 42px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.success-panel h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 16px;
}

.success-panel p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 26px;
}
