/* ============================================================
   footballstats.fr — stylefoot
   Redesign 2025 : sobre, lisible, style journal sportif moderne
   Palette : blanc / gris clair / rouge #c0392b / ardoise #2c3e50
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  color: #222;
  width: 100%;
}

#global {
  position: absolute;
  width: 100%;
  background: #fff;
}

/* ── BANDEAU HAUT ── */
#menuhaut {
  width: 100%;
  background: #2c3e50;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 3px solid #c0392b;
  text-align: center;
  position: relative;
}

.btn-home {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  line-height: 1;
}

/* ── WRAPPER COLONNES (ancre l'alignement menus/corps) ── */
#content-area {
  position: relative;
}

/* ── MENU GAUCHE ── */
#menugauche {
  position: absolute;
  top: 0;
  margin-top: 0;
  left: 0%;
  width: 13%;
  background-color: #f7f8fa;
  border-right: 1px solid #dde3ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}

#menugauche h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  background-color: #2c3e50;
  border-left: 3px solid #c0392b;
  margin: 0;
  padding: 6px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#menugauche a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  display: block;
  color: #333;
  text-align: left;
  line-height: normal;
  height: auto;
  width: auto;
  margin: 0;
  padding: 5px 8px 5px 12px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}

#menugauche a:hover {
  background: #eef2f7;
  color: #c0392b;
  border-left-color: #c0392b;
  text-decoration: none;
}

#menugauche ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-align: left;
}

#menugauche li h2 {
  margin: 0;
  padding: 6px 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background-color: #2c3e50;
  border-left: 3px solid #c0392b;
  width: 100%;
  letter-spacing: 0.5px;
}

#menugauche li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #ececec;
}

#menugauche li a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  color: #333;
  text-align: left;
  line-height: normal;
  width: auto;
  margin: 0;
  padding: 5px 8px 5px 12px;
}

#pub {
  margin: auto;
  width: 100%;
  display: none;
  z-index: 4;
}

#corps {
  position: relative;
  margin-top: 0;
  margin-left: 15%;
  width: 70%;
  z-index: 4;
}

#dwindow {
  position: absolute;
  background-color: #f0f4ff;
  border: 1px solid #c0c8f0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 44;
}

#menudroite {
  position: absolute;
  top: 0;
  margin-top: 0;
  right: 0;
  width: 13%;
  background-color: #f7f8fa;
  border-left: 1px solid #dde3ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}

#menudroite h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background-color: #2c3e50;
  border-left: 3px solid #c0392b;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  letter-spacing: 0.5px;
}

#menudroite h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  background-color: #2c3e50;
  border-left: 3px solid #c0392b;
  margin: 0;
  padding: 6px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#menudroite a {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  color: #333;
  text-align: left;
  line-height: normal;
  height: auto;
  width: auto;
  margin: 0;
  padding: 5px 8px;
  text-decoration: none;
  transition: background 0.15s;
}

#menudroite a:hover {
  background: #eef2f7;
  color: #c0392b;
  text-decoration: none;
}

#menudroite ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-align: left;
}

#menudroite li h2 {
  margin: 0;
  padding: 6px 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background-color: #2c3e50;
  width: 100%;
}

#menudroite li {
  display: block;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #ececec;
}

#menudroite li a {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  color: #333;
  text-align: left;
  line-height: normal;
  width: auto;
  margin: 0;
  padding: 3px 4px;
}

#patience {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #eef2f7;
  padding: 10px;
  width: 80px;
  height: 80px;
  background-position: center center;
  border: 2px solid #c0392b;
  border-radius: 6px;
  z-index: 4;
}

/* ── LIENS ── */
a, a:visited, a:link, a:active {
  color: #2980b9;
  text-decoration: none;
}

a.normal, a.normal:active, a.normal:hover, a.normal:link, a.normal:visited {
  text-decoration: underline;
}

a:hover {
  color: #c0392b;
  text-decoration: underline;
}

a.retour {
  display: block;
  position: absolute;
  left: 50%;
  text-decoration: none;
  color: #2980b9;
  width: 70px;
}

a.retour:link {
  display: block;
  position: absolute;
  left: 50%;
  color: #2980b9;
  text-decoration: none;
  width: 70px;
}

a.retour:hover {
  display: block;
  position: absolute;
  left: 50%;
  color: #c0392b;
  text-decoration: underline;
  width: 70px;
}

a.retour:active {
  display: block;
  position: absolute;
  left: 50%;
  color: #2980b9;
  text-decoration: none;
  width: 70px;
}

/* ── BODY ── */
body {
  background-color: #f0f2f5;
  margin-left: 0px;
  width: 100%;
}

