/* ===== Mobile : toucher fiable + allègement des effets lourds ===== */
a,button,summary,label,select,[role=button],.lang-switch button{touch-action:manipulation;-webkit-tap-highlight-color:#ff4d5833}

@media(max-width:900px){
  /* barre de navigation : pas de flou (bug de toucher + lenteur sur téléphone), cibles de 44px */
  .site-nav{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;isolation:auto!important;position:sticky!important;top:8px!important;z-index:500!important;
    background:linear-gradient(115deg,#1b1012f5,#09090bfa 32%,#190e10f5)!important;animation:none!important}
  .site-nav .brand{min-height:44px}
  .site-actions{gap:8px!important;flex-wrap:nowrap}
  .site-actions>*{min-height:44px}
  .site-actions a,.site-actions>button{min-height:44px!important}
  .site-links{flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;gap:8px!important;padding:9px 2px 2px!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
  .site-links::-webkit-scrollbar{display:none}
  .site-links a{flex:none;min-height:44px!important;padding:0 16px!important;scroll-snap-align:start}
  .lang-switch button,.site-actions .lang-switch button{min-height:40px!important;height:40px!important;min-width:46px!important}
  .xgp-btn,.site-actions .xgp-btn{min-height:44px!important;height:44px!important}
  .xgp-menu{z-index:600}
}

/* mode « lite » : appareils tactiles ou écrans étroits (classe posée par mobile-fix.js) */
html.lite .fx-orb,html.lite .ambient-grid,html.lite #embers{display:none!important}
html.lite .launch-hero{opacity:1!important}
html.lite .launch-hero>*{transform:none!important;will-change:auto!important}
html.lite .reveal .feature-stack article,html.lite .reveal .faq-list details,html.lite .reveal .create-intro>*{filter:none!important}
html.lite .fx-top,html.lite .search-panel,html.lite .results,html.lite .site-nav,html.lite .card{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.lite body::before,html.lite body::after{filter:none!important}
html.lite .osint-showcase::before{display:none}
html.lite .tool-card:hover,html.lite .card:hover{transform:none!important}

/* rien ne doit passer devant la barre de navigation ni intercepter un appui */
.xgpt-starfield,.fx-progress,.fx-orb{pointer-events:none!important}

/* petits écrans : marque + langues + connexion sur une seule ligne */
@media(max-width:520px){
  .site-nav{padding:10px 12px!important;gap:8px!important;margin-inline:0!important}
  .site-nav .brand{font-size:19px!important;gap:7px!important;min-width:0}
  .site-nav .brand img{width:30px!important;height:30px!important}
  .site-actions{margin-left:auto;gap:6px!important}
  .site-actions>a,.site-actions>button{padding:0 12px!important;font-size:12.5px!important}
  .site-actions svg{width:15px!important;height:15px!important}
  .lang-switch{padding:2px!important;border-radius:13px!important}
  .lang-switch button,.site-actions .lang-switch button{min-width:38px!important;padding:0 6px!important;height:38px!important;min-height:38px!important}
  .xgp-name{display:none}
  .site-actions .xgp-btn{padding:0 8px 0 5px!important}
}
