/* Pages nuisibles : une lecture simple d'abord, le détail à la demande, dans l'identité QPest (v2.css, service-intent.css). */
.np { --pest: #D64545; }
.np[data-pest="cafards"] { --pest: #E8590C; }
.np[data-pest="rats"] { --pest: #7A5C4F; }
/* Le jaune #FFC107 du guide est trop clair sur fond clair pour une illustration : version foncée. */
.np[data-pest="guepes"] { --pest: #B98900; }
.np[data-pest="fourmis"] { --pest: #3E7C3A; }

/* Fil d'Ariane et accès technicien */
.np-fil { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px; margin-bottom: 20px; }
.np-fil .intent-breadcrumb { margin-bottom: 0; align-items: center; }
.np-fil-tech { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 600; }

/* Carte de prix */
.np-choix { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.np-choix legend { padding: 0; margin-bottom: 7px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.np-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; }
.np-options label { position: relative; cursor: pointer; }
.np-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.np-options span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px; text-align: center; font-size: .84rem; font-weight: 500; line-height: 1.25; color: var(--ink-2); background: var(--bg-elev); border: 1px solid var(--hair-strong); border-radius: 12px; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.np-options input:checked + span { background: var(--mint-wash); border-color: var(--mint-700); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--mint-700); }
.np-options input:focus-visible + span { outline: 3px solid var(--ocean); outline-offset: 3px; }
@media (hover: hover) { .np-options input:not(:checked):hover + span { background: var(--bg-sink); } }
.np-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 6px 0 4px; }
.np-prix strong { font-family: var(--f-mono); font-size: clamp(2.35rem, 4vw, 3.3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.np-prix strong.np-m2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.np-eur { font-size: .62em; letter-spacing: 0; margin-left: .14em; }
.np-prix small { font-size: .9rem; color: var(--ink-2); }
.np-detail { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); font-size: .95rem; font-weight: 700; color: var(--ink); }
.np-card-btn { width: 100%; justify-content: center; min-height: 52px; font-size: 1rem; }
.np .qp-trust-line { margin: 6px 0 0; font-size: .86rem; text-align: center; }
.np .qp-rating { min-height: 40px; }
.np .qp-reassure { margin: 0 0 10px; padding: 10px 12px; font-size: .84rem; }
.np-avis-mini { margin: 0 0 12px !important; padding: 10px 12px; font-size: .86rem; line-height: 1.45; border-radius: 12px; background: var(--mint-wash); color: var(--ocean-deep); font-weight: 600; }
.np-avis-mini a { color: var(--ocean-deep) !important; }
.np .qp-pack { max-width: 76ch; margin: 22px 0 0; }

/* Les deux côtés de la marketplace */
.np-cotes { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; margin: 0 0 32px; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 24px; box-shadow: var(--shadow-card); }
.np-cote { padding: 24px 28px; min-width: 0; }
.np-cote-titre { font-size: 1.12rem !important; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 6px !important; color: var(--ink) !important; }
.np-cote p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.np-cote a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 600; }
.np-lien { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 18px 8px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--ink-2); width: 138px; }
.np-lien img { width: 48px; height: 48px; }
@media (max-width: 768px) {
  .np-cotes { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
  .np-cote { padding: 18px 20px; }
  .np-lien { display: flex; align-items: center; width: auto; justify-content: flex-start; padding: 0 20px; text-align: left; }
  .np-lien img { width: 32px; height: 32px; }
}

/* Titres et chapeaux */
.np-titre-ico { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.np-titre-ico h2 { margin: 0 !important; }
.np-ico { width: 46px; height: 46px; flex: none; display: block; background-color: var(--pest); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.np-chapo { margin: -8px 0 22px !important; font-size: 1rem; color: var(--ink-2); max-width: 70ch; }
#prix .np-chapo { margin: 0 0 8px !important; font-size: .92rem; }
.intent-section .np-soustitre { font-size: 1.05rem; line-height: 1.4; letter-spacing: -.01em; margin: 18px 0 8px; color: var(--ink); }
.intent-section .np-soustitre--bloc { margin: 30px 0 12px; font-size: 1.22rem; }

/* Cartes illustrées : une image, une idée */
.np-cartes { display: grid; gap: 22px 20px; }
.np-cartes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-cartes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.np-cartes--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-carte { min-width: 0; }
.np-tuile { aspect-ratio: 400 / 260; border-radius: 16px; overflow: hidden; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--hair); --fig-bg: var(--bg-soft); }
.np-tuile svg { display: block; width: 100%; height: 100%; }
.np-creux .np-tuile { background: var(--bg-elev); --fig-bg: var(--bg-elev); }
.np-carte h3 { margin: 12px 0 4px; font-size: 1.02rem; line-height: 1.3; color: var(--ink); }
.np-carte p { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 1024px) {
  .np-cartes--4, .np-cartes--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-cartes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .np-cartes { gap: 16px 12px; }
  .np-cartes--3, .np-cartes--4, .np-cartes--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-carte h3 { font-size: .96rem; margin-top: 9px; }
  .np-carte p { font-size: .88rem; }
  .np-tuile { border-radius: 12px; }
  /* Le fonctionnement se lit en lignes : image à gauche, idée à droite. */
  .np-cartes--lignes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .np-cartes--lignes .np-carte { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 12px; align-items: center; }
  .np-cartes--lignes h3 { margin-top: 0; }
}

/* Détail à la demande */
.np-plus { margin-top: 16px; }
.np-plus > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--ocean); list-style: none; }
.np-plus > summary::-webkit-details-marker { display: none; }
.np-plus > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 160ms var(--ease-out); }
.np-plus[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.np-plus > div { margin-top: 8px; }
.np-suite > *:not(h2):not(h3) { max-width: 76ch; }
.np-suite p, .np-suite li { color: var(--ink-2); font-size: .97rem; }
.np-suite p { margin: 0 0 10px; }
.np-suite h3 { margin: 16px 0 6px; font-size: 1.02rem; color: var(--ink); }
.np-suite table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.np-suite th, .np-suite td { text-align: left; padding: 11px 12px; border-top: 1px solid var(--hair); vertical-align: top; }
.np-defile { overflow-x: auto; max-width: 100%; }
.np-image { width: 100%; max-width: 520px; height: auto; margin: 4px 0 14px; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; }
.np-plus--carte { margin-top: 8px; }
.np-plus--carte > div p { margin: 0 0 8px; font-size: .84rem; line-height: 1.55; color: var(--ink-2); }

/* À ne pas faire, préparer */
.np-eviter { margin-top: 26px; padding: 18px 22px; background: var(--bg-elev); border-radius: 18px; }
.intent-section .np-eviter .np-soustitre { margin: 0 0 8px; }
.np-eviter ul, .np-gestes { list-style: none; margin: 0; padding: 0; }
.np-eviter li { padding: 7px 0 7px 22px; position: relative; color: var(--ink-2); line-height: 1.5; font-size: .96rem; }
.np-eviter li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 11px; height: 2px; background: var(--pest); }
.np-gestes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 26px; }
.np-gestes li { padding: 10px 0 10px 24px; position: relative; border-top: 1px solid var(--hair-strong); color: var(--ink); line-height: 1.5; font-size: .97rem; }
.np-gestes li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint-700); }
.np-diag { margin: 14px 0 0; font-size: .94rem; color: var(--ink-2); }

