/* Le parcours de la recherche foncière (src/foncier-parcours.js, 91S-1276 et 91S-1278) : bureau seulement */
.coq-sous, .coq-chev, .fpar-retour, .fpar-retour-tete { display: none; }
@media (min-width: 900px) {
  /* ── les modes, en menu déroulant de la barre latérale ── */
  .coq-item { position: relative; }
  .coq .coq-chev { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-right: -4px; border-radius: var(--r-bouton); color: var(--attenue); }
  .coq .coq-chev:hover { background: var(--survol); color: var(--encre); }
  .coq .coq-chev svg { width: 12px; height: 12px; transition: transform .15s ease; }
  .coq .coq-chev[aria-expanded="true"] svg { transform: rotate(180deg); }
  .coq .coq-sous.coq-sous-ouvert { display: flex; flex-direction: column; margin: 0 0 2px 22px; padding-left: 9px; border-left: 1px solid var(--filet); }
  .coq .coq-mode { display: block; width: 100%; min-height: 26px; padding: 0 8px; margin: 1px 0; border-radius: var(--r-bouton); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: var(--t-13); font-weight: 400; color: var(--attenue); }
  .coq .coq-mode:hover { background: var(--survol); color: var(--texte); }
  .coq .coq-mode.coq-mode-actif { background: var(--actif); color: var(--encre); font-weight: 500; }
  :root.coq-replie .coq .coq-sous, :root.coq-replie .coq .coq-chev { display: none; }
  /* le titre de la barre du haut n'ouvre plus de menu : les modes sont dans la barre latérale */
  :is(html, html[data-theme]) :is(.page-app, body) .pg.pg.pg:is(.fc, .pc) > .og-barre .og-choix { pointer-events: none; cursor: default; }
  :is(html, html[data-theme]) :is(.page-app, body) .pg.pg.pg:is(.fc, .pc) > .og-barre .og-choix svg { display: none; }

  /* ── avant la recherche : la barre latérale, les filtres, la carte ; pas de résultats ── */
  :is(html, html[data-theme]) :is(.page-app, body) .pg.pg.pg[data-fpar="avant"] :is(.fc-plateau > .fc-resultats, .fc-plateau > .pg-poignee-droite, .fc-plateau > .fs-poignee, .fgc-bascule-r) { display: none !important; }

  /* ── après : la barre latérale s'efface, les filtres prennent sa place ── */
  :root.fpar-recherche, :root.fpar-recherche.coq-replie { --coq-l: 0px; }
  html.fpar-recherche .coq, html.fpar-recherche .coq-voile { display: none; }
  :is(html, html[data-theme]) :is(.page-app, body) .pg.pg.pg[data-fpar="apres"] > .og-barre > .fpar-retour { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; padding: 0 10px 0 6px; margin-right: 8px;
    border-radius: var(--r-bouton); color: var(--texte); font: inherit; font-size: var(--t-13); white-space: nowrap; background: none; border: 0; cursor: pointer; }
  :is(html, html[data-theme]) :is(.page-app, body) .pg.pg.pg[data-fpar="apres"] > .og-barre > .fpar-retour:hover { background: var(--survol); }
  .fpar-retour svg { width: 14px; height: 14px; flex: none; }
  /* dans l'en-tête des résultats : toujours à portée, sans recouvrir « Liste / Tableau » */
  :is(html, html[data-theme]) :is(.page-app, body) .pg.pg.pg[data-fpar="apres"] .fs-tete { flex-wrap: wrap; position: relative; z-index: 3; }
  :is(html, html[data-theme]) :is(.page-app, body) .pg.pg.pg[data-fpar="apres"] .fs-tete > .fpar-retour-tete { display: inline-flex; align-items: center; flex-basis: 100%; height: 26px; padding: 0 2px; margin: 0 0 4px;
    font: inherit; font-size: var(--t-12); color: var(--attenue); background: none; border: 0; cursor: pointer; text-align: left; }
  :is(html, html[data-theme]) :is(.page-app, body) .pg.pg.pg[data-fpar="apres"] .fs-tete > .fpar-retour-tete:hover { color: var(--encre); text-decoration: underline; }
  /* le panneau des résultats passe au-dessus de ce qui flotte sur la carte (jamais recouvert) */
  :is(html, html[data-theme]) :is(.page-app, body) .pg.pg.pg[data-fpar="apres"] .fc-plateau > .fc-resultats { z-index: 6; }
}

/* 91S-1286 : un message court (« Aucune parcelle ici… ») ne couvre plus l'en-tête des résultats : il se pose en bas à gauche de la carte, au-dessus de tout */
body:has(> .pg.fc, > .pg.pc) .toast { z-index: 80; left: calc(var(--coq-l, 0px) + 24px); right: auto; top: auto; bottom: 24px; transform: none; max-width: min(420px, calc(100% - var(--coq-l, 0px) - 48px)); }