/* ── TITRES GLOBAUX ── */
h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background-color: #c0392b;
  width: 100%;
  margin: 0 0 8px 0;
  padding: 7px 12px;
  border-radius: 2px;
}

h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  text-align: left;
  font-size: 12px;
  color: #fff;
  background-color: #546e7a;
  margin: 0 0 5px 0;
  padding: 5px 10px;
  border-radius: 2px;
}

th {
  background-color: #c0392b;
  color: #fff;
  font-weight: 600;
  padding: 6px 8px;
  font-size: 11px;
  text-transform: uppercase;
}

td.division2 {
  background-color: #e8eaf6;
}

td.division3 {
  background-color: #f3e5f5;
}

select {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 12px;
  color: #333;
  z-index: -3;
}

option {
  z-index: -3;
}

img {
  border: 0;
}

p {
  line-height: normal;
  text-align: center;
  height: auto;
  width: auto;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 1px;
  margin-left: 1px;
}

/* ── CLASSES UTILITAIRES ── */
.lien {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-style: italic;
  color: #2980b9;
  text-decoration: underline;
  height: auto;
  width: auto;
  white-space: normal;
  list-style-type: circle;
  text-align: left;
  list-style-position: inside;
  cursor: pointer;
}

.imagecote {
  position: relative;
  float: right;
}

.menuitem {
  background-color: #eef2f7;
  border: 1px solid #c0c8d0;
}

#menu {
  position: relative;
  width: 10%;
  height: 70%;
  z-index: 4;
  left: 0%;
  top: 2%;
  float: left;
}

#haut {
  position: relative;
  width: 100%;
  height: 10%;
  z-index: 3;
  left: 0%;
  top: 0%;
}

#bas {
  position: relative;
  width: 100%;
  height: 10%;
  z-index: 3;
  left: 0%;
  top: 2%;
  clear: left;
}

.liens {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  color: #2980b9;
  text-decoration: underline;
}

.club-navbox {
  display: block !important;
  flex-wrap: unset !important;
  gap: unset !important;
  border: 1px solid #c8d0d8;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  width: 100%;
}

.club-navbox-header {
  background-color: #2c3e50;
  color: #fff;
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 3px 3px 0 0;
  user-select: none;
}

.club-navbox-header:hover {
  background-color: #34495e;
}

.club-navbox-body {
  display: none;
  flex-wrap: wrap;
  padding: 6px;
  gap: 4px;
  background: #fff;
  z-index: 200;
}

.club-navbox-body.open {
  display: flex;
}

.club-navbox-body a {
  display: inline-block;
  padding: 4px 8px;
  background-color: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
}

.club-navbox-body a:hover {
  background-color: #34495e;
  text-decoration: none;
}

.club-navbox-body a.active {
  background-color: #c0392b;
}

.cnb-selected-label {
  padding: 4px 8px;
  font-size: 11px;
  font-style: italic;
  color: #555;
}

.soustitre {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: #2c3e50;
  background-color: #e8f4fd;
  border-left: 3px solid #2980b9;
  padding: 4px 10px;
}

.titre {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background-color: #c0392b;
  padding: 5px 10px;
  border-radius: 2px;
}

/* ── TABLE .classement ── */
table.classement {
  border-collapse: separate;
  border-spacing: 3px 0;
  width: 75%;
  font-size: 12px;
  margin-bottom: 14px;
}

table.classement tr {
  background-color: #fff;
  transition: background 0.1s;
}

table.classement tr:nth-child(even) {
  background-color: #f9fafb;
}

table.classement tr:hover {
  background-color: #fef5f5;
}

table.classement td {
  padding: 5px 8px;
  border-bottom: 1px solid #eee;
  color: #333;
}

table.classement tr.titre td {
  background-color: #34495e;
  color: #ecf0f1;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  text-align: center;
}

/* ── TABLE .coupe (principale) ── */
table.coupe {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin-bottom: 14px;
  border: 1px solid #dde3ea;
}

table.coupe tr {
  background-color: #fff;
  transition: background 0.1s;
}

table.coupe tr:nth-child(even) {
  background-color: #f9fafb;
}

table.coupe tr:hover {
  background-color: #fef5f5;
}

table.coupe td {
  padding: 5px 8px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  color: #333;
}

