/* ==========================================================================
   TABLE DES MATIÈRES
   ==========================================================================
   1.  VARIABLES & THÈMES
   2.  RESET & BASE TYPOGRAPHY
   3.  UTILITAIRES & ANIMATIONS
   4.  UI KIT (Boutons, Inputs, Badges)
   5.  LAYOUT GLOBAL (Header, Sidebar, Grid, Footer)
   6.  MODULES DE CONTENU
       - Hero & Carousel
       - Filtres & Contrôles
       - Cartes (App, Industry, Project)
       - Carte Interactive (Map)
       - Dashboard & Stats
       - Chatbot
       - Modales
   7.  SECTIONS SPÉCIFIQUES
       - Startups
       - Centres Techniques
   8.  MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* ==========================================
   1. VARIABLES & THÈMES
   ========================================== */

@import 'variables.css';

/* ================= FLOATING CONTROLS ================= */
.floating-controls {
  position: fixed;
  top: 25px;
  right: 25px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  z-index: 2100;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  border: none;
  box-shadow: var(--btn-primary-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  color: #fff;
  padding: 0;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--btn-primary-hover-shadow);
  filter: brightness(1.1);
}

/* ==========================================
   2. RESET & BASE TYPOGRAPHY
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--text-placeholder) var(--input-bg);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-body);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--input-bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-placeholder);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ==========================================
   3. UTILITAIRES & ANIMATIONS
   ========================================== */

