/* Responsive : page projets (fenêtre étroite → large). Tout est scopé body.embed. */

body.embed #page-projets{container:projets / inline-size;min-width:0}
body.embed #page-projets .dv-head{padding:clamp(12px,2.2cqi,20px)}
body.embed #page-projets .dv-lead{max-width:75ch;min-width:0}
body.embed #page-projets .dv-head .filters-row{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center}
body.embed #page-projets .dv-head .filters-row .input:not(.select-sm){flex:1 1 260px;min-width:0;min-height:40px;box-sizing:border-box}
body.embed #page-projets #btn-proj-racine-add,
body.embed #page-projets #btn-proj-scan{min-height:40px;flex:none;white-space:nowrap}
body.embed #page-projets .dv-depth{flex:none}
body.embed #page-projets #proj-profondeur{min-height:40px;min-width:64px;box-sizing:border-box}
body.embed #page-projets .raccourcis-racines{min-width:0}
body.embed #page-projets .racine-chip{max-width:100%;min-width:0;min-height:36px;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;overflow-wrap:anywhere;word-break:break-word;line-height:1.3;border-radius:18px}
body.embed #page-projets .racine-chip button{flex:none;width:32px;height:32px;min-width:32px}
body.embed #page-projets #proj-status{overflow-wrap:anywhere}
body.embed #page-projets .dv-search .input{width:100%;box-sizing:border-box;min-height:44px}

body.embed #page-projets .raccourcis-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,clamp(240px,26cqi,340px)),1fr));gap:clamp(10px,1.6cqi,16px);align-items:stretch;min-width:0}
body.embed #page-projets .raccourci-card{min-width:0;min-height:76px;padding:clamp(12px,1.6cqi,16px);gap:clamp(10px,1.4cqi,14px);width:100%;box-sizing:border-box}
body.embed #page-projets .raccourci-icon{flex:none}
body.embed #page-projets .raccourci-body{min-width:0}
body.embed #page-projets .raccourci-nom{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.embed #page-projets .raccourci-chemin{white-space:normal;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}
body.embed #page-projets .raccourci-card:focus-visible,
body.embed #page-projets .dv-head .input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

@container projets (max-width:640px){
  body.embed #page-projets .dv-head .filters-row{flex-direction:column;align-items:stretch}
  body.embed #page-projets .dv-head .filters-row .input:not(.select-sm){flex:none;width:100%}
  body.embed #page-projets #btn-proj-racine-add,
  body.embed #page-projets #btn-proj-scan{width:100%;min-height:44px}
  body.embed #page-projets .dv-depth{justify-content:space-between}
}
@container projets (max-width:560px){
  body.embed #page-projets .raccourcis-grid{grid-template-columns:1fr}
  body.embed #page-projets .raccourci-nom{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}
}
@container projets (min-width:1500px){
  body.embed #page-projets .raccourcis-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
}
@media (max-height:700px){
  body.embed #page-projets .dv-lead{margin-bottom:10px}
  body.embed #page-projets .raccourci-card{min-height:64px}
}

.proj-more{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 0}