table.coupe tr.titre {
  background-color: #fff;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

table.coupe tr.titre td {
  background-color: #34495e;
  color: #ecf0f1;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border: none;
  text-align: center;
}

table.coupe tr.soustitre,
table.coupe tr.soustitre th {
  background-color: #546e7a;
  color: #fff;
  font-weight: 600;
  text-align: left;
}

table.coupe tr.soustitre td {
  background-color: #546e7a;
  color: #fff;
  font-weight: 600;
  padding: 5px 8px;
  font-size: 11px;
}

table.coupe tr.titreintermediaire {
  background-color: #37474f;
  color: #fff;
  font-weight: 600;
  text-align: left;
}

table.coupe tr.titreintermediaire td {
  background-color: #37474f;
  color: #fff;
  padding: 5px 8px;
  font-size: 11px;
}

table.coupe td.division2 {
  background-color: #e8eaf6;
  border-color: #fff;
}

table.coupe td.division3 {
  background-color: #f3e5f5;
  border-color: #fff;
}

table.coupe tr.classement {
  background-color: #e3f2fd;
}

table.coupe tr.classement td {
  background-color: #e3f2fd;
}

/* ── NAVIGATION ANNÉES ── */
#listeannee {
  background-color: #f0f4f8 !important;
  width: 100% !important;
  max-width: 100% !important;
  color: #333;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #dde3ea;
  border-radius: 3px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  box-sizing: border-box;
}

#listeannee a {
  color: #2980b9;
  margin: 0 3px;
  text-decoration: none;
}

#listeannee a:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* ── TRI DE COLONNES ── */
.sortcol {
  cursor: pointer;
  padding-right: 20px;
  background-repeat: no-repeat;
  background-position: right center;
}

.sortasc {
  background-color: #e8f5e9;
  background-image: url(up.gif);
}

.sortdesc {
  background-color: #e3f2fd;
  background-image: url(down.gif);
}

.nosort {
  cursor: default;
}

/* ── CONTENEUR BLOCS (rangées de la page d'accueil) ── */
#corps > div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

/* ── BLOC FEATURED (Championnat de France) ── */
.bloc.bloc-featured {
  flex: 2 1 0;
}

.bloc-featured h2 {
  background-color: #922b21;
  font-size: 13px;
  padding: 11px 12px;
}

/* ── BLOCS ── */
.bloc {
  background-color: #fff;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  flex: 1 1 0;
  min-width: 180px;
  text-align: left;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  transition: box-shadow 0.2s;
}

.bloc:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

.bloc h1 {
}

.bloc h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background-color: #c0392b;
  width: 100%;
  margin: 0 0 8px 0;
  padding: 9px 10px;
  border-radius: 6px 6px 0 0;
  letter-spacing: 0.8px;
}

.bloc ul {
  list-style-type: none;
  margin: 0;
  padding: 0 12px 8px 12px;
}

.bloc li {
  list-style-type: none;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  line-height: 1.4;
}

.bloc li:last-child {
  border-bottom: none;
}

.bloc li a {
  display: block;
  color: #34495e;
  padding: 6px 8px 6px 20px;
  position: relative;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.bloc li a::before {
  content: "\203A";
  position: absolute;
  left: 8px;
  color: #c0392b;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  top: 5px;
}

.bloc li a:hover {
  background: #fdf2f2;
  color: #c0392b;
  padding-left: 24px;
  text-decoration: none;
}

.bloc h2::before {
  content: "\25CF  ";
  font-size: 8px;
  vertical-align: middle;
  opacity: 0.7;
}

/* ── TABLE PALMARES COUPE (centree, largeur limitee) ── */
table.coupe-palmares {
  width: fit-content !important;
  max-width: 300px !important;
  margin: 16px auto !important;
  display: table !important;
}

/* ── PAGE LIENS ── */
#corps .liens-liste {
  display: block;
}
.liens-liste h2 {
  font-size: 13px;
  color: #fff;
  background-color: #2c3e50;
  padding: 6px 10px;
  margin: 16px 0 4px;
  border-left: 3px solid #c0392b;
}

.lien-item {
  border-bottom: 1px solid #dde3ea;
  padding: 8px 4px;
}

.lien-item a {
  display: block;
  font-weight: 600;
  color: #2980b9;
  margin-bottom: 4px;
  word-break: break-all;
}

.lien-item p {
  margin: 0;
  font-size: 12px;
  color: #333;
  line-height: 1.5;
}

/* ── TABLE HISTORIQUE COUPE (centree, largeur naturelle) ── */
table.coupe-centree {
  display: inline-table !important;
  width: auto !important;
}

@media only screen and (max-width: 600px) {
  table.coupe-centree {
    width: 100% !important;
  }
}

/* ── HAMBURGER (caché sur desktop) ── */
.btn-menu-toggle { display: none; }
#menu-overlay { display: none; }

/* ── PANEL AFFLUENCE (caché sur desktop) ── */
#panel-affluence { display: none; }
#panel-affluence-overlay { display: none; }