@keyframes fade {

  0%,
  100% {
    opacity: 0;
  }

  20%,
  33% {
    opacity: 1;
  }

  53% {
    opacity: 0;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.animate-slide-in {
  animation: slideInFromBottom 0.5s ease-out;
}

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

.blinking {
  animation: blink 2s infinite ease-in-out;
}

/* ==========================================
   4. UI KIT (BOUTONS, INPUTS, BADGES)
   ========================================== */

/* --- Inputs & Forms --- */
.select-input,
.search-input,
.form-input,
.form-textarea {
  width: auto;
  padding: 10px 12px;
  border: var(--input-border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-input,
.form-textarea {
  width: 100%;
  font-size: 0.95rem;
  font-family: inherit;
}

.search-input {
  min-width: 200px;
}

.select-input {
  min-width: 150px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.select-input::placeholder,
.search-input::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-placeholder);
}

.select-input:focus,
.search-input:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
  background: var(--input-focus-bg);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Checkbox Styles */
.checkbox-group.horizontal {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-secondary);
}

.checkbox-item:hover {
  background: var(--checkbox-hover-bg);
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

/* --- Boutons --- */
.btn {
  padding: 12px 20px;
  border: var(--btn-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--filters-bg);
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.btn-primary,
.form-submit {
  border-radius: 999px;
  padding: 10px 24px;
  border: none;
  background: var(--form-submit-bg);
  color: var(--form-submit-text-color);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--form-submit-shadow);
  transition: transform .18s ease, box-shadow .22s ease;
}


.btn-primary:hover,
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--form-submit-hover-shadow);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border: var(--btn-secondary-border);
}

.btn-secondary:hover {
  background: var(--input-focus-bg);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-icon {
  padding: 10px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


body:not(.light-theme) .btn-link,
body:not(.light-theme) .btn-contact {
  color: #fff;
}

.btn-link,
.btn-contact {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  color: var(--btn-primary-color);
}

.btn-link {
  background: var(--btn-link-bg);
}

.btn-link:hover {
  background: var(--btn-link-hover-bg);
}

.btn-contact {
  background: var(--btn-contact-bg);
}

.btn-contact:hover {
  background: var(--btn-contact-hover-bg);
}

/* --- Badges --- */
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--btn-link-bg);
  color: #fff !important;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 4px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-link:hover {
  background: var(--btn-link-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.badge-link-email {
  background: var(--btn-contact-bg);
}

.badge-link-email:hover {
  background: var(--btn-contact-hover-bg);
}

/* ==========================================
   5. LAYOUT GLOBAL
   ========================================== */

.container {
  max-width: 2000px;
  margin: 0 auto;
}

.main-content {
  display: grid;
  grid-template-columns: 650px 1fr;
  gap: 30px;
  margin: 20px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 98%;
  max-width: 1600px;
  height: 80px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo img {
  height: 70px;
  object-fit: contain;
  filter: invert(1) grayscale(1) brightness(2);
  transition: filter 0.3s ease;
}

.logo img:hover {
  filter: grayscale(0%) brightness(100%);
}

body.light-theme .logo img {
  filter: grayscale(100%) brightness(50%);
}

body.light-theme .logo img:hover {
  filter: grayscale(0%) brightness(100%);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--header-link-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.8;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.theme-toggle-button {
  background: var(--input-bg);
  border: var(--input-border);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-button:hover {
  background: var(--input-focus-bg);
  border-color: var(--input-focus-border);
}

.theme-icon {
  width: 24px;
  height: 24px;
}

body.light-theme .theme-icon {
  filter: none;
}

body:not(.light-theme) .theme-icon {
  filter: invert(1);
}

/* --- Sidebar --- */
.sidebar-container {
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border: var(--sidebar-border);
  border-radius: 15px;
  max-height: 960px;
  box-shadow: var(--sidebar-shadow);
  overflow: hidden;
}

.sidebar-right {
  overflow-y: auto;
  flex-grow: 1;
  color: var(--text-primary);
  padding: 0;
}

.sidebar-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 25px 20px;
  background: var(--sidebar-header-bg);
  color: var(--sidebar-header-text-color);
  border-bottom: var(--sidebar-header-border);
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.sidebar-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.results-count {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 5px;
  color: var(--sidebar-header-text-secondary-color);
}

.sidebar-content {
  padding: 25px;
}

.welcome-message {
  color: var(--text-muted);
  text-align: center;
  margin-top: 80px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.welcome-message ul {
  text-align: left;
  margin: 15px 0 0 20px;
}

/* Sort Button in Sidebar */
.btn-sort {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-sort:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-sort span {
  font-family: monospace;
}

body.light-theme .btn-sort {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

body.light-theme .btn-sort:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* --- Footer --- */
.main-footer {
  background: var(--section-bg);
  padding: 70px 20px 20px;
  color: var(--text-primary);
  border-top: var(--footer-border-top);
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  /* Map column smaller, content column larger */
  gap: 40px;
  align-items: start;
  width: 95%;
  max-width: 1800px;
  margin: 0 auto 30px;
  text-align: left;
}

.footer-section {
  min-width: 0;
  flex: 1 1 200px;
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social-links a::before {
  content: '↗';
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-contact-form {
  background: var(--card-bg);
  padding: 15px 20px;
  /* Decreased padding */
  border-radius: 15px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  flex: 3 1 300px;
}

.footer-contact-form .form-group {
  margin-bottom: 12px;
  /* Decreased margin */
}

.footer-contact-form .form-input,
.footer-contact-form .form-textarea {
  padding: 8px 10px;
  /* Slightly smaller padding */
  font-size: 14px;
}

.footer-contact-form .form-textarea {
  min-height: 80px;
  /* Reduced min-height */
}

.footer-contact-form .form-label {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* Footer Map Column Styles */
.footer-map-col {
  display: flex;
  align-items: flex-start;
  /* Align with others */
  justify-content: flex-start;
  flex: 1 1 200px;
}

.footer-france-map {
  width: 100%;
  max-width: 300px;
  display: flex;
  justify-content: flex-start;
  filter: drop-shadow(0 0 15px rgba(90, 162, 255, 0.3));
  transition: transform 0.3s ease;
}

.footer-france-map:hover {
  transform: scale(1.05);
}

.footer-france-map img {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

.footer-sections-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: var(--footer-bottom-border);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  opacity: 0.8;
  flex-wrap: wrap;
}

/* ==========================================
   6. MODULES DE CONTENU
   ========================================== */

/* --- Hero & Carousel --- */
.carousel-wrapper {
  position: relative;
  height: 85vh;
  /* Balanced height */
  min-height: 700px;
  overflow: hidden;
}

.carousel-container {
  height: 100%;
}

.carousel-slide {
  height: 100%;
  display: none;
  animation: fade 6s infinite;
}

.carousel-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Better for tall content to avoid cutting Top */
  align-items: center;
  background: var(--carousel-overlay-bg);
  color: var(--header-link-color);
  padding: 140px 20px 60px;
  /* Strong top padding for title visibility */
  box-sizing: border-box;
  overflow-y: auto;
}

.overlay-content.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Colonne gauche */
.hero-copy {
  padding: 20px 30px;
  /* More compact */
  background: rgba(15, 21, 38, 0.45);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero-copy p {
  font-size: 0.88rem;
  /* Even more compact */
  line-height: 1.55;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.hero-map {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== Carte de France (SVG) ===== */
.france-map-img {
  width: min(500px, 45vw);
  height: auto;
  opacity: 0.25;
  /* Default opacity as requested */
  filter: drop-shadow(0 0 35px rgba(90, 162, 255, 0.45));
  /* Blue glow matching buttons */
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

/* Hover premium */
.hero-map:hover .france-map-img {
  opacity: 1;
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22));
}

.overlay-content h1 {
  font-size: 1.7rem;
  /* Compact professional title */
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .overlay-content h1,
body.light-theme .overlay-content p {
  color: #fff;
}


.overlay-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* Align with left-aligned text */
}

.newsletter-signup {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-signup input {
  padding: 12px 18px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: var(--newsletter-input-bg);
  color: var(--newsletter-text);
  width: 350px;
  max-width: 100%;
  font-size: 14px;
}

.newsletter-signup input::placeholder {
  color: var(--newsletter-placeholder);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  background-color: var(--carousel-dot-bg);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: var(--carousel-dot-active-bg);
}

/* Quick Floating Actions (Assistant/Docs) */
.quick-actions {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2000;
}

.quick-action-btn {
  width: 66px;
  height: 66px;
  border-radius: 24px;
  background: rgba(20, 20, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: #f1f5f9;
  font-size: 0.78rem;
  text-align: center;
  transition: 0.2s ease;
  backdrop-filter: blur(6px);
}

.quick-action-btn:hover {
  transform: translateY(-4px);
  border-color: #60a5fa;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.55);
}

.qa-icon {
  font-size: 1.55rem;
  line-height: 1;
  color: #ffffff;
}

.qa-label {
  display: block;
  font-size: 0.75rem;
}

/* --- Filtres & Contrôles --- */
.filters-top-bar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  margin-bottom: 30px;
  width: 100%;
}

.filter-line-one {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 15px;
}

.actor-filter-container {
  background: var(--filters-bg);
  border: var(--filters-border);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--filters-shadow);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 90px;
  z-index: 99;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.actor-filter-container h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-primary);
}

.filter-line-two {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  width: 100%;
  background: var(--filters-bg);
  border: var(--filters-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--filters-shadow);
  backdrop-filter: blur(8px);
}

.filter-group-horizontal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  border: var(--filter-group-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--filter-group-bg);
  margin-right: 15px;
  padding: 10px;
}

#company-specific-filters {
  flex-wrap: wrap;
  gap: 10px;
}

#company-specific-filters .filter-item {
  flex: 1 1 200px;
  min-width: 180px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 12px;
}

.filter-item label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.filter-toggle {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
}

.toggle-btn {
  flex: 1;
  padding: 12px 20px;
  border: var(--input-border);
  background: var(--filter-group-bg);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-btn.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
}

.research-toggle {
  flex: 0 0 auto;
  border-radius: 10px;
}

/* Actor Toggle Buttons */
.actor-toggle {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.actor-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--input-border-color, #2d3748);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0.18));
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.actor-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.actor-btn.active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
}

/* --- Cartes (Générales & Projets) --- */
.info-section {
  padding: 20px 20px 60px;
  text-align: center;
  background: var(--section-bg);
}

.info-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.info-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.app-card,
.industry-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  color: var(--text-primary);
  padding: 30px;
  width: 360px;
  max-width: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover,
.industry-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-hover-shadow);
}

.app-card img,
.industry-card img {
  height: 80px;
  margin-bottom: 20px;
}

body.light-theme .app-card img,
body.light-theme .industry-card img {
  filter: grayscale(100%) brightness(50%);
}

.app-card h3,
.industry-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card p,
.industry-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.8rem;
  /* 1.6 * 3 */
}

.app-card p {
  cursor: pointer;
  transition: -webkit-line-clamp 0.3s ease;
}

.app-card.expanded p {
  -webkit-line-clamp: unset;
}

.industry-card .card-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  /* Reduced gap */
  flex-wrap: nowrap;
  /* Prevent wrapping */
  margin-top: 15px;
}

/* --- IA4Robotique Carousel & Buttons --- */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  /* Gap between arrows and card container */
  width: 100%;
  max-width: 1800px;
  /* Increase max-width to fit 4 cards + arrows */
  margin: 60px auto 0;
  padding: 0 20px;
  /* Some padding on the sides */
}

.arrow-btn,
#ia4robotique-prev,
#ia4robotique-next {
  background: var(--form-submit-bg) !important;
  border: none !important;
  color: white !important;
  width: 50px !important;
  /* Slightly smaller arrows */
  height: 50px !important;
  /* Slightly smaller arrows */
  border-radius: 50% !important;
  font-size: 2rem !important;
  /* Smaller font size for arrow icon */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: var(--form-submit-shadow) !important;
  z-index: 50 !important;
  flex-shrink: 0 !important;
  outline: none !important;
  line-height: 1 !important;
  /* Ensure perfect vertical centering for text content */
}

.arrow-btn:hover:not(:disabled) {
  transform: scale(1.1) !important;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.6) !important;
  filter: brightness(1.2) !important;
}

.arrow-btn:active:not(:disabled) {
  transform: scale(0.9) !important;
}

.arrow-btn:disabled {
  opacity: 0.3 !important;
  /* Less transparent when disabled */
  cursor: not-allowed !important;
  box-shadow: none !important;
  filter: grayscale(1) !important;
}

#ia4robotique-prev,
#ia4robotique-next {
  position: static !important;
  /* Let them flow with flexbox */
}

/* Forcer les dimensions et le dégradé bleu sur les boutons Contact et Site Web des cartes IA4Robotique */
#industries .industry-card .btn-ia4robotique {
  background: var(--form-submit-bg) !important;
  color: #fff !important;
  border: none !important;
  height: 40px !important;
  /* Smaller height */
  min-width: 100px !important;
  /* Smaller min-width */
  padding: 0 15px !important;
  /* Adjusted padding */
  border-radius: 999px !important;
  /* Pill shape */
  font-size: 0.85rem !important;
  /* Smaller font size */
  font-weight: 700 !important;
  text-transform: none !important;
  /* Allow normal casing */
  letter-spacing: normal !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--form-submit-shadow) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  /* Prevent text wrapping */
}

