/* Définition locale Fonts */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap; /* Toujours ajouter ça ! */
  src: url("/assets/fonts/poppins-v24-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-v24-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/poppins-v24-latin-900.woff2") format("woff2");
}

:root {
  --primary-color: #6366f1;
  --secondary-color: #f59e0b;
  --accent-pink: #ec4899;
  --accent-teal: #06b6d4;
  --text-dark: #101217;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --box-shadow-main: 0 0 30px rgba(0, 0, 0, 0.1);
  /* Colors for page explorer site - Vibrant modern palette */
  --pastel-1: #f5d5d5; /* Red-pink */
  --pastel-2: #d4e5f7; /* Blue */
  --pastel-3: #d8f3e3; /* Green */
  --pastel-4: #f3eccd; /* Yellow */
  --pastel-5: #ebe6f7; /* Purple */
  --pastel-6: #f5e3d0; /* Orange */
  --pastel-7: #e3e8f7; /* Indigo */
  --pastel-8: #dff3ea; /* Emerald */
  --pastel-9: #f7e8ea; /* Rose */
  --pastel-10: #d7ebf5; /* Sky blue */
  --pastel-11: #f3eccd; /* Bright yellow */
  --pastel-12: #dfe5f7; /* Light indigo */
  --pastel-13: #d5f0dd; /* Light green */
  --pastel-14: #f3dcf5; /* Fuchsia */
  --pastel-15: #f5dfc8; /* Amber */
  --pastel-16: #ebe8f7; /* Lilas */
  --pastel-17: #f7e8ea; /* Rose tendre */
  --pastel-18: #f7f0dc; /* jaune poussin */
  --pastel-19: #f7e8dc; /* pêche douce */
  --pastel-20: #e0f3eb; /* vert d'eau */
  --pastel-21: #f5f0e8; /* ivoire clair */
  --pastel-22: #e5f3e8; /* vert amande */
  --pastel-23: #e3eff7; /* bleu ciel */
  --pastel-24: #e0f5e8; /* vert pâle */
  --pastel-25: #f7e8f3; /* rose pâle */
}

body {
  /*font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;*/
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
  line-height: 1.6;
  color: var(--text-dark);
  background: #f1f5f9; /* Background gris clair pour contraste */
  margin: 0;
  padding: 20px 0; /* Padding vertical pour espacer du bord */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.petit-texte {
  font-size: 0.9rem;
}

/* Container principal boxed */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  box-shadow: var(--box-shadow-main);
  border-radius: 12px;
  overflow: visible;
  position: relative;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 40px;
  width: 100%;
}

/* Header */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  /*position: sticky;*/
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  border-radius: 12px 12px 0 0;
}

/* Breadcrumb global styling */
.breadcrumb {
  margin-bottom: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  --bs-breadcrumb-divider: ">";
}

.breadcrumb-item a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #111827;
  font-weight: 500;
}

