/* ========================================
   ORTHOSCAPHE - STYLES SPÉCIFIQUES AUX PAGES D'OPÉRATIONS
   ======================================== */

/* ========================================
   TYPES DE LÉSIONS - STYLE OPTIMISÉ
   ======================================== */

.tendons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.tendon-item {
  min-height: 100%;
}

.lesion-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.lesion-type-wrapper {
  min-height: 100%;
}

.lesion-type-item {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.lesion-type-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  border-color: var(--card-border);
}

.lesion-type-header {
  margin-bottom: 0.75rem;
}

.lesion-type-title {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--text-color-primary);
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: normal;
}

.lesion-type-separator {
  height: 1px;
  background: linear-gradient(90deg, var(--card-border), transparent);
  border-radius: 1px;
  margin-top: 0.5rem;
}

.lesion-type-description {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-color-primary);
  margin: 0;
  padding-left: 0.5rem;
  border-left: 2px solid var(--card-border);
}

.lesion-type-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
}

.lesion-type-list li {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-color-primary);
  margin-bottom: 0.5rem;
  position: relative;
}

.lesion-type-list li::before {
  content: '•';
  color: var(--card-border);
  font-weight: normal;
  position: absolute;
  left: -1.2rem;
}

.lesion-type-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .tendons-grid,
  .lesion-types-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
  }
  
  .lesion-type-item {
    padding: 1.25rem;
  }
  
  .lesion-type-title {
    font-size: var(--font-size-md);
  }
}

/* ========================================
   ROADMAP POST-OPÉRATOIRE
   ======================================== */

.roadmap-container {
  margin: 2rem 0;
}

.roadmap-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 3rem;
  border-left: 2px solid var(--accent-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.roadmap-item:last-child {
  border-left: none;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  background: var(--accent-color);
  border-radius: 50%;
  border: 3px solid var(--card-background);
  box-shadow: 0 0 0 2px var(--accent-color);
  transition: all 0.3s ease;
}

.roadmap-item:hover::before {
  background: var(--accent-color-hover);
  box-shadow: 0 0 0 3px var(--accent-color-hover);
  transform: scale(1.2);
}

.roadmap-item:hover {
  border-left-color: var(--accent-color-hover);
  transform: translateX(5px);
}

.roadmap-content {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.roadmap-item:hover .roadmap-content {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.roadmap-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.roadmap-title::before {
  content: '📋';
  font-size: 1.2em;
}

.roadmap-description {
  color: var(--text-color-primary);
  line-height: 1.6;
  margin: 0;
}

/* Variantes de couleurs pour différents types d'étapes */
.roadmap-item.phase-1::before {
  background: #10b981;
  box-shadow: 0 0 0 2px #10b981;
}

.roadmap-item.phase-1 {
  border-left-color: #10b981;
}

.roadmap-item.phase-2::before {
  background: #f59e0b;
  box-shadow: 0 0 0 2px #f59e0b;
}

.roadmap-item.phase-2 {
  border-left-color: #f59e0b;
}

.roadmap-item.phase-3::before {
  background: #8b5cf6;
  box-shadow: 0 0 0 2px #8b5cf6;
}

.roadmap-item.phase-3 {
  border-left-color: #8b5cf6;
}

.roadmap-item.phase-4::before {
  background: #ef4444;
  box-shadow: 0 0 0 2px #ef4444;
}

.roadmap-item.phase-4 {
  border-left-color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .roadmap-item {
    padding-left: 2rem;
  }
  
  .roadmap-content {
    padding: 1rem;
  }
  
  .roadmap-title {
    font-size: var(--font-size-base);
  }
}

/* ========================================
   STRUCTURE DES PAGES D'OPÉRATIONS
   ======================================== */

/* Section introduction */
.operation-intro-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--card-background) 0%, var(--card-border) 100%);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.operation-intro .intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.intro-card .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color-primary);
}

/* Section contenu principal */
.operation-content-section {
  padding: 4rem 0;
}

.operation-details {
  max-width: 900px;
  margin: 0 auto;
}

/* Structure des sections de contenu */
.content-section-item {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.content-section-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.content-section-title {
  color: var(--text-color-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
}

.content-section-body {
  color: var(--text-color-secondary);
  line-height: 1.7;
}

.content-section-body p {
  margin-bottom: 1rem;
}

.content-section-body .card {
  transition: all 0.3s ease;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.content-section-body .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* Style uniforme pour toutes les cartes des pages d'opérations */
.content-section-body .card.h-100.border-0.bg-light.bg-opacity-10 {
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.content-section-body .card.h-100.border-0.bg-light.bg-opacity-10:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-hover));
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  margin-top: 3rem;
}

/* Responsive pour les pages d'opérations */
@media (max-width: 768px) {
  .operation-intro-section {
    padding: 2rem 0;
  }
  
  .operation-content-section {
    padding: 2rem 0;
  }
  
  .content-section-item {
    padding: 1.5rem;
  }
  
  .content-section-title {
    font-size: 1.3rem;
  }
  
  .cta-section {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
}

/* ========================================
   STYLE UNIFORME DES CARTES
   ======================================== */

/* Style uniforme pour toutes les cartes Bootstrap */
.card {
  border-radius: 16px !important;
  border: 1px solid var(--card-border) !important;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Style spécifique pour les cartes des interventions */
.card.h-100.border-0.bg-light.bg-opacity-10 {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card.h-100.border-0.bg-light.bg-opacity-10:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.15) !important;
}
