/* ============================================================
   Specialtools V2.3.7.0 — Passe responsive complémentaire
   Chargee apres theme-v237.css et avant les correctifs Red Button.
   Objectif : conserver toutes les fonctions sur laptop, tablette et mobile
   sans scroll horizontal parasite ni chevauchement des commandes.
   ============================================================ */

html,body{max-width:100%;overflow-x:hidden}
main,.view,.st237-home-dashboard,.st237-tools-shell,.st237-mytools-shell,.st237-inventory-shell,.st237-control-shell{min-width:0;max-width:100%}
img,video,iframe{max-width:100%}

/* Les pictogrammes restent centres quel que soit leur dessin interne. */
.st237-action-picto,.st237-mytools-kpi-icon,.st237-tools-filter-picto,.st237-field-picto,.st237-btn-picto,.st237-inline-picto,.st237-rail-picto,.nav-svg,.st237-account-menu-icon{
  display:inline-grid;place-items:center;align-items:center;justify-items:center;line-height:1;flex:0 0 auto;
}

/* V2.3.7.1 — structure fiable de Mes outils */
@media (max-width:900px){
  .mytool-card{grid-template-columns:1fr!important}
  .mytool-card-main{grid-template-columns:150px minmax(0,1fr)!important}
}
@media (max-width:760px){
  .mytool-card-main{grid-template-columns:96px minmax(0,1fr)!important}
  .mytool-card-copy{grid-template-columns:1fr!important}
  .mytool-shelf{min-height:auto!important;border-right:0!important;border-bottom:1px solid #efedf2!important}
}
@media (max-width:430px){.mytool-card-main{grid-template-columns:84px minmax(0,1fr)!important}}
.st237-action-picto::before,.st237-mytools-kpi-icon::before,.st237-tools-filter-picto::before,.st237-field-picto::before,.st237-btn-picto::before,.st237-inline-picto::before,.st237-rail-picto::before,.nav-svg::before,.st237-account-menu-icon::before{
  margin:auto;
}

/* Les zones de texte flex/grid peuvent reellement se contracter. */
.st237-action-copy,.st237-home-hero-copy,.st237-tools-hero-copy,.st237-mytools-hero-copy,.st237-inventory-hero-copy,.st237-control-hero-copy,
.results-meta,.results-actions,.access-user-text,.st237-inventory-main-panel,.st237-inventory-rail,.st237-home-main,.st237-home-rail{min-width:0}

/* Tables : aucun debordement de la page. La table garde son integrite et son conteneur scrolle si necessaire. */
.table-wrap,.control-table-wrap,.v2-inventory-table-wrap,.st237-table-wrap,.st237-inventory-main-panel{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-wrap table,.control-table-wrap table,.v2-inventory-table-wrap table{min-width:820px}

/* Fenetres : le fond ne doit pas bouger lorsqu'une modale est ouverte. */
body.modal-open{overflow:hidden}
.modal{overscroll-behavior:contain}
.modal-panel{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}

/* V2.3.7.11 — rendu borne : seuls les résultats visibles sont injectés dans le DOM. */
.st-performance-pagination{
  display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;
  padding:18px 0 8px;color:#6f6875;font-size:13px;text-align:center;
}
.st-performance-pagination.hidden{display:none!important}
.st-performance-pagination .btn{min-width:104px}

@media (max-width:760px){
  .st-performance-pagination{position:relative;z-index:1;gap:8px;padding:14px 8px 4px}
  .st-performance-pagination span{order:-1;width:100%}
  .st-performance-pagination .btn{flex:1;min-width:0}
  .sidebar-connectivity,.sidebar>.version,.st237-tools-capabilities span,.st237-mytools-capabilities span,.st237-inventory-hero-meta span,.modal{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
}

/* ------------------------------------------------------------------
   Laptop compact - 1366 / 1440
   ------------------------------------------------------------------ */
@media (max-width:1440px){
  .st237-global-search{flex:0 1 270px;max-width:270px;min-width:200px}
  .st237-brand-product span{display:none}
  .sidebar nav{gap:2px}
  .sidebar .nav{padding-left:10px;padding-right:10px}
  .st237-home-layout,.st237-inventory-workspace{gap:14px}
  .st237-home-rail,.st237-inventory-rail{min-width:260px}
  .st237-tools-filter-panel .toolbar{gap:8px}
}

@media (max-width:1366px){
  .st237-rg-logotype{max-width:76px}
  .sidebar{gap:10px!important}
  .sidebar .brand{min-width:184px}
  .sidebar .nav{font-size:11px!important;padding-left:6px!important;padding-right:6px!important}
  .sidebar .nav-svg{width:15px;height:15px}
  .st237-global-search{flex-basis:220px;min-width:180px;max-width:220px}
  .st237-home-hero,.st237-tools-hero,.st237-mytools-hero,.st237-inventory-hero,.st237-control-hero{padding-left:28px;padding-right:28px}
  .st237-primary-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  .st237-action-card{min-width:0;padding-left:14px;padding-right:12px}
  .st237-action-copy strong{font-size:15px}
  .st237-action-copy small{font-size:12px}
  .st237-inventory-toolbar{grid-template-columns:minmax(250px,1.6fr) repeat(3,minmax(135px,1fr));gap:8px}
  .st237-inventory-toolbar>*{min-width:0}
  .control-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}

/* ------------------------------------------------------------------
   Tablette paysage / petits laptops : bascule en navigation tiroir.
   ------------------------------------------------------------------ */
@media (max-width:1180px){
  /* L'ancienne sidebar redevient un vrai tiroir mobile. */
  .sidebar{width:min(320px,88vw) !important;max-width:88vw}
  .sidebar .st237-brand-product span{display:block}
  .sidebar .st237-brand-divider,.sidebar .st237-rg-logotype{display:block}
  .sidebar .brand{width:100%;min-width:0;display:grid !important;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px}
  .sidebar nav{display:grid !important;gap:5px;width:100%}
  .sidebar .nav{width:100%;min-height:46px;padding:9px 12px !important}
  .st237-global-search{order:3;width:100%;max-width:none;min-width:0;margin-top:10px}

  header{min-height:64px !important;align-items:center !important;flex-wrap:nowrap !important;padding:10px 14px !important}
  .header-title{display:none !important}
  .header-actions{margin-left:auto !important;width:auto !important;display:flex !important;flex-wrap:nowrap !important;gap:8px !important;align-items:center}
  .view-mode-switch{display:none !important}
  .language-flag-picker{display:none !important}
  .access-account{min-width:0}
  .access-account-trigger{width:auto !important;min-width:150px;max-width:220px}
  .access-account-menu{right:8px;left:auto;max-width:calc(100vw - 24px)}

  .view{padding:14px !important}
  .st237-home-layout,.st237-inventory-workspace{grid-template-columns:minmax(0,1fr) !important}
  .st237-home-rail,.st237-inventory-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
  .st237-home-rail>.st237-rail-card:last-child:nth-child(odd),.st237-inventory-rail>.st237-rail-card:last-child:nth-child(odd){grid-column:1/-1}
  .st237-kpi-grid,.st237-inventory-kpis{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .st237-primary-actions{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .st237-tools-filter-panel .toolbar{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .st237-tools-search,.applicability-search{grid-column:1/-1 !important}
  .st237-inventory-toolbar{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .st237-inventory-search{grid-column:1/-1 !important}
  .st237-inventory-adminbar{flex-wrap:wrap;gap:10px}
  .st237-inventory-admin-actions{margin-left:0;flex-wrap:wrap}
  .st237-control-shell .control-filter-secondary,.st237-control-shell .control-bulk-bar{flex-wrap:wrap}
  .st237-control-shell .bulk-actions{flex-wrap:wrap}

  /* Les hero signatures deviennent decoratives et ne prennent plus de largeur. */
  .st237-home-hero-tagline,.st237-tools-hero-signature,.st237-mytools-hero-signature,.st237-inventory-hero-signature,.st237-control-hero-signature{max-width:30%;font-size:11px}
}

/* ------------------------------------------------------------------
   Tablette portrait
   ------------------------------------------------------------------ */
@media (max-width:900px){
  .st237-home-hero,.st237-tools-hero,.st237-mytools-hero,.st237-inventory-hero,.st237-control-hero{
    min-height:150px;padding:22px;border-radius:16px;
  }
  .st237-home-hero h2,.st237-tools-hero h2,.st237-mytools-hero h2,.st237-inventory-hero h2,.st237-control-hero h2{font-size:clamp(28px,5vw,40px);line-height:1.05}
  .st237-home-hero p,.st237-tools-hero p,.st237-mytools-hero p,.st237-inventory-hero p,.st237-control-hero p{max-width:90%;font-size:14px}
  .st237-home-hero-tagline,.st237-tools-hero-signature,.st237-mytools-hero-signature,.st237-inventory-hero-signature,.st237-control-hero-signature{display:none !important}
  .st237-home-mobile-search{display:flex !important}

  .st237-tools-capabilities,.st237-mytools-capabilities,.st237-inventory-hero-meta{flex-wrap:wrap}
  .st237-tools-filter-panel .toolbar,.st237-inventory-toolbar{grid-template-columns:1fr !important}
  .st237-tools-filter-panel .toolbar>* ,.st237-inventory-toolbar>*{grid-column:auto !important;width:100%}
  .tools-results-line{display:grid !important;grid-template-columns:1fr;gap:10px}
  .results-actions{display:flex;flex-wrap:wrap;justify-content:flex-start}
  .results-actions .btn{flex:1 1 180px}

  /* Mes outils : preference au format ligne compacte sur tablette. */
  .mytools-grid{grid-template-columns:1fr !important}
  .mytool-card{display:grid !important;grid-template-columns:1fr!important;min-height:0 !important}
  .mytool-card-main{grid-template-columns:150px minmax(0,1fr)!important}
  .mytool-card-image{height:100% !important;min-height:190px}
  .mytool-card-copy{min-width:0}

  .control-filter-grid{grid-template-columns:1fr !important}
  .control-filter-secondary{display:grid !important;grid-template-columns:1fr 1fr;gap:8px}
  .control-filter-secondary>*{min-width:0}
  .control-bulk-bar{display:grid !important;grid-template-columns:1fr;gap:10px}
}

/* ------------------------------------------------------------------
   Mobile - tous les contenus restent utilisables au doigt.
   ------------------------------------------------------------------ */
@media (max-width:760px){
  :root{--st237-mobile-gap:10px}
  header{padding:8px 10px !important;min-height:58px !important;gap:8px !important}
  #menuBtn.mobile{width:42px !important;min-width:42px;height:42px !important;padding:0 !important}
  .header-actions{gap:6px !important}
  .access-account-trigger{min-width:0 !important;width:48px !important;height:46px !important;padding:5px !important;border-radius:14px}
  .access-user-text,.account-chevron{display:none !important}
  .access-user-avatar{width:36px !important;height:36px !important}
  .access-account-menu{position:fixed !important;top:62px !important;right:10px !important;left:10px !important;width:auto !important;max-width:none !important}

  .view{padding:10px !important}
  .st237-home-dashboard,.st237-tools-shell,.st237-mytools-shell,.st237-inventory-shell,.st237-control-shell{gap:10px}
  .st237-home-hero,.st237-tools-hero,.st237-mytools-hero,.st237-inventory-hero,.st237-control-hero{min-height:auto;padding:18px 16px;border-radius:14px}
  .st237-home-kicker,.st237-tools-kicker,.st237-mytools-kicker,.st237-inventory-kicker,.st237-control-kicker{font-size:10px;letter-spacing:.18em}
  .st237-home-hero h2,.st237-tools-hero h2,.st237-mytools-hero h2,.st237-inventory-hero h2,.st237-control-hero h2{font-size:29px !important;line-height:1.02;margin-top:7px}
  .st237-home-hero p,.st237-tools-hero p,.st237-mytools-hero p,.st237-inventory-hero p,.st237-control-hero p{max-width:100%;font-size:13px;line-height:1.4}

  .st237-primary-actions,.st237-kpi-grid,.st237-inventory-kpis,.st237-home-rail,.st237-inventory-rail{grid-template-columns:1fr !important}
  .st237-action-card{min-height:74px;padding:11px 12px;border-radius:13px}
  .st237-action-picto{width:48px;height:48px;flex-basis:48px}
  .st237-action-copy strong{font-size:15px}.st237-action-copy small{font-size:12px}

  .st237-section-head,.st237-inventory-panel-head,.st237-tools-filter-head,.st237-mytools-section-head{align-items:flex-start;gap:8px;flex-wrap:wrap}
  .st237-section-head h3,.st237-inventory-panel-head h3,.st237-mytools-section-head h3{font-size:18px}

  /* Cartes Outils : etageres conservees, hauteur identique par zone. */
  .cards{grid-template-columns:1fr !important;gap:10px}
  .tool-card{min-height:0 !important}
  .tool-card .tool-image{height:180px !important;min-height:180px !important}
  .tool-card .tool-info,.tool-card .tool-content{min-width:0}
  .tool-card .tool-title,.tool-card h3{min-height:44px;max-height:44px;overflow:hidden}
  .tool-card .tool-meta,.tool-card .tool-tags{min-height:42px}
  .tool-card .tool-status,.tool-card .physical-status{min-height:44px}
  .tool-card .tool-actions{min-height:46px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}

  /* Mes outils devient une liste verticale compacte. */
  .st237-mytools-summary{grid-template-columns:1fr !important}
  .mytool-card{display:grid !important;grid-template-columns:1fr !important;border-radius:13px}
  .mytool-card-main{grid-template-columns:96px minmax(0,1fr)!important}
  .mytool-card-image{min-height:150px !important;height:auto !important;padding:10px !important}
  .mytool-card-image img{max-height:112px;object-fit:contain}
  .mytool-code{font-size:10px}
  .mytool-card-copy{padding:10px !important}
  .mytool-shelf{padding:8px 0 !important;min-height:0 !important}
  .mytool-identity h3{font-size:14px;line-height:1.25}
  .mytool-actions{display:grid !important;grid-template-columns:1fr !important;gap:7px}
  .mytool-actions .btn{width:100% !important;min-height:42px}

  /* Inventaire / Controle : filtres en pile, actions accessibles au doigt. */
  .st237-inventory-adminbar{display:grid !important;grid-template-columns:1fr;gap:8px}
  .st237-inventory-admin-actions{display:grid !important;grid-template-columns:1fr;gap:8px;width:100%}
  .st237-inventory-admin-actions .btn{width:100%;min-height:44px}
  .st237-inventory-toolbar,.control-filter-grid,.control-filter-secondary{grid-template-columns:1fr !important}
  .control-filter-secondary{display:grid !important}
  .control-bulk-bar,.bulk-actions{display:grid !important;grid-template-columns:1fr !important;gap:8px}
  .bulk-actions .btn,.bulk-actions select{width:100%;min-height:42px}

  /* Tables restent horizontales dans un rail local, jamais la page entiere. */
  .table-wrap,.control-table-wrap,.v2-inventory-table-wrap,.st237-inventory-main-panel{margin-left:0;margin-right:0;border-radius:12px}
  .table-wrap table,.control-table-wrap table,.v2-inventory-table-wrap table{min-width:900px}

  /* Modales plein ecran, fond fixe. */
  .modal{padding:0 !important;align-items:stretch !important;overscroll-behavior:contain}
  .modal-panel{width:100vw !important;height:100dvh !important;max-width:none !important;max-height:100dvh !important;border-radius:0 !important;overflow-y:auto !important;overflow-x:hidden !important}
  .modal-window-header,.modal-title.prominent{position:sticky;top:0;z-index:10;background:#fff}
  .modal-close,.modal-close-main{position:fixed !important;top:10px !important;right:10px !important;z-index:20;width:42px !important;height:42px !important}
  .detail-tabs,.detail-tablist{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  #pdfViewer{height:calc(100dvh - 126px) !important}
  .video-panel video{max-height:calc(100dvh - 170px) !important}

  /* Touch targets. */
  button,.btn,.icon-btn,select,input[type="button"],input[type="submit"]{min-height:42px}
  input,select,textarea{font-size:16px} /* evite le zoom automatique iOS */
}

@media (max-width:430px){
  .sidebar{width:90vw !important;max-width:340px}
  .st237-home-hero h2,.st237-tools-hero h2,.st237-mytools-hero h2,.st237-inventory-hero h2,.st237-control-hero h2{font-size:26px !important}
  .st237-home-mobile-search{display:grid !important;grid-template-columns:36px minmax(0,1fr) auto;gap:5px}
  .st237-home-search-submit{grid-column:1/-1;width:100%}
  .st237-home-search-clear{width:40px}
  .st237-tools-capabilities,.st237-mytools-capabilities,.st237-inventory-hero-meta{gap:6px}
  .st237-tools-capabilities span,.st237-mytools-capabilities span,.st237-inventory-hero-meta span{font-size:10px}
  .results-actions{display:grid !important;grid-template-columns:1fr 44px;gap:7px}
  .results-actions .st237-reset-btn{grid-column:1/-1}
  .results-actions #addBtn{grid-column:1/-1}
  .mytool-card-main{grid-template-columns:84px minmax(0,1fr) !important}
  .mytool-card-image{padding:8px !important}
  .mytool-card-image img{max-height:96px}
  .st237-rail-list li{align-items:flex-start}
}

/* Landscape mobile: exploiter la largeur sans agrandir la hauteur du hero. */
@media (max-height:520px) and (orientation:landscape) and (max-width:920px){
  .st237-home-hero,.st237-tools-hero,.st237-mytools-hero,.st237-inventory-hero,.st237-control-hero{padding:12px 16px}
  .st237-home-hero h2,.st237-tools-hero h2,.st237-mytools-hero h2,.st237-inventory-hero h2,.st237-control-hero h2{font-size:24px !important}
  .st237-home-hero p,.st237-tools-hero p,.st237-mytools-hero p,.st237-inventory-hero p,.st237-control-hero p{margin-bottom:0}
  .st237-tools-capabilities,.st237-mytools-capabilities,.st237-inventory-hero-meta{display:none}
}

/* V2.3.7.0 final dashboard additions */
@media (max-width:1366px){
  .analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:1180px){
  .st237-inventory-workspace{grid-template-columns:minmax(0,1fr)!important}
  .st237-inventory-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:900px){
  .st237-recent-tools{grid-template-columns:1fr!important}
  .st237-analytics-grid{grid-template-columns:1fr!important}.st237-analytics-card.wide{grid-column:auto}
  .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .st237-inventory-rail{grid-template-columns:1fr!important}
  .st237-family-bars>div{grid-template-columns:120px minmax(0,1fr) 32px}
}
@media (max-width:760px){
  .analytics-header{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;padding:18px 16px!important;border-radius:14px!important}
  .analytics-header h2{font-size:29px!important}.analytics-header .analytics-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%}
  .analytics-kpis{grid-template-columns:1fr!important}
  .st237-attention-list{grid-template-columns:1fr}
  .st237-mini-chart{gap:3px;height:150px}.st237-mini-col span{font-size:7px}
  .st237-family-bars>div{grid-template-columns:105px minmax(0,1fr) 30px}
  .st237-recent-tool-card{grid-template-columns:62px minmax(0,1fr);min-height:82px}.st237-recent-tool-image{width:62px;height:62px}.st237-recent-tool-meta{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between}
}

/* ============================================================
   V2.3.7.2 — adaptation du cockpit d'accueil
   ============================================================ */
@media (max-width:1440px) and (min-width:1181px){
  #homeView .st237-home-layout{grid-template-columns:minmax(0,1fr) 320px;gap:12px}
  #homeView .st237-kpi-grid>.home-kpi{grid-template-columns:34px minmax(0,1fr) 12px!important;gap:8px!important;padding:12px 10px!important}
  #homeView .home-kpi-icon{width:34px;height:34px}
  #homeView .home-kpi-copy{grid-template-columns:1fr;grid-template-areas:'label' 'value' 'note';row-gap:2px}
  #homeView .home-kpi-copy strong{font-size:23px!important}
  #homeView .home214-activity-row{grid-template-columns:7px minmax(0,1fr) 96px 12px}
}
@media (max-width:1180px){
  #homeView .st237-home-layout{grid-template-columns:1fr!important}
  #homeView .st237-home-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #homeView .st237-kpi-grid>.home-kpi{grid-template-columns:40px minmax(0,1fr) 14px!important}
  #homeView .home-kpi-copy{grid-template-columns:auto 1fr;grid-template-areas:'label value' 'note note'}
}
@media (max-width:760px){
  #homeView .st237-home-rail{grid-template-columns:1fr!important}
  #homeView .st237-kpi-grid{grid-template-columns:1fr!important}
  #homeView .st237-kpi-grid>.home-kpi{min-height:82px!important;grid-template-columns:38px minmax(0,1fr) 12px!important;padding:11px 12px!important}
  #homeView .home-kpi-copy{grid-template-columns:auto 1fr;grid-template-areas:'label value' 'note note'}
  #homeView .home214-activity-row{grid-template-columns:7px minmax(0,1fr) 82px 12px}
}
@media (max-width:430px){
  #homeView .home214-activity-row{grid-template-columns:7px minmax(0,1fr) 12px}
  #homeView .home214-activity-meta{grid-column:2;text-align:left;display:flex;gap:6px;align-items:center}
  #homeView .home214-activity-row>i{grid-column:3;grid-row:1/3}
  #homeView .home-priority-card>span:last-child{grid-template-columns:1fr;grid-template-areas:'value' 'title' 'help' 'link'}
}

/* ============================================================
   V2.3.7.4 — LOT 2 COMPLET : validation responsive
   Cibles : 1920x1080, 1366x768, tablette, mobile
   ============================================================ */
@media (min-width:1601px){
  .view{padding-left:32px!important;padding-right:32px!important}
}

/* 1366 x 768 et petits portables : conserver la largeur utile sans tasser. */
@media (min-width:1181px) and (max-width:1440px){
  .view{padding-left:20px!important;padding-right:20px!important}
  .st237-home-hero,.st237-tools-hero,.st237-mytools-hero,.st237-inventory-hero,.st237-control-hero,
  .analytics-header,.settings-page-head{border-radius:18px!important}
  #settingsView .settings-admin-grid{gap:12px!important}
  #settingsView .settings-admin-card{padding:16px!important}
}

/* Tablette / petit écran : une colonne Paramètres et aucun débordement global. */
@media (max-width:980px){
  #settingsView .settings-admin-grid{grid-template-columns:1fr!important}
  #settingsView .backup-overview{grid-template-columns:1fr 1fr!important}
  #settingsView .setting-row{grid-template-columns:1fr!important;align-items:start!important}
  #settingsView .setting-row>.btn{justify-self:start}
}

@media (max-width:760px){
  .view{width:100%!important;max-width:none!important}
  .analytics-header,.settings-page-head{
    min-height:auto!important;padding:18px 16px!important;border-radius:14px!important;
  }
  .analytics-header h2,.settings-page-head h2{font-size:29px!important;margin:6px 0 7px!important}
  .analytics-header p,.settings-page-head p{font-size:13.5px!important}

  #settingsView .settings-admin-grid{gap:10px!important}
  #settingsView .settings-admin-card{
    grid-template-columns:44px minmax(0,1fr)!important;
    min-height:0!important;padding:14px!important;border-radius:14px!important;
  }
  #settingsView .settings-admin-icon{width:42px!important;height:42px!important;border-radius:12px!important}
  #settingsView .settings-admin-content h3{font-size:16px!important}
  #settingsView .settings-admin-content p{font-size:13px!important}
  #settingsView .settings-admin-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  #settingsView .settings-admin-actions .btn{width:100%!important}
  #settingsView .settings-card{padding:15px!important;border-radius:14px!important}
  #settingsView .settings-card h2{font-size:18px!important}
  #settingsView .settings-card>p{font-size:13.5px!important}
  #settingsView .backup-overview{grid-template-columns:1fr!important}
  #settingsView .backup-actions{display:grid!important;grid-template-columns:1fr!important}
  #settingsView .backup-actions .btn{width:100%!important}
  #settingsView .setting-row>.btn{width:100%!important}

  .st237-section-head p,.st237-inventory-panel-head p,.st237-mytools-section-head p,.st237-tools-filter-head p,
  .st237-action-copy small,.analytics-note{font-size:12.5px!important}
}

@media (max-width:430px){
  .analytics-header h2,.settings-page-head h2{font-size:26px!important}
  #settingsView .settings-admin-card{grid-template-columns:40px minmax(0,1fr)!important;padding:13px!important;gap:10px 12px!important}
  #settingsView .settings-admin-icon{width:38px!important;height:38px!important}
  #settingsView .settings-card{padding:14px!important}
}

/* ==========================================================
   V2.3.7.8 — LOT 3 : RESPONSIVE OUTILS
   ========================================================== */
@media (max-width:1500px){
  #toolsView .st237-tools-filter-panel .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #toolsView .st237-tools-filter-panel .toolbar>*{grid-column:auto!important;width:100%!important}
  #toolsView #languageFilter:last-child{grid-column:1/-1!important}
  #toolsView .cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (min-width:761px) and (max-width:1180px){
  #mytoolsView .mytool-card-main{grid-template-columns:130px minmax(0,1fr)!important}
  #mytoolsView .mytool-card-copy{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #mytoolsView .mytool-shelf{min-height:88px!important}
}
@media (max-width:1040px){
  #toolsView .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:760px){
  #toolsView .st237-tools-filter-panel .toolbar{grid-template-columns:1fr!important}
  #toolsView .st237-tools-filter-panel .toolbar>*{grid-column:auto!important}
  #toolsView .cards{grid-template-columns:1fr!important;gap:10px!important}
  #toolsView .tools-results-line{align-items:stretch!important}
  #detailView{padding-bottom:82px!important}
}
@media (max-width:660px){
  #toolsView .tool-card{grid-template-rows:164px auto!important}
  #toolsView .tool-image{height:164px!important;min-height:164px!important}
  #toolsView .tool-image img{max-height:120px!important}
  #toolsView .tool-identity-zone{min-height:0!important}
  #toolsView .tool-card h4{font-size:14px!important}
  #toolsView .card-status-zone{min-height:0!important}
  #toolsView .physical-card-line{min-height:0!important}
  #toolsView .physical-card-location,#toolsView .physical-card-borrower{grid-template-columns:70px minmax(0,1fr)!important}
}

/* ============================================================
   V2.3.7.9 — LOT 4 : RESPONSIVE INVENTAIRE
   ============================================================ */
@media (max-width:1500px){
  #inventoryView .st237-inventory-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:1180px){
  #inventoryView .st237-inventory-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #inventoryView .st237-inventory-search{grid-column:1/-1!important}
  #inventoryView .st237-inventory-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:900px){
  #inventoryView .st237-inventory-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #inventoryView .st237-inventory-toolbar{grid-template-columns:1fr!important}
  #inventoryView .st237-inventory-search{grid-column:auto!important}
  #inventoryView .st237-inventory-rail{grid-template-columns:1fr!important}
  #inventoryView .v2-user-context>div{grid-template-columns:1fr!important}
  #inventoryView .v2-user-context label,#inventoryView .v2-user-context select,#inventoryView .v2-user-context small{grid-column:1!important;grid-row:auto!important}
}
@media (max-width:760px){
  #inventoryView{padding-bottom:96px!important}
  #inventoryView .st237-inventory-kpis{gap:8px!important}
  #inventoryView .v2-kpi{min-height:86px!important;padding:12px!important}
  #inventoryView .v2-kpi strong{font-size:23px!important}
  #inventoryView .v2-kpi span{font-size:11px!important}
  #inventoryView .v2-results-line{display:grid!important;grid-template-columns:1fr!important;gap:4px!important}
  #inventoryView .v2-inventory-table-wrap{overflow:visible!important;border-top:0!important;background:transparent!important}
  #inventoryView .v2-inventory-table{display:block!important;width:100%!important;min-width:0!important}
  #inventoryView .v2-inventory-table thead{display:none!important}
  #inventoryView .v2-inventory-table tbody{display:grid!important;gap:10px!important;padding:10px!important}
  #inventoryView .v2-inventory-table tr{display:grid!important;grid-template-columns:1fr!important;border:1px solid #e4e0e7!important;border-radius:12px!important;background:#fff!important;overflow:hidden!important}
  #inventoryView .v2-inventory-table td{display:grid!important;grid-template-columns:105px minmax(0,1fr)!important;align-items:start!important;gap:10px!important;width:100%!important;padding:10px 12px!important;border-bottom:1px solid #efedf2!important;background:#fff!important}
  #inventoryView .v2-inventory-table td:last-child{border-bottom:0!important}
  #inventoryView .v2-inventory-table td::before{content:attr(data-label);font-size:9.5px!important;line-height:1.3!important;font-weight:750!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#7a7480!important}
  #inventoryView .v2-inventory-table td:first-child{display:block!important;padding:13px 12px!important;background:#faf8fc!important}
  #inventoryView .v2-inventory-table td:first-child::before{display:none!important}
  #inventoryView .v2-row-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:430px){
  #inventoryView .st237-inventory-kpis{grid-template-columns:1fr 1fr!important}
  #inventoryView .v2-inventory-table td{grid-template-columns:88px minmax(0,1fr)!important}
  #inventoryView .v2-row-actions{grid-template-columns:1fr!important}
}

/* ============================================================
   V2.3.7.10 — CORRECTIF LOT 4 ET FINITION MOBILE
   ============================================================ */
@media (max-width:760px){
  #homeView .st237-home-hero{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    gap:16px!important;
  }
  #homeView .st237-home-hero-copy{width:100%!important;max-width:none!important}
  #homeView .st237-home-mobile-search{
    position:relative!important;
    z-index:2!important;
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr) 40px!important;
    align-items:center!important;
    gap:5px!important;
    width:100%!important;
    min-width:0!important;
    padding:7px!important;
    border:1px solid rgba(255,255,255,.4)!important;
    border-radius:13px!important;
    background:#fff!important;
  }
  #homeView .st237-home-mobile-search input{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
    padding:8px 4px!important;
    border:0!important;
    background:transparent!important;
    color:#211e24!important;
    box-shadow:none!important;
  }
  #homeView .st237-home-search-picto{color:#706978!important}
  #homeView .st237-home-search-clear{width:40px!important;padding:0!important}
  #homeView .st237-home-search-submit{
    grid-column:1/-1!important;
    width:100%!important;
    min-height:44px!important;
  }
  .access-account-menu{
    left:auto!important;
    right:10px!important;
    width:min(340px,calc(100vw - 20px))!important;
    max-width:calc(100vw - 20px)!important;
  }
}
