/* ==========================================================================
   TRAINING PAGES SPECIFIC STYLES - thinklogical.fr
   ========================================================================== */

/* Hero Section Training */
.hero-training {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(49, 130, 206, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(26, 54, 93, 0.25) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: var(--white);
  position: relative;
  text-align: left;
}

.hero-training::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--bg-tech), transparent);
  pointer-events: none;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge-training {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.badge-training.badge-highlight {
  border-color: rgba(16, 185, 129, 0.3);
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-training-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-training-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 800px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin-top: 2rem;
}

.hero-training-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
}

.hero-training-card-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.hero-training-card-val {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Objectives Grid */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.objective-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.objective-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.objective-icon-box.bg-blue { background-color: rgba(49, 130, 206, 0.1); color: var(--accent); }
.objective-icon-box.bg-emerald { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }
.objective-icon-box.bg-violet { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.objective-icon-box.bg-amber { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.objective-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.objective-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Program Section Columns */
.program-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.day-container {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.day-header {
  padding: 1.5rem 2rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-header.bg-day1 {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.day-header.bg-day2 {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

.day-title-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.day-title-main {
  font-size: 1.35rem;
  font-weight: 800;
}

.day-meta {
  text-align: right;
}

.day-time {
  font-size: 1.5rem;
  font-weight: 800;
}

.day-pause {
  font-size: 0.7rem;
  opacity: 0.85;
}

.day-body {
  padding: 2rem;
}

/* Vertical timeline inside day */
.day-timeline {
  position: relative;
}

.day-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 9px;
  width: 2px;
  height: calc(100% - 24px);
  background-color: var(--border-light);
}

.timeline-item {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-bullet {
  position: absolute;
  top: 6px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-tech);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(226, 232, 240, 0.8);
  z-index: 2;
}

.timeline-item.active .timeline-bullet {
  background-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-item.teal .timeline-bullet {
  background-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-time {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--bg-tech);
  padding: 2px 8px;
  border-radius: 4px;
}

.timeline-module {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--border-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.timeline-break {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 2.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

.timeline-break::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-tech);
  transform: translateY(-50%);
}

/* Accordion details/summary */
details.module-details {
  border: 1px solid transparent;
}

details.module-details summary {
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color var(--transition-fast);
}

details.module-details summary::-webkit-details-marker {
  display: none;
}

details.module-details summary:hover {
  color: var(--accent);
}

details.module-details summary::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-normal);
  margin-right: 4px;
}

details.module-details[open] summary::after {
  transform: rotate(-135deg);
}

.module-content {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.module-content ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.module-content li {
  margin-bottom: 0.35rem;
}

/* Interactive checkbox list */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.checklist-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--success);
}

/* Alert Callouts */
.callout {
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.85rem;
  margin-top: 1rem;
  border-left: 4px solid transparent;
}

.callout-warning {
  background-color: #fffaf0;
  border-color: #dd6b20;
  color: #7b341e;
}

.callout-success {
  background-color: #f0fdf4;
  border-color: var(--success);
  color: #166534;
}

.callout-info {
  background-color: #f0f9ff;
  border-color: var(--accent);
  color: #0369a1;
}

/* Pedagogical Methods Grid */
.pedagogy-container {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2rem;
  margin-top: 2rem;
}

.pedagogy-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.progress-bar-bg {
  flex-grow: 1;
  background-color: var(--bg-tech);
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  height: 100%;
  border-radius: 10px;
  width: 70%;
}

.progress-bar-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  white-shrink: 0;
}

.methods-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  font-size: 0.9rem;
}

.methods-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.methods-list li span {
  color: var(--success);
  font-weight: bold;
}

.prereq-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prereq-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.prereq-list {
  list-style: none;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.prereq-list li {
  margin-bottom: 0.5rem;
}

/* Deliverables Grid */
.deliverables-container {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 2rem;
}

.deliverables-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.deliverables-list {
  list-style: none;
}

.deliverables-list-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.deliverables-list-item:last-child {
  margin-bottom: 0;
}

.deliverable-num {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: rgba(49, 130, 206, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.deliverable-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ROI Simulator widget */
.roi-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.roi-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.roi-form-group {
  margin-bottom: 1rem;
}

.roi-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.roi-input {
  width: 100%;
  border: 1px solid var(--border-tech);
  background-color: var(--bg-tech);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.roi-input:focus {
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.roi-btn {
  width: 100%;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.65rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-top: 0.5rem;
}

.roi-btn:hover {
  background-color: var(--accent-hover);
}

.roi-result {
  margin-top: 1.25rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 8px;
  padding: 0.875rem;
  font-weight: 700;
  text-align: center;
  font-size: 1.05rem;
}

/* Evaluation & Resources Grid */
.eval-resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background-color: var(--bg-white);
  font-size: 0.9rem;
  transition: background-color var(--transition-fast);
}

.resource-item:hover {
  background-color: var(--bg-tech);
}

.resource-item-title {
  font-weight: 700;
  color: var(--primary);
}

.resource-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.resource-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.resource-badge {
  padding: 0.75rem;
  border-radius: 6px;
  background-color: var(--bg-tech);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.resource-badge span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Reassurance Footer Callout */
.reassurance-banner {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
}

.reassurance-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.reassurance-title {
  color: #1e3a8a;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.reassurance-desc {
  color: #1e40af;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.reassurance-contacts {
  font-size: 0.85rem;
  color: #1e3a8a;
  text-align: right;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR TRAINING PAGE
   ========================================================================== */
@media (max-width: 1024px) {
  .program-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pedagogy-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .deliverables-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-training-title {
    font-size: 2.15rem;
  }
  
  .hero-training-subtitle {
    font-size: 1rem;
  }
  
  .eval-resources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .reassurance-container {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .reassurance-contacts {
    text-align: left;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  @page {
    margin: 15mm 15mm 15mm 15mm;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }
  
  /* Hide interactive elements, navigation and footer */
  .no-print, 
  nav, 
  .header, 
  .footer, 
  .pricing-price,
  .roi-card,
  button,
  .selector-btn,
  .resource-item svg {
    display: none !important;
  }
  
  .hero-training {
    background: #1a365d !important;
    color: #ffffff !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .hero-training-title {
    color: #ffffff !important;
    font-size: 22pt !important;
  }
  
  .hero-training-subtitle {
    color: #e2e8f0 !important;
    font-size: 11pt !important;
  }
  
  .hero-training-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  .hero-training-card {
    border-color: rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.1) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .hero-training-card-label {
    color: #cbd5e1 !important;
  }
  
  /* Expand all details for print output */
  details.module-details {
    page-break-inside: avoid;
  }
  
  details.module-details:not([open]) > *:not(summary) {
    display: block !important;
  }
  
  details.module-details summary::after {
    display: none !important;
  }
  
  .day-container {
    page-break-inside: avoid;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
  }
  
  .day-header.bg-day1 {
    background: #1e3a8a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .day-header.bg-day2 {
    background: #0f766e !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .timeline-bullet {
    border-color: #cbd5e1 !important;
  }
  
  .callout {
    border: 1px solid #cbd5e1 !important;
    page-break-inside: avoid;
  }
  
  .pedagogy-card, 
  .deliverables-card,
  .objective-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    page-break-inside: avoid;
  }
  
  .prereq-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .prereq-card h3 {
    color: #1a365d !important;
  }
  
  .prereq-list {
    color: #334155 !important;
  }
}
