/* ============================================
   ATELIERS V2 - CSS MODERNE COMPLET
   Inclut : Layout timeline + Styles ateliers individuels
   Aligné sur homepage-v2.css
   ============================================ */

/* ============================================
   VARIABLES & BASE
   ============================================ */
.tedcraft-custom-page.tc-ateliers-accueil,
.tedcraft-custom-page.tc-atelier-layout {
  /* Colors - Palette Sage */
  --sage-600: #566c40;
  --sage-500: #6b854f;
  --sage-400: #8fa171;
  --sage-300: #b3bd93;
  --sage-200: #d7d9b5;
  --sage-100: #f0f2e8;
  --sage-50: #f8f9f4;

  /* Neutrals */
  --white: #ffffff;
  --text-dark: #2d2d2d;
  --text-medium: #5a5a5a;
  --text-light: #8a8a8a;
  --border-light: #e8e8e8;
  --bg-gray: #fafafa;

  /* TedCraft extended colors */
  --tc-stone-50: #fdfcfa;
  --tc-stone-100: #f7f5f2;
  --tc-stone-200: #efebe6;
  --tc-stone-300: #e2ddd6;
  --tc-stone-600: #6b5d52;
  --tc-stone-700: #544840;
  --tc-stone-800: #3d322a;
  --tc-copper-500: #c08552;

  /* RGB for transparency */
  --sage-500-rgb: 107, 133, 79;
  --stone-50-rgb: 253, 252, 250;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Crimson Text', Georgia, serif;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ============================================
   PAGE D'ACCUEIL - HERO
   ============================================ */
.tc-hero-ateliers {
  padding: var(--space-20) 0 var(--space-16);
  background: linear-gradient(135deg, var(--sage-50) 0%, var(--white) 100%);
}

.tc-hero-content-ateliers {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tc-badge-minimal {
  display: inline-block;
  padding: var(--space-2) var(--space-6);
  background: var(--sage-100);
  color: var(--sage-600);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 20px;
  margin-bottom: var(--space-6);
}

.tc-hero-title-ateliers {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-6);
}

.tc-hero-subtitle-ateliers {
  font-size: 1.25rem;
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--space-12);
}

.tc-hero-cta-ateliers {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.tc-cta-primary-ateliers,
.tc-cta-secondary-ateliers {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.tc-cta-primary-ateliers {
  background: var(--sage-600);
  color: var(--white);
}

.tc-cta-primary-ateliers:hover {
  background: var(--sage-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(86, 108, 64, 0.25);
}

.tc-cta-secondary-ateliers {
  background: var(--white);
  color: var(--sage-600);
  border: 2px solid var(--sage-600);
}

.tc-cta-secondary-ateliers:hover {
  background: var(--sage-50);
}

/* ============================================
   PAGE D'ACCUEIL - PILIERS
   ============================================ */
.tc-piliers-section {
  padding: var(--space-20) 0;
  background: var(--white);
}

.tc-section-header-centered {
  max-width: 700px;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.tc-title-modern {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-4);
}

.tc-subtitle-modern {
  font-size: 1.125rem;
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.tc-piliers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.tc-pilier-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
}

.tc-pilier-card:hover {
  border-color: var(--sage-300);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.tc-pilier-featured {
  background: linear-gradient(135deg, var(--sage-50) 0%, var(--white) 100%);
  border: 2px solid var(--sage-400);
}

.tc-pilier-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-100);
  border-radius: var(--radius-md);
}

.tc-pilier-icon-featured {
  background: var(--sage-600);
}

.tc-pilier-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--sage-600);
}

.tc-pilier-icon-featured .material-symbols-outlined {
  color: var(--white);
}

.tc-pilier-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 var(--space-4);
}

.tc-pilier-desc {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--space-6);
}

.tc-pilier-ateliers {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--sage-100);
  color: var(--sage-600);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
}

/* ============================================
   PAGE D'ACCUEIL - PARCOURS (TIMELINE VERTICALE)
   ============================================ */
.tc-parcours-section {
  padding: var(--space-20) 0;
  background: var(--bg-gray);
}

.tc-progress-global {
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.tc-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.tc-progress-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.tc-progress-count {
  font-size: 0.875rem;
  color: var(--text-medium);
}

.tc-progress-bar-container {
  position: relative;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.tc-progress-bar-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--border-light);
}

