
/* Reset CSS général */
:root {
  --navbar-height: 56px;
  --subnav-height: 42px;
  --header-total-height: calc(var(--navbar-height) + var(--subnav-height));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}
font {
  justify-content: center;
  display: flex;
}
/* Conteneur principal */
.flex-spacer {
  flex: 1;
}
.post-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 20px;
  text-decoration: none;
  border: 1px solid var(--titre-color);  
}

.nav-right-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  position: relative;
  border-radius: 50%;
}

.nav-right-item.nav-post-item {
  border: 2px solid #1677ff;
  background: #ffffff;
}

.nav-right-item.nav-post-item > a i {
  font-size: 22px;
  color: var(--text-color);
}

.nav-right-item.nav-post-item:hover,
.nav-right-item.nav-post-item:focus-within {
  background: #ffffff;
  border-color: #1677ff;
}

.nav-right-item.nav-post-item:hover > a i,
.nav-right-item.nav-post-item:focus-within > a i {
  color: var(--text-color);
}

.post-button:hover {
  background-color: var(--hover-bg);
}

/* ===== En-tête fixe : navbar + sous-navbar ===== */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(13, 71, 161, 0.12);
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(13, 71, 161, 0.12);
}

.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  background-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-height: var(--navbar-height);
  padding: 8px 20px;
  box-shadow: none;
  border-bottom: none;
  position: relative;
  width: 100%;
}

.top-navbar .nav-right-item {
  background-color: #ffffff;
}

.top-navbar .nav-right-item:hover,
.top-navbar .nav-right-item:focus-within,
.top-navbar .nav-right-item:active {
  background-color: #ffffff;
}

.top-navbar .nav-right-item:hover i,
.top-navbar .nav-right-item:focus-within i,
.top-navbar .nav-right-item:active i {
  color: var(--text-color);
}

.top-navbar .nav-item a:hover,
.top-navbar .nav-item a:focus,
.top-navbar .nav-item a:active {
  color: var(--text-color);
  background-color: transparent;
}

.top-navbar .nav-right-item > a:hover {
  background-color: transparent;
}

/* Sous-navbar — prolongement visuel de la navbar */
.sub-navbar-sync {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: var(--subnav-height);
  margin: 0;
  padding: 0;
  background: linear-gradient(90deg, #1565c0 0%, #1e88e5 42%, #4fc3f7 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sub-nav-link {
  flex: 1;
  max-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sub-nav-link i {
  font-size: 14px;
  opacity: 0.95;
}

.sub-nav-link:hover,
.sub-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.sub-nav-link.is-active {
  background: rgba(255, 255, 255, 0.2);
  border-bottom-color: #ffffff;
}

#main-content {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 24px;
  box-sizing: border-box;
}

.site-body {
  margin: 0;
  min-height: 100vh;
}

.site-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 100vh;
  padding-top: var(--header-total-height);
  box-sizing: border-box;
}

body.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Footer — glass compact, palette TokTok bleue */
.site-footer {
  --footer-accent: rgba(255, 255, 255, 0.92);
  --footer-muted: rgba(255, 255, 255, 0.72);
  --footer-line: rgba(255, 255, 255, 0.14);
  --footer-glass: rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 16px 0;
  box-sizing: border-box;
  clear: both;
  color: var(--footer-accent);
  background:
    linear-gradient(180deg, rgba(8, 38, 92, 0.55) 0%, rgba(13, 71, 161, 0.72) 42%, rgba(21, 101, 192, 0.78) 100%);
  border-top: 1px solid var(--footer-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-footer-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 18px 0;
  border-radius: 14px 14px 0 0;
  background: var(--footer-glass);
  border: 1px solid var(--footer-line);
  border-bottom: none;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 20px 18px;
  text-align: left;
}

.site-footer-col {
  min-width: 0;
}

.site-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.site-footer-logo-link {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.site-footer-logo-link img,
.site-footer-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.site-footer-brand-text {
  min-width: 0;
}

.site-footer-brand {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.site-footer-tagline {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.site-footer-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--footer-muted);
  max-width: 260px;
}

.site-footer-heading {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-accent);
  opacity: 0.95;
}

.site-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-list li {
  margin-bottom: 4px;
}

.site-footer-list a,
.site-footer-contact a {
  font-size: 11px;
  font-weight: 500;
  color: var(--footer-muted);
  display: inline-block;
}

.site-footer-list a:hover,
.site-footer-contact a:hover,
.site-footer-pawapay-link:hover {
  color: #ffffff;
  opacity: 1;
}

.site-footer-contact {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--footer-line);
}

.site-footer-contact p {
  margin: 0 0 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--footer-muted);
}

