/* ==========================================================================
   PellAnt Rénovation & Décoration — feuille de style principale
   ========================================================================== */

:root {
  --red: #c4262d;
  --red-dark: #a11e25;
  --red-soft: #fbeceb;
  --ink: #292a28;
  --ink-2: #454643;
  --muted: #6b6c68;
  --paper: #ffffff;
  --stone: #f5f2ed;
  --stone-2: #ebe6dd;
  --line: #e0dad0;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --wa-chat: #efeae2;
  --wa-bubble: #d9fdd3;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(41 42 40 / 6%), 0 8px 24px rgb(41 42 40 / 8%);
  --shadow-lg: 0 2px 4px rgb(41 42 40 / 6%), 0 20px 48px rgb(41 42 40 / 14%);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Étiquettes condensées, écho au « RÉNOVATION & DÉCORATION » du logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-stretch: 75%;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  /* petit motif « escalier » tiré de la jonction noir / rouge du logo */
  content: "";
  width: 18px; height: 14px; flex: none;
  background: var(--red);
  clip-path: polygon(0 0, 33% 0, 33% 33%, 66% 33%, 66% 66%, 100% 66%, 100% 100%, 0 100%);
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--ink .section-head p { color: #c9c9c5; }

/* ---------- Boutons ---------- */
.btn {
  --_bg: var(--ink); --_fg: #fff; --_bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border: 2px solid var(--_bd); border-radius: 999px;
  background: var(--_bg); color: var(--_fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--red { --_bg: var(--red); --_bd: var(--red); }
.btn--red:hover { --_bg: var(--red-dark); --_bd: var(--red-dark); }
.btn--wa { --_bg: var(--wa-dark); --_bd: var(--wa-dark); }
.btn--wa:hover { --_bg: #0e7a40; --_bd: #0e7a40; }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); --_bd: var(--ink); }
.btn--ghost:hover { --_bg: var(--ink); --_fg: #fff; }
.btn--light { --_bg: #fff; --_fg: var(--ink); --_bd: #fff; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgb(41 42 40 / 6%); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 46px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink-2);
}
.main-nav a:hover { color: var(--red); background: var(--red-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--red); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 0; border-radius: 10px;
  background: var(--stone); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--stone); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch;
  min-height: min(720px, calc(100svh - var(--header-h)));
}
.hero-copy { padding: clamp(48px, 7vw, 96px) clamp(0px, 3vw, 48px) clamp(48px, 7vw, 96px) 0; align-self: center; }
.hero-copy h1 span { color: var(--red); }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.trust-list {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  list-style: none; margin: 0; padding: 0;
  font-weight: 600; font-size: .95rem; color: var(--ink-2);
}
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list svg { width: 18px; height: 18px; color: var(--red); flex: none; }

.hero-media { position: relative; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2)); }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%;
  /* bord en escalier, comme la séparation noir / rouge de la maison du logo */
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 76%, 5% 76%, 5% 60%, 9.5% 60%, 9.5% 44%, 14% 44%);
}
.hero-badge {
  position: absolute; left: 12%; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  max-width: 300px; padding: 12px 16px 12px 12px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: .88rem; line-height: 1.35;
}
.hero-badge img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; clip-path: none; }
.hero-badge strong { display: block; font-size: .95rem; }
.hero-badge span { color: var(--muted); }

/* ---------- Bandeau métiers ---------- */
.trades {
  background: var(--ink); color: #fff;
  font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.trades ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  list-style: none; margin: 0; padding: 18px 0;
}
.trades li { display: inline-flex; align-items: center; gap: 18px; }
.trades li + li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--red); transform: rotate(45deg); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  display: flex; flex-direction: column;
  padding: 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 12px; background: var(--red-soft); color: var(--red);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card p { color: var(--muted); font-size: .98rem; }
