/* ANTEO V7.59.6 — Page /mentions-legales seulement.
   Correctif du H1 après personnalisation depuis le CMS : certains templates Odoo
   rendent le titre hors des wrappers #wrap / #anteo-migration-root visés par
   les correctifs V7.57.8 et V7.58.2. Les mots de l’animation native deviennent
   alors autant de lignes avec un interligne disproportionné.

   Ciblage volontairement basé sur le marqueur de ROUTE posé dans <head> ;
   compatible avec le H1 Odoo et le H1 de l’embed ANTEO. Aucun changement du
   moteur GSAP, des lettres .char, des textes CMS ou des titres desktop.
*/
@media screen and (max-width: 1024px) {
  html[data-anteo-mentions-page-v7578="1"]
  :is(body, #wrap, #wrapwrap, #anteo-migration-root) h1 {
    display: block !important;
    flex-direction: initial !important;
    justify-content: initial !important;
    align-items: initial !important;
    gap: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    white-space: normal !important;
    line-height: 1.05 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /* La bibliothèque native découpe les mots en DIV.word (inline-block).
     Ils doivent former des lignes de texte et non une colonne de blocs. */
  html[data-anteo-mentions-page-v7578="1"]
  :is(body, #wrap, #wrapwrap, #anteo-migration-root) h1 .word:not(.space) {
    display: inline-block !important;
    float: none !important;
    clear: none !important;
    position: relative;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
    line-height: inherit !important;
  }

  html[data-anteo-mentions-page-v7578="1"]
  :is(body, #wrap, #wrapwrap, #anteo-migration-root) h1 .word.space {
    display: inline !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
  }

  /* Repli V7.57.7 quand la page Odoo n'utilise pas le splitter natif. */
  html[data-anteo-mentions-page-v7578="1"]
  :is(body, #wrap, #wrapwrap, #anteo-migration-root)
  h1[data-anteo-mentions-fallback-v7577="1"] > span:not(.anteo-mentions-char-v7577) {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
    line-height: inherit !important;
  }
}