/* Specific styles for the Google Maps button (btn-primary) */
#industries .industry-card .btn-primary {
  background: var(--form-submit-bg) !important;
  /* Ensure blue gradient */
  color: #fff !important;
  border: none !important;
  width: 40px !important;
  /* Fixed width for circular */
  height: 40px !important;
  /* Fixed height for circular */
  padding: 0 !important;
  /* No padding for circular button with icon */
  border-radius: 50% !important;
  /* Circular shape */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--form-submit-shadow) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0;
  /* Prevent shrinking */
}

/* General hover for all IA4Robotique card buttons */
#industries .industry-card .btn-ia4robotique:hover,
#industries .industry-card .btn-primary:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6) !important;
  filter: brightness(1.15) !important;
}

/* Style the map icon inside the circular button */
#industries .industry-card .btn-primary .map-icon {
  width: 20px !important;
  /* Adjust SVG size */
  height: 20px !important;
  /* Adjust SVG size */
  fill: #fff !important;
  /* White fill for icon */
  vertical-align: middle;
}



/* Cartes Projets (Sidebar Items) */
.project-card {
  position: relative;
  background: var(--project-card-bg);
  color: var(--text-primary);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: var(--project-card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

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

.company-size-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--accent-color);
  color: white;
  padding: 5px 10px;
  border-bottom-left-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-title {
  font-weight: bold;
  font-size: 1.1rem;
  flex: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.project-institution,
.project-year {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.project-type {
  background: var(--project-type-bg);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 8px;
  display: inline-block;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.98;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.map-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.2);
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
  /* Push to right */
}

.map-icon-wrapper:hover {
  background-color: rgba(255, 0, 0, 0.4);
}

.map-icon-wrapper svg {
  display: block;
}

/* --- Carte Interactive (Map) --- */
#map {
  background: var(--map-bg);
  box-shadow: var(--map-shadow);
}

/* IMPORTANT: Override sticky inheritance for map sidebar parts */
#map>aside {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

.map-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 960px;
  /* Matches sidebar */
}