.navbar-custom .container-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 0;
  padding: 0;
}
.navbar-brand img {
  transition: transform 0.3s ease;
  height: auto;
  max-height: 60px; /* Hauteur fixe pour le logo */
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-collapse {
  flex-basis: auto;
  flex-grow: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  margin: 0;
}

.nav-link {
  font-weight: 500;
  color: #374151 !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(99, 102, 241, 0.15);
}

/* Section principale avec scroll-margin */
.main-content {
  border-radius: 12px;
  overflow: hidden; /* Seulement pour le contenu interne */
  padding: 20px 10px;
}

.main-content h2,
.main-content h3 {
  scroll-margin-top: 6rem;
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.main-content h2 {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
  color: #495057;
}

.main-content h3 {
  color: #6c757d;
  font-size: 1.25rem;
  margin-top: 2rem;
}

/* Divers */
/* Start Grille Section Images */
.row-mega-gap {
  --bs-gutter-x: 8rem;
  --bs-gutter-y: 4rem;
}

@media (max-width: 768px) {
  .row-mega-gap {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2rem;
  }
}
/* End Grille Section Images */

/* Start Liens Pages Hub Section Images */
.scroll-hide-images::-webkit-scrollbar {
  display: none;
}
.scroll-hide-images {
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.hover-section-images {
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}
.hover-section-images:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
/* End Liens Pages Hub Section Images */

.messages-box {
  border: 1px solid #d2d2d2;
  padding: 1em;
  border-radius: 5px;
}

/* contact form */
button .loading svg {
  animation: spin 1s linear infinite;
}

#contactForm .loading svg {
  animation: spin 1s linear infinite;
}

/* Modal pour images */
.modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#modalImage {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* PARTAGE SOCIAL */
/* Container de partage pour chaque image */
.share-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  width: 100%;
}

/* Cache la checkbox (élément invisible qui gère l'état) */
.share-toggle {
  display: none;
}

/* Le bouton principal utilise maintenant vos classes Bootstrap */
.share-label {
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.share-label:hover {
  transform: translateY(-2px);
}

.share-label::before {
  content: "📤 Partager";
}

/* Options de partage (cachées par défaut) */
.share-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  gap: 5px;
}

/* Affichage des options quand la checkbox est cochée */
.share-toggle:checked + .share-label + .share-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Les boutons de partage utilisent aussi vos classes */
.share-options .btn {
  flex: 1;
  font-size: 12px;
  padding: 6px 8px;
}

/* Couleurs spécifiques */
.pinterest-btn {
  background-color: #bd081c !important;
  border-color: #bd081c !important;
  color: white !important;
}

.whatsapp-btn {
  background-color: #25d366 !important;
  border-color: #25d366 !important;
  color: white !important;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .share-options {
    flex-direction: column;
  }
}

/* --- Style Hybride Related Posts : Liste Mobile -> Carte Desktop --- */

/* 1. CONFIGURATION MOBILE (Par défaut) */
/* Force le point focal de l'image vers le haut pour les invitations enfants */
.adaptive-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;

  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  height: 100%;
  transition: transform 0.2s;
  color: #333;
  text-decoration: none;
}

.adaptive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #0d6efd;
}

/* L'image sur Mobile : Petite vignette fixe */
.adaptive-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
  margin-bottom: 0;
}

/* 2. CONFIGURATION DESKTOP (Écrans > 768px) */
@media (min-width: 768px) {
  .adaptive-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .adaptive-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-right: 0;
    margin-bottom: 12px;
  }
}

/* Force l'image à s'afficher depuis le haut */
.img-focus-top {
  object-position: top center !important;
}