.tc-progress-bar-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--sage-600) 0%, var(--sage-500) 100%);
  transition: width var(--transition-slow);
}

/* ============================================
   TIMELINE VERTICALE
   ============================================ */
.tc-ateliers-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: var(--space-12);
}

/* Ligne verticale */
.tc-ateliers-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--sage-200) 0%, var(--sage-100) 100%);
  border-radius: 2px;
}

.tc-timeline-item {
  position: relative;
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.tc-timeline-marker {
  position: absolute;
  left: -36px;
  top: 4px;
  z-index: 2;
}

.tc-timeline-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 3px solid var(--sage-200);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.tc-timeline-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--sage-600);
  transition: all var(--transition-normal);
}

.tc-timeline-content {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  position: relative;
  transition: all var(--transition-normal);
  display: block;
}

.tc-timeline-content:hover {
  border-color: var(--sage-400);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tc-timeline-item:hover .tc-timeline-icon {
  background: var(--sage-600);
  border-color: var(--sage-600);
  transform: scale(1.1);
}

.tc-timeline-item:hover .tc-timeline-icon .material-symbols-outlined {
  color: var(--white);
}

.tc-timeline-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--sage-100);
  color: var(--sage-600);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.tc-timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 var(--space-3);
  line-height: var(--line-height-tight);
}

.tc-timeline-desc {
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--space-4);
}

.tc-timeline-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--sage-600);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tc-timeline-action .material-symbols-outlined {
  font-size: 18px;
}

.tc-timeline-content:hover .tc-timeline-action {
  background: var(--sage-500);
  transform: translateX(4px);
}

.tc-timeline-status {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-gray);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

.tc-timeline-status .material-symbols-outlined {
  font-size: 16px;
}

.tc-timeline-status[data-status="completed"] {
  background: #d4edda;
  color: #155724;
}

.tc-timeline-status[data-status="in-progress"] {
  background: #fff3cd;
  color: #856404;
}

/* Loading skeleton */
.tc-loading-skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #f0f0f0 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   PAGE D'ACCUEIL - CTA FINAL
   ============================================ */
.tc-cta-final-ateliers {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-500) 100%);
}

.tc-cta-final-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.tc-cta-final-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space-4);
}

.tc-cta-final-text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--space-8);
}

.tc-btn-final-ateliers {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-12);
  background: var(--white);
  color: var(--sage-600);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.tc-btn-final-ateliers:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.tc-btn-sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-medium);
}

/* ============================================
   PAGE ATELIER - PROGRESS BAR (STICKY)
   ============================================ */
.tc-atelier-progress-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4) 0;
}

.tc-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.tc-progress-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tc-sidebar-toggle {
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-600);
  transition: all var(--transition-fast);
}

.tc-sidebar-toggle:hover {
  background: var(--sage-100);
  border-radius: var(--radius-sm);
}

.tc-sidebar-toggle .material-symbols-outlined {
  font-size: 24px;
}

.tc-progress-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--sage-100);
  color: var(--sage-600);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
}

.tc-progress-time {
  font-size: 0.875rem;
  color: var(--text-light);
}

.tc-progress-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tc-progress-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  color: var(--sage-600);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tc-progress-link:hover {
  background: var(--sage-100);
}

.tc-progress-link .material-symbols-outlined {
  font-size: 18px;
}

.tc-progress-track-top {
  position: relative;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.tc-progress-fill-top {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-600) 0%, var(--sage-500) 100%);
  transition: width var(--transition-slow);
}

/* ============================================
   PAGE ATELIER - LAYOUT
   ============================================ */
.tc-atelier-layout {
  display: flex;
  position: relative;
  min-height: 100vh;
}

/* ============================================
   PAGE ATELIER - SIDEBAR (COLLAPSIBLE)
   ============================================ */
.tc-atelier-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  overflow-y: auto;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.tc-atelier-sidebar.is-open {
  transform: translateX(0);
}

.tc-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.tc-sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.tc-sidebar-close {
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  transition: all var(--transition-fast);
}

.tc-sidebar-close:hover {
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
}

.tc-sidebar-close .material-symbols-outlined {
  font-size: 24px;
}