.map-container {
  flex-grow: 1;
  background: var(--map-bg);
  border: var(--map-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--map-shadow);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.zoom-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  line-height: 1;
  padding: 0;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

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

body:not(.light-theme) .zoom-btn {
  background: rgba(30, 41, 59, 0.9);
  color: #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body:not(.light-theme) .zoom-btn:hover {
  background: rgba(30, 41, 59, 1);
}

.france-map {
  width: 100%;
  height: 100%;
  max-height: 800px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35));
  background: radial-gradient(600px 260px at 50% 0%, rgba(90, 162, 255, .10), transparent);
  border-radius: 10px;
  margin-top: 50px;
}

.region-clickable {
  fill: var(--region-default);
  stroke: var(--region-stroke);
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.region-clickable:hover {
  fill: var(--region-hover);
  opacity: 0.95;
  stroke: var(--region-hover-stroke);
  stroke-width: 3;
}

.region-clickable.selected {
  fill: var(--region-selected);
  stroke: var(--region-selected-stroke);
  stroke-width: 3;
  opacity: 0.95;
}

.region-label {
  font-size: 14px;
  fill: var(--region-label-color);
  text-anchor: middle;
  pointer-events: none;
  font-weight: 700;
  text-shadow: var(--region-label-shadow);
}

.legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--legend-bg);
  padding: 15px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  z-index: 10;
  backdrop-filter: blur(8px);
  border: var(--legend-border);
  color: var(--text-primary);
}

.legend h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.legend div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--text-secondary);
}

.legend svg {
  width: 16px;
  height: 16px;
}

.tooltip,
#trl-tooltip {
  position: absolute;
  background: var(--tooltip-bg);
  color: #333;
  padding: 15px;
  border-radius: 12px;
  font-size: 14px;
  max-width: 300px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  border: var(--tooltip-border);
  box-shadow: var(--tooltip-shadow);
}

#trl-tooltip {
  max-width: 400px;
}

.tooltip.visible,
#trl-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Dashboard & Stats --- */
.dashboard-section {
  background: var(--dashboard-bg);
  border: var(--dashboard-border);
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: var(--filters-shadow);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
}