.site-footer-contact i {
  width: 12px;
  font-size: 10px;
  text-align: center;
  opacity: 0.85;
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
  padding: 10px 0 0;
  border-top: 1px solid var(--footer-line);
}

.site-footer-pawapay {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 0;
}

.site-footer-pawapay-logo-link {
  flex-shrink: 0;
  line-height: 0;
}

.site-footer-pawapay-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px;
}

.site-footer-pawapay-text {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  color: var(--footer-muted);
}

.site-footer-pawapay-link {
  font-weight: 700;
  color: var(--footer-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-footer-apps-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--footer-muted);
  white-space: nowrap;
}

.site-footer-store-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer-store-badges a {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-footer-store-badges a:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.site-footer-store-btn {
  height: 28px;
  width: auto;
  border-radius: 5px;
  display: block;
}

.site-footer-bottom {
  margin-top: 8px;
  padding: 8px 0 12px;
  border-top: 1px solid var(--footer-line);
  text-align: center;
}

.site-footer-copy {
  margin: 0;
  font-size: 10px;
  color: var(--footer-muted);
  letter-spacing: 0.02em;
}

.site-footer-legal {
  display: none;
}

.site-footer-extra {
  display: none;
}

.site-footer-pawapay-text .site-footer-pawapay-link {
  display: inline;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
    flex-shrink: 0;
      /* Ne rétrécit pas */
  /* espace entre logo et texte */
}


.logo-text {
  font-size: 26px;
  color: var(--text-color);
  user-select: none;
  font-weight: bold;
}

.logo-text a {
  color: rgb(0, 89, 255);
  text-decoration: none;
  border: none;
  box-shadow: none;
}

/* Navigation centrale avec les icônes principales */
.nav-center {
  display: flex;
  gap: 30px;
    flex: 1;
      /* Prend l'espace restant */
      justify-content: center;
}

/* Style des éléments de navigation */
.nav-item a {
  color: var(--text-color);

  font-size: var(--taille-titre-pc);
  cursor: pointer;
  padding: 8px 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;

}

/* Lien Voir tous les produits */
a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sub-navbar li.active a {
  color: var(--text-color);
  /* exemple */
}

.nav-item a:hover,
.nav-item a:focus,
.nav-item a:active {
  color: #2d88ff;
  background-color: rgba(45, 136, 255, 0.12);
  border-radius: 10px;
}

/* hors navbar : styles globaux ci-dessus ; top-navbar les surcharge */

/* Navigation droite (icônes utilisateur) */
.nav-right {
  display: flex;
  gap: 15px;
        flex-shrink: 0;
          /* Ne rétrécit pas */
}

/* Style des éléments de navigation droite */
.nav-right-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.user-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-right-item i {
  color: var(--text-color);
  font-size: 24px;
}

/* Badge notifications navbar — alimenté par notification_api */
.nav-right-item--notify {
  width: auto;
  min-width: 40px;
  height: 40px;
  border-radius: 20px;
  padding: 0 2px;
}

.nav-right-item--notify > a,
.nav-notify-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 100%;
  padding: 0 4px;
  border-radius: 20px;
}

.nav-notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-right-item--notify i {
  font-size: 20px;
}

.nav-notif-previews {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-notif-previews[hidden] {
  display: none !important;
}

.nav-notif-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
  background: var(--hover-bg);
}

.nav-notif-preview + .nav-notif-preview {
  margin-left: -10px;
}

.nav-notif-previews--inline {
  margin-left: auto;
  margin-right: 4px;
}

.nav-notif-previews--inline .nav-notif-preview {
  width: 24px;
  height: 24px;
}

.nav-notif-previews--inline .nav-notif-preview + .nav-notif-preview {
  margin-left: -8px;
}

.nav-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(225, 29, 72, 0.35);
  pointer-events: none;
  z-index: 2;
  letter-spacing: -0.02em;
}

.nav-notif-badge[hidden] {
  display: none !important;
}

.nav-notif-badge.is-updated {
  animation: navNotifPulse 0.45s ease;
}

.nav-notif-live-dot {
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.45);
  pointer-events: none;
  z-index: 3;
  animation: navLivePulse 1.6s ease-in-out infinite;
}

.nav-notif-live-dot--solo {
  top: 2px;
  right: 2px;
  bottom: auto;
  left: auto;
}

.nav-notif-live-dot--inline {
  position: static;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 6px;
}

.nav-notif-live-dot--inline.nav-notif-live-dot--solo {
  margin-right: 0;
}

.nav-notif-live-dot[hidden] {
  display: none !important;
}

@keyframes navLivePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