/* Méthodes */
.np-methodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 26px; }
.np-methode { padding-top: 12px; border-top: 1px solid var(--hair); }
.np-methode h3 { margin: 0 0 4px; font-size: 1rem; }
.np-methode p { margin: 0; font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.intent-table tr.np-actif th, .intent-table tr.np-actif td { background: var(--mint-wash); }
.intent-table td b { display: block; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.intent-table td small { font-size: .78rem; color: var(--ink-2); }

/* Qui fait quoi : une ligne par côté, un groupe par étape sur petit écran */
.np-couloirs { display: grid; grid-template-columns: 136px repeat(5, minmax(0, 1fr)); gap: 8px 10px; border: 1px solid var(--hair); border-radius: 18px; background: var(--bg-elev); padding: 20px; }
.np-couloirs > * { min-width: 0; }
.np-c-etape { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; color: var(--mint-700); padding: 0 10px; }
.np-c-titre { font-weight: 700; font-size: .92rem; padding: 10px 8px 10px 0; color: var(--ink); align-self: center; }
.np-c-case { font-size: .88rem; line-height: 1.45; color: var(--ink-2); padding: 10px; align-self: stretch; }
.np-c-case--tech { background: var(--bg-sink); border-radius: 12px; }
.np-c-qui { display: none; }
.np-c-qpest { grid-column: 2 / -1; font-size: .86rem; line-height: 1.45; font-weight: 600; color: var(--ocean-deep); padding: 10px 16px; border-radius: 14px; background: var(--mint-wash); text-wrap: balance; }
.np-boucle { margin: 12px 0 0 !important; font-size: .92rem; color: var(--ink-2); }
.np-portes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 1024px) {
  .np-couloirs { display: flex; flex-direction: column; padding: 14px; gap: 6px; }
  .np-c-etape, .np-c-vide, .np-c-titre { display: none; }
  .np-c-case { order: var(--ordre); padding: 9px 12px; }
  .np-c-case[data-etape]::before { content: attr(data-etape); display: block; margin: 6px 0 6px -12px; font-family: var(--f-mono); font-size: .74rem; font-weight: 600; color: var(--mint-700); }
  .np-c-qui { display: inline !important; color: var(--ink); }
  .np-c-qpest { order: 99; margin-top: 8px; }
}

/* Sections en creux, comme le guide le demande */
.np-creux { background: var(--bg-sink); box-shadow: 0 0 0 100vmax var(--bg-sink); clip-path: inset(0 -100vmax); border-bottom: 0; }

/* Pour aller plus loin : chaque sujet s'ouvre à la demande */
.np-plus--ligne { margin-top: 0; border-top: 1px solid var(--hair); }
.np-plus--ligne:last-child { border-bottom: 1px solid var(--hair); }
.np-plus--ligne > summary { display: flex; justify-content: space-between; min-height: 52px; color: var(--ink); }
.intent-section .np-plus--ligne .np-soustitre { margin: 0; font-size: 1rem; font-weight: 600; }
.np-plus--ligne > div { padding-bottom: 14px; }
.np-sans-titre { margin-top: 18px; }

/* Avis de prise en charge publique, avant tout prix */
.np-avis { margin: 0 0 28px; padding: 20px 24px; border-radius: 18px; background: var(--mint-wash); color: var(--ocean-deep); }
.np-avis p { margin: 0 0 10px; font-size: .94rem; line-height: 1.6; max-width: 90ch; }
.np-avis p:last-child { margin-bottom: 0; }
.np-avis a { color: var(--ocean-deep); font-weight: 600; }
.np-avis summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: .94rem; font-weight: 700; }

