/* V4 Lugnier — rebuild CRO. Logo fichier inchangé. Jaune #fff200, noir #231f20. */

:root {
  --black: #231f20;
  --yellow: #fff200;
  --text: #3a3a3a;
  --muted: #4a4a4a;
  --soft: #f6f7f8;
  --line: #e6e6e6;
  --wa: #25d366;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(35, 31, 32, 0.08);
  --header: 72px;
  --rail: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: Cabin, sans-serif; color: var(--black); margin: 0; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.proposition-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--yellow);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px 6px 16px;
  min-height: 44px;
}
.version-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--black);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.proposition-banner-text { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header);
  position: relative;
}
.site-header .logo { flex-shrink: 0; }
.site-header .logo img { height: 48px; width: auto; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--black); margin: 5px auto; }
.site-nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.site-nav a {
  display: flex; align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-family: Cabin, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  white-space: nowrap;
  border-radius: 8px;
}
.site-nav a:hover, .site-nav a.is-active { background: var(--yellow); }
.header-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px;
  font-family: Cabin, sans-serif; font-weight: 700; font-size: 13px;
  text-decoration: none; border-radius: 8px; white-space: nowrap;
}
.btn-tel { color: var(--black); border: 1px solid var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-devis { background: var(--yellow); color: var(--black); font-weight: 800; }

.trust-strip {
  background: var(--black);
  color: #fff;
  font-size: 13px;
}
.trust-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 10px 0;
  justify-content: center;
}
.trust-strip strong { color: var(--yellow); font-weight: 700; }

.hero {
  position: relative;
  min-height: 480px;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(35,31,32,.88) 0%, rgba(35,31,32,.55) 52%, rgba(35,31,32,.28) 100%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  padding: 40px 0;
}
.hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; color: #fff; }
.hero .lede { margin: 12px 0 16px; max-width: 48ch; color: #f3f3f3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,242,0,.5);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.hero-quote {
  margin: 0 0 18px;
  max-width: 46ch;
  font-size: 15px;
  color: #fff;
  border-left: 3px solid var(--yellow);
  padding-left: 12px;
}
.hero-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--yellow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-devis {
  min-height: 48px; padding: 0 18px;
  display: inline-flex; align-items: center; text-decoration: none; border-radius: 8px;
}
.hero-actions .btn-tel {
  background: #fff; min-height: 48px; padding: 0 16px;
  display: inline-flex; align-items: center; text-decoration: none; border-radius: 8px; font-weight: 700;
}
.hero-form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-form h2 { font-size: 18px; text-transform: uppercase; margin-bottom: 14px; }

