/* Garde-fou mobile des pages de contenu (audit du 20/10/2026) : 37 pages étaient plus larges que l'écran
   d'un téléphone (jusqu'à 860 px pour 360 px) à cause de tableaux et de grilles ; le navigateur dézoomait
   la page et le bouton du menu sortait de l'écran. Sélecteurs préfixés par « main » pour primer sur les
   styles propres à chaque page, chargés après. */
main.seo-container, main.size-page, main.channel-page, main.help-page, main.seo-container > article { max-width: min(100%, 900px); box-sizing: border-box; overflow-wrap: break-word; }
main.seo-container *, main.size-page *, main.channel-page *, main.help-page * { min-width: 0; max-width: 100%; box-sizing: border-box; }
main.seo-container table, main.size-page table, main.channel-page table, main.help-page table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Dans un tableau, les cellules gardent leur largeur naturelle : c'est le tableau qui défile, pas le texte qui se casse lettre par lettre. */
main.seo-container table *, main.size-page table *, main.channel-page table *, main.help-page table * { max-width: none; overflow-wrap: normal; }
main.seo-container th, main.seo-container td, main.size-page th, main.size-page td, main.channel-page th, main.channel-page td, main.help-page th, main.help-page td { min-width: 7.5em; }
main.seo-container pre, main.size-page pre, main.channel-page pre, main.help-page pre { overflow-x: auto; white-space: pre; }
main.seo-container img, main.size-page img, main.channel-page img, main.help-page img, main.seo-container svg { height: auto; }


/* UI/UX Pro Max — garde-fous globaux pour les vues historiques partageant seo-head.ejs. */
main, main > *, .container, .content, .page-content, .dashboard-content {
  min-width: 0;
  max-width: 100%;
}
main :where(img, video, canvas, iframe) { max-width: 100%; }
main :where(pre, code, .code-block, .api-code) { max-width: 100%; overflow-wrap: anywhere; }
main :where(button, input, select, textarea) { max-width: 100%; }
main :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  min-height: 44px;
}
main :where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #1A56DB;
  outline-offset: 3px;
}
main :where(table) { max-width: 100%; }
main :where(.table-responsive, .table-wrap, .table-container) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
main :where(p, li, dd, dt, a, label, h1, h2, h3) { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  main :where(.row, .actions, .form-actions, .toolbar) { flex-wrap: wrap; }
  main :where(.row > *, .actions > *, .form-actions > *, .toolbar > *) { min-width: 0; }
  main :where(button, .btn, input[type="submit"], input[type="button"]) { min-height: 44px; }
}
@media (forced-colors: active) {
  main :where(button, input, select, textarea) { border: 1px solid ButtonText; }
  main :where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid Highlight; }
}