.tc-sidebar-menu {
  padding: var(--space-4);
}

.tc-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  margin-bottom: var(--space-2);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.tc-sidebar-link:hover {
  background: var(--sage-50);
}

.tc-sidebar-link.is-active {
  background: var(--sage-100);
  border-left: 3px solid var(--sage-600);
}

.tc-sidebar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-100);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.tc-sidebar-icon .material-symbols-outlined {
  font-size: 20px;
  color: var(--sage-600);
}

.tc-sidebar-content {
  flex-grow: 1;
}

.tc-sidebar-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
}

.tc-sidebar-subtitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.tc-sidebar-badge {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.tc-sidebar-badge.completed {
  background: #d4edda;
  color: #155724;
}

.tc-sidebar-badge.in-progress {
  background: #fff3cd;
  color: #856404;
}

.tc-sidebar-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--border-light);
}

.tc-sidebar-back {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  color: var(--text-medium);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tc-sidebar-back:hover {
  background: var(--bg-gray);
  color: var(--text-dark);
}

.tc-sidebar-back .material-symbols-outlined {
  font-size: 18px;
}

/* ============================================
   PAGE ATELIER - OVERLAY
   ============================================ */
.tc-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.tc-sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   PAGE ATELIER - MAIN CONTENT
   ============================================ */
.tc-atelier-main {
  flex-grow: 1;
  padding: var(--space-8) 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.atelier-section {
  margin-bottom: var(--space-12);
}

.atelier-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  margin-top: var(--space-12);
  border-top: 1px solid var(--border-light);
}

/* ============================================
   STYLES POUR CONTENU ATELIERS INDIVIDUELS
   (tc-card, tc-question-card, etc.)
   ============================================ */

/* Ghost article elements */
.tedcraft-custom-page .gh-article-header {
  margin-bottom: var(--space-8);
}

.tedcraft-custom-page .gh-article-title,
.tedcraft-custom-page #atelier-titre {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-6);
}

.tedcraft-custom-page .gh-article-excerpt,
.tedcraft-custom-page #atelier-description {
  font-size: 1.125rem;
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.tedcraft-custom-page .gh-content {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  line-height: var(--line-height-relaxed);
}

.tedcraft-custom-page .gh-content h2,
.tedcraft-custom-page .gh-content h3,
.tedcraft-custom-page .gh-content h4 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.tedcraft-custom-page .gh-content h2 {
  font-size: 2rem;
  font-weight: 700;
}

.tedcraft-custom-page .gh-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.tedcraft-custom-page .gh-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

.tedcraft-custom-page .gh-content p {
  margin-bottom: var(--space-4);
}

.tedcraft-custom-page .gh-content ul,
.tedcraft-custom-page .gh-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.tedcraft-custom-page .gh-content li {
  margin-bottom: var(--space-2);
}

.tedcraft-custom-page .gh-content strong {
  font-weight: 600;
  color: var(--text-dark);
}

.tedcraft-custom-page .gh-content em {
  font-style: italic;
  color: var(--text-medium);
}

.tedcraft-custom-page .gh-content a {
  color: var(--sage-600);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.tedcraft-custom-page .gh-content a:hover {
  color: var(--sage-500);
}

/* Card générique */
.tedcraft-custom-page .tc-card {
  background: linear-gradient(135deg,
    rgba(var(--stone-50-rgb), 0.98) 0%,
    rgba(248, 249, 244, 0.95) 100%);
  backdrop-filter: blur(1px);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  box-shadow:
    0 1px 3px rgba(var(--sage-500-rgb), 0.08),
    0 1px 2px rgba(var(--sage-500-rgb), 0.04),
    0 0 0 1px rgba(var(--sage-500-rgb), 0.06);
  border: none;
  transition: all var(--transition-fast);
}

.tedcraft-custom-page .tc-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(var(--sage-500-rgb), 0.12),
    0 2px 6px rgba(var(--sage-500-rgb), 0.08),
    0 0 0 1px rgba(var(--sage-500-rgb), 0.08);
}

/* Questions block */
.tedcraft-custom-page .tc-questions-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

/* Question card */
.tedcraft-custom-page .tc-question-card {
  flex-grow: 1;
  flex-shrink: 0;
}