.dashboard-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--stat-card-bg);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  color: var(--text-primary);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.stat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.stat-card p {
  font-size: 2rem;
  font-weight: 800;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chart-card {
  background: var(--chart-card-bg);
  padding: 20px;
  border-radius: 15px;
  border: var(--card-border);
  color: var(--text-primary);
}

.chart-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.chart-card ul {
  list-style: none;
  padding: 0;
}

.chart-card li {
  padding: 5px 0;
  border-bottom: var(--chart-card-border);
}

.chart-card canvas {
  max-height: 200px;
}

/* --- Chatbot --- */
.chatbot-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--btn-primary-bg);
  border: var(--chatbot-fab-border);
  border-radius: 50%;
  box-shadow: var(--btn-primary-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--btn-primary-color);
  font-size: 1.5rem;
}

.chatbot-fab:hover {
  transform: scale(1.06);
  box-shadow: var(--chatbot-fab-hover-shadow);
}

.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  max-width: 90vw;
  background: var(--chatbot-bg);
  border: var(--chatbot-border);
  border-radius: 15px;
  box-shadow: var(--chatbot-shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  color: var(--text-primary);
}

.chatbot-container.active {
  display: flex;
}

.chatbot-header {
  background: var(--chatbot-header-bg);
  color: var(--header-link-color);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

#close-chatbot {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--chatbot-header-close-color);
  transition: color 0.2s;
}

#close-chatbot:hover {
  color: var(--chatbot-header-close-hover-color);
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  min-height: 200px;
  max-height: 400px;
}

.chatbot-message {
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 80%;
  line-height: 1.4;
}

.user-message {
  background: var(--user-message-bg);
  color: var(--text-primary);
  align-self: flex-end;
  margin-left: auto;
}

.bot-message {
  background: var(--bot-message-bg);
  color: var(--text-primary);
  align-self: flex-start;
}

.chatbot-input {
  display: flex;
  padding: 15px;
  border-top: var(--chatbot-input-border);
}

.chatbot-input {
  display: flex;
  padding: 15px;
  border-top: var(--chatbot-input-border);
}

#chatbot-input-field {
  flex: 1;
  padding: 10px;
  border: var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  margin-right: 10px;
}

#chatbot-input-field::placeholder {
  color: var(--text-placeholder);
}

#chatbot-send-btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#chatbot-send-btn:hover {
  opacity: 0.9;
}

/* ==========================================
   8. MEDIA QUERIES (RESPONSIVE)
   ========================================== */

/* Tablet and smaller laptops */
@media (max-width: 1200px) {
  .overlay-content.hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-map {
    margin-top: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    /* Stack columns on smaller screens */
    gap: 30px;
  }

  .footer-sections-wrapper {
    justify-content: center;
    /* Center sections when stacked */
  }

  .footer-section {
    flex: 1 1 100%;
    /* Take full width when stacked */
    text-align: center;
    /* Center text in stacked sections */
  }
}

