/* Accueil : composition et animations. Chargé uniquement sur la page d'accueil. */
.home .section-head h2 em { margin-top: 0.05em; }

/* Bandeau défilant */
.mq { overflow: hidden; padding-block: clamp(14px, 2vw, 24px); border-bottom: 1px solid var(--line-soft); background: #fff; }
.mq-track { display: flex; width: max-content; }
.mq ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--navy);
}
.mq li { display: flex; align-items: center; }
.mq li::after { content: ""; flex: none; width: 0.14em; height: 0.14em; margin-inline: clamp(20px, 3vw, 48px); border-radius: 50%; background: var(--red); }
.mq li:nth-child(even) { font-weight: 300; letter-spacing: -0.02em; color: var(--red); }

/* Nuisibles */
.bt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bt-t {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 132px;
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
}
.bt-t h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.bt-t::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: translateY(101%); transition: transform 0.5s var(--ease); }
.bt-t:hover { color: #fff; }
.bt-t:hover::before { transform: none; }
.bt-go {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: transform 0.45s var(--ease), color 0.25s ease;
}
.bt-go::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bt-t:hover .bt-go { transform: rotate(-45deg); color: var(--red); }
.bt-t--xl, .bt-t--w { grid-column: span 2; }
.bt-t--xl { min-height: 270px; }
.bt-t--w { min-height: 180px; }
.bt-t--red { background: var(--red); color: #fff; }
.bt-t--red::before { background: var(--red-dark); }
.bt-t--img { background: var(--navy); color: #fff; }
.bt-t--img img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease); }
.bt-t--img::before { transform: none; background: linear-gradient(180deg, rgba(10, 18, 26, 0) 38%, rgba(10, 18, 26, 0.82) 100%); transition: none; }
.bt-t--img:hover img { scale: 1.06; }

/* Déroulement */
.fx { background: var(--navy); color: #fff; }
.fx .eyebrow, .fx h2 em { color: var(--rose); }
.fl { --n: 48px; --g: var(--s6); display: grid; gap: var(--g); margin: 0; padding: 0; list-style: none; }
.fl li { position: relative; min-height: var(--n); padding-left: calc(var(--n) + 18px); }
.fl li:not(:last-child)::before, .fl li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--n) / 2 - 1px);
  top: var(--n);
  bottom: calc(var(--g) * -1);
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
}
.fl li:not(:last-child)::after { background: var(--red); transform-origin: top; transition: transform 0.5s linear calc(var(--i) * 0.42s + 0.3s); }
.fl-n {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--n);
  height: var(--n);
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  transition: background-color 0.3s ease calc(var(--i) * 0.42s), border-color 0.3s ease calc(var(--i) * 0.42s);
}
.fl h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; transition: opacity 0.5s ease calc(var(--i) * 0.42s), transform 0.5s var(--ease) calc(var(--i) * 0.42s); }
.fl p { margin-top: var(--s1); color: #c6ced6; font-size: 0.98rem; transition: opacity 0.5s ease calc(var(--i) * 0.42s + 0.08s), transform 0.5s var(--ease) calc(var(--i) * 0.42s + 0.08s); }

/* Particuliers et professionnels */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.duo-c {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: clamp(360px, 33vw, 440px);
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--radius-card);
  background: var(--navy);
  color: #fff;
  scroll-margin-top: 96px;
}
.duo-c img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; scale: 1.02; transition: scale 1s var(--ease); }
.duo-c::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 26, 0.04) 28%, rgba(10, 18, 26, 0.9) 100%); }
.duo-c:hover img { scale: 1.08; }
.duo-c h3 { max-width: 15em; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.duo-c p { max-width: 36ch; margin: var(--s2) 0 var(--s4); color: #e6e9ec; }
.duo-c a.btn { color: var(--navy); }

/* Zones et société */
.zp { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: center; }
.zp .mx-chips { margin-top: var(--s5); }
.zp-note { margin-top: var(--s4); }
.zp-card { overflow: hidden; border-radius: var(--radius-card); background: var(--soft); }
.zp-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zp-card dl { margin: 0; padding: var(--s2) var(--s4) var(--s3); }
.zp-card dl > div { padding-block: var(--s3); border-top: 1px solid var(--line-soft); }
.zp-card dl > div:first-child { border-top: 0; }
.zp-card dt { font-weight: 800; }
.zp-card dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* Questions */
.home #faq { padding-bottom: 0; }
.fq { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.fq .section-head { margin-bottom: 0; }
@media (min-width: 720px) {
  .bt { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15.5vw, 205px); gap: 14px; }
  .bt-t, .bt-t--xl, .bt-t--w { min-height: 0; }
  .bt-t { padding: var(--s5); }
  .bt-t--xl { grid-row: span 2; }
  .bt-t--xl h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -0.035em; }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zp-card dl { padding-inline: var(--s5); }
}

@media (min-width: 1040px) {
  .home .mx-hero h1 { font-size: clamp(3rem, 1.6rem + 3.2vw, 4.1rem); }
  .fl { --g: var(--s5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fl li { padding-left: 0; padding-top: calc(var(--n) + 20px); }
  .fl li:not(:last-child)::before, .fl li:not(:last-child)::after {
    left: var(--n);
    right: calc(var(--g) * -1);
    top: calc(var(--n) / 2 - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .fl li:not(:last-child)::after { transform-origin: left; }
  .zp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s7); }
  .fq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s7); align-items: start; }
  .fq .section-head { position: sticky; top: 96px; }
}

/* Déroulement : apparition de la ligne */
.js-motion [data-rv="line"]:not(.is-in) .fl-n { background: transparent; border-color: rgba(255, 255, 255, 0.28); }
.js-motion [data-rv="line"]:not(.is-in) li::after { transform: scaleY(0); }
.js-motion [data-rv="line"]:not(.is-in) h3, .js-motion [data-rv="line"]:not(.is-in) p { opacity: 0; transform: translateY(12px); }

@media (min-width: 1040px) {
  .js-motion [data-rv="line"]:not(.is-in) li::after { transform: scaleX(0); }
}

/* Animations propres à l'accueil */
@media (prefers-reduced-motion: no-preference) {
  .mq-track { animation: sf-defile 42s linear infinite; }
  .mq:hover .mq-track { animation-play-state: paused; }
}

@keyframes sf-defile { to { transform: translate3d(-50%, 0, 0); } }

/* Pourquoi agir */
.pq { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: center; }
.pq-lead { margin-top: var(--s3); }
.pq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.pq-grid li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.pq-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--red); box-shadow: 0 10px 24px -18px rgba(15, 32, 46, 0.5); }
.pq-ic svg { width: 22px; height: 22px; }
.pq-grid h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.015em; }
.pq-grid p { margin-top: 2px; color: var(--ink-2); font-size: 0.96rem; line-height: 1.45; }
.pq-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }

/* Bandeau d'appel au devis */
.cb-sec { padding-block: var(--s7) 0; }
.cb { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); padding: var(--s5) var(--s4); border-left: 5px solid var(--red); border-radius: var(--radius-card); background: var(--soft); }
.cb h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.cb p { margin-top: var(--s1); color: var(--ink-2); }

/* Prix */
.px { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: start; }
.px-lead { margin-top: var(--s3); }
.px-list { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.px-list li { padding: 0.55rem 1rem; border: 1px solid var(--line-soft); border-radius: 999px; background: #fff; font-size: 0.95rem; font-weight: 600; }
.px-card { padding: var(--s5); border-radius: var(--radius-card); background: var(--navy); color: #fff; }
.px-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.px-card ul { margin: var(--s4) 0 var(--s5); padding: 0; list-style: none; }
.px-card li { display: flex; gap: var(--s2); padding-block: var(--s3); border-top: 1px solid rgba(255, 255, 255, 0.16); color: #e6e9ec; }
.px-card li::before { content: "✓"; flex: none; color: var(--rose); font-weight: 800; }

/* Conseils */
.cs-list { display: grid; gap: var(--s7); }
.cs-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: center; }
.cs-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-card); }
.cs-row h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.cs-row p { margin-top: var(--s2); color: var(--ink-2); }
.cs-more summary { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: var(--s3); color: var(--red); font-weight: 700; cursor: pointer; list-style: none; }
.cs-more summary::-webkit-details-marker { display: none; }
.cs-more summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; line-height: 1; transition: transform 0.3s var(--ease); }
.cs-more[open] summary::after { transform: rotate(45deg); }
.cs-moins, .cs-more[open] .cs-plus { display: none; }
.cs-more[open] .cs-moins { display: inline; }
@supports (interpolate-size: allow-keywords) {
  .cs-more { interpolate-size: allow-keywords; }
  .cs-more::details-content { height: 0; overflow: clip; transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
  .cs-more[open]::details-content { height: auto; }
}

/* Comparatif */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cp-wrap { max-width: 980px; margin-inline: auto; }
.cp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.98rem; }
.cp th, .cp td { padding: var(--s4); border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.cp thead th { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.cp thead th:last-child { border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--red); color: #fff; }
.cp tbody th { width: 22%; font-weight: 800; }
.cp td:nth-child(2) { color: var(--ink-3); }
.cp td:last-child { background: #fff; font-weight: 600; }
.cp tbody tr:last-child td:last-child { border-radius: 0 0 var(--radius-card) var(--radius-card); }

@media (max-width: 719px) {
  .cp, .cp tbody, .cp tr, .cp th, .cp td { display: block; width: 100%; }
  .cp thead { position: absolute; left: -9999px; }
  .cp tr { overflow: hidden; margin-bottom: var(--s3); border: 1px solid var(--line-soft); border-radius: var(--radius-card); background: #fff; }
  .cp tbody th { width: auto; padding-bottom: var(--s2); border-bottom: 0; }
  .cp td { padding-block: var(--s2) var(--s3); border-bottom: 0; }
  .cp td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
  .cp td:last-child { background: #fdf3f3; }
  .cp td:last-child::before { color: var(--red); }
  .cp tbody tr:last-child td:last-child { border-radius: 0; }
}

@media (min-width: 720px) {
  .pq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s5); }
  .cb { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--s5) var(--s6); }
  .cs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); }
  .cs-row:nth-child(even) .cs-media { order: 2; }
}