.tedcraft-custom-page .tc-question-header {
  margin-bottom: var(--space-4);
}

.tedcraft-custom-page .tc-question-label {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tc-stone-800);
  display: block;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.tedcraft-custom-page .tc-question-description {
  font-size: 0.9rem;
  color: var(--tc-stone-600);
  font-style: italic;
  margin-top: var(--space-1);
  margin-bottom: var(--space-4);
}

/* Input fields */
.tedcraft-custom-page .tc-input-field {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(var(--sage-500-rgb), 0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--tc-stone-800);
  line-height: 1.6;
  transition: all var(--transition-fast);
  resize: vertical;
  min-height: 100px;
}

.tedcraft-custom-page .tc-input-field:focus {
  outline: none;
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(var(--sage-500-rgb), 0.1);
  background: rgba(255, 255, 255, 1);
}

.tedcraft-custom-page .tc-input-field::placeholder {
  color: var(--text-light);
  font-style: italic;
}

/* Select dropdown */
.tedcraft-custom-page .tc-select-field {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(var(--sage-500-rgb), 0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--tc-stone-800);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tedcraft-custom-page .tc-select-field:focus {
  outline: none;
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(var(--sage-500-rgb), 0.1);
}

/* Buttons */
.tedcraft-custom-page .tc-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--sage-600);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tedcraft-custom-page .tc-btn:hover {
  background: var(--sage-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--sage-500-rgb), 0.25);
}

.tedcraft-custom-page .tc-btn .material-symbols-outlined {
  font-size: 20px;
}

/* Save indicator */
.tedcraft-custom-page .tc-save-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--sage-100);
  color: var(--sage-600);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tedcraft-custom-page .tc-save-indicator.visible {
  opacity: 1;
}

/* Emotional tags */
.tedcraft-custom-page .tc-emotional-tags {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--sage-50), var(--tc-stone-50));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--sage-500-rgb), 0.1);
}

