/* Training Sessions Detail Page Styles */

/* Typography for CKEditor content */
.session-content h1 {
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  color: #111827;
}

.dark .session-content h1 {
  color: #ffffff;
}

.session-content h2 {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
  color: #111827;
}

.dark .session-content h2 {
  color: #ffffff;
}

.session-content h3 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  color: #111827;
}

.dark .session-content h3 {
  color: #ffffff;
}

.session-content h4 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
  color: #111827;
}

.dark .session-content h4 {
  color: #ffffff;
}

.session-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #374151;
}

.dark .session-content p {
  color: #d1d5db;
}

.session-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.session-content ul li {
  margin-bottom: 0.5rem;
}

.session-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.session-content ol li {
  margin-bottom: 0.5rem;
}

.session-content li {
  color: #374151;
}

.dark .session-content li {
  color: #d1d5db;
}

.session-content li::marker {
  color: #00b38a;
}

/* Nested lists */
.session-content ul ul {
  list-style-type: circle;
  margin-top: 0.5rem;
}

.session-content ol ol {
  list-style-type: lower-alpha;
  margin-top: 0.5rem;
}

/* Tables */
.session-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  display: block;
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .session-content table {
    display: table;
  }
}

.session-content table td,
.session-content table th {
  border: 1px solid #d1d5db;
  padding: 0.75rem;
}

.dark .session-content table td,
.dark .session-content table th {
  border-color: #4b5563;
}

.session-content table th {
  background-color: #f3f4f6;
  font-weight: 600;
  text-align: left;
}

.dark .session-content table th {
  background-color: #1f2937;
}

.session-content table tr:nth-child(even) {
  background-color: #f9fafb;
}

.dark .session-content table tr:nth-child(even) {
  background-color: rgba(31, 41, 55, 0.5);
}

/* Images */
.session-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Blockquotes */
.session-content blockquote {
  border-left: 4px solid #00b38a;
  padding-left: 1rem;
  font-style: italic;
  margin: 1rem 0;
  color: #374151;
  background-color: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.dark .session-content blockquote {
  color: #d1d5db;
  background-color: rgba(31, 41, 55, 0.5);
}

/* Links */
.session-content a {
  color: #00b38a;
  text-decoration: underline;
  transition: color 0.15s;
}

.session-content a:hover {
  color: #059669;
}

/* Code blocks */
.session-content pre {
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-family: monospace;
}

.dark .session-content pre {
  background-color: #1f2937;
}

.session-content code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: monospace;
}

.dark .session-content code {
  background-color: #1f2937;
}

/* Strong emphasis */
.session-content strong,
.session-content b {
  font-weight: 600;
  color: #111827;
}

.dark .session-content strong,
.dark .session-content b {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .session-content table {
    font-size: 0.875rem;
  }
  
  .session-content table td,
  .session-content table th {
    padding: 0.5rem;
  }
}

/* Break sections */
.session-content .break-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-weight: 500;
  margin: 1rem 0;
}

.dark .session-content .break-section {
  color: #9ca3af;
}

/* Module/section styling */
.session-content .module-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.dark .session-content .module-section {
  border-bottom-color: #374151;
}

.session-content .module-section:last-child {
  border-bottom: none;
}


/* Animations pour urgence */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 179, 138, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 179, 138, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 179, 138, 0);
    }
}

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

/* Progress bar smooth */
.seats-progress-bar {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Countdown timer styling */
.countdown-digit {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}


/* Animations pour la promotion des sessions */
@keyframes float-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.5); }
    50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.8); }
}

/* Classes pour les cartes de session sur la homepage */
.session-promo-card {
    animation: float-up 3s ease-in-out infinite;
}

.session-promo-card:hover {
    animation: none;
    transform: translateY(-5px);
}

/* Badge animé pour les prix */
.price-badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Barre de notification sticky */
.notification-bar {
    backdrop-filter: blur(10px);
}

/* Effet de brillance sur les boutons CTA */
.cta-shine {
    position: relative;
    overflow: hidden;
}

.cta-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.cta-shine:hover::before {
    transform: rotate(45deg) translateX(100%);
}

/* Progress bar animation */
.progress-bar-fill {
    transition: width 1s ease-out;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .session-promo-card {
        animation: none;
    }
    
    .notification-bar {
        font-size: 0.875rem;
    }
}
