/* TentoniNumérik R44.3.10 — accueil PUBLIC uniquement sur téléphone/tablette.\n   Le mode connecté et le bureau ne sont pas modifiés. */

/* La page publique utilise le vrai viewport : pas de site bureau miniaturisé. */
body.tn-public-home.tn-reference-device{
  min-width:0!important;width:100%!important;height:auto!important;min-height:100vh!important;
  overflow-x:hidden!important;overflow-y:auto!important;
}
body.tn-public-home.tn-reference-device #app{
  position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:100vh!important;overflow:visible!important;
}
body.tn-public-home.tn-reference-device .site-shell.home-mode{
  position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:auto!important;min-height:100vh!important;
  transform:none!important;transform-origin:center top!important;overflow:visible!important;
}
body.tn-public-home.tn-reference-device .site-shell.home-mode main,
body.tn-public-home.tn-reference-device .home-page,
body.tn-public-home.tn-reference-device .home-dashboard-121{
  height:auto!important;min-height:0!important;overflow:visible!important;
}

/* En-tête public : logo + infos utiles + Connexion. Les alertes/messages restent pour le connecté. */
body.tn-public-home.tn-reference-device .mobile-menu-btn{display:none!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:none!important}
body.tn-public-home.tn-reference-device .top-actions .connect-btn{
  display:inline-flex!important;visibility:visible!important;opacity:1!important;white-space:nowrap!important;
}
body.tn-public-home.tn-reference-device .language-btn{display:none!important}
body.tn-public-home.tn-reference-device .top-weather-inline .top-weather-current,
body.tn-public-home.tn-reference-device .top-weather-inline .top-weather-divider,
body.tn-public-home.tn-reference-device .top-weather-inline .top-forecast-day,
body.tn-public-home.tn-reference-device .top-weather-inline .top-weather-place{display:none!important}
body.tn-public-home.tn-reference-device .top-weather-inline{
  display:grid!important;place-items:center!important;width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;margin:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
body.tn-public-home.tn-reference-device .top-weather-inline>img{display:block!important;width:30px!important;height:30px!important;margin:0!important}

/* Navigation essentielle toujours visible : Accueil / Actualités / Événements / Jeux. */
body.tn-public-home.tn-reference-device .mainnav{
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;display:block!important;width:100%!important;height:auto!important;
  transform:none!important;box-shadow:none!important;border-radius:0!important;
}
body.tn-public-home.tn-reference-device .nav-inner{
  width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:5px 8px!important;display:block!important;
}
body.tn-public-home.tn-reference-device .nav-links{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;height:auto!important;gap:4px!important;
}
body.tn-public-home.tn-reference-device .nav-link{
  width:100%!important;min-width:0!important;justify-content:center!important;align-items:center!important;white-space:nowrap!important;overflow:hidden!important;
}
body.tn-public-home.tn-reference-device .search-form{display:none!important}

/* L'actualité passe immédiatement après le hero. Les 4 accès viennent ensuite. */
body.tn-public-home.tn-reference-device .home-left-121{display:contents!important}
body.tn-public-home.tn-reference-device .hero-121{order:1!important}
body.tn-public-home.tn-reference-device .news-pro-121{order:2!important}
body.tn-public-home.tn-reference-device .quick-access-121{order:3!important}
body.tn-public-home.tn-reference-device #tn-responsive-extras{display:none!important}

/* Actualités : toutes les pages de 3 cartes sont visibles et la page entière défile verticalement. */
body.tn-public-home.tn-reference-device .news-pro-121{
  height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
}
body.tn-public-home.tn-reference-device .news-slider-121,
body.tn-public-home.tn-reference-device .news-pagination-121{display:none!important}
body.tn-public-home.tn-reference-device .tn-ref-news-device{
  display:block!important;width:100%!important;min-width:0!important;height:auto!important;overflow:visible!important;
}
body.tn-public-home.tn-reference-device .tn-ref-news-pages{
  display:grid!important;gap:12px!important;width:100%!important;overflow:visible!important;
}
body.tn-public-home.tn-reference-device .tn-ref-news-page{
  display:grid!important;width:100%!important;min-width:0!important;gap:12px!important;
}
body.tn-public-home.tn-reference-device .tn-ref-news-arrow,
body.tn-public-home.tn-reference-device .tn-ref-news-dots{display:none!important}
body.tn-public-home.tn-reference-device .tn-ref-news-page .news-card{
  width:100%!important;height:auto!important;min-height:300px!important;overflow:hidden!important;
}
body.tn-public-home.tn-reference-device .tn-ref-news-page .news-body{
  min-height:170px!important;display:flex!important;flex-direction:column!important;
}
body.tn-public-home.tn-reference-device .tn-ref-news-page .news-body p{
  display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;
}

/* Les flottants publics ne doivent jamais couvrir l'actualité. */
body.tn-public-home.tn-reference-device .floating-tools.public-floating .floating-game-wrap{display:none!important}
body.tn-public-home.tn-reference-device .floating-tools.public-floating .floating-name{display:none!important}
body.tn-public-home.tn-reference-device .floating-tools.public-floating{
  right:10px!important;left:auto!important;bottom:12px!important;top:auto!important;width:auto!important;height:auto!important;z-index:90!important;
}
body.tn-public-home.tn-reference-device .floating-tools.public-floating .compact-assistant.avatar-only,
body.tn-public-home.tn-reference-device .floating-tools.public-floating .compact-assistant.avatar-only img{
  width:64px!important;height:82px!important;max-width:64px!important;max-height:82px!important;object-fit:contain!important;
}

/* TABLETTE publique : date + heure + simple pictogramme météo + Connexion. */
@media (min-width:721px) and (max-width:1280px){
  body.tn-public-home.tn-reference-tablet .topbar{height:72px!important;min-height:72px!important}
  body.tn-public-home.tn-reference-tablet .topbar-inner{
    width:100%!important;max-width:none!important;height:72px!important;min-height:72px!important;padding:0 14px!important;margin:0!important;
    display:grid!important;grid-template-columns:minmax(210px,1fr) auto auto!important;align-items:center!important;gap:10px!important;
  }
  body.tn-public-home.tn-reference-tablet .brand{min-width:0!important;max-width:none!important;overflow:hidden!important}
  body.tn-public-home.tn-reference-tablet .brand-mark{width:42px!important;height:42px!important;flex:0 0 42px!important}
  body.tn-public-home.tn-reference-tablet .brand-copy strong{font-size:20px!important;white-space:nowrap!important}
  body.tn-public-home.tn-reference-tablet .brand-copy small{font-size:7.5px!important;white-space:nowrap!important}
  body.tn-public-home.tn-reference-tablet .top-meta{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important;margin:0!important;
  }
  body.tn-public-home.tn-reference-tablet .top-date,
  body.tn-public-home.tn-reference-tablet .top-time{display:inline-flex!important;font-size:10.5px!important;gap:4px!important}
  body.tn-public-home.tn-reference-tablet .top-date img,
  body.tn-public-home.tn-reference-tablet .top-time img{width:18px!important;height:18px!important}
  body.tn-public-home.tn-reference-tablet .top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:0!important}
  body.tn-public-home.tn-reference-tablet .connect-btn{height:38px!important;padding:0 14px!important;font-size:11px!important;border-radius:20px!important}
  body.tn-public-home.tn-reference-tablet .connect-btn img{width:20px!important;height:20px!important}
  body.tn-public-home.tn-reference-tablet .nav-link{height:54px!important;font-size:11px!important;gap:6px!important;padding:0 6px!important}
  body.tn-public-home.tn-reference-tablet .nav-link img{width:25px!important;height:25px!important}

  body.tn-public-home.tn-reference-tablet .home-page{width:100%!important;max-width:none!important;margin:0!important;padding:12px 14px 24px!important}
  body.tn-public-home.tn-reference-tablet .home-dashboard-121{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  body.tn-public-home.tn-reference-tablet .hero-121{
    width:100%!important;height:300px!important;min-height:300px!important;margin:0!important;border-radius:18px!important;
    grid-template-columns:44% 56%!important;
  }
  body.tn-public-home.tn-reference-tablet .hero-copy-121{padding:30px 12px 24px 24px!important}
  body.tn-public-home.tn-reference-tablet .hero-welcome-121{font-size:25px!important}
  body.tn-public-home.tn-reference-tablet .hero-brand-121{font-size:43px!important;letter-spacing:-1.6px!important}
  body.tn-public-home.tn-reference-tablet .hero-sub-122{font-size:14px!important;line-height:1.42!important}
  body.tn-public-home.tn-reference-tablet .hero-photo-121{object-position:50% 18%!important}

  body.tn-public-home.tn-reference-tablet .news-pro-121{padding:14px!important;border-radius:18px!important}
  body.tn-public-home.tn-reference-tablet .news-heading-121 h2{font-size:21px!important}
  body.tn-public-home.tn-reference-tablet .tn-ref-news-page{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.tn-public-home.tn-reference-tablet .tn-ref-news-page .news-card{min-height:330px!important;grid-template-rows:48% 52%!important}
  body.tn-public-home.tn-reference-tablet .tn-ref-news-page .news-body h3{font-size:15px!important;line-height:1.18!important}
  body.tn-public-home.tn-reference-tablet .tn-ref-news-page .news-body p{font-size:11.5px!important;line-height:1.36!important}

  body.tn-public-home.tn-reference-tablet .quick-access-121{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;height:auto!important;min-height:0!important;max-height:none!important;
    gap:10px!important;overflow:visible!important;padding:0!important;
  }
}

/* TÉLÉPHONE public : aucun hamburger ; logo + météo symbolique + Connexion, puis les 4 menus. */
@media (max-width:720px){
  body.tn-public-home.tn-reference-phone .topbar{height:68px!important;min-height:68px!important}
  body.tn-public-home.tn-reference-phone .topbar-inner{
    width:100%!important;max-width:none!important;height:68px!important;min-height:68px!important;padding:0 9px!important;margin:0!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) 30px 84px!important;align-items:center!important;gap:6px!important;overflow:hidden!important;
  }
  body.tn-public-home.tn-reference-phone .brand{min-width:0!important;max-width:none!important;overflow:hidden!important;display:flex!important;gap:6px!important}
  body.tn-public-home.tn-reference-phone .brand-mark{width:31px!important;height:31px!important;flex:0 0 31px!important}
  body.tn-public-home.tn-reference-phone .brand-copy{min-width:0!important;overflow:hidden!important}
  body.tn-public-home.tn-reference-phone .brand-copy strong{font-size:15px!important;line-height:1!important;white-space:nowrap!important}
  body.tn-public-home.tn-reference-phone .brand-copy small{font-size:6px!important;line-height:1!important;white-space:nowrap!important;letter-spacing:0!important}
  body.tn-public-home.tn-reference-phone .top-meta{
    display:flex!important;grid-column:2!important;align-items:center!important;justify-content:center!important;width:30px!important;min-width:30px!important;margin:0!important;gap:0!important;
  }
  body.tn-public-home.tn-reference-phone .top-date,
  body.tn-public-home.tn-reference-phone .top-time{display:none!important}
  body.tn-public-home.tn-reference-phone .top-weather-inline{width:30px!important;min-width:30px!important;height:30px!important}
  body.tn-public-home.tn-reference-phone .top-weather-inline>img{width:27px!important;height:27px!important}
  body.tn-public-home.tn-reference-phone .top-actions{
    display:flex!important;grid-column:3!important;align-items:center!important;justify-content:flex-end!important;width:84px!important;min-width:84px!important;gap:0!important;
  }
  body.tn-public-home.tn-reference-phone .connect-btn{
    width:84px!important;min-width:84px!important;max-width:84px!important;height:34px!important;padding:0 7px!important;font-size:9.5px!important;border-radius:18px!important;justify-content:center!important;
  }
  body.tn-public-home.tn-reference-phone .connect-btn img{width:18px!important;height:18px!important}
  body.tn-public-home.tn-reference-phone .nav-inner{padding:4px 5px!important}
  body.tn-public-home.tn-reference-phone .nav-links{gap:3px!important}
  body.tn-public-home.tn-reference-phone .nav-link{
    height:48px!important;min-height:48px!important;padding:0 2px!important;gap:3px!important;font-size:9px!important;flex-direction:column!important;line-height:1!important;border-radius:10px!important;
  }
  body.tn-public-home.tn-reference-phone .nav-link img{width:21px!important;height:21px!important}

  body.tn-public-home.tn-reference-phone .home-page{width:100%!important;max-width:none!important;margin:0!important;padding:9px 8px 20px!important}
  body.tn-public-home.tn-reference-phone .home-dashboard-121{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  body.tn-public-home.tn-reference-phone .hero-121{
    width:100%!important;height:300px!important;min-height:300px!important;margin:0!important;border-radius:16px!important;
    display:grid!important;grid-template-columns:48% 52%!important;overflow:hidden!important;
  }
  body.tn-public-home.tn-reference-phone .hero-copy-121{padding:24px 4px 18px 14px!important;min-width:0!important}
  body.tn-public-home.tn-reference-phone .hero-welcome-121{font-size:18px!important;line-height:1.05!important;margin-bottom:5px!important}
  body.tn-public-home.tn-reference-phone .hero-brand-121{font-size:28px!important;line-height:.98!important;letter-spacing:-1px!important;white-space:nowrap!important}
  body.tn-public-home.tn-reference-phone .hero-sub-122{font-size:11px!important;line-height:1.38!important;max-width:170px!important}
  body.tn-public-home.tn-reference-phone .hero-photo-121{object-position:50% 16%!important}

  body.tn-public-home.tn-reference-phone .news-pro-121{padding:10px!important;border-radius:15px!important}
  body.tn-public-home.tn-reference-phone .news-heading-121{min-height:42px!important;align-items:center!important}
  body.tn-public-home.tn-reference-phone .news-heading-121 h2{font-size:17px!important;line-height:1.05!important}
  body.tn-public-home.tn-reference-phone .news-heading-121 h2 img{width:24px!important;height:24px!important}
  body.tn-public-home.tn-reference-phone .news-heading-121 a{font-size:10px!important;padding:7px 9px!important}
  body.tn-public-home.tn-reference-phone .tn-ref-news-pages{gap:9px!important}
  body.tn-public-home.tn-reference-phone .tn-ref-news-page{grid-template-columns:1fr!important;gap:9px!important}
  body.tn-public-home.tn-reference-phone .tn-ref-news-page .news-card{
    min-height:0!important;height:auto!important;display:grid!important;grid-template-columns:42% 58%!important;grid-template-rows:minmax(220px,auto)!important;border-radius:12px!important;
  }
  body.tn-public-home.tn-reference-phone .tn-ref-news-page .news-media{grid-column:1!important;grid-row:1!important;height:100%!important;min-height:220px!important}
  body.tn-public-home.tn-reference-phone .tn-ref-news-page .news-body{
    grid-column:2!important;grid-row:1!important;min-height:220px!important;padding:11px!important;justify-content:flex-start!important;
  }
  body.tn-public-home.tn-reference-phone .tn-ref-news-page .news-tag{font-size:8px!important;padding:4px 7px!important}
  body.tn-public-home.tn-reference-phone .tn-ref-news-page .publication-meta{font-size:9px!important}
  body.tn-public-home.tn-reference-phone .tn-ref-news-page .publication-source{font-size:8.5px!important}
  body.tn-public-home.tn-reference-phone .tn-ref-news-page .news-body h3{font-size:13px!important;line-height:1.15!important;margin:5px 0!important;display:block!important}
  body.tn-public-home.tn-reference-phone .tn-ref-news-page .news-body p{font-size:10px!important;line-height:1.3!important;margin:4px 0!important}
  body.tn-public-home.tn-reference-phone .tn-ref-news-page .soft-link{font-size:10px!important;margin-top:auto!important}

  body.tn-public-home.tn-reference-phone .quick-access-121{
    display:grid!important;grid-template-columns:1fr!important;height:auto!important;min-height:0!important;max-height:none!important;gap:8px!important;overflow:visible!important;padding:0!important;
  }
  body.tn-public-home.tn-reference-phone .quick-access-121 .quick-access{min-height:96px!important;height:auto!important}
  body.tn-public-home.tn-reference-phone .floating-tools.public-floating .compact-assistant.avatar-only,
  body.tn-public-home.tn-reference-phone .floating-tools.public-floating .compact-assistant.avatar-only img{
    width:50px!important;height:66px!important;max-width:50px!important;max-height:66px!important;
  }
}