/* Phones */
@media (max-width: 768px) {
  .header {
    height: auto;
    flex-direction: column;
    padding: 15px;
    gap: 10px;
    top: 10px;
  }

  .header .logo {
    margin-bottom: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .header-actions {
    margin-top: 10px;
  }

  .main-content {
    grid-template-columns: 1fr;
    margin: 10px;
  }

  .sidebar-container {
    max-height: none;
  }

  .map-wrapper {
    height: 70vh;
    /* Adjust map height for mobile */
  }

  .filters-top-bar {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .filter-line-two {
    flex-direction: column;
    gap: 10px;
  }

  .filter-group-horizontal {
    width: 100%;
    margin-right: 0;
  }

  .filter-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .actor-toggle {
    flex-direction: column;
    width: 100%;
  }

  .actor-btn {
    width: 100%;
  }

  .info-section h2 {
    font-size: 1.8rem;
  }

  .info-section p {
    font-size: 1rem;
  }

  .footer-content {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .header {
    padding: 10px;
  }

  .header .logo img {
    height: 50px;
  }

  nav a {
    font-size: 14px;
  }

  .overlay-content h1 {
    font-size: 1.5rem;
  }

  .hero-copy {
    padding: 15px;
  }

  .overlay-actions button {
    width: 100%;
  }

  .filter-item label {
    font-size: 0.8rem;
  }

  .select-input,
  .search-input {
    min-width: unset;
    width: 100%;
  }

  .app-card,
  .industry-card {
    width: 100%;
  }

  .project-card {
    padding: 15px;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-status {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .footer-contact-form .form-input,
  .footer-contact-form .form-textarea {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* Adjustments for newsletter overlap on smaller screens */
@media (max-width: 900px) {
  .newsletter-overlap {
    position: relative;
    margin-top: 0;
  }

  .newsletter-form {
    transform: translateY(0);
    padding: 30px 20px;
    margin-top: 40px;
  }
}

#chatbot-send-btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  margin-left: 10px;
  cursor: pointer;
  box-shadow: var(--btn-primary-shadow);
  transition: transform 0.2s;
  font-weight: 600;
}

#chatbot-send-btn:hover {
  transform: scale(1.05);
}

/* --- Modales --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  overflow-y: auto;
  /* Fallback for generic modal */
}

.modal.active,
.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: var(--modal-bg);
  border: var(--modal-border);
  border-radius: 15px;
  width: 90%;
  max-width: 700px;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: var(--modal-shadow);
  color: var(--text-primary);
  position: relative;
  /* For panel positioning */
}

/* Specific Modals */
#iframeModal .modal-content {
  max-width: 900px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: var(--modal-header-border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.close:hover {
  color: var(--text-primary);
}

/* Contact Modal Details */
.contact-modal {
  max-width: 720px;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-body {
  padding: 18px 20px 22px;
}

.form-row-two {
  display: flex;
  gap: 12px;
}

.form-row-two .form-group {
  flex: 1;
}

.form-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Github Projects Modal */
.github-projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.github-project-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.github-project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.github-project-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.github-project-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.github-project-card .btn {
  align-self: flex-start;
}

/* Documents List Modal */
.document-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.document-list li {
  margin-bottom: 5px;
  border-bottom: 1px solid var(--modal-header-border);
  padding: 10px 0;
}

.document-list li:last-child {
  border-bottom: none;
}

.document-list li a {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
}

.document-list li a::before {
  content: '📄';
  margin-right: 10px;
  font-size: 1.1em;
}

.document-list li a:hover {
  background-color: rgba(90, 162, 255, 0.15);
  color: var(--accent-color);
}

/* Modal Overlay Variation (Startups style) */
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.modal__panel {
  position: relative;
  width: min(1100px, calc(100% - 28px));
  margin: 18px auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--modal-bg);
  border: var(--modal-border);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.modal__body {
  display: grid;
  grid-template-columns: 1fr 340px;
}

.map {
  height: 540px;
}

.side {
  border-left: 1px solid rgba(255, 255, 255, .08);
  padding: 12px;
}

.side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow: auto;
}

.item {
  border: 1px solid rgba(255, 255, 255, .08);
  /* Default dark theme border */
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, .03);
  /* Default dark theme background */
}

body.light-theme .item {
  background: #e2e8f0;
  /* Light theme background */
  border: var(--card-border);
  /* Light theme border */
}

.item .t {
  font-weight: 700;
  margin: 0 0 4px;
}

.item .d {
  margin: 0;
  opacity: .75;
  font-size: 13px;
}

/* --- Partners Section --- */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.partner-logo {
  flex: 0 0 150px;
  text-align: center;
}

.partner-logo img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  filter: invert(1) grayscale(1) brightness(2);
  transition: filter 0.3s ease;
}

.partner-logo img:hover {
  filter: grayscale(0%) brightness(100%);
}

body.light-theme .partner-logo img {
  filter: grayscale(100%) brightness(50%);
}

body.light-theme .partner-logo img:hover {
  filter: grayscale(0%) brightness(100%);
}

.partners-newsletter-wrapper {
  position: relative;
}

.newsletter-overlap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 100%;
  z-index: 10;
  padding: 0 20px;
}

.newsletter-form {
  width: min(100%, 560px);
  margin: 0 auto;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 999px;
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.newsletter-form input {
  flex: 1;
  border: none;
  color: #fff;
  padding: 0 10px 0 18px;
  font-size: 0.95rem;
  background-color: transparent;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form .btn {
  white-space: nowrap;
}

body.light-theme .newsletter-ribbon {
  background: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.9)),
    url('footer-12.jpg') center/cover no-repeat;
  color: var(--text-primary);
}

body.light-theme .newsletter-form {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(19, 36, 71, 0.25);
}

body.light-theme .newsletter-form input {
  color: var(--text-primary);
}

body.light-theme .newsletter-form input::placeholder {
  color: rgba(30, 41, 59, 0.6);
}

/* ==========================================
   7. SECTIONS SPÉCIFIQUES
   ========================================== */

/* --- Startups Section --- */
#startups .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  grid-auto-rows: 190px;
  align-items: stretch;
  margin-top: 40px;
}

#startups .startup-card {
  height: 100%;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: radial-gradient(1200px 220px at 20% 0%, rgba(99, 179, 237, .12), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, .03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
  cursor: pointer;
}

#startups .startup-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .16);
  background: radial-gradient(1200px 220px at 20% 0%, rgba(99, 179, 237, .18), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, .04);
}

#startups .startup-card:active {
  transform: translateY(-1px);
}

#startups .startup-thumb {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#startups .startup-thumb img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

#startups .startup-card h3 {
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}

#startups .startup-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #8b8b8b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#startups .startup-quote {
  color: rgba(232, 240, 251, .68);
  font-style: italic;
}

