/* Reset some rules from the base theme (mostly boostrap ones) */
#searchInput, .container {
    all:initial;
}

/* ===================================
   EFFICIENT DESIGN SYSTEM - SINGLE SCREEN
   =================================== */

:root {
  /* ===================================
     ESSENTIAL COLORS - ONLY WHAT WE USE
     =================================== */

  /* Primary Brand Colors */
  --primary: #86c2eb;
  --primary-dark: #5bace4;
  --primary-light: #b2d8f2;

  /* Neutral Colors - Subtle blue-tinted greys */
  --white: #fafbfc;
  --gray-50: #f5f7fa;
  --gray-100: #eef2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* ===================================
     TYPOGRAPHY - SIMPLIFIED SCALE
     =================================== */

  /* Font Family */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Font Sizes - Only what we use */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */

  /* Font Weights */
  --font-normal: 200;
  --font-medium: 300;
  --font-semibold: 400;
  --font-bold: 500;

  /* ===================================
     SPACING - 8px GRID
     =================================== */

  --space-2: 0.5rem; /* 8px */
  --space-4: 1rem; /* 16px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */

  /* ===================================
     BORDER RADIUS
     =================================== */

  --radius-xs: 0.05rem; /* 2px */
  --radius-sm: 0.1rem; /* 4px */
  --radius-md: 0.2rem; /* 8px */
  --radius-lg: 0.3rem; /* 12px */

  /* ===================================
     SHADOWS (Apple Human Interface Guidelines)
     =================================== */

  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  /* ===================================
     TRANSITIONS (Moved to animations.css)
     =================================== */

  /* ===================================
     LEGACY COMPATIBILITY - ONLY ESSENTIAL
     =================================== */

  /* Keep only the variables actually used in other CSS files */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-light: var(--gray-500);
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --border-color: var(--gray-200);
  --border-light: var(--gray-200);
  --shadow-light: var(--shadow);
  --shadow-medium: var(--shadow-md);
  --shadow-heavy: var(--shadow-lg);
  --border-radius: var(--radius-md);
  --border-radius-sm: var(--radius-sm);
  --border-radius-md: var(--radius-md);
  --border-radius-lg: var(--radius-lg);
}

/* ===================================
   GLOBAL RESET & BASE STYLES
   =================================== */

.container-medtrix * {
  margin: 0;
  padding: 0;
  box-sizing: border-box!important;
}