.np-fin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 38px 0 0; }
.np-fin h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.5vw, 2.2rem); letter-spacing: -.035em; line-height: 1.25; }
.np-fin p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.np-relu { margin: 18px 0 0; font-size: .82rem; color: var(--ink-2); }

/* Barre d'action sur téléphone */
.np-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 16px; background: var(--bg-elev); border-top: 1px solid var(--hair-strong); box-shadow: var(--shadow-xl); transform: translateY(110%); }
.np-barre.np-visible { transform: none; }
.np-barre b { display: block; font-family: var(--f-mono); font-size: 1.08rem; line-height: 1.15; color: var(--ink); }
.np-barre small { font-size: .76rem; color: var(--ink-2); }
.np-barre .btn { min-height: 44px; padding: 10px 20px; }
@media (max-width: 768px) { .np-barre { display: grid; } }

/* Sur téléphone, le prix et le bouton passent juste après le titre. */
@media (max-width: 768px) {
  .np .intent-hero { display: grid; gap: 16px; padding-bottom: 20px; }
  .np .intent-hero__copy { display: contents; }
  .np .intent-hero__copy > * { order: 3; margin-bottom: 0; }
  .np .intent-hero h1 { order: 1; margin-bottom: 0; }
  .np #np-etiquette { order: 2; }
}
@media (max-width: 560px) {
  .np.intent-page { padding-top: 88px; }
  .np .intent-price { padding: 18px; }
  .np-options span { padding: 4px 2px; font-size: .8rem; }
  .np-card-btn { min-height: 50px; }
  .np-ico { width: 38px; height: 38px; }
}

/* La bulle de chat ne doit jamais couvrir le bouton de réservation. */
body:has(.np-barre.np-visible) #qpest-chat { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 560px) {
  /* Sur téléphone, les mesures sont dans le texte de la carte. */
  .np-tuile svg text:not(.np-garde) { display: none; }
  .np .intent-table td small { white-space: normal; font-size: .72rem; line-height: 1.3; }
  .np .intent-table th, .np .intent-table td { padding: 10px 8px; }
}
