:root{
  --mlr-night:#071a54;
  --mlr-night-deep:#04133f;
  --mlr-gold:#f5b51b;
  --mlr-white:#ffffff;
}

/* Pages intérieures : un repère de marque, un contexte, un retour. */
body.mlr-interior-clean .site-header,
body.mlr-interior-clean .master-header{
  position:sticky;
  top:0;
  z-index:80;
  min-height:72px!important;
  padding:0!important;
  background:linear-gradient(100deg,var(--mlr-night-deep),var(--mlr-night))!important;
  border-bottom:2px solid rgba(245,181,27,.78)!important;
  box-shadow:0 6px 22px rgba(2,10,35,.18)!important;
}

.mlr-compact-inner{
  width:min(1180px,calc(100% - 32px));
  min-height:72px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(190px,auto) 1fr auto;
  gap:24px;
  align-items:center;
}

.mlr-compact-brand{
  display:inline-flex!important;
  align-items:center!important;
  gap:12px!important;
  color:#fff!important;
  text-decoration:none!important;
  min-width:0;
}
.mlr-compact-brand img{width:46px!important;height:46px!important;object-fit:contain!important;flex:none}
.mlr-compact-brand strong{display:block;color:#fff;font-family:Georgia,serif;font-size:1.18rem;line-height:1.05}
.mlr-compact-brand small{display:block;color:#f5c451;font-size:.72rem;line-height:1.2;margin-top:3px}

.mlr-compact-context{
  color:rgba(255,255,255,.84);
  font-size:.95rem;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  text-align:center;
}

.mlr-return-link{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 17px;
  border:1px solid var(--mlr-gold);
  border-radius:10px;
  color:#fff!important;
  background:rgba(255,255,255,.06);
  text-decoration:none!important;
  font-weight:800;
  font-size:.9rem;
  white-space:nowrap;
}
.mlr-return-link:hover,.mlr-return-link:focus-visible{background:var(--mlr-gold);color:var(--mlr-night)!important;outline:none}

/* Le grand menu et les menus mobiles historiques n'ont plus lieu d'être dans un article. */
body.mlr-interior-clean .site-header .nav,
body.mlr-interior-clean .site-header .master-nav,
body.mlr-interior-clean .mlr-mobile-guide,
body.mlr-interior-clean .mlr-mobile-drawer,
body.mlr-interior-clean .mlr-mobile-menu-toggle,
body.mlr-interior-clean .menu-btn{display:none!important}

/* Pied de page encyclopédique compact. */
body.mlr-interior-clean .footer,
body.mlr-interior-clean footer.site-footer{
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  background:var(--mlr-night-deep)!important;
  color:#fff!important;
}
.mlr-footer-compact{
  width:min(1180px,calc(100% - 32px));
  min-height:64px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  font-size:.86rem;
}
.mlr-footer-compact p{margin:0!important;color:rgba(255,255,255,.82)!important}
.mlr-footer-compact nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.mlr-footer-compact a{color:#fff!important;text-decoration:none!important}
.mlr-footer-compact a:hover,.mlr-footer-compact a:focus-visible{color:var(--mlr-gold)!important}

/* Compteur : les nombres restent visibles même si une ancienne règle mobile est chargée. */
.mlr-public-visitors-count strong,
#mlrVisitorToday,
#mlrVisitorYear{
  display:inline-block!important;
  min-width:1.5ch!important;
  visibility:visible!important;
  opacity:1!important;
  color:var(--mlr-gold)!important;
  font-weight:900!important;
  transform:none!important;
  text-indent:0!important;
  clip:auto!important;
}

@media(max-width:720px){
  .mlr-compact-inner{
    width:min(100% - 20px,1180px);
    min-height:64px;
    grid-template-columns:1fr auto;
    gap:10px;
  }
  body.mlr-interior-clean .site-header,
  body.mlr-interior-clean .master-header{min-height:64px!important}
  .mlr-compact-brand img{width:39px!important;height:39px!important}
  .mlr-compact-brand strong{font-size:1rem}
  .mlr-compact-brand small{font-size:.66rem}
  .mlr-compact-context{display:none}
  .mlr-return-link{min-height:40px;padding:0 12px;font-size:.78rem}
  .mlr-footer-compact{min-height:52px;justify-content:center;text-align:center;padding:10px 0}
  .mlr-footer-compact nav{display:none}
  .mlr-public-visitors{width:100%!important;max-width:100%!important;padding:14px 12px!important}
  .mlr-public-visitors-count{font-size:1rem!important;line-height:1.65!important}
  .mlr-public-visitors-count strong{font-size:1.2em!important}
  .community-floating{right:8px!important;gap:7px!important}
  .community-floating button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
}

@media(max-width:390px){
  .mlr-compact-brand small{display:none}
  .mlr-return-link{padding:0 10px;font-size:.74rem}
}

/* Nettoyage éditorial global — V22.5 : pas d'emojis décoratifs ni de faux onglets. */
.mlr-no-emoji .commune-pillars,
.mlr-no-emoji .municipal-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  border-top:1px solid rgba(8,27,99,.18);
  border-bottom:1px solid rgba(8,27,99,.18);
}
.mlr-no-emoji .commune-pillars>div,
.mlr-no-emoji .municipal-grid>article{
  min-height:0!important;
  padding:22px 24px!important;
  background:transparent!important;
  border:0!important;
  border-left:3px solid #f5b323!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.mlr-no-emoji .commune-pillars strong,
.mlr-no-emoji .municipal-grid h3{display:block;margin:0 0 8px;color:#081b63}
.mlr-no-emoji .commune-pillars span,
.mlr-no-emoji .municipal-grid p{margin:0;color:#44506b}
.mlr-no-emoji .municipal-grid>article>span:empty,
.mlr-no-emoji .upload-zone>span:empty{display:none!important}
.mlr-no-emoji .commune-network-orbit{display:none!important}
.mlr-no-emoji img.mlr-removed-illustration{display:none!important}

.mlr-no-emoji .community-floating{right:0!important;gap:7px!important;align-items:flex-end!important}
.mlr-no-emoji .community-floating button,
.mlr-no-emoji .community-floating a{
  width:auto!important;
  min-width:76px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0 12px!important;
  border-radius:9px 0 0 9px!important;
  font:700 12px/1 system-ui,sans-serif!important;
  letter-spacing:.01em!important;
  text-decoration:none!important;
}

@media(max-width:760px){
  .mlr-no-emoji .commune-pillars,
  .mlr-no-emoji .municipal-grid{grid-template-columns:1fr}
  .mlr-no-emoji .commune-pillars>div,
  .mlr-no-emoji .municipal-grid>article{padding:17px 18px!important}
  .mlr-no-emoji .community-floating button,
  .mlr-no-emoji .community-floating a{min-width:68px!important;height:34px!important;min-height:34px!important;font-size:11px!important}
}