html .container-medtrix {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

body .container-medtrix {
  min-height: calc(100vh - 105px); /* Adjust for header height */
  overflow-x: hidden;
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===================================
   CENTRALIZED ANIMATIONS & TRANSITIONS
   =================================== */

/* ===================================
   TRANSITION VARIABLES (Simplified)
   =================================== */

:root {
  /* Base transitions - only what's actually used */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-hover: 0.2s ease-in-out;
  --transition-transform: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-opacity: 0.2s ease;

  /* Animation durations */
  --animation-fast: 0.3s;
  --animation-normal: 0.6s;
}

/* ===================================
   KEYFRAME ANIMATIONS
   =================================== */

/* Slide In Up - For map cards */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In - For notifications */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide Out - For notifications */
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Modal Slide In - For main modal */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Fade In - General purpose */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scale In - For interactive elements */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse - For loading states */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ===================================
   ANIMATION UTILITY CLASSES
   =================================== */

/* Animation classes for easy application */
.animate-slide-in-up {
  animation: slideInUp var(--animation-normal) ease-out forwards;
}

.animate-slide-in {
  animation: slideIn var(--animation-fast) ease-out;
}

.animate-slide-out {
  animation: slideOut var(--animation-fast) ease-out;
}

.animate-modal-slide-in {
  animation: modalSlideIn var(--animation-fast) ease-out;
}

.animate-fade-in {
  animation: fadeIn var(--animation-fast) ease-out;
}

.animate-scale-in {
  animation: scaleIn var(--animation-fast) ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ===================================
   STAGGERED ANIMATIONS
   =================================== */

/* Staggered animation delays for map cards */
.map-card:nth-child(6n + 1) {
  animation-delay: 0.1s;
}

.map-card:nth-child(6n + 2) {
  animation-delay: 0.2s;
}

.map-card:nth-child(6n + 3) {
  animation-delay: 0.3s;
}

.map-card:nth-child(6n + 4) {
  animation-delay: 0.4s;
}

.map-card:nth-child(6n + 5) {
  animation-delay: 0.5s;
}

.map-card:nth-child(6n + 6) {
  animation-delay: 0.6s;
}

/* ===================================
   CONTAINER & CENTERING
   =================================== */

.container-medtrix {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-image: url("img/mainbkg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.container-medtrix::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.6) 0%,
    rgba(22, 33, 62, 0.6) 50%,
    rgba(15, 52, 96, 0.6) 100%
  );
  backdrop-filter: blur(8px);
  z-index: 1;
}

/* ===================================
   MODAL LAYOUT
   =================================== */

/* Modal Layout */
.modal-medtrix {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-xs);
  box-shadow: var(--shadow-heavy);
  width: 100%;
  max-width: 1400px;
  max-height: 86vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

/* Keyframes moved to animations.css */

.modal-header-medtrix {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title-medtrix {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Modal Body with Sidebar and Main Content */
.modal-body-medtrix {
  display: flex;
  height: calc(90vh - 80px);
  overflow: hidden;
  /* Ensure no edge bleeding */
  position: relative;
}

/* Sidebar Layout */
.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  flex-shrink: 0;
}

/* Main Content Area */
.main-content-medtrix {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: var(--bg-primary);
  /* Ensure proper overflow handling */
  overflow-x: hidden;
}

.content-header {
  margin-bottom: 30px;
}

.content-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.content-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Maps Grid */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
  padding: var(--space-4);
  margin-bottom: var(--space-8); /* Add bottom margin to see all cards */
  align-items: stretch; /* Ensure all cards have equal height */
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Webkit browsers */
.maps-grid::-webkit-scrollbar {
  display: none;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .maps-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .maps-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .main-content-medtrix {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .maps-grid {
    grid-template-columns: 1fr;
  }
}

/* Action Buttons Layout */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Feature Grid Layout */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Settings Form Layout */
.settings-form {
  margin-top: 20px;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .modal-medtrix {
    max-width: 95vw;
    max-height: 95vh;
  }

  .modal-body-medtrix {
    flex-direction: column;
    height: calc(95vh - 80px);
  }

  .sidebar {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .map-preview {
    height: 120px;
  }

  .map-image {
    font-size: 2rem;
  }
}


@media (max-width: 480px) {
  .modal-header-medtrix {
    padding: 16px 20px;
  }

  .modal-title-medtrix {
    font-size: 1.25rem;
  }

  .main-content-medtrix {
    padding: 15px;
  }

  .maps-grid {
    gap: 15px;
  }
}
/* ===================================
   BUTTON COMPONENTS
   =================================== */

/* Base Button */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius-xs);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

/* Primary Button */
.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

/* Secondary Button */
.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
  color: var(--gray-800);
  border-color: var(--gray-400);
  box-shadow: var(--shadow-md);
}

/* Small Button Variant (for overlays) */
.btn.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
  border-radius: var(--border-radius-sm);
}

/* Ensure small primary buttons have the same hover effect */
.btn-primary.btn-sm:hover,
.btn.btn-primary.btn-sm:hover {
  background: var(--primary-dark) !important;
  box-shadow: var(--shadow-md) !important;
}
/* ===================================
   MAP CARD COMPONENTS
   =================================== */

/* Map Card */
.map-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition-normal);
  animation: slideInUp var(--animation-normal) ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
  position: relative; /* Ensure the card is the positioning context */
  min-height: 320px; /* Ensure consistent card height */
  display: flex;
  flex-direction: column;
  height: 100%; /* Force equal height */
}

/* Staggered animation using mathematical patterns */
.map-card:nth-child(6n + 1) {
  animation-delay: 0.1s;
}
.map-card:nth-child(6n + 2) {
  animation-delay: 0.2s;
}
.map-card:nth-child(6n + 3) {
  animation-delay: 0.3s;
}
.map-card:nth-child(6n + 4) {
  animation-delay: 0.4s;
}
.map-card:nth-child(6n + 5) {
  animation-delay: 0.5s;
}
.map-card:nth-child(6n + 6) {
  animation-delay: 0.6s;
}
/* Keyframes moved to animations.css */

.map-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-card.hidden {
  display: none;
}

/* Map Preview */
.map-preview {
  position: relative;
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Map Image */
.map-image {
  width: 100%;
  height: 100%;
  /* background-image: url("../assets/images/maps/restaumed.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
  transition: var(--transition-normal);
}

.map-card:hover .map-image {
  filter: blur(2px);
}

/* Map Overlay */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-opacity);
}

.map-card:hover .map-overlay {
  opacity: 1;
}

/* View Map Button Animation */
.map-overlay .btn-primary {
  transform: translateY(40px);
  opacity: 0;
  transition: var(--transition-hover);
  pointer-events: none; /* Disable button clicks */
}

.map-card:hover .map-overlay .btn-primary {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto; /* Enable interactions on hover */
}

/* Map Info */
.map-info {
  padding: var(--space-4);
  background: var(--bg-primary);
  flex: 1; /* Take remaining space */
  display: flex;
  flex-direction: column;
  position: relative; /* For tooltip positioning */
}

.map-info h4 {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  line-height: 1.2;
  flex: 1; /* Take remaining space */
}

.map-info p {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Project Link */
.map-project-link {
  color: var(--gray-400);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: var(--transition-normal);
  text-decoration: none;
}

.map-project-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  transition: var(--transition-normal);
}

/* Disable "Information à venir" links */
.map-project-link[href="#"] {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
  color: #999;
  text-decoration: none;
}

/* Hide original description text */
.map-description {
  display: none; /* Completely remove from layout */
}

/* Add tooltip at bottom right */
.tooltip-icon {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-normal);
  z-index: 10;
  visibility: visible; /* Override parent's hidden visibility */
}