.tedcraft-custom-page .tc-tags-label {
  display: block;
  font-size: 0.875rem;
  color: var(--tc-stone-700);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.tedcraft-custom-page .tc-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tedcraft-custom-page .tc-emotional-tag {
  background: rgba(var(--stone-50-rgb), 0.8);
  border: 1px solid rgba(var(--sage-500-rgb), 0.2);
  color: var(--tc-stone-700);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.tedcraft-custom-page .tc-emotional-tag:hover {
  background: rgba(var(--sage-500-rgb), 0.1);
  border-color: rgba(var(--sage-500-rgb), 0.3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.tedcraft-custom-page .tc-emotional-tag.tc-tag-selected {
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  color: white;
  border-color: var(--sage-600);
  box-shadow: var(--shadow-md);
}

/* Module cards */
.tedcraft-custom-page .tc-module-card {
  background: linear-gradient(135deg,
    rgba(var(--stone-50-rgb), 0.98) 0%,
    rgba(248, 249, 244, 0.95) 100%);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(var(--sage-500-rgb), 0.1);
}

.tedcraft-custom-page .tc-module-header {
  margin-bottom: var(--space-6);
}

.tedcraft-custom-page .tc-module-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 var(--space-3);
}

.tedcraft-custom-page .tc-module-description {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Animations */
@keyframes tc-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tedcraft-custom-page .tc-card {
  animation: tc-fadeIn var(--transition-normal) forwards;
  opacity: 0;
}

.tedcraft-custom-page .tc-card:nth-child(1) { animation-delay: 0.05s; }
.tedcraft-custom-page .tc-card:nth-child(2) { animation-delay: 0.1s; }
.tedcraft-custom-page .tc-card:nth-child(3) { animation-delay: 0.15s; }
.tedcraft-custom-page .tc-card:nth-child(4) { animation-delay: 0.2s; }
.tedcraft-custom-page .tc-card:nth-child(5) { animation-delay: 0.25s; }

/* ============================================
   RESPONSIVE - TABLETTE PAYSAGE (1200px)
   ============================================ */
@media (max-width: 1200px) {
  .tedcraft-custom-page.tc-ateliers-accueil {
    width: 85vw;
  }

  .tc-piliers-grid {
    gap: var(--space-6);
  }

  .tc-ateliers-timeline {
    padding-left: var(--space-10);
  }
}

/* ============================================
   RESPONSIVE - TABLETTE PORTRAIT (1024px)
   ============================================ */
@media (max-width: 1024px) {
  .tedcraft-custom-page.tc-ateliers-accueil {
    width: 90vw;
  }

  .tc-hero-title-ateliers {
    font-size: 2.5rem;
  }

  .tc-hero-subtitle-ateliers {
    font-size: 1.125rem;
  }

  .tc-title-modern {
    font-size: 2rem;
  }

  .tc-piliers-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .tc-cta-final-title {
    font-size: 2rem;
  }
}

/* ============================================
   RESPONSIVE - MOBILE LARGE (768px)
   ============================================ */
@media (max-width: 768px) {
  .tedcraft-custom-page.tc-ateliers-accueil {
    width: 95vw;
  }

  .tc-hero-ateliers {
    padding: var(--space-12) 0 var(--space-8);
  }

  .tc-hero-title-ateliers {
    font-size: 2rem;
  }

  .tc-hero-subtitle-ateliers {
    font-size: 1rem;
  }

  .tc-hero-cta-ateliers {
    flex-direction: column;
  }

  .tc-cta-primary-ateliers,
  .tc-cta-secondary-ateliers {
    width: 100%;
    text-align: center;
  }

  .tc-piliers-section,
  .tc-parcours-section,
  .tc-cta-final-ateliers {
    padding: var(--space-12) 0;
  }

  .tc-title-modern {
    font-size: 1.75rem;
  }

  .tc-subtitle-modern {
    font-size: 1rem;
  }

  .tc-ateliers-timeline {
    padding-left: var(--space-8);
  }

  .tc-timeline-marker {
    left: -32px;
  }

  .tc-timeline-icon {
    width: 40px;
    height: 40px;
  }

  .tc-timeline-icon .material-symbols-outlined {
    font-size: 20px;
  }

  .tc-cta-final-title {
    font-size: 1.75rem;
  }

  .tc-cta-final-text {
    font-size: 1rem;
  }

  /* Sidebar full width on mobile */
  .tc-atelier-sidebar {
    width: 100%;
  }

  .tc-atelier-main {
    padding: var(--space-6) var(--space-4);
  }

  /* Cards mobile */
  .tedcraft-custom-page .tc-card {
    padding: var(--space-5);
  }

  .tedcraft-custom-page .tc-question-label {
    font-size: 1rem;
  }

  .tedcraft-custom-page .tc-input-field {
    padding: var(--space-3) var(--space-4);
    font-size: 0.9375rem;
  }
}

/* ============================================
   RESPONSIVE - MOBILE SMALL (480px)
   ============================================ */
@media (max-width: 480px) {
  .tedcraft-custom-page.tc-ateliers-accueil {
    width: 100%;
    padding: 0 var(--space-4);
  }

  .tc-hero-title-ateliers {
    font-size: 1.75rem;
  }

  .tc-hero-subtitle-ateliers {
    font-size: 0.9375rem;
  }

  .tc-title-modern {
    font-size: 1.5rem;
  }

  .tc-subtitle-modern {
    font-size: 0.9375rem;
  }

  .tc-pilier-card {
    padding: var(--space-6);
    border-radius: var(--radius-md);
  }

  .tc-ateliers-timeline::before {
    left: 20px;
  }

  .tc-timeline-marker {
    left: -28px;
  }

  .tc-timeline-icon {
    width: 36px;
    height: 36px;
  }

  .tc-timeline-content {
    padding: var(--space-4);
  }

  .tc-timeline-title {
    font-size: 1.125rem;
  }

  .tc-timeline-desc {
    font-size: 0.875rem;
  }

  .tc-timeline-status {
    position: static;
    margin-top: var(--space-3);
  }

  .tc-cta-final-title {
    font-size: 1.5rem;
  }

  .tc-btn-final-ateliers {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
  }

  .tc-progress-header {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .tc-progress-right {
    width: 100%;
    justify-content: flex-end;
  }

  /* Responsive emotional tags */
  .tedcraft-custom-page .tc-emotional-tag {
    font-size: 0.8125rem;
    padding: var(--space-1) var(--space-2);
  }
}
