/* TentoniNumérik R44.3.14 — accueil PUBLIC téléphone/tablette uniquement.
   Structure inchangée : ajustement CSS de l'en-tête. */

@media (max-width:1050px){
  body.tn-public-home.tn-reference-device .topbar{
    height:72px!important;
    min-height:72px!important;
    background:#fff!important;
  }

  body.tn-public-home.tn-reference-device .topbar-inner{
    width:100%!important;
    max-width:none!important;
    height:72px!important;
    padding:0 12px!important;
    margin:0!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
  }

  body.tn-public-home.tn-reference-device .mobile-menu-btn{
    display:none!important;
  }

  /* Pas de météo/date/heure/langue sur l'accueil public petit écran. */
  body.tn-public-home.tn-reference-device .top-meta,
  body.tn-public-home.tn-reference-device .top-weather-inline,
  body.tn-public-home.tn-reference-device .language-btn{
    display:none!important;
    visibility:hidden!important;
  }

  /* Logo + nom + devise. */
  body.tn-public-home.tn-reference-device .brand{
    display:flex!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    margin:0!important;
    padding:0!important;
  }

  body.tn-public-home.tn-reference-device .brand-mark,
  body.tn-public-home.tn-reference-device .brand-mark img{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    object-fit:contain!important;
  }

  body.tn-public-home.tn-reference-device .brand-copy{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    line-height:1!important;
  }

  body.tn-public-home.tn-reference-device .brand-copy strong{
    margin:0!important;
    font-size:17px!important;
    line-height:1.02!important;
    letter-spacing:-.45px!important;
    white-space:nowrap!important;
  }

  body.tn-public-home.tn-reference-device .brand-copy small{
    display:block!important;
    margin-top:3px!important;
    font-size:7px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* Connexion + Enveloppe + Alarme sur la même rangée. */
  body.tn-public-home.tn-reference-device .top-actions{
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:5px!important;
    margin:0!important;
    padding:0!important;
  }

  body.tn-public-home.tn-reference-device .top-actions .connect-btn{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 10px!important;
    margin:0!important;
    border-radius:20px!important;
    white-space:nowrap!important;
    font-size:11px!important;
  }

  body.tn-public-home.tn-reference-device .top-actions .connect-btn img{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
  }

  body.tn-public-home.tn-reference-device .top-actions .round-action,
  body.tn-public-home.tn-reference-device .top-actions .education-alert-bell{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    place-items:center!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    padding:0!important;
    margin:0!important;
    border-radius:50%!important;
  }

  body.tn-public-home.tn-reference-device .top-actions .round-action img,
  body.tn-public-home.tn-reference-device .top-actions .education-alert-bell img{
    width:23px!important;
    height:23px!important;
    object-fit:contain!important;
  }
}

@media (max-width:560px){
  body.tn-public-home.tn-reference-device .topbar,
  body.tn-public-home.tn-reference-device .topbar-inner{
    height:68px!important;
    min-height:68px!important;
  }

  body.tn-public-home.tn-reference-device .topbar-inner{
    padding:0 8px!important;
    gap:5px!important;
  }

  body.tn-public-home.tn-reference-device .brand{gap:4px!important}

  body.tn-public-home.tn-reference-device .brand-mark,
  body.tn-public-home.tn-reference-device .brand-mark img{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
  }

  body.tn-public-home.tn-reference-device .brand-copy strong{
    font-size:14px!important;
    letter-spacing:-.35px!important;
  }

  body.tn-public-home.tn-reference-device .brand-copy small{
    max-width:116px!important;
    font-size:6.2px!important;
    margin-top:2px!important;
  }

  body.tn-public-home.tn-reference-device .top-actions{gap:3px!important}

  body.tn-public-home.tn-reference-device .top-actions .connect-btn{
    height:34px!important;
    min-height:34px!important;
    padding:0 7px!important;
    gap:3px!important;
    border-radius:18px!important;
    font-size:10px!important;
  }

  body.tn-public-home.tn-reference-device .top-actions .connect-btn img{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
  }

  body.tn-public-home.tn-reference-device .top-actions .round-action,
  body.tn-public-home.tn-reference-device .top-actions .education-alert-bell{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
  }

  body.tn-public-home.tn-reference-device .top-actions .round-action img,
  body.tn-public-home.tn-reference-device .top-actions .education-alert-bell img{
    width:20px!important;
    height:20px!important;
  }
}

@media (max-width:360px){
  body.tn-public-home.tn-reference-device .brand-copy strong{font-size:13px!important}
  body.tn-public-home.tn-reference-device .brand-copy small{max-width:86px!important}
  body.tn-public-home.tn-reference-device .top-actions .connect-btn{
    padding:0 6px!important;
    font-size:9px!important;
  }
}