/* Footer */
.footer-section {
  background: #f1f5f9;
  color: var(--text-dark);
  padding: 60px 0 30px;
  border-radius: 0 0 12px 12px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.footer-description {
  color: var(--text-dark);
}

.footer-logo {
  height: auto;
  max-height: 60px;
  padding: 0.2em;
}

.footer-subheading {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

.footer-list-small li {
  margin-bottom: 0.6rem;
}

ul.footer-list-small a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-list-small a:hover {
  color: white;
  transform: translateX(3px);
}

/* Footer Collapse on Mobile */
@media (max-width: 767.98px) {
  .footer-subheading {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-subheading::after {
    content: "\F282"; /* bootstrap-icons chevron-down */
    font-family: "bootstrap-icons";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
  }

  .footer-subheading:not(.collapsed)::after {
    transform: rotate(180deg);
  }

  .footer-section .collapse:not(.show) {
    display: none;
  }

  .footer-list-small {
    padding: 10px 0 5px 0 !important;
  }
}

@media (min-width: 768px) {
  .footer-section .collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }

  .footer-subheading {
    cursor: default;
  }
}

.text-footer-color {
  color: #c0c0c0;
}

a.text-footer-color {
  color: #c0c0c0;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  margin-top: 40px;
  text-align: left;
  color: #9ca3af;
  padding-top: 1rem;
}

/* ========== SITE EXPLORER PAGE STYLES ========== */
.site-explorer {
  padding: 2rem 0 3rem;
}

.explorer-header {
  text-align: center;
  margin-bottom: 2rem;
}

.explorer-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.explorer-header .lead {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Search bar styling */
.explorer-search {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.explorer-search .form-control {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e7eb;
  font-size: 1rem;
}

.explorer-search .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.search-results-count {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

/* Accordion custom styling */
.site-explorer .accordion-item {
  border: none;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-explorer .accordion-button {
  font-weight: 600;
  padding: 1rem 1.25rem;
  background-color: white;
  border: none;
}

.site-explorer .accordion-button:not(.collapsed) {
  color: var(--text-dark);
  box-shadow: none;
}

.site-explorer .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.site-explorer .accordion-button::after {
  flex-shrink: 0;
}

/* Color coding for main sections */
.site-explorer .accordion-item[data-section="cartes"] .accordion-button {
  background-color: var(--pastel-1);
}

.site-explorer .accordion-item[data-section="invitations"] .accordion-button {
  background-color: var(--pastel-5);
}

.site-explorer .accordion-item[data-section="resources"] .accordion-button {
  background-color: var(--pastel-11);
}

/* Nested accordions - lighter backgrounds with indentation */
.site-explorer .accordion .accordion .accordion-button {
  background-color: #f9fafb;
  font-size: 0.95rem;
  padding: 0.875rem 1.25rem;
  padding-left: 2.5rem; /* Indent for level 2 */
}

.site-explorer .accordion .accordion .accordion .accordion-button {
  background-color: #ffffff;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  padding-left: 3.5rem; /* Indent for level 3 */
  font-weight: 500;
}

.site-explorer .accordion .accordion .accordion .accordion .accordion-button {
  background-color: #ffffff;
  font-size: 0.85rem;
  padding: 0.7rem 1.25rem;
  padding-left: 4.5rem; /* Indent for level 4 */
  font-weight: 500;
}

/* Badge for counts */
.count-badge {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

/* Link lists - responsive grid */
.link-list {
  list-style: none;
  padding: 1rem 1.25rem;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 568px) {
  .container-custom {
    padding: 5px 15px;
  }

  .toc-nav .nav-link {
    padding: 0.6rem 0.75rem;
  }
}

/* Responsive navbar */
@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 8px 0;
  }

  .navbar-brand img {
    max-height: 40px;
    width: auto;
  }

  .navbar-custom .container-custom {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-collapse {
    width: 100%;
    margin-top: 1rem;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 0.75rem 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  body {
    padding: 5px 0;
  }

  .main-wrapper {
    margin: 0 5px;
    max-width: calc(100% - 10px);
    border-radius: 8px;
  }

  .navbar-custom {
    border-radius: 8px 8px 0 0;
  }

  .footer-section {
    border-radius: 0 0 8px 8px;
  }

  .footer-section-modern {
    padding: 40px 0 20px;
  }

  .footer-logo {
    max-height: 50px;
  }

  .feature-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 568px) {
  .container-custom {
    padding: 5px 15px;
  }

  .hero-section {
    padding: 10px 0;
  }

  .footer-section {
    padding: 60px 30px;
  }
}

@media (min-width: 768px) {
  .link-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 992px) {
  .link-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-list li a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.link-list li a:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Highlight search matches */
.link-list li a mark {
  background-color: #fde047;
  padding: 0.1rem 0.2rem;
  border-radius: 2px;
  font-weight: 600;
}

/* Hidden class for search filtering */
.hidden-by-search {
  display: none !important;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
  .explorer-header h1 {
    font-size: 1.5rem;
  }

  .explorer-header .lead {
    font-size: 1rem;
  }

  .site-explorer .accordion-button {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .link-list {
    padding: 0.75rem 1rem;
  }

  .link-list li a {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

/* ========================================
   Hub Page Styles
   ======================================== */

/* Hero Banner for Hub Pages */
.banner-hub {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.banner-hub h1 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.banner-hub p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
}

.banner-hub ul li {
  color: var(--text-dark);
  font-weight: 500;
}

.banner-illustration {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

/* Responsive adjustments for banner */
@media (max-width: 767.98px) {
  .banner-hub {
    padding: 1.5rem !important;
    min-height: 120px;
  }

  /* Pseudo-element pour le SVG/Image en arrière-plan sur mobile */
  .banner-hub::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 2px;
    width: 140px;
    height: 140px;
    background-image: var(--banner-img-mobile, none);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
  }

  .banner-hub > * {
    position: relative;
    z-index: 1;
  }

  .banner-hub h1 {
    font-size: 1.5rem;
    max-width: 100%;
  }

  .banner-hub p {
    font-size: 0.9rem;
    max-width: 100%;
    margin-bottom: 0.75rem;
  }

  /* La liste laisse de la place à l'image sur la droite */
  .banner-hub ul {
    max-width: 65%;
    margin-bottom: 0;
  }

  .banner-hub ul li {
    font-size: 0.85rem;
  }
}

/* ========================================
   Divers Styles
   ======================================== */

.object-position-top {
  object-position: top;
}

/* pour grilles des pages de catégories */
.text-shadow-pop {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.img-brightness {
  filter: brightness(0.65);
  transition: filter 0.3s ease;
}

.hover-zoom:hover .img-brightness {
  filter: brightness(0.85);
}

/* Arrondi sur le haut des images de catégories */
.col.mb-4 .card {
  border-radius: 0.75rem;
}

.col.mb-4 .card-img-top {
  border-radius: 0.75rem 0.75rem 0 0;
}

/* ========================================
   Modern Card Design (Bootstrap Version)
   ======================================== */

/* Card hover effect */
.card-modern-hover {
  transition: all 0.3s ease;
  background: white;
}

.card-modern-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}

/* Image zoom on hover */
.card-img-hover {
  transition: transform 0.7s ease;
}

.card-modern-hover:hover .card-img-hover {
  transform: scale(1.05);
}

/* Send button hover effect */
.btn-send-hover {
  transition: all 0.3s ease;
}

.btn-send-hover:hover {
  background: #6366f1 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-send-hover:hover svg {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.btn-send-hover:active {
  transform: scale(0.95);
}

/* ========================================
   Hub Search Bar Styles
   ======================================== */

/* Conteneur de la barre de recherche */
.hub-search-bar {
  max-width: 600px;
  margin: 0 auto;
}

/* Ajustement du champ de recherche et bouton */
.hub-search-bar .input-group {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.hub-search-bar .input-group-text {
  padding: 0.5rem 0.75rem;
}

.hub-search-bar .form-control {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.hub-search-bar .btn {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 60px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .hub-search-bar {
    max-width: 100%;
    padding: 0 10px;
  }

  .hub-search-bar .input-group {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  .hub-search-bar .input-group-text {
    padding: 0.4rem 0.6rem;
  }

  .hub-search-bar .form-control {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

  .hub-search-bar .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    min-width: 50px;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .hub-search-bar .input-group-text i {
    font-size: 0.9rem;
  }

  .hub-search-bar .form-control {
    font-size: 0.85rem;
  }

  .hub-search-bar .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }
}

/* ========================================
   Subcategory Scroller - Mobile Optimization
   ======================================== */

/* Gap réduit entre les boutons pour tous les écrans */
#cat-scroller a {
  margin-right: 8px !important;
}

/* Sur mobile: masquer les images et optimiser le layout */
@media (max-width: 768px) {
  /* Compenser le padding du container-fluid parent pour utiliser toute la largeur */
  #cat-scroller {
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
  }
  /* Masquer les images sur mobile */
  #cat-scroller a img {
    display: none;
  }

  /* Ajuster le padding du conteneur de lien */
  #cat-scroller a {
    padding: 0.6rem 1rem !important;
    justify-content: center;
  }

  /* Ajuster le conteneur de texte */
  #cat-scroller a > div {
    padding: 0 !important;
  }

  /* Légèrement plus petit sur mobile */
  #cat-scroller a span {
    font-size: 0.9rem !important;
  }

  /* Masquer les boutons de navigation (flèches) sur mobile */
  .btn-scroll-cat {
    display: none !important;
  }
}

/* Très petits écrans - texte encore plus compact */
@media (max-width: 480px) {
  #cat-scroller a {
    padding: 0.5rem 0.8rem !important;
  }

  #cat-scroller a span {
    font-size: 0.85rem !important;
  }
}
