:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #eee8dd;
  --text: #171411;
  --muted: #6f655d;
  --line: rgba(23, 20, 17, .12);
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: rgba(15, 118, 110, .12);
  --accent: #f59e0b;
  --radius: 24px;
  --shadow: 0 26px 70px rgba(24, 20, 15, .12);
  --max: 1120px;
}

.theme-artisan {
  --bg: #fff7ed;
  --surface-2: #ffedd5;
  --brand: #b45309;
  --brand-dark: #92400e;
  --brand-soft: rgba(180, 83, 9, .13);
  --accent: #0f766e;
}

.theme-garage {
  --bg: #f3f6fb;
  --surface-2: #dbeafe;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --brand-soft: rgba(29, 78, 216, .13);
  --accent: #f97316;
}

.theme-beaute {
  --bg: #fff5f7;
  --surface-2: #ffe4ec;
  --brand: #be185d;
  --brand-dark: #9d174d;
  --brand-soft: rgba(190, 24, 93, .13);
  --accent: #c084fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, var(--brand-soft), transparent 30rem),
    radial-gradient(circle at 92% 5%, rgba(245, 158, 11, .11), transparent 26rem),
    var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-logo {
  width: 92px;
  height: auto;
}

.brand-word {
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 16px 36px var(--brand-soft);
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn-light {
  background: #fff;
  color: var(--text);
}

.hero {
  padding: 76px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -.058em;
  line-height: .98;
}

h1 { font-size: clamp(44px, 7vw, 82px); }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: 24px; }

.lead {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.micro-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.proof-pill {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--muted);
  font-size: 14px;
}

.hero-card, .card {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .055);
}

.hero-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-img {
  width: 100%;
  min-height: 390px;
  object-fit: cover;
  background: var(--surface-2);
}

.hero-mini {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: -62px 20px 20px;
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
}

.hero-mini strong { display: block; font-size: 18px; }
.hero-mini span { color: var(--muted); font-size: 14px; }

.section {
  padding: 50px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
}

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

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

.card { padding: 24px; }

.card p {
  color: var(--muted);
  margin: 10px 0 0;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 950;
}

.demo-card {
  padding: 0;
  overflow: hidden;
}

.demo-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.demo-body { padding: 22px; }

.demo-body .btn {
  width: 100%;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}

.gallery img {
  width: 100%;
  min-height: 230px;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.gallery img:first-child {
  grid-row: span 2;
}

.price-card {
  padding: 28px;
}

.price {
  font-size: 54px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.065em;
}

.offer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.offer-row:last-child { border-bottom: 0; }

.small { color: var(--muted); font-size: 14px; }

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 76px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.cta-panel {
  padding: clamp(30px, 5vw, 58px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 100%, var(--brand-soft), transparent 22rem),
    #1d1a17;
  color: white;
  overflow: hidden;
}

.cta-panel .lead, .cta-panel p { color: rgba(255, 255, 255, .72); }

.cta-logo {
  width: 130px;
  margin-bottom: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-item {
  padding: 15px 16px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 850;
}

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

.form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form input, .form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.form input:focus, .form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.form textarea {
  min-height: 118px;
  resize: vertical;
}

.notice {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.footer {
  margin-top: 48px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 86px;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open { display: flex; }
  .nav-links a, .nav-links .btn { width: 100%; justify-content: center; }

  .hero-grid, .grid-2, .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gallery img:first-child { grid-row: auto; }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .container { width: min(var(--max), calc(100% - 22px)); }
  .hero { padding-top: 46px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .brand-logo { width: 76px; }
  .brand-word { display: none; }
  .hero-mini { grid-template-columns: 1fr; }
  .step { padding-left: 24px; padding-top: 72px; }
  .step::before { left: 24px; top: 24px; }
}

/* Images réelles intégrées */
.demo-card img,
.hero-img {
  object-position: center;
}

.theme-artisan .hero-img,
.theme-artisan .demo-card img {
  object-position: center;
}

.theme-garage .hero-img,
.theme-garage .demo-card img {
  object-position: center;
}

.theme-beaute .hero-img,
.theme-beaute .demo-card img {
  object-position: center;
}

/* Logo WMdev original, non recoloré */
.brand-logo {
  width: 112px;
  height: auto;
  object-fit: contain;
}

.footer-logo {
  width: 104px;
  height: auto;
  object-fit: contain;
}

.cta-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
}

.cta-logo-plate .cta-logo {
  width: 130px;
  margin: 0;
  height: auto;
  object-fit: contain;
}

@media (max-width: 540px) {
  .brand-logo { width: 92px; }
}