#startups .startup-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#startups .startup-count {
  font-size: 13px;
  font-weight: 750;
  color: rgb(66 153 225 / 76%);
  ;
  white-space: nowrap;
}

#startups .btn {
  border-radius: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(232, 240, 251, .92);
  font-weight: 750;
  letter-spacing: .2px;
  text-transform: none;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

#startups .btn:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
}

#startups .btn--primary {
  background: linear-gradient(135deg, rgb(43 141 223 / 78%), rgba(99, 179, 237, 0.377));
  border-color: rgba(99, 179, 237, .25);
}

#startups .btn--primary:hover {
  background: linear-gradient(135deg, rgba(66, 153, 225, .34), rgba(99, 179, 237, .22));
  border-color: rgba(99, 179, 237, .32);
}

/* Featured Startup Card (France) */
#startups .startup-card--france {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: radial-gradient(900px 260px at 25% 0%, rgba(46, 204, 113, .16), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, .03);
}

#startups .startup-card--france .startup-thumb {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#startups .startup-card--france .startup-thumb img {
  width: 160px;
  height: 160px;
}

#startups .startup-card--france>div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#startups .startup-card--france h3 {
  margin: 0;
  font-size: 18px;
}

#startups .startup-card--france p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#startups .startup-card--france .startup-row {
  margin-top: auto;
  gap: 12px;
}

/* --- Centres Techniques Section --- */
#centres-techniques {
  width: 100vw;
  padding: 20px 20px 60px;
  box-sizing: border-box;
  background: var(--section-bg);
}

#centres-techniques p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

#centres-techniques .ct-wrap {
  max-width: none;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
}

#centres-techniques h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

#centres-techniques .ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#centres-techniques .ct-text {
  padding: 20px;
}

#centres-techniques .ct-text strong {
  background: linear-gradient(135deg, #4299e1, #63b3ed);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#centres-techniques .ct-text p {
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

#centres-techniques .ct-bullets {
  margin: 14px 0 18px;
  padding-left: 40px;
}

#centres-techniques .ct-bullets li {
  margin: 6px 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

#centres-techniques .ct-kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

#centres-techniques .ct-kpi {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 170px;
  background: rgb(183 180 180 / 35%);
}

#centres-techniques .ct-kpi span {
  font-size: 22px;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

#centres-techniques .ct-kpi small {
  opacity: .75;
}

#centres-techniques .ct-map-wrap {
  position: sticky;
  top: 96px;
  margin: 40px;
  padding: 0;
}

#centres-techniques .ct-map {
  height: 600px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #f6f7f9;
}

#centres-techniques .ct-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

#centres-techniques .ct-badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ct-gradient-marker {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #4299e1, #63b3ed);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  position: relative;
}

.ct-gradient-marker::after {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
}

.newsletter-form .btn {
  white-space: nowrap;
}

body.light-theme .newsletter-ribbon {
  background: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.9)),
    url('footer-12.jpg') center/cover no-repeat;
  color: var(--text-primary);
}

body.light-theme .newsletter-form {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(19, 36, 71, 0.25);
}

body.light-theme .newsletter-form input {
  color: var(--text-primary);
}

body.light-theme .newsletter-form input::placeholder {
  color: rgba(30, 41, 59, 0.6);
}

/* ==========================================
   7. SECTIONS SPÉCIFIQUES
   ========================================== */

/* --- Startups Section --- */
#startups .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  grid-auto-rows: 190px;
  align-items: stretch;
  margin-top: 40px;
}

#startups .startup-card {
  height: 100%;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: radial-gradient(1200px 220px at 20% 0%, rgba(99, 179, 237, .12), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, .03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
  cursor: pointer;
}

#startups .startup-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .16);
  background: radial-gradient(1200px 220px at 20% 0%, rgba(99, 179, 237, .18), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, .04);
}

#startups .startup-card:active {
  transform: translateY(-1px);
}

#startups .startup-thumb {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#startups .startup-thumb img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

#startups .startup-card h3 {
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}

#startups .startup-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #8b8b8b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#startups .startup-quote {
  color: rgba(232, 240, 251, .68);
  font-style: italic;
}

#startups .startup-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#startups .startup-count {
  font-size: 13px;
  font-weight: 750;
  color: rgb(66 153 225 / 76%);
  ;
  white-space: nowrap;
}

#startups .btn {
  border-radius: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(232, 240, 251, .92);
  font-weight: 750;
  letter-spacing: .2px;
  text-transform: none;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

#startups .btn:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
}

#startups .btn--primary {
  background: linear-gradient(135deg, rgb(43 141 223 / 78%), rgba(99, 179, 237, 0.377));
  border-color: rgba(99, 179, 237, .25);
}

#startups .btn--primary:hover {
  background: linear-gradient(135deg, rgba(66, 153, 225, .34), rgba(99, 179, 237, .22));
  border-color: rgba(99, 179, 237, .32);
}