.service-card ul { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.service-card li { position: relative; padding-left: 20px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.service-card li + li { margin-top: 6px; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--red); clip-path: polygon(0 0, 50% 0, 50% 50%, 100% 50%, 100% 100%, 0 100%); }

/* ---------- Avant / Après ---------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-bottom: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.compare figure { position: relative; margin: 0; aspect-ratio: 4 / 3; }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare figure:first-child img { filter: saturate(.7); }
.compare-label {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 12px; border-radius: 6px;
  font-stretch: 75%; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem;
  background: var(--ink); color: #fff;
}
.compare figure:last-child .compare-label { background: var(--red); }
.compare figcaption.compare-caption {
  grid-column: 1 / -1; padding: 16px 20px; color: #e9e9e6; font-size: .95rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
}
.compare-caption strong { color: #fff; }

.projects-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.project-card { grid-column: span 2; }
.project-card--wide { grid-column: span 3; }
.project-card button {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.project-thumb { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--stone-2); }
.project-card--wide .project-thumb { aspect-ratio: 16 / 10; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card button:hover .project-thumb img, .project-card button:focus-visible .project-thumb img { transform: scale(1.04); }
.project-count {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: rgb(41 42 40 / 82%); color: #fff;
  font-size: .85rem; font-weight: 700;
}
.project-count svg { width: 16px; height: 16px; }
.project-meta { padding: 14px 2px 0; }
.project-meta h3 { margin-bottom: 6px; }
.project-meta p { margin: 0; color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; list-style: none; padding: 0; }
.tags li {
  padding: 3px 10px; border-radius: 999px; background: var(--stone); color: var(--ink-2);
  font-size: .8rem; font-weight: 700; font-stretch: 85%; letter-spacing: .02em;
}
.projects-more { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--muted); }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step {
  position: relative; padding: 28px 24px 26px;
  border-radius: var(--radius); background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 18px;
  font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--red);
}
.step h3 { color: #fff; }
.step p { margin: 0; color: #c9c9c5; font-size: .98rem; }
.step--key { background: var(--red); border-color: var(--red); }
.step--key::before { color: #fff; }
.step--key p { color: #ffe9e8; }
.method-note {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 32px; padding: 20px 24px; border-radius: var(--radius);
  background: rgb(255 255 255 / 6%); border-left: 4px solid var(--red); color: #e9e9e6;
}
.method-note svg { width: 26px; height: 26px; flex: none; color: var(--red); margin-top: 2px; }
.method-note p { margin: 0; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-media { position: relative; isolation: isolate; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 28% 50%; width: 100%; }
.about-media::after {
  content: ""; position: absolute; z-index: -1; right: -18px; top: -18px; width: 55%; height: 55%;
  background: var(--red); border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 80%, 25% 80%, 25% 60%, 0 60%);
}
.about-media figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.about-copy p { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.fact { padding: 16px; border-radius: 12px; background: var(--stone); }
.fact dt { font-stretch: 75%; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; color: var(--muted); }
.fact dd { margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; line-height: 1.25; }

/* ---------- Zone ---------- */
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.zone-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 24px; padding: 0; }
.zone-list li {
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem;
}
.zone-list li.is-home { background: var(--red); border-color: var(--red); color: #fff; }
.zone-card { padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.zone-card address { font-style: normal; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.zone-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Devis WhatsApp ---------- */
.devis-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.devis-card { padding: clamp(22px, 3.5vw, 40px); border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.devis-card-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.wa-badge { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--wa); color: #fff; }
.wa-badge svg { width: 30px; height: 30px; }
.devis-card-head h3 { margin: 0; font-size: 1.4rem; }
.devis-card-head p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.devis-intro { color: var(--ink-2); font-size: .98rem; margin: 16px 0 8px; }

.form-group { border: 0; margin: 0; padding: 22px 0 4px; border-top: 1px solid var(--line); margin-top: 18px; }
.form-group legend {
  float: left; width: 100%; padding: 0; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem;
}
.form-group legend span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .8rem;
}
.form-group > *:not(legend) { clear: both; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field > label, .field > .field-label {
  display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem;
}
.field .req { color: var(--red); }
.field .opt { color: var(--muted); font-weight: 500; font-size: .88rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23292a28' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(41 42 40 / 10%); }
.field .hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.field .error-msg { display: none; margin: 6px 0 0; font-size: .87rem; font-weight: 700; color: var(--red); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field.has-error .chips { outline: 1.5px solid var(--red); outline-offset: 6px; border-radius: 8px; }
.field.has-error .error-msg { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: .93rem; line-height: 1.2; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip span::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px; border: 1.5px solid #b9b4aa;
  transition: inherit;
}
.chip input[type="radio"] + span::before { border-radius: 50%; }
.chip:hover span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before {
  border-color: #fff; background: #fff;
  box-shadow: inset 0 0 0 3px var(--ink);
}
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.devis-actions { display: grid; gap: 10px; margin-top: 22px; }
.devis-actions .btn--wa { min-height: 58px; font-size: 1.08rem; }
.devis-secondary { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; font-size: .92rem; color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-status { min-height: 1.4em; margin: 4px 0 0; text-align: center; font-weight: 700; font-size: .92rem; color: var(--wa-dark); }
.privacy-note { display: flex; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--stone); font-size: .87rem; color: var(--ink-2); }
.privacy-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }

/* Aperçu du message, style conversation WhatsApp */
.devis-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.wa-preview { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--wa-chat); }
.wa-preview-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #075e54; color: #fff; }
.wa-preview-top img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; }
.wa-preview-top strong { display: block; font-size: .98rem; line-height: 1.2; }
.wa-preview-top span { font-size: .8rem; opacity: .85; }
.wa-preview-body {
  padding: 18px 14px 22px; max-height: 520px; overflow: auto;
  background-color: var(--wa-chat);
  background-image: radial-gradient(rgb(41 42 40 / 5%) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-day { display: table; margin: 0 auto 12px; padding: 4px 10px; border-radius: 8px; background: #fff; font-size: .75rem; color: var(--muted); box-shadow: 0 1px 1px rgb(0 0 0 / 6%); }
.wa-bubble {
  position: relative; margin-left: auto; max-width: 94%;
  padding: 10px 12px 20px; border-radius: 10px 0 10px 10px;
  background: var(--wa-bubble); box-shadow: 0 1px 1px rgb(0 0 0 / 8%);
  font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}
.wa-bubble::after {
  content: ""; position: absolute; top: 0; right: -8px;
  border-width: 0 0 10px 8px; border-style: solid; border-color: transparent transparent transparent var(--wa-bubble);
}
.wa-bubble b { font-weight: 700; }
.wa-bubble i { font-style: italic; color: var(--ink-2); }
.wa-bubble .wa-time { position: absolute; right: 10px; bottom: 4px; font-size: .7rem; color: var(--muted); }
.wa-bubble .placeholder { color: var(--muted); font-style: italic; }

.devis-promise { padding: 22px 24px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.devis-promise h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.devis-promise h3 svg { width: 22px; height: 22px; color: var(--red); }
.devis-promise p { margin: 0; color: #d6d6d2; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease;
}
a.contact-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); }
.contact-card svg { width: 28px; height: 28px; color: var(--red); margin-bottom: 8px; }
.contact-card .label { font-stretch: 75%; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.contact-card .value { font-weight: 800; font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-card address { font-style: normal; font-weight: 800; font-size: 1.05rem; line-height: 1.35; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #d6d6d2; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { display: inline-block; padding: 14px 18px; border-radius: 12px; background: #fff; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }
.site-footer h4 { color: #fff; font-size: .82rem; font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: .85rem; color: #a9a9a4;
}

/* ---------- Actions flottantes ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--wa-dark); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 28px rgb(18 140 75 / 35%);
  transition: transform .2s ease, opacity .2s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

.mobile-bar { display: none; }

/* ---------- Visionneuse ---------- */
.lightbox {
  width: min(1100px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0;
  border-radius: 16px; background: #111; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgb(16 16 15 / 88%); }
.lightbox-inner { display: grid; grid-template-rows: auto 1fr auto; height: min(86vh, 820px); }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 22px; }
.lightbox-top h3 { margin: 0; font-size: 1.05rem; }
.lightbox-top span { color: #a9a9a4; font-size: .9rem; margin-left: 10px; font-weight: 500; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox-stage img { max-width: 100%; max-height: calc(min(86vh, 820px) - 150px); object-fit: contain; border-radius: 6px; }
.lightbox-caption { padding: 14px 22px 18px; color: #d6d6d2; font-size: .95rem; text-align: center; }
.lb-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 12%); color: #fff; cursor: pointer; transition: background-color .15s ease;
}
.lb-btn:hover { background: rgb(255 255 255 / 24%); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Pages simples (mentions légales) ---------- */
.page-hero { background: var(--stone); padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 48px); }
.page-hero p { color: var(--muted); max-width: 60ch; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1em; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; color: var(--ink-2); }
.note-box { padding: 16px 20px; border-radius: 12px; background: var(--red-soft); color: var(--ink); font-size: .95rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header-phone span { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    padding: 12px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgb(41 42 40 / 12%);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 1.08rem; }
  .main-nav .nav-cta { display: block; margin-top: 12px; }
  .main-nav a.btn, .main-nav a.btn:hover { display: flex; width: 100%; padding: 12px 22px; border-radius: 999px; color: #fff; background: var(--wa-dark); }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; margin: 0 calc(-1 * var(--gutter)); height: 46vw; min-height: 240px; max-height: 420px; }
  .hero-media img { clip-path: polygon(0 0, 100% 0, 100% 100%, 64% 100%, 64% 93%, 44% 93%, 44% 86%, 22% 86%, 22% 79%, 0 79%); }
  .hero-badge { left: auto; right: 12px; bottom: 12px; }
  .hero-copy { padding: 28px 0 56px; }

  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card, .project-card--wide { grid-column: span 1; }
  .project-card--wide .project-thumb { aspect-ratio: 4 / 3; }

  .about-grid, .zone-grid, .devis-grid { grid-template-columns: 1fr; }
  .devis-aside { position: static; }
  .about-media::after { right: -10px; top: -10px; }

  .wa-float { display: none; }
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 96%); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgb(41 42 40 / 8%);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 14px; }
  body { padding-bottom: 72px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services-grid, .steps, .contact-grid, .footer-grid, .projects-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare figure { aspect-ratio: 16 / 11; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero-badge { display: none; }
  .hero-ctas .btn { width: 100%; }
  .trades ul { justify-content: flex-start; gap: 4px 18px; font-size: .85rem; }
  .trades li + li::before { display: none; }
  .lightbox-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; }
  .lightbox-caption { padding-inline: 70px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