.tooltip-icon:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* Map Meta - Simple bottom container */
.map-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Push to bottom */
  padding: var(--space-2);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  position: sticky;
  bottom: 0;
}

/* Feature Card */
.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
}

.feature-card h4 {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.feature-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
/* ===================================
   FORM COMPONENTS
   =================================== */

/* Form Group */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

/* Search Filter */
.search-filter {
  margin-bottom: 20px;
  padding: 0 20px;
}

.search-input-container {
  position: relative;
}

#searchInput.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: var(--text-sm);
  background: var(--bg-primary);
  color: var(--gray-400);
  transition: var(--transition-fast);
}
.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  pointer-events: none;
  transition: var(--transition-fast);
}

.search-input:focus + .search-icon {
  color: var(--primary-color);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.checkbox-group input {
  margin: 0;
}
/* ===================================
   HEADER COMPONENTS
   =================================== */

/* Header Row */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-row h3 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.header-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Modal Header */
.modal-header-medtrix {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}


/* Mobile: Stack content vertically */
@media (max-width: 768px) {
  .modal-header-medtrix {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .modal-header-content-medtrix {
    margin-right: 0;
  }

  .modal-header-buttons-medtrix {
    justify-content: center;
  }
}

.modal-header-content-medtrix {
  flex: 1;
  margin-right: 20px;
}

.modal-title-medtrix {
  margin: 0 0 2px 0;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.modal-description-medtrix {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 500px;
}

/* Mobile: Full width description */
@media (max-width: 768px) {
  .modal-description-medtrix {
    max-width: 100%;
  }
}

.modal-header-buttons-medtrix {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
/* ===================================
   CATEGORY FILTERING COMPONENTS
   =================================== */

/* Category Header */
.sidebar-header {
  padding: 20px;
}

.sidebar-header h3 {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: var(--gray-800);
  margin: 0;
}


/* Category Navigation */
.category-nav {
  padding: 10px 0;
}

.category-group {
  margin-bottom: 5px;
}

.category-label {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--gray-500);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  position: relative;
}

.category-label:hover {
  color: var(--gray-900);
}

.category-icon {
  margin-right: 12px;
  font-size: var(--text-secondary);
}

/* Category Label Styling - Active State */
.category-label.active {
  color: var(--primary);
  font-weight: var(--font-semibold);
}

/* Responsive Category Label */
@media (max-width: 480px) {
  .category-label {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
/* ===================================
   MODAL COMPONENTS
   =================================== */

/* Map Modal */
.map-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.map-modal:target {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.modal-content-medtrix {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-heavy);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}


/* Close Modal */
.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.close-modal:hover {
  color: var(--text-primary);
}
/* ===================================
   INFO SIDEBAR COMPONENTS
   =================================== */

/* Hidden checkbox for CSS-only toggle */
.sidebar-toggle {
  display: none;
}

/* Info Sidebar Base */
.info-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  max-height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition-transform);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
}

.info-sidebar.active{
    right: 0;
}

/* Info Header */
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.info-header h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: 4px 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.close-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Info Content */
.info-content {
  padding: 20px;
  padding-bottom: 100px;
}

/* Info Section - All sections with containers except description */
.info-section:not(.description) {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

/* Description sections - add margin bottom for spacing */
.info-section.description {
  margin-bottom: var(--space-6);
}

.info-section h4 {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--primary-color);
  padding-bottom: var(--space-2);
}

.info-section p {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-section ul {
  margin: 0 0 var(--space-4) 0;
  padding-left: var(--space-6);
}

.info-section li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.info-section li:last-child {
  margin-bottom: 0;
}
.info-section p:last-child {
  margin-bottom: 0;
}

.info-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .info-sidebar {
    width: 100%;
    right: -100%;
  }

  .info-content {
    padding: 16px;
  }

  .info-header {
    padding: 16px;
  }
}

/* Ajouts au thème de base */
body {
    padding: 105px 0 0 0!important;
}

#content {
    padding: 0;
    height: calc(100vh - 105px);
    display: block;
}