/* ── RESPONSIVE MOBILE ── */
@media only screen and (max-width: 600px) {

  .club-navbox-body.navbox-list.open {
    flex-direction: column;
  }

  .club-navbox-body.navbox-list a {
    white-space: normal;
  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  #testdevice { display: none; }

  #global {
    width: 100%;
    overflow-x: hidden;
    min-height: 200vh;
  }

  #corps {
    overflow-x: auto;
  }

  #menuhaut {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 11px;
    height: 44px;
    letter-spacing: 1px;
    padding: 0 4px;
    overflow: hidden;
  }

  #menuhaut span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    text-align: center;
    letter-spacing: 1px;
  }

  #menuhaut .btn-menu-toggle:last-child {
    margin-left: auto;
  }

  .btn-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 10px;
    height: 44px;
    line-height: 1;
    flex-shrink: 0;
  }

  #pub {
    display: none;
  }

  #menugauche {
    position: fixed;
    top: 44px;
    left: 0;
    width: 75%;
    max-width: 280px;
    height: calc(100vh - 44px);
    overflow-y: auto;
    z-index: 999;
    margin: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  #menugauche.open {
    transform: translateX(0);
  }

  #menugauche li {
    display: block;
  }

  #menugauche li a {
    display: block;
  }

  #corps {
    position: relative;
    margin-left: 0;
    margin-top: 44px;
    width: 100%;
    overflow-x: visible;
  }

  #corps table {
    width: 100% !important;
    box-sizing: border-box;
  }

  table.coupe {
    font-size: 10px;
  }

  table.coupe tr.titre td {
    padding: 2px 3px !important;
    font-size: 9px !important;
    letter-spacing: 0 !important;
  }

  table.coupe td[width] {
    width: 28px !important;
    padding: 1px 2px !important;
  }

  #corps img {
    width: 98%;
  }

  #menudroite {
    position: fixed;
    top: 44px;
    right: 0;
    width: 75%;
    max-width: 280px;
    height: calc(100vh - 44px);
    overflow-y: auto;
    z-index: 999;
    margin: 0;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  #menudroite.open {
    transform: translateX(0);
  }

  #menudroite li {
    display: block;
  }

  #menudroite li a {
    display: block;
  }

  #menu-overlay {
    display: none;
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    height: calc(100vh - 44px);
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

  #menu-overlay.active {
    display: block;
  }

  #dwindow {
    position: absolute !important;
    opacity: 1;
    background-color: #f0f4ff;
    border: 1px solid #c0c8f0;
    z-index: 44;
  }

  #listeannee {
    font-size: 10px;
  }

  table {
    width: 100% !important;
  }

  table.coupe, sortable, standard, listeItems {
    width: 100% !important;
    font-size: 8px !important;
  }

  table.coupe tr.soustitre, th {
    font-size: 8px !important;
  }

  #listeclub {
    width: 98% !important;
  }

  #listeclub table {
    width: 100% !important;
  }

  #listeclub table tr {
    display: inline;
  }

  #sortable-table-1 {
    width: 100% !important;
  }

  #listepays {
    width: 98% !important;
    margin-left: 0% !important;
  }

  #listepays table.sortable, listeItems {
    width: 98% !important;
    font-size: 10px !important;
  }

  #listepays table tr {
    display: inline;
  }

  table.coupe td[width="50px"] {
    width: 28px !important;
    padding: 2px 1px !important;
    min-width: 0 !important;
  }

  .table-scroll {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll table {
    width: auto !important;
    font-size: 8px !important;
  }

  .matrix-scroll {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .matrix-scroll table {
    width: auto !important;
    font-size: 6px !important;
  }

  .matrix-scroll table font {
    font-size: 6px !important;
  }

  div.tableaux-classements > div {
    float: none !important;
    width: 100% !important;
    padding: 4px 0 !important;
  }

  #panel-affluence {
    display: block;
    position: fixed;
    top: 44px;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: auto;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    z-index: 1001;
    background: #fff;
    border-left: 2px solid #c0392b;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  #panel-affluence.open {
    transform: translateX(0);
  }

  #panel-affluence-close {
    background: #2c3e50;
    color: #fff;
    padding: 10px 16px;
    font-size: 20px;
    cursor: pointer;
    text-align: right;
  }

  #panel-affluence-content {
    padding: 10px;
    font-size: 12px;
    overflow-x: auto;
  }

  #panel-affluence-overlay {
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    height: calc(100vh - 44px);
    background: rgba(0,0,0,0.5);
    z-index: 1000;
  }

  #panel-affluence-overlay.active {
    display: block;
  }

  .btn-home { display: none; }

}