/* Featured Startup Card (France) */
#startups .startup-card--france {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: radial-gradient(900px 260px at 25% 0%, rgba(46, 204, 113, .16), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, .03);
}

#startups .startup-card--france .startup-thumb {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#startups .startup-card--france .startup-thumb img {
  width: 160px;
  height: 160px;
}

#startups .startup-card--france>div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#startups .startup-card--france h3 {
  margin: 0;
  font-size: 18px;
}

#startups .startup-card--france p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#startups .startup-card--france .startup-row {
  margin-top: auto;
  gap: 12px;
}

/* --- Centres Techniques Section --- */
#centres-techniques {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 56px 0;
  box-sizing: border-box;
  background: var(--section-bg);
}

#centres-techniques p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

#centres-techniques .ct-wrap {
  max-width: none;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
}

#centres-techniques h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

#centres-techniques .ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#centres-techniques .ct-text {
  margin: 40px;
  padding: 0;
}

#centres-techniques .ct-text strong {
  background: linear-gradient(135deg, #4299e1, #63b3ed);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#centres-techniques .ct-text p {
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

#centres-techniques .ct-bullets {
  margin: 14px 0 18px;
  padding-left: 40px;
}

#centres-techniques .ct-bullets li {
  margin: 6px 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

#centres-techniques .ct-kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

#centres-techniques .ct-kpi {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 170px;
  background: rgb(183 180 180 / 35%);
}

#centres-techniques .ct-kpi span {
  font-size: 22px;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

#centres-techniques .ct-kpi small {
  opacity: .75;
}

#centres-techniques .ct-map-wrap {
  position: sticky;
  top: 96px;
  margin: 40px;
  padding: 0;
}

#centres-techniques .ct-map {
  height: 600px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #f6f7f9;
}

#centres-techniques .ct-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

#centres-techniques .ct-badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ct-gradient-marker {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #4299e1, #63b3ed);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  position: relative;
}

.ct-gradient-marker::after {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
}

/* ==========================================
   8. MEDIA QUERIES (RESPONSIVE)
   ========================================== */

/* Large Screens Down (1200px) */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar-right {
    order: 1;
  }

  .map-wrapper {
    order: 2;
    height: 400px;
  }

  /* Startups specific */
  #startups .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  #startups .startup-card {
    height: auto;
  }

  #startups .startup-card--france {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Medium Screens Down (980px/900px) */
@media (max-width: 980px) {
  .modal__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    text-align: center;
  }

  nav a {
    font-size: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .carousel-wrapper {
    height: 60vh;
  }

  .newsletter-signup {
    flex-direction: column;
  }

  .newsletter-signup input {
    width: 100%;
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .info-section h2 {
    font-size: 1.8rem;
  }

  .info-section p {
    font-size: 1rem;
  }

  .chatbot-container {
    width: calc(100vw - 40px);
    right: 20px;
  }

  /* Centres Techniques specific */
  #centres-techniques {
    padding: 40px 0;
  }

  #centres-techniques .ct-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  #centres-techniques .ct-grid {
    grid-template-columns: 1fr;
  }

  #centres-techniques .ct-text {
    max-width: none;
  }

  #centres-techniques .ct-map-wrap {
    position: relative;
    top: auto;
  }

  #centres-techniques .ct-map {
    height: 420px;
  }
}

/* Tablets (768px) */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-section,
  .footer-contact-form {
    width: 100%;
  }

  .card-container {
    gap: 20px;
  }

  .app-card,
  .industry-card {
    width: 100%;
  }

  .overlay-content h1 {
    font-size: 2rem;
  }

  .overlay-content p {
    font-size: 1rem;
  }

  .filter-line-one,
  .filter-line-two {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group-horizontal {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .action-buttons {
    margin-left: 0;
    width: 100%;
  }
}

/* Mobile (700px/640px) */
@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  #startups .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .modal-content.contact-modal {
    margin: 40px 12px;
  }

  .form-row-two {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 20px;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .quick-actions {
    right: 10px;
  }

  .quick-action-btn {
    width: 72px;
    height: 72px;
    font-size: 0.68rem;
  }

  .qa-icon {
    font-size: 1.3rem;
  }
}

/* IA4Robotique Badges */
.ia4robotique-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.ia4-badge {
  background: var(--sidebar-header-bg);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ia4-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(90, 162, 255, 0.25);
  border-color: var(--accent-color);
}

.ia4-badge.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  font-weight: 600;
  box-shadow: var(--btn-primary-shadow);
  border-color: transparent;
}

.ia4-badge .count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.ia4-badge.active .count {
  background: rgba(0, 0, 0, 0.1);
}

.card-type-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(90, 162, 255, 0.15);
  color: var(--accent-color);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.no-results {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-weight: 500;
  grid-column: 1 / -1;
}