/* ex-inline trainers.html — externalisé pour la mise en cache */
/* ============================================================================
   VARIABLES
   ============================================================================ */
:root {
  --primary-color: #0066cc;
  --primary-light: #5ba3e0;
  --text-dark: #1c1d1f;
  --text-medium: #6a6f73;
  --text-light: #9fa5ad;
  --border-color: #d1d7dc;
  --bg-gray: #f7f9fa;
  --rating-star: #f69c08;
}

/* ============================================================================
   HERO COMPACT
   ============================================================================ */
.trainers-hero-compact {
  background: linear-gradient(to bottom, #f7f9fa 0%, #fff 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--text-medium);
}

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

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

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-mini {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stat-mini-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-mini-label {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* ============================================================================
   FILTERS SECTION
   ============================================================================ */
.filters-section-trainers {
  position: sticky;
  top: 80px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.search-input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-medium);
  font-size: 1.1rem;
}

.search-input-wrapper .form-control {
  padding-left: 45px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 48px;
  font-size: 0.95rem;
}

.search-input-wrapper .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.filters-section-trainers .form-select {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 48px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.filters-section-trainers .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.results-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================================================
   TRAINER CARDS MODERN
   ============================================================================ */
.section-padding {
  padding: 60px 0;
}

.trainer-card-modern {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trainer-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: var(--primary-light);
}

.trainer-image-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.trainer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.trainer-overlay-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 102, 204, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}


.gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trainer-card-modern:hover .trainer-overlay-modern {
  opacity: 1;
}

.social-links-modern {
  display: flex;
  gap: 1rem;
}

.social-link-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link-icon:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.featured-badge-modern {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: var(--text-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.featured-badge-modern i {
  font-size: 0.85rem;
}

.rating-badge-top {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rating-badge-top i {
  color: var(--rating-star);
  font-size: 0.9rem;
}

.trainer-content-modern {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.trainer-header-modern {
  text-align: center;
}

.trainer-name-modern {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trainer-name-modern a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.trainer-name-modern a:hover {
  color: var(--primary-color);
}

.trainer-specialization-modern {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.trainer-bio-modern {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trainer-stats-row {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trainer-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-medium);
}

.trainer-stat-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.trainer-skills-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.skill-badge {
  padding: 0.35rem 0.75rem;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.trainer-actions-modern {
  margin-top: auto;
}

.trainer-actions-modern .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

/* ============================================================================
   BENEFITS SECTION
   ============================================================================ */
.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.75rem;
}

.benefit-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================================
   CTA INSTRUCTOR SECTION
   ============================================================================ */
.cta-instructor-section {
  background: linear-gradient(135deg, #f7f9fa 0%, #e9ecef 100%);
}

.cta-instructor-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
}

.cta-instructor-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cta-instructor-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cta-instructor-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-instructor-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.cta-instructor-benefits i {
  color: #10b981;
  font-size: 1.1rem;
}

.btn-cta-instructor {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border: none;
  color: var(--text-dark);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: pulse-glow 2s infinite;
}

.btn-cta-instructor::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.btn-cta-instructor:hover::before {
  left: 100%;
}

.btn-cta-instructor:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
  animation: none;
  color: var(--text-dark);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 5px 30px rgba(255, 215, 0, 0.6);
  }
}

.cta-instructor-note {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin: 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 991px) {
  .page-title {
    font-size: 2rem;
  }
  
  .filters-section-trainers {
    position: relative;
    top: 0;
  }
  
  .stats-mini-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .stat-mini {
    padding: 0.75rem 0.5rem;
  }
  
  .stat-mini-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .page-title {
    font-size: 1.75rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .stats-mini-grid {
    grid-template-columns: 1fr;
  }
  
  .search-input-wrapper .form-control,
  .filters-section-trainers .form-select {
    height: 44px;
    font-size: 0.9rem;
  }
  
  .trainer-image-wrapper {
    height: 240px;
  }
  
  .social-link-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .cta-instructor-card {
    padding: 2rem;
  }
  
  .cta-instructor-title {
    font-size: 1.75rem;
  }
  
  .cta-instructor-subtitle {
    font-size: 1rem;
  }
  
  .btn-cta-instructor {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 575px) {
  .trainer-stats-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .benefit-card {
    padding: 1.5rem;
  }
  
  .benefit-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