.field { margin-bottom: 10px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--black); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
}
.field textarea { min-height: 88px; resize: vertical; }
.field-error { display: none; color: #8a1f1f; font-size: 13px; margin-top: 4px; }
.field.is-invalid .field-error { display: block; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #8a1f1f; }
.btn-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  font-family: Cabin, sans-serif;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  cursor: pointer;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

section { padding: clamp(2rem, 5vw, 4.5rem) 0; }
.avis-section { padding: 40px 0 56px; background: var(--soft); }
.avis-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.avis-heading .section-title { margin-bottom: 0; }
.avis-score {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow);
}
.avis-score-num {
  font-family: Cabin, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}
.avis-score-num span { font-size: 16px; color: var(--muted); }
.avis-score-meta { font-size: 14px; }
.avis-score-meta a { color: var(--black); font-weight: 700; }

.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.contact-grid .avis-grid { grid-template-columns: 1fr; }
.avis-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.avis-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.avis-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-family: Cabin, sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.avis-author { font-weight: 700; color: var(--black); font-size: 15px; margin: 0; }
.avis-date { font-size: 13px; color: var(--muted); margin: 0; }
.avis-stars { color: #c99400; letter-spacing: 1px; font-size: 14px; line-height: 1; }
.avis-quote { flex: 1; margin: 0; }
.avis-quote p { margin: 0; font-size: 15px; }
.avis-quote p + p { margin-top: 8px; }
.avis-card:not(.is-open) .avis-quote {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.avis-more {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
  align-self: flex-start;
}
.avis-more[hidden] { display: none; }
.section-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.section-title { font-size: 28px; margin-bottom: 20px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(35,31,32,.12); }
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card .pad { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 { font-size: 20px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions a {
  flex: 1; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; font-size: 13px; border-radius: 8px;
}
.card-actions .ghost { border: 1px solid var(--black); }
.card-actions .solid { background: var(--yellow); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fact {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.proofs-section { padding: 20px 0; }
.proofs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
}
.proof {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-height: 44px;
}
.proof-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.proof h3 { font-size: 15px; margin: 0; font-weight: 700; }
.welcome-grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center; }
.welcome-boxes { display: grid; gap: 16px; }
.welcome-box { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; }
.stats { background: var(--black); color: #fff; padding: 40px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 32px; color: var(--yellow); }
.callout { text-align: center; }
.callout p { max-width: 68ch; margin: 12px auto 0; }

.page-hero { background: var(--soft); padding: 36px 0 28px; }
.page-hero h1 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.25; max-width: none; }
.page-hero p { margin: 10px 0 0; max-width: 60ch; }
.page-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 36px 0 56px; }
.side-card {
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
}
.side-card h2 { font-size: 18px; margin-bottom: 12px; }
.side-card li { margin: 8px 0; padding-left: 22px; position: relative; }
.side-card li::before { content: "→"; position: absolute; left: 0; }
.side-card a.devis-link {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; margin-top: 16px;
  background: var(--black); color: #fff;
  text-decoration: none; font-weight: 800; border-radius: 8px;
}
.prose img { border-radius: var(--radius); margin: 16px 0; width: 100%; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.split li { margin: 6px 0; padding-left: 14px; position: relative; }
.split li::before { content: "–"; position: absolute; left: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair h3 { font-size: 16px; margin: 12px 0 8px; }
.cta-row { margin-top: 28px; }
.cta-row .btn-devis {
  display: inline-flex; min-height: 48px; padding: 0 20px;
  align-items: center; text-decoration: none; border-radius: 8px; font-weight: 800;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0 56px; }
.contact-grid .facts, .contact-grid .proofs { grid-template-columns: 1fr; }
.main-contact-form .field.full { grid-column: 1 / -1; }
.main-contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.contact-actions { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.contact-actions a {
  min-height: 44px; padding: 0 16px;
  display: inline-flex; align-items: center;
  text-decoration: none; font-weight: 700; border-radius: 8px;
}
.contact-actions .call-btn { background: var(--black); color: #fff; }

.merci { padding: 72px 0; text-align: center; }
.merci h1 { margin-bottom: 12px; }
.merci .btn-devis {
  display: inline-flex; min-height: 44px; padding: 0 18px;
  align-items: center; text-decoration: none; border-radius: 8px; font-weight: 800;
}

.site-footer { background: var(--black); color: #ddd; padding: 40px 0 24px; }
.site-footer a { color: var(--yellow); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 24px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid #3a3637; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.yt { width: 100%; max-width: 360px; height: 200px; border: 0; border-radius: 8px; }

.sticky-rail { display: none; }
.sticky-bar { display: none; }

@media (min-width: 900px) {
  body { padding-right: var(--rail); }
  .proposition-banner, .site-header, .trust-strip, .hero, .avis-section, .proofs-section, .stats, .site-footer, .page-hero {
    margin-right: calc(-1 * var(--rail));
    padding-right: var(--rail);
  }
  .sticky-rail {
    display: flex; flex-direction: column;
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    width: var(--rail); z-index: 40;
  }
  .sticky-rail .sticky-btn {
    display: flex; align-items: center; justify-content: center;
    width: var(--rail); height: var(--rail); border: 0; color: #fff; cursor: pointer; text-decoration: none;
    position: relative;
  }
  .sticky-rail .sticky-wa { background: var(--wa); }
  .sticky-rail .sticky-tel { background: var(--black); }
  .sticky-rail .sticky-devis { background: var(--yellow); color: var(--black); }
  .sticky-rail .sticky-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  }
}

@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex: none;
  }
  .site-header.is-open .site-nav { display: flex; }
  .header-cta { margin-left: auto; }
  .header-cta .btn-wa { display: none; }
}

@media (max-width: 899px) {
  body { padding-bottom: calc(var(--rail) + env(safe-area-inset-bottom, 0px)); }
  .site-header .logo img { height: 40px; }
  .header-cta .btn-tel { display: none; }
  .trust-strip span:nth-child(n+3) { display: none; }
  .hero .wrap, .page-layout, .contact-grid, .welcome-grid, .services-grid, .avis-grid, .facts, .proofs, .split, .pair, .footer-grid, .stats .wrap, .row-2, .main-contact-form {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 0; padding-bottom: 24px; }
  .hero .wrap { display: flex; flex-direction: column; gap: 20px; }
  .hero-form { order: -1; }
  .hero-form textarea { min-height: 64px; }
  .side-card { position: static; }
  .sticky-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0;
    height: calc(var(--rail) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 100; background: var(--black);
  }
  .sticky-bar .sticky-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; border: 0; background: transparent; color: #fff;
    font-family: Cabin, sans-serif; font-size: 11px; font-weight: 700;
    text-transform: uppercase; text-decoration: none; cursor: pointer;
  }
  .sticky-bar .sticky-wa { color: var(--wa); }
  .sticky-bar .sticky-devis { color: var(--yellow); }
}

.sticky-btn svg { width: 22px; height: 22px; fill: currentColor; }

.devis-overlay { position: fixed; inset: 0; background: rgba(35,31,32,.45); z-index: 45; }
.devis-overlay[hidden], .devis-drawer[hidden] { display: none; }
.devis-drawer {
  position: fixed; top: 0; right: 0; width: min(400px, 100%); height: 100%;
  background: #fff; z-index: 50; padding: 24px 20px 40px; overflow-y: auto;
  box-shadow: var(--shadow);
}
.drawer-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; background: transparent; font-size: 22px; cursor: pointer;
}
.devis-drawer h2 { margin: 8px 40px 16px 0; font-size: 20px; text-transform: uppercase; }

@media (max-width: 699px) {
  .proposition-banner { grid-template-columns: 1fr; justify-items: start; }
  .proposition-banner-text { text-align: left; }
}