@media (min-width: 1040px) {
  .pq { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s7); }
  .px { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s7); }
}

/* Maison et restaurant interactifs */
.mh-lieux { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto var(--s6); padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 20px 44px -32px rgba(15, 32, 46, 0.6); }
.mh-lieux button {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0.55rem 1.25rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; font-size: 0.98rem; font-weight: 700; cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.mh-lieux svg { flex: none; width: 20px; height: 20px; }
.mh-lieux button:hover { background: var(--soft); }
.mh-lieux button[aria-selected="true"] { background: var(--navy); color: #fff; }
.mh-lieux:not(.is-js) { display: none; }
.mh + .mh { margin-top: var(--s7); }
.mh { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center; }
.mh-stage { position: relative; border-radius: var(--radius-card); background: #eee9e7; }
.mh-img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.mh-pt {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  width: clamp(30px, 3vw, 40px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: var(--red); cursor: pointer; translate: -50% -50%;
  box-shadow: 0 0 0 clamp(4px, 0.55vw, 7px) rgba(194, 23, 28, 0.2), 0 10px 20px -8px rgba(120, 10, 14, 0.7);
  transition: scale 0.3s var(--ease), background-color 0.2s ease, box-shadow 0.2s ease;
}
.mh-pt::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); opacity: 0; pointer-events: none; }
.mh-pt::after { content: ""; position: absolute; inset: 33%; border-radius: 50%; background: #fff; transition: background-color 0.2s ease; }
.mh-pt:hover { scale: 1.12; }
.mh-pt[aria-pressed="true"] { z-index: 2; background: #fff; box-shadow: 0 0 0 clamp(4px, 0.55vw, 7px) var(--red), 0 12px 24px -8px rgba(120, 10, 14, 0.75); }
.mh-pt[aria-pressed="true"]::after { background: var(--red); }
.mh-tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 6px;
  padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 0.82rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, translate 0.25s var(--ease);
}
.mh-pt:hover .mh-tip, .mh-pt:focus-visible .mh-tip, .mh-pt[aria-pressed="true"] .mh-tip { opacity: 1; translate: -50% 0; }
.mh-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mh-chips button {
  min-height: 40px; padding: 0.45rem 0.95rem; border: 1px solid var(--line-soft); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mh-chips button:hover { border-color: var(--ink-3); }
.mh-chips button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.mh-cards { margin-top: var(--s4); scroll-margin-bottom: 96px; }
.mh-card { padding: var(--s5); border-radius: var(--radius-card); background: #fff; box-shadow: 0 26px 50px -38px rgba(15, 32, 46, 0.55); }
.mh-card + .mh-card { margin-top: var(--s4); }
.mh-top { display: flex; align-items: center; gap: var(--s3); }
.mh-thumb { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line-soft); }
.mh-k { color: var(--red); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mh-card h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.mh-txt { margin-top: var(--s4); color: var(--ink-2); }
.mh-how { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--radius-small); background: var(--soft); font-size: 0.97rem; }
.mh-how b { display: block; margin-bottom: 2px; color: var(--red); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mh-links { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.mh-links a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0.4rem 0.9rem; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--ink); font-size: 0.92rem; font-weight: 700; text-decoration: none; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.mh-links a::after { content: "→"; transition: translate 0.25s var(--ease); }
.mh-links a:hover { border-color: var(--ink); }
.mh-links a:hover::after { translate: 3px 0; }
.mh-links .mh-cta { border-color: var(--red); background: var(--red); color: #fff; }
.mh-links .mh-cta:hover { border-color: var(--red-dark); background: var(--red-dark); color: #fff; }
.mh:not(.is-js) .mh-pt, .mh:not(.is-js) .mh-chips { display: none; }
/* Sur petit écran, les pièces sous l'image indiquent la pièce active : l'étiquette reste lue par les lecteurs d'écran sans masquer les points voisins. */
@media (max-width: 719px) {
  .mh .mh-pt .mh-tip { opacity: 0; }
}
@media (max-width: 479px) {
  .mh-lieux { width: 100%; }
  .mh-lieux button { flex: 1 1 0; justify-content: center; gap: 0.4rem; padding: 0.5rem 0.6rem; font-size: 0.92rem; }
}
@media (max-width: 389px) {
  .mh-lieux svg { display: none; }
}
@media (min-width: 1040px) {
  .mh { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--s6); }
}
@media (prefers-reduced-motion: no-preference) {
  .mh-pt::before { animation: mh-onde 2.6s ease-out infinite; animation-delay: calc(var(--i, 0) * 0.37s); }
  .mh-pt[aria-pressed="true"]::before { animation: none; }
  .js-motion .mh-stage:not(.is-in) .mh-pt { opacity: 0; }
  .js-motion .mh-stage.is-in .mh-pt { animation: mh-pop 0.6s var(--ease) backwards; animation-delay: calc(0.55s + var(--i, 0) * 90ms); }
  .mh.is-js .mh-card { animation: mh-fiche 0.45s var(--ease); }
  .mh-lieux.is-js ~ .mh { animation: mh-fiche 0.5s var(--ease); }
}
@keyframes mh-onde { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0; transform: scale(2.5); } }
@keyframes mh-pop { from { opacity: 0; scale: 0.3; } }
@keyframes mh-fiche { from { opacity: 0; transform: translateY(10px); } }