.nav-notif-badge--inline {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  border-width: 0;
  box-shadow: none;
}

@keyframes navNotifPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Effets de survol pour les éléments de droite (hors top-navbar) */
.nav-right-item:hover,
.nav-right-item:focus,
.nav-right-item:active {
  background-color: rgba(45, 136, 255, 0.14);
  color: #2d88ff;
}

.top-navbar .nav-right-item.nav-post-item:hover,
.top-navbar .nav-right-item.nav-post-item:focus-within,
.top-navbar .nav-right-item.nav-post-item:active {
  background-color: #ffffff;
  color: var(--text-color);
}

.nav-right-item:hover i,
.nav-right-item:focus i,
.nav-right-item:active i {
  color: #2d88ff;
}

/* Conteneurs de page : espace avant le footer */
.site-shell .wallet-container,
.site-shell .container-home,
.site-shell .categories-page,
.site-shell .container {
  margin-bottom: 16px;
}

/* Contenu principal */
.main-content {
  margin-left: 15%;
  margin-top: 12px;
  padding: 20px;
  min-height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Style des cartes de contenu */
.content-card {
  background: var(--navrigt-primary-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: transform 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

/* Style des menus déroulants */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: var(--bg-secondary);
  min-width: 200px;
  box-shadow: 0 2px 8px var(--shadow-color);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1001;
  margin-top: 5px;
}

.dropdown-content.active {
  display: block;
}

/* Éléments du menu déroulant */
.dropdown-item {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
  background-color: rgba(45, 136, 255, 0.12);
  color: #2d88ff;
}

.mobile-nav {
  display: none !important;
}

.mobile-list {
  display: none;
}

/* Conteneur global de la sous-navbar */
.sub-navbar-container {
  position: fixed;
  top: var(--header-total-height);
  left: 0;
  width: 100%;
  /* S'étend sur toute la largeur */
  background: var(--bg-color);
  z-index: 1000;
  /* Reste au-dessus des autres éléments */
  overflow-x: auto;
  /* Active le défilement horizontal */
  overflow-y: hidden;
  /* Désactive le défilement vertical pour éviter des barres inutiles */
  -webkit-overflow-scrolling: touch;
  /* Défilement fluide sur iOS */
}


/* Cache la barre de défilement sur Chrome */
.sub-navbar-container::-webkit-scrollbar {
  display: none;
}

/* Liste des éléments */
.sub-navbar ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 7px;
  white-space: nowrap;
  /* Assure que tous les éléments restent sur une seule ligne */
}

.sub-navbar li {
  margin: -7px;
}

/* Style des liens */
.sub-navbar a {
  color: var(--text-color);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 20px;
  background:var(--navrigt-primary-bg);
  transition: all 0.3s;
  font-size: var(--taille-text-pc);
  margin: 0 6px;
}

/* Effet hover */
.sub-navbar a:hover {
  background: var(--navrigt-primary-bg);
  transform: scale(1.05);
}

#search-input {
  border: 1px solid var(--navrigt-primary-bg);
  border-radius: 5px;
  padding: 10px 10px;
  cursor: pointer;
  height: 35px;
  width: 300px;
}

#search-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.user-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

/* Groupe stories + hamburger (desktop : transparent au layout) */
.nav-mobile-trailing {
  display: contents;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.mobile-nav-open .nav-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.mobile-nav-open .nav-hamburger-bar:nth-child(2) {
  opacity: 0;
}

body.mobile-nav-open .nav-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 30, 60, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

body.mobile-nav-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  z-index: 1110;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-color);
  color: var(--text-color);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.mobile-nav-open .mobile-nav-drawer {
  transform: translateX(0);
}

body.mobile-nav-open {
  overflow: hidden;
}

.mobile-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, #1565c0 0%, #1e88e5 55%, #4fc3f7 100%);
  color: #ffffff;
  flex-shrink: 0;
}

.mobile-nav-drawer-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 24px;
}

.mobile-nav-section-label {
  margin: 14px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-color);
  opacity: 0.55;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-color) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 16px;
  opacity: 0.85;
  flex-shrink: 0;
}

.mobile-nav-link span:first-of-type {
  flex: 1;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background: rgba(25, 118, 210, 0.08);
  border-left-color: #1976d2;
}

.mobile-nav-link-accent {
  color: #1565c0 !important;
  font-weight: 600;
}

