/* Recherche de jurisprudence — téléphone (3/10/2026).
   Tout est sous @media (max-width:640px) : rien ne change sur ordinateur.
   Sans toucher au JS : la colonne .jl-res__cote passe en display:contents,
   ses enfants deviennent des éléments de la grille .jl-res et sont
   réordonnés : « Textes de loi » en haut (compact), les RÉSULTATS ensuite,
   les filtres (#coteAdv, #coteFacettes) après les résultats. */
@media (max-width:640px){
  body.jl-avec-res .jl-res{display:flex;flex-direction:column;gap:var(--space-3)}
  body.jl-avec-res .jl-res__cote{display:contents}
  body.jl-avec-res .jl-res__col{order:1;min-width:0}
  body.jl-avec-res .jl-tbtn{order:0;position:static;margin-top:0;box-shadow:none;min-height:44px;padding:.55rem .8rem}
  body.jl-avec-res #coteAdv{order:2;border-top:1px solid var(--line);padding-top:var(--space-4);min-width:0}
  body.jl-avec-res #coteAdv::before{content:"Filtres";display:block;font-family:var(--font-serif);font-size:var(--text-xl);color:var(--ink);margin-bottom:var(--space-2)}
  body.jl-avec-res #coteFacettes{order:3;min-width:0}

  /* Après recherche : on retire le chapeau et les exemples (déjà connus) pour
     remonter les résultats. */
  body.jl-avec-res #lead,body.jl-avec-res #hint{display:none}
  body.jl-avec-res .jl-hero{margin-bottom:var(--space-3)}

  /* Cibles tactiles ≥ 40 px */
  .jl-res__cote .jl-fch,.jl-res__cote .jl-thes,.jl-res__cote .jl-quand__presets button,
  .jl-res__cote #advClear,.jl-tag-x{min-height:40px}
  .jl-fch__fl{width:36px;min-height:40px;display:flex;align-items:center;justify-content:center;font-size:.85rem}
  .jl-res__cote .jl-quand__precis summary{min-height:40px;display:flex;align-items:center}
  .jl-res__cote input[type=range]{min-height:40px}
  .jl-fch__sous{max-height:none}
  .jl-tag-x span{width:24px;height:24px}
  /* Case « toute la famille » : 16 px visibles, zone de toucher de 40 px (::before invisible). */
  .jl-res__cote .jl-fam__all{position:relative}
  .jl-res__cote .jl-fam__all::before{content:"";position:absolute;inset:-12px}
  .jl-res__cote input[type=date]{min-height:40px}

  /* Cartes de résultats : rien de coupé, badges à la ligne */
  .jl-resultat__meta{flex-wrap:wrap;row-gap:4px}
  .jl-resultat__t,.jl-resultat__x,.jl-resultat__ref{overflow-wrap:anywhere}
  .jl-resultat__ref{white-space:normal}

  /* Fenêtre « Textes de loi » : quasi plein écran, liste qui défile, croix 44 px */
  .jl-tmod .jl-modale{width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 16px);padding:var(--space-4)}
  .jl-tmod h3{padding-right:48px}
  .jl-tmod__x{width:44px;height:44px;top:.4rem;right:.4rem}
  .jl-tmod__liste{flex:1;min-height:0;-webkit-overflow-scrolling:touch}
  .jl-tmod__pied{flex-wrap:wrap}
  .jl-tmod__pied .jl-bouton{min-height:40px;display:inline-flex;align-items:center}
}