.mobile-nav-badge {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e53935;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


@media screen and (max-width: 992px) {
  .site-footer {
    padding: 14px 12px 0;
  }

  .site-footer-shell {
    padding: 14px 14px 0;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }

  .site-footer-brand-col {
    grid-column: 1 / -1;
  }

  .site-footer-meta {
    margin-top: 10px;
    padding-top: 8px;
    gap: 8px 12px;
  }
}

/* Update media queries */
@media screen and (max-width: 768px) {
  .nav-hamburger {
    display: flex;
    flex-shrink: 0;
    margin-left: 0;
  }

  .nav-mobile-trailing {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .top-navbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-center,
  .nav-right,
  .flex-spacer {
    display: none !important;
  }

  .nav-stories-strip {
    display: flex !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    margin-right: 0;
  }

  .logo-container {
    flex: 0 1 auto;
    min-width: 0;
  }

  /* Style des éléments de navigation */
    .nav-item a {
  
      font-size: var(--taille-titre-mo);
     
  
    }

  #search-input {
    display: none;
  }

/* Style des liens */
.sub-navbar a {
  
  font-size: var(--taille-text-mo);
}
  
    .logo-container {
      flex-shrink: 1;
      min-width: 0;
    }
  
    .nav-right {
      flex-shrink: 0;
    }

  .main-content {
    margin-left: 0;
    margin-bottom: 0;
  }

  .top-navbar {
    padding: 8px 12px;
    justify-content: space-between;
    background: #ffffff;
    min-height: var(--navbar-height);
  }

  header.site-header {
    height: auto;
    min-height: 0;
    padding: 0;
    border-radius: 0;
  }

  .sub-navbar-sync {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .sub-navbar-sync::-webkit-scrollbar {
    display: none;
  }

  .sub-nav-link {
    font-size: 11px;
    gap: 4px;
    padding: 0 8px;
    flex: 0 0 auto;
    min-width: max-content;
    max-width: none;
  }

  .sub-nav-link span {
    display: inline;
  }

  .site-footer {
    padding: 12px 10px 0;
  }

  .site-footer-shell {
    padding: 12px 12px 0;
    border-radius: 12px 12px 0 0;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 8px;
  }

  .site-footer-brand-col {
    grid-column: 1 / -1;
  }

  .site-footer-logo-link img,
  .site-footer-logo {
    width: 32px;
    height: 32px;
  }

  .site-footer-brand {
    font-size: 13px;
  }

  .site-footer-desc {
    font-size: 10px;
  }

  .site-footer-heading {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .site-footer-list li {
    margin-bottom: 2px;
  }

  .site-footer-list a,
  .site-footer-contact a {
    font-size: 10px;
  }

  .site-footer-contact {
    margin-top: 6px;
    padding-top: 6px;
  }

  .site-footer-contact p {
    font-size: 9px;
  }

  .site-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .site-footer-pawapay {
    width: 100%;
  }

  .site-footer-apps {
    width: 100%;
    justify-content: flex-start;
  }

  .site-footer-store-btn {
    height: 26px;
  }

  .site-footer-bottom {
    padding: 6px 0 10px;
  }

  .site-footer-copy {
    font-size: 9px;
  }

  #main-content {
    padding-bottom: 8px;
  }

  .site-shell .wallet-container,
  .site-shell .container-home,
  .site-shell .categories-page,
  .site-shell .container {
    margin-bottom: 8px;
  }

  .nav-right {
    gap: 10px;
  }

  .mobile-list {
    display: block;
    margin-top: 0;
    z-index: 99;

  }



  /* Conteneur global de la sous-navbar */
  .sub-navbar-container {
    top: var(--header-total-height);
    left: 0;
    width: 100%;
    /* S'étend sur toute la largeur */
    background: var(--bg-color);
    z-index: 1000;
    /* Reste au-dessus des autres éléments */
    overflow-x: auto;
    /* Active le défilement horizontal */
    overflow-y: hidden;
    /* Désactive le défilement vertical pour éviter des barres inutiles */
    -webkit-overflow-scrolling: touch;
    display: block;
    /* Défilement fluide sur iOS */
  }


  /* Cache la barre de défilement sur Chrome */
  .sub-navbar-container::-webkit-scrollbar {
    display: none;
  }

  /* Liste des éléments */
  .sub-navbar ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    white-space: nowrap;
    /* Assure que tous les éléments restent sur une seule ligne */
  }

  .sub-navbar li {
    margin: -7px;
  }

  /* Style des liens */
  .sub-navbar a {
    color: var(--text-color);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 20px;
    background: var(--navrigt-primary-bg);
    transition: all 0.3s;
    font-size: var(--taille-text-mo);
    margin: 0 6px;
  }

  /* Effet hover */
  .sub-navbar a:hover {
    background: var(--navrigt-primary-bg);
    transform: scale(1.05);
  }
    .logo-text {
      font-size: 20px !important;
    }

}

