/* ================================================================
   CSS TEDCRAFT - TON ATELIER - VERSION OPTIMISÉE
   ================================================================ */

/* Polices: Téléchargez ces polices et hébergez-les localement pour de meilleures performances.
   Si ce n'est pas possible, conservez le link dans default.hbs ou la balise <head> du template.
   Supprimez le @import si vous liez les polices via <link> dans default.hbs.
*/
/* @import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap'); */

/* ================================================================
   VARIABLES CSS - SYSTÈME COMPLET IDENTIQUE AU MODÈLE
   ================================================================ */
.tedcraft-custom-page {
  /* Variables couleurs exactes (pas de changement) */
  --sage-50: #f9f8f6;
  --sage-100: #f4f2ee;
  --sage-200: #ede8e0;
  --sage-300: #d8cfc2;
  --sage-400: #92a67f;
  --sage-500: #6b7c5a;
  --sage-600: #5a6b49;
  --sage-700: #4d5a3f;
  --sage-800: #404a35;
  --stone-50: #fdfcfa;
  --stone-100: #f7f5f2;
  --stone-200: #efebe6;
  --stone-300: #e2ddd6;
  --stone-400: #c4bab0;
  --stone-500: #8f8075;
  --stone-600: #6b5d52;
  --stone-700: #544840;
  --stone-800: #3d322a;
  --copper-400: #d4965a;
  --copper-500: #c08552;
  --copper-600: #a67247;
  
  /* Typographie */
--font-serif: Georgia, serif; /* Remplace 'Crimson Text' par une police serif système */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; /* Remplace 'Inter' et 'Manrope' par une pile de polices sans-serif système */
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, Courier, monospace; /* Remplace 'JetBrains Mono' par une pile de polices mono système */
  
  /* Espacements */
  --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;
  
  /* Ombres */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;

  /* Styles du conteneur principal */
  font-family: var(--font-sans);
  color: var(--stone-700);
  background-color: var(--stone-50);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  
  /* Container premium */
  width: 60vw;
  max-width: 1400px;
  margin-left: calc(-30vw + 50%);
  margin-right: calc(-30vw + 50%);
  position: relative;
  
  /* Effet premium */
  border-radius: 24px 24px 0 0;
  box-shadow: 
    0 0 0 1px rgba(117, 140, 99, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(117, 140, 99, 0.15);
  border-bottom: none;
  background: linear-gradient(180deg, 
    var(--stone-50) 0%,
    rgba(249, 248, 246, 0.98) 50%,
    rgba(244, 242, 238, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Pseudos éléments */
.tedcraft-custom-page::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(117, 140, 99, 0.05) 0%,
    transparent 50%,
    rgba(194, 117, 58, 0.03) 100%
  );
  border-radius: 26px 26px 0 0;
  z-index: -1;
  filter: blur(1px);
}

.tedcraft-custom-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(117, 140, 99, 0.3) 25%,
    rgba(117, 140, 99, 0.5) 50%,
    rgba(117, 140, 99, 0.3) 75%,
    transparent 100%
  );
  border-radius: 24px 24px 0 0;
  z-index: 2;
}

/* Reset CSS */
.tedcraft-custom-page *,
.tedcraft-custom-page *::before,
.tedcraft-custom-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Sélections */
.tedcraft-custom-page ::selection {
  background: var(--sage-500);
  color: white;
  text-shadow: none;
}

.tedcraft-custom-page ::-moz-selection {
  background: var(--sage-500);
  color: white;
  text-shadow: none;
}

    #authenticated-view.is-visible,
    #unauthenticated-view.is-visible {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }



/* ================================================================
   ANIMATIONS (Nettoyées et non dupliquées)
   ================================================================ */
@keyframes tc-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); box-shadow: 0 0 0 0 rgba(107, 124, 90, 0.3); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 0 8px rgba(107, 124, 90, 0.1); }
}

@keyframes tc-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes tc-slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tc-slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tc-floating-particles {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
  33% { transform: translate(-10px, -15px) rotate(120deg); opacity: 0.8; }
  66% { transform: translate(15px, -10px) rotate(240deg); opacity: 0.4; }
  100% { transform: translate(0, 0) rotate(360deg); opacity: 0.6; }
}

@keyframes tc-floating-particles-slow {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.4; }
  50% { transform: translate(-8px, 12px) rotate(180deg) scale(1.1); opacity: 0.7; }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0.4; }
}

@keyframes tc-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tc-glow {
  0%, 100% { box-shadow: var(--shadow-lg); }
  50% { box-shadow: var(--shadow-xl), 0 0 30px rgba(117, 140, 99, 0.2); }
}

@keyframes tc-premium-glow {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(117, 140, 99, 0.03),
      0 0 40px rgba(117, 140, 99, 0.02),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% { 
    box-shadow: 
      0 0 30px rgba(117, 140, 99, 0.06),
      0 0 60px rgba(117, 140, 99, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

@keyframes tc-subtle-shimmer {
  0% { 
    background-position: -200% 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% { 
    background-position: 200% 0;
    opacity: 0;
  }
}

@keyframes tc-gentle-breathe {
  0%, 100% { 
    transform: scale(1);
    filter: brightness(1);
  }
  50% { 
    transform: scale(1.002);
    filter: brightness(1.02);
  }
}

@keyframes tc-elegant-aurora {
  0% { 
    background-position: 0% 50%;
    opacity: 0.3;
  }
  25% {
    background-position: 50% 0%;
    opacity: 0.5;
  }
  50% { 
    background-position: 100% 50%;
    opacity: 0.4;
  }
  75% {
    background-position: 50% 100%;
    opacity: 0.6;
  }
  100% { 
    background-position: 0% 50%;
    opacity: 0.3;
  }
}

/* ================================================================
   TYPOGRAPHY (Aucun changement nécessaire)
   ================================================================ */
.tc-display {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--stone-800);
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "kern" 1, "liga" 1;
  font-feature-settings: "kern" 1, "liga" 1;
  background: linear-gradient(135deg, var(--stone-800) 0%, var(--stone-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tc-title-1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--stone-800);
  text-rendering: optimizeLegibility;
  margin-bottom: var(--space-2);
}

.tc-title-2 {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--stone-800);
  text-rendering: optimizeLegibility;
}

.tc-body-lg {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--stone-600);
  letter-spacing: -0.005em;
}

.tc-body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--stone-600);
  letter-spacing: -0.003em;
}

.tc-caption {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--stone-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tc-section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-style: italic;
  color: var(--stone-500);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.005em;
  margin-top: var(--space-6);
}

.tc-hero-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-style: italic;
  color: var(--stone-700);
  line-height: 1.5;
  text-align: center;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.tc-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin: 0;
  color: var(--stone-800);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  position: relative;
  text-rendering: optimizeLegibility;
  text-align: left;
  display: block;
}

.tc-card-text {
  font-family: var(--font-sans);
  margin: var(--space-3) 0 var(--space-3);
  line-height: 1.6;
  color: var(--stone-600);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.003em;
}

.tc-card-quote {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, var(--sage-50), rgba(117, 140, 99, 0.08));
  border: 1px solid var(--sage-200);
  border-left: 4px solid var(--sage-400);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sage-800);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tc-badge-text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stone-800);
  letter-spacing: 0.02em;
}

.tc-centered-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.tedcraft-custom-page strong {
  font-weight: 600;
  color: var(--stone-800);
  letter-spacing: -0.01em;
}

.tedcraft-custom-page em {
  font-style: italic;
  color: var(--sage-700);
  font-weight: 500;
}

.tedcraft-custom-page h1, 
.tedcraft-custom-page h2, 
.tedcraft-custom-page h3, 
.tedcraft-custom-page h4, 
.tedcraft-custom-page h5, 
.tedcraft-custom-page h6 {
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "kern" 1, "liga" 1;
  font-feature-settings: "kern" 1, "liga" 1;
}

.tedcraft-custom-page p {
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================================
   LAYOUT (Aucun changement nécessaire)
   ================================================================ */
.tc-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

.tc-section {
  padding: var(--space-12) 0;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
}

.tc-section .tc-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

.tc-section-header {
  text-align: center;
  max-width: min(800px, 65vw);
  margin: 0 auto var(--space-8);
  opacity: 0;
  transform: translateY(20px);
  animation: tc-slideUp 0.8s ease-out 0.1s both;
}

/* ================================================================
   HERO SECTION (Aucun changement nécessaire)
   ================================================================ */
.tc-hero {
  min-height: 30vh;
  display: flex;
  align-items: center;
  background: 
    linear-gradient(135deg, var(--sage-50) 0%, var(--stone-50) 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Couche d'animation premium subtile */
.tc-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(117, 140, 99, 0.03) 50%,
    transparent 70%
  );
  background-size: 400% 400%;
  animation: tc-elegant-aurora 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Effet de shimmer très subtil sur le contenu */
.tc-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 30%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.02) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: tc-subtle-shimmer 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.tc-hero .tc-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

/* Animation premium pour le badge */
.tc-badge {
  position: absolute;
  top: var(--space-8);
  left: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(117, 140, 99, 0.2);
  border-radius: 50px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(117, 140, 99, 0.1);
  z-index: 10;
  transition: all var(--duration-300) var(--ease-out);
  animation: tc-slideUp 0.8s ease-out 0.5s both, tc-premium-glow 8s ease-in-out infinite;
}

.tc-badge:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  box-shadow: 
    var(--shadow-lg), 
    0 0 0 1px rgba(117, 140, 99, 0.2),
    0 0 40px rgba(117, 140, 99, 0.1);
  animation: tc-premium-glow 4s ease-in-out infinite;
}

/* Animation douce pour le contenu hero */
.tc-hero-content {
  width: 100%;
  max-width: min(900px, 70vw);
  text-align: center;
  margin: 5rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: tc-gentle-breathe 12s ease-in-out infinite;
}

/* Effet premium sur la quote */
.tc-hero-quote {
  margin: var(--space-16) 0 var(--space-8);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(117, 140, 99, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: tc-slideUp 0.8s ease-out 1.8s both, tc-premium-glow 10s ease-in-out 2s infinite;
}

.tc-hero-quote::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage-400), transparent);
  border-radius: 1px;
  animation: tc-subtle-shimmer 15s ease-in-out infinite;
}

.tc-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--sage-500);
  border-radius: 50%;
  animation: tc-pulse 4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(107, 124, 90, 0.3);
}
.tc-hero-content::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--sage-400) 0%, transparent 70%);
  border-radius: 50%;
  animation: tc-floating-particles 15s ease-in-out infinite;
  opacity: 0.6;
}

.tc-hero-content::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, var(--copper-400) 0%, transparent 70%);
  border-radius: 50%;
  animation: tc-floating-particles-slow 18s ease-in-out infinite;
  opacity: 0.5;
}

/* ================================================================
   CTA SYSTEM (Aucun changement nécessaire)
   ================================================================ */
.tc-cta-container {
  display: flex;
  justify-content: center;
  margin: var(--space-6) 0 var(--space-3) 0;
}

.tc-cta-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-8);
  background: linear-gradient(135deg, var(--sage-500) 0%, var(--sage-600) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  transition: all var(--duration-300) var(--ease-out);
  box-shadow: 0 3px 8px rgba(107, 124, 90, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: tc-slideUp 0.8s ease-out 2.2s both;
}

.tc-cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--duration-500) var(--ease-out);
}

.tc-cta-primary:hover::before {
  left: 100%;
}

.tc-cta-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--duration-300) var(--ease-out);
  pointer-events: none;
}

.tc-cta-primary:hover::after {
  width: 100px;
  height: 100px;
  opacity: 0;
}

.tc-cta-primary:hover {
  background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-700) 100%);
  color: #fff !important;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 25px rgba(107, 124, 90, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tc-cta-primary:focus {
  outline: 3px solid rgba(107, 124, 90, 0.5);
  outline-offset: 2px;
  color: #fff !important;
}

.tc-cta-sublabel {
  font-size: 0.65rem;
  opacity: 0.85;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tc-cta-secondary {
  display: inline-block;
  padding: var(--space-4) var(--space-6);
  background: rgba(107, 124, 90, 0.02);
  color: var(--sage-700);
  text-decoration: none;
  border: 2px solid var(--sage-500);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--duration-300) var(--ease-out);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.tc-cta-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--sage-500);
  transition: left var(--duration-300) var(--ease-out);
  z-index: -1;
}

.tc-cta-secondary:hover::before {
  left: 0;
}

.tc-cta-secondary:hover {
  color: #fff !important;
  border-color: var(--sage-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ================================================================
   CARDS SYSTEM (Aucun changement nécessaire)
   ================================================================ */
.tc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
  justify-items: center;
}

.tc-card {
  background: linear-gradient(135deg, white 0%, var(--sage-50) 100%);
  padding: var(--space-6);
  border-radius: 24px;
  border: 1px solid var(--sage-100);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all var(--duration-300) var(--ease-out);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: tc-slideUp 0.8s ease-out forwards;
  contain: layout style paint;
  min-height: auto;
}

.tc-card:nth-child(1) { animation-delay: 0.2s; }
.tc-card:nth-child(2) { animation-delay: 0.4s; }
.tc-card:nth-child(3) { animation-delay: 0.6s; }

.tc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage-500), var(--copper-500), var(--sage-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-300) var(--ease-out);
}

.tc-card:hover::before {
  transform: scaleX(1);
}

.tc-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(117, 140, 99, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--duration-300) var(--ease-out);
}

.tc-card:hover::after {
  opacity: 1;
}

.tc-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px var(--sage-200);
  border-color: var(--sage-200);
}

.tc-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--sage-100);
  position: relative;
  text-align: left;
}

.tc-card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--sage-400), transparent);
  border-radius: 1px;
}

.tc-card-header.justify-center {
  justify-content: center;
  text-align: center;
}

.tc-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--sage-200), var(--sage-300));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-300) var(--ease-out);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  align-self: flex-start;
  margin-top: 2px;
}

.tc-card-icon::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 14px;
  opacity: 0;
  transition: opacity var(--duration-300) var(--ease-out);
  z-index: 1;
  pointer-events: none;
}

.tc-card:hover .tc-card-icon {
  transform: scale(1.1) rotate(-2deg);
  background: linear-gradient(135deg, var(--sage-300), var(--sage-400));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tc-card:hover .tc-card-icon::before {
  opacity: 1;
}

.tc-card-content {
  flex: 1;
  text-align: left;
}

.tc-card-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--sage-400), transparent);
  border-radius: 1px;
  opacity: 0;
  transition: all var(--duration-300) var(--ease-out);
}

.tc-card:hover .tc-card-title::after {
  opacity: 1;
  width: 40px;
}

.tc-card-quote::before {
  content: '"';
  position: absolute;
  top: -4px;
  left: -2px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--sage-400);
  font-weight: 400;
  line-height: 1;
}

/* ================================================================
   BACKGROUND VARIANTS (Aucun changement nécessaire)
   ================================================================ */
.tc-bg-cream {
  background: radial-gradient(circle at 10% 90%, rgba(117, 140, 99, 0.08) 0%, transparent 50%), 
              linear-gradient(135deg, var(--sage-100) 0%, var(--sage-50) 100%);
}

.tc-bg-white {
  background: linear-gradient(135deg, var(--stone-50) 0%, white 100%);
}

/* ================================================================
   SECTION DECORATIONS (Aucun changement nécessaire)
   ================================================================ */
.tc-section:not(:first-child) {
  border-top: 2px solid transparent;
  background: linear-gradient(var(--stone-50), var(--stone-50)) padding-box,
              linear-gradient(90deg, transparent 20%, var(--sage-400) 35%, var(--sage-500) 50%, var(--sage-400) 65%, transparent 80%) border-box;
  position: relative;
}

.tc-section:not(:first-child)::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  border-radius: 50%;
  border: 3px solid var(--stone-50);
  box-shadow: 0 0 0 1px var(--sage-200), 0 2px 8px rgba(107, 124, 90, 0.25);
  opacity: 0;
  animation: tc-slideUp 0.8s ease-out 0.5s both, tc-pulse 3s ease-in-out 1s infinite;
  z-index: 10;
}

.tc-section-line-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, 
    transparent 0%,
    var(--sage-300) 20%,
    var(--sage-400) 50%,
    var(--sage-300) 80%,
    transparent 100%
  );
  opacity: 0.6;
}

/* ================================================================
   CARD DIAGNOSTIC - SPÉCIALE COMME HOMEPAGE (Aucun changement nécessaire)
   ================================================================ */
.tc-diagnostic-card {
  text-align: center;
}

.tc-diagnostic-card .tc-card-header {
  justify-content: center;
  text-align: center;
  border-bottom: none;
}

.tc-diagnostic-card .tc-card-header::after {
  display: none;
}

.tc-features-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.tc-feature-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 20%;
  gap: var(--space-3);
  width: 100%;
}

.tc-feature-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 0;
  padding-top: 0;
  text-align: left;
  flex-grow: 1;
}

.tc-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  margin-right: var(--space-2);
}

.tc-feature-icon .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tc-elegant-box {
  background: linear-gradient(135deg, var(--sage-50) 80%, #fff 100%);
  border: 1px solid var(--sage-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255,255,255,0.7);
  padding: var(--space-5) var(--space-6);
  width: 100%;
  text-align: center;
}

.tc-italic-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sage-700);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
}

.tc-closing-text {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
  margin-bottom: 0;
}

/* ================================================================
   GESTION DE LA VISIBILITÉ DES VUES (Optimisée)
   ================================================================ */
/* Masque l'overlay de chargement par défaut. JS le montrera temporairement. */
#auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex; /* Maintien flex pour le centrage */
    align-items: center;
    justify-content: center;
    opacity: 0; /* COMMENCE INVISIBLE */
    pointer-events: none; /* NON INTERACTIF PAR DÉFAUT */
    transition: opacity 0.3s ease; /* Transition pour apparition/disparition */
}

/* L'overlay devient visible quand JS ajoute cette classe */
#auth-loading-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Styles pour le chargement - Inchangé */
.tc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-16);
    color: var(--stone-600);
}

.tc-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--sage-200);
    border-top: 4px solid var(--sage-500);
    border-radius: 50%;
    animation: tc-rotate 1s linear infinite;
}

.tc-loading p {
    font-size: 1.125rem;
    margin: 0;
}

/* Styles des vues : Masquées par défaut, JS les rendra visibles */
#unauthenticated-view,
#authenticated-view {
    display: none; /* Masqué par défaut */
    opacity: 0; /* Pour la transition */
    transition: opacity 0.3s ease-out; /* Ajoute une transition d'opacité */
    pointer-events: none; /* Empêche les interactions quand masqué */
}

/* Classes ajoutées par JS pour rendre les vues visibles */
#unauthenticated-view.is-visible,
#authenticated-view.is-visible {
    display: block; /* Ou flex, ou grid, selon ce que le conteneur #authenticated-view doit être */
    opacity: 1;
    pointer-events: auto;
}

/* Classe ajoutée par JS pour masquer les vues */
#unauthenticated-view.is-hidden,
#authenticated-view.is-hidden {
    opacity: 0;
    pointer-events: none;
    /* Le display: none; sera appliqué par JS APRES la transition d'opacité */
}

/* ================================================================
   NAVIGATION TABS - SPÉCIFIQUE TON ATELIER (Aucun changement nécessaire)
   ================================================================ */
.tc-nav-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-8) 0;
  padding: 0 var(--space-4);
  flex-wrap: wrap;
}

.tc-nav-tab {
  padding: var(--space-3) var(--space-6);
  border-radius: 12px;
  text-decoration: none;
  color: var(--stone-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--duration-300) var(--ease-out);
  border: 1px solid transparent;
  background: var(--stone-100);
  position: relative;
  overflow: hidden;
}

.tc-nav-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  transition: left var(--duration-300) var(--ease-out);
  z-index: -1;
}

.tc-nav-tab.active,
.tc-nav-tab:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tc-nav-tab.active::before,
.tc-nav-tab:hover::before {
  left: 0;
}

/* ================================================================
   SECTIONS DE CONTENU - TON ATELIER (Optimisées)
   ================================================================ */
.tc-content-section {
  transition: opacity 0.3s ease-out;
}

.tc-content-section.active {
  display: block; /* Ou flex */
  opacity: 1;
}

/* ================================================================
   CONTENT GRIDS (ATELIERS/DISPOSITIFS) (Aucun changement nécessaire)
   ================================================================ */
.tc-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

/* ================================================================
   DASHBOARD STYLES (Aucun changement nécessaire)
   ================================================================ */
.tc-dashboard-welcome {
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  padding: var(--space-10);
  border-radius: 20px;
  margin-bottom: var(--space-12);
  text-align: center;
}

.tc-progress-container {
  max-width: 600px;
  margin: 0 auto;
}

.tc-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--stone-200);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.tc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-400), var(--sage-600));
  border-radius: 6px;
  transition: width 1s ease-out;
}

.tc-progress-text {
  font-size: 1rem;
  color: var(--stone-600);
  margin: 0;
}

/* ================================================================
   MATERIAL SYMBOLS ICONS (Aucun changement nécessaire)
   ================================================================ */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 30px;
  color: var(--sage-700);
  display: inline-block;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tc-card-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--sage-700);
  transition: color var(--duration-300) var(--ease-out);
}

.tc-card:hover .tc-card-icon .material-symbols-outlined {
  color: var(--sage-800);
}

.tc-feature-item .material-symbols-outlined {
  font-size: 18px !important;
  flex-shrink: 0;
}

/* ================================================================
   UTILITY CLASSES (Aucun changement nécessaire)
   ================================================================ */
.text-center, .tc-text-center { text-align: center; }
.text-left, .tc-text-left { text-align: left; }
.text-right, .tc-text-right { text-align: right; }

.mt-2, .tc-mt-2 { margin-top: var(--space-2); }
.mt-4, .tc-mt-4 { margin-top: var(--space-4); }
.mt-6, .tc-mt-6 { margin-top: var(--space-6); }
.mt-8, .tc-mt-8 { margin-top: var(--space-8); }
.mt-12, .tc-mt-12 { margin-top: var(--space-12); }

.mb-2, .tc-mb-2 { margin-bottom: var(--space-2); }
.mb-4, .tc-mb-4 { margin-bottom: var(--space-4); }
.mb-6, .tc-mb-6 { margin-bottom: var(--space-6); }
.mb-8, .tc-mb-8 { margin-bottom: var(--space-8); }
.mb-12, .tc-mb-12 { margin-bottom: var(--space-12); }

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

/* ================================================================
   RESPONSIVE DESIGN (Aucun changement nécessaire)
   ================================================================ */
@media (max-width: 1700px) {
  .tc-cards-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: var(--space-8) auto 0;
    gap: var(--space-6);
  }
  
  .tc-card {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .tedcraft-custom-page {
    width: 85vw;
    margin-left: calc(-42.5vw + 50%);
    margin-right: calc(-42.5vw + 50%);
  }
  
  .tc-hero, .tc-section {
    width: 100% !important;
    position: static;
  }
  
  .tc-container, .tc-hero .tc-container, .tc-section .tc-container {
    max-width: 100%;
    padding: 0 var(--space-6);
  }
}

@media (max-width: 768px) {
  .tedcraft-custom-page {
    width: 95vw;
    margin-left: calc(-47.5vw + 50%);
    margin-right: calc(-47.5vw + 50%);
    border-radius: 16px 16px 0 0;
  }
  
  .tedcraft-custom-page::before {
    border-radius: 18px 18px 0 0;
  }
  
  .tedcraft-custom-page .tc-container {
    padding: 0 var(--space-4);
  }
  
  .tc-section {
    padding: var(--space-12) 0;
  }
  
  .tc-hero {
    border-radius: 16px 16px 0 0;
    padding-top: var(--space-6);
  }
  
  .tc-badge {
    position: relative;
    top: auto !important;
    left: auto !important;
    margin: var(--space-8) auto var(--space-8) auto;
    align-self: center;
  }
  
  .tc-hero-quote {
    margin: var(--space-8) 0 var(--space-6);
    padding: var(--space-5);
  }
  
  .tc-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-8);
  }
  
  .tc-card {
    padding: var(--space-6);
    max-width: none;
  }
  
  .tc-card-header {
    gap: var(--space-3);
  }
  
  .tc-card-icon {
    width: 36px;
    height: 36px;
  }
  
  .tc-card-icon .material-symbols-outlined {
    font-size: 18px;
  }
  
  .tc-section-header {
    margin-bottom: var(--space-8);
  }
  
  /* Navigation mobile */
  .tc-nav-tabs {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  
  .tc-nav-tab {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
  
  .tc-content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .tc-features-grid {
    display: flex;
    flex-direction: column;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  
  .tc-feature-item {
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 0;
  }
  
  .tc-feature-icon .material-symbols-outlined {
    font-size: 18px;
  }
  
  .tc-feature-text {
    font-size: 0.875rem;
  }
  
  .tc-dashboard-welcome {
    padding: var(--space-8) var(--space-6);
  }
  
  .tc-card.tc-diagnostic-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .tedcraft-custom-page {
    width: 98vw;
    margin-left: calc(-49vw + 50%);
    margin-right: calc(-49vw + 50%);
    border-radius: 12px 12px 0 0;
  }
  
  .tedcraft-custom-page::before {
    border-radius: 14px 14px 0 0;
  }
  
  .tc-hero {
    border-radius: 12px 12px 0 0;
  }
  
  .tc-badge {
    position: static !important;
    margin: var(--space-6) var(--space-4) var(--space-6) var(--space-4) !important;
    width: calc(100% - 1rem) !important;
    max-width: 280px !important;
    padding: var(--space-4) var(--space-6) !important;
    text-align: center !important;
  }
  
  .tc-badge-text {
    font-size: 0.8125rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }
  
  .tc-card {
    padding: var(--space-5);
  }
  
  .tc-dashboard-welcome {
    padding: var(--space-6) var(--space-4);
  }
  
  .tc-card.tc-diagnostic-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 1200px) {
  .tc-container, .tc-hero .tc-container, .tc-section .tc-container {
    max-width: 1600px;
    padding: 0 var(--space-8);
  }
  
  .tc-hero {
    border-radius: 12px 12px 0 0;
    min-height: 30vh;
    padding: var(--space-8) 0;
  }
  
  .tc-hero-content {
    max-width: min(1200px, 80vw);
  }
  
  .tc-hero-quote {
    margin: var(--space-12) 0 var(--space-6);
    padding: var(--space-5);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .tc-section {
    padding: var(--space-10) 0;
  }
  
  .tc-section-header {
    margin-bottom: var(--space-6);
    max-width: min(1000px, 75vw);
  }
  
  .tc-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 600px;
    margin: var(--space-6) auto 0;
  }
  
  .tc-card {
    padding: var(--space-5);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
  }
  
  .tc-card-header {
    margin-bottom: var(--space-4);
    flex-shrink: 0;
  }
  
  .tc-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .tc-card-text {
    flex: 1;
  }
  
  .tc-card-quote {
    margin-top: var(--space-3);
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

@media (min-width: 1700px) {
  .tc-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
    max-width: 1400px;
  }
}

@media (min-width: 1400px) {
  .tc-container, .tc-hero .tc-container, .tc-section .tc-container {
    max-width: 1800px;
    padding: 0 var(--space-10);
  }
  
  .tc-hero {
    min-height: 30vh;
    padding: var(--space-6) 0;
  }
  
  .tc-hero-content {
    max-width: min(1300px, 75vw);
  }
  
  .tc-card {
    padding: var(--space-5);
    min-height: 250px;
  }
  
  .tc-card-title {
    font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  }
  
  .tc-card-text {
    font-size: 1.125rem;
    line-height: 1.75;
  }
  
  .tc-cards-grid {
    max-width: 1600px;
    gap: var(--space-10);
  }
}

/* ================================================================
   FOCUS ET ACCESSIBILITÉ (Aucun changement nécessaire)
   ================================================================ */
.tedcraft-custom-page *:focus {
  outline: 2px solid var(--sage-400);
  outline-offset: 2px;
}

.tedcraft-custom-page *:focus:not(:focus-visible) {
  outline: none;
}

.tc-cta-primary:focus, .tc-cta-secondary:focus, .tc-nav-tab:focus {
  outline: 3px solid var(--sage-300);
  outline-offset: 2px;
}

.tc-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-300);
}

/* ================================================================
   PERFORMANCE (Aucun changement nécessaire)
   ================================================================ */
.tc-hero, .tc-section {
  will-change: transform;
}

.tc-card {
  contain: layout style paint;
}

.tc-cta-primary, .tc-cta-secondary, .tc-nav-tab {
  will-change: transform;
}

.tc-badge, .tc-hero-content, .tc-card, .tc-section-header {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ================================================================
   SCROLLBAR PERSONNALISÉE (Aucun changement nécessaire)
   ================================================================ */
.tedcraft-custom-page::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.tedcraft-custom-page::-webkit-scrollbar-track {
  background: var(--sage-50);
  border-radius: 5px;
}

.tedcraft-custom-page::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  border-radius: 5px;
  border: 2px solid var(--sage-50);
}

.tedcraft-custom-page::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
}

/* ================================================================
   MODE SOMBRE (Aucun changement nécessaire)
   ================================================================ */
@media (prefers-color-scheme: dark) {
  .tedcraft-custom-page {
    --stone-50: #1c1917;
    --stone-100: #292524;
    --stone-200: #44403c;
    --stone-300: #57534e;
    --stone-400: #78716c;
    --stone-500: #a8a29e;
    --stone-600: #d6d3d1;
    --stone-700: #e7e5e4;
    --stone-800: #f5f5f4;
    --sage-50: #1a1f17;
    --sage-100: #232a1e;
    --sage-200: #2d3629;
    --sage-300: #384235;
    --sage-400: #4d5a3f;
    --sage-500: #6b7c5a;
    --sage-600: #92a67f;
    
    background-color: var(--stone-50);
    color: var(--stone-700);
  }
  
  .tc-card, .tc-dashboard-welcome {
    background: var(--stone-100);
    border-color: var(--sage-200);
    color: var(--stone-700);
  }
  
  .tc-hero {
    background: 
      linear-gradient(135deg, var(--sage-50) 0%, var(--stone-50) 100%);
    padding-top: var(--space-8);
    border-radius: 24px 24px 0 0;
  }
  
  .tc-hero::before {
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(117, 140, 99, 0.02) 50%,
      transparent 70%
    );
  }
}


/* ================================================================
   RÉDUCTION DU MOUVEMENT POUR ACCESSIBILITÉ (Aucun changement nécessaire)
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .tedcraft-custom-page *,
  .tedcraft-custom-page *::before,
  .tedcraft-custom-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .tc-hero::before, .tc-hero::after {
    animation: none !important;
  }
  
  .tc-card:hover, .tc-cta-primary:hover, .tc-cta-secondary:hover, .tc-nav-tab:hover {
    transition-duration: 0.1s !important;
  }
}

/* ================================================================
   PHILOSOPHY/SOLUTION CARDS - STRUCTURE ORIGINALE (Aucun changement nécessaire)
   ================================================================ */
.tc-solution-philosophy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.tc-philosophy-card {
  background: white;
  padding: var(--space-8);
  border-radius: 20px;
  border: 1px solid var(--sage-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-300) var(--ease-out);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: tc-slideUp 0.8s ease-out forwards;
}

.tc-philosophy-card:nth-child(1) { animation-delay: 0.2s; }
.tc-philosophy-card:nth-child(2) { animation-delay: 0.4s; }

.tc-philosophy-card.negative {
  border-left: 4px solid var(--copper-500);
}

.tc-philosophy-card.positive {
  border-left: 4px solid var(--sage-500);
}

.tc-philosophy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.tc-philosophy-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.tc-philosophy-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-200));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-philosophy-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--sage-700);
}

.tc-philosophy-title h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--stone-800);
  margin: 0 0 var(--space-1) 0;
  line-height: 1.3;
}

.tc-philosophy-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tc-philosophy-content li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  font-size: 1rem;
  color: var(--stone-700);
  line-height: 1.6;
}

.tc-philosophy-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sage-500);
  font-weight: bold;
  font-size: 1.2em;
}

.tc-philosophy-content li:last-child {
  margin-bottom: 0;
}
.tc-card-img img{
  border-radius: 12px;
}

/* Process Transformation - Styles de base */
.tc-process-transformation {
  background: linear-gradient(135deg, var(--stone-50) 0%, var(--sage-50) 100%);
  border-radius: 20px;
  padding: var(--space-12) var(--space-8);
  margin: var(--space-12) 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Layout desktop par défaut (>1024px) */
.tc-process-flow-spectacular {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: var(--space-6);
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.tc-process-card {
  background: white;
  padding: var(--space-6);
  border-radius: 20px;
  border: 1px solid var(--sage-200);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-300) var(--ease-out);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  min-height: 350px;
}

.tc-process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.tc-process-header-spectacular {
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tc-process-icon-spectacular {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sage-200), var(--sage-400));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.tc-process-icon-spectacular .material-symbols-outlined {
  font-size: 28px;
  color: var(--sage-800);
}

.tc-process-title-spectacular {
  flex: 1;
}

.tc-process-title-spectacular h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--stone-800);
  margin: 0 0 var(--space-1) 0;
  line-height: 1.3;
}

.tc-subtitle-accent {
  font-size: 0.8125rem;
  color: var(--sage-600);
  font-weight: 500;
  font-style: italic;
}

.tc-subtitle-accent.success {
  color: var(--sage-700);
}

/* Transformation Bridge - Desktop */
.tc-transformation-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  position: relative;
  justify-self: center;
  align-self: center;
}

.tc-magic-wand {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--copper-400), var(--copper-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tc-pulse 2s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.tc-magic-wand .material-symbols-outlined {
  font-size: 24px;
  color: white;
}

.tc-transformation-text {
  font-size: 0.6875rem;
  color: var(--copper-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}
/* ... (Conservez tout le CSS précédent de la version optimisée) ... */

/* Styles pour le bouton du dashboard en haut */
.tc-dashboard-button-container {
    margin-top: var(--space-8); /* Ajustez selon l'espacement souhaité */
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: tc-slideUp 0.8s ease-out 2s both; /* Animation pour l'apparition */
}

.tc-dashboard-access-btn {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
    background: var(--sage-500);
    border-radius: 10px;
    color: var(--sage-100);
}
.tc-dashboard-access-btn:hover {
    background: var(--sage-600);
    border-radius: 10px;
    color: var(--sage-100);
}

/* Vous pouvez supprimer les styles spécifiques à .tc-nav-tabs si vous êtes sûr de ne plus les utiliser nulle part */
/* .tc-nav-tabs { display: none; ... } */
/* .tc-nav-tab { ... } */
/* Flèches desktop */
.tc-transformation-bridge::before,
.tc-transformation-bridge::after {
  content: '→';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--copper-500);
  font-weight: bold;
}

.tc-transformation-bridge::before {
  left: -25px;
}

.tc-transformation-bridge::after {
  right: -25px;
}

/* Process Content Lists */
.tc-blocages-visual,
.tc-solutions-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tc-blocage-item,
.tc-solution-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--stone-50);
  border-radius: 8px;
  border: 1px solid var(--stone-200);
}

.tc-blocage-weight {
  width: 12px;
  height: 12px;
  background: var(--copper-500);
  border-radius: 50%;
  flex-shrink: 0;
}

.tc-solution-checkmark {
  width: 20px;
  height: 20px;
  background: var(--sage-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-solution-checkmark .material-symbols-outlined {
  font-size: 16px;
  color: white;
}

.tc-solution-checkmark.gold {
  background: linear-gradient(135deg, var(--copper-400), var(--copper-600));
}

.tc-blocage-item span,
.tc-solution-item span {
  font-size: 0.95rem;
  color: var(--stone-700);
  line-height: 1.4;
}

.tc-solution-item.highlight span {
  font-weight: 600;
  color: var(--stone-800);
}

/* Benefits Grid */
.tc-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.tc-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: white;
  padding: var(--space-6);
  border-radius: 16px;
  border: 1px solid var(--sage-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-300) var(--ease-out);
}

.tc-benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tc-benefit-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-200));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-benefit-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--sage-700);
}

.tc-benefit-content h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--stone-800);
  margin: 0 0 var(--space-3) 0;
  line-height: 1.3;
}

.tc-benefit-content p {
  font-size: 1rem;
  color: var(--stone-600);
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   RESPONSIVE POUR CONTENU SPÉCIFIQUE (Aucun changement nécessaire)
   ================================================================ */

/* Très large desktop (>1400px) - Seul à garder le layout 3 colonnes */
@media (min-width: 1401px) {
  .tc-process-flow-spectacular {
    max-width: 1000px;
    grid-template-columns: 1fr 140px 1fr;
    gap: var(--space-8);
  }
  
  .tc-transformation-bridge::before {
    left: -35px;
  }
  
  .tc-transformation-bridge::after {
    right: -35px;
  }
}

/* TOUS LES ÉCRANS <1400px - Layout vertical uniforme */
@media (max-width: 1400px) {
  .tc-process-transformation {
    padding: var(--space-8) var(--space-4);
    border-radius: 16px;
  }

  .tc-process-flow-spectacular {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: static;
    max-width: 100%;
  }

  .tc-process-card {
    padding: var(--space-6);
    border-radius: 16px;
    min-height: auto;
    width: 100%;
    text-align: center;
  }

  .tc-process-header-spectacular {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
    justify-content: center;
  }

  .tc-process-icon-spectacular {
    width: 56px;
    height: 56px;
    align-self: center;
    border-radius: 14px;
  }

  .tc-process-icon-spectacular .material-symbols-outlined {
    font-size: 28px;
  }

  .tc-process-title-spectacular h4 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: var(--space-1);
  }

  .tc-subtitle-accent {
    text-align: center;
    font-size: 0.8125rem;
  }

  /* Bridge simple dans le flow normal pour TOUS les écrans <1400px */
  .tc-transformation-bridge {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    background: white;
    border: 1px solid var(--sage-200);
    border-radius: 16px;
    padding: var(--space-5);
    margin: var(--space-6) 0;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    order: 1;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
  }

  .tc-magic-wand {
    width: 48px;
    height: 48px;
    align-self: center;
  }

  .tc-magic-wand .material-symbols-outlined {
    font-size: 24px;
  }

  .tc-transformation-text {
    text-align: center;
    font-size: 0.75rem;
    white-space: normal;
    margin-top: var(--space-2);
  }

  .tc-transformation-bridge::before,
  .tc-transformation-bridge::after {
    display: none;
  }

  /* Ordre des éléments : Card1 -> Bridge -> Card2 */
  .tc-process-card:first-child {
    order: 0;
  }

  .tc-process-card:last-child {
    order: 2;
  }

  /* Philosophy cards responsive */
  .tc-solution-philosophy {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .tc-philosophy-card {
    padding: var(--space-6);
  }

  .tc-philosophy-header {
    flex-direction: row;
    text-align: left;
    gap: var(--space-3);
  }

  /* Benefits grid responsive */
  .tc-benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .tc-benefit-item {
    flex-direction: row;
    text-align: left;
  }

  .tc-benefit-icon {
    margin-bottom: 0;
    margin-right: var(--space-4);
  }
}

/* Ajustements spécifiques pour mobile très petit */
@media (max-width: 480px) {
  .tc-process-transformation {
    padding: var(--space-6) var(--space-3);
  }

  .tc-process-card {
    padding: var(--space-5);
  }

  .tc-process-icon-spectacular {
    width: 48px;
    height: 48px;
  }

  .tc-process-icon-spectacular .material-symbols-outlined {
    font-size: 24px;
  }

  .tc-process-title-spectacular h4 {
    font-size: 1.125rem;
  }

  .tc-transformation-bridge {
    padding: var(--space-4);
  }

  .tc-magic-wand {
    width: 40px;
    height: 40px;
  }

  .tc-magic-wand .material-symbols-outlined {
    font-size: 20px;
  }

  /* Philosophy cards mobile */
  .tc-philosophy-card {
    padding: var(--space-5);
  }

  .tc-philosophy-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  /* Benefits mobile */
  .tc-benefit-item {
    flex-direction: column;
    text-align: center;
  }

  .tc-benefit-icon {
    margin-bottom: var(--space-3);
    margin-right: 0;
    align-self: center;
  }
}

/* Ultra-mobile (< 320px) */
@media (max-width: 320px) {
  .tc-process-transformation {
    padding: var(--space-4) var(--space-2);
    margin: var(--space-6) 0;
  }

  .tc-process-card {
    padding: var(--space-4);
  }

  .tc-process-title-spectacular h4 {
    font-size: 1rem;
  }
}

/* =================================== */
/* INDICATEURS DE PROGRESSION */
/* =================================== */

.tc-progress-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--tc-bg-light, #f8f9fa);
    border-radius: 12px;
    border-left: 4px solid var(--tc-primary, #00bfa6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tc-progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 200px;
}

.tc-progress-step.completed {
    background: var(--tc-success-light, #d4edda);
    color: var(--tc-success-dark, #155724);
    border: 1px solid var(--tc-success, #28a745);
}

.tc-progress-step.pending {
    background: var(--tc-bg-white, #ffffff);
    color: var(--tc-text-muted, #6c757d);
    border: 1px solid var(--tc-border-light, #e9ecef);
}

.tc-step-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tc-step-label {
    flex: 1;
}

.tc-step-check {
    color: var(--tc-success, #28a745);
    font-weight: bold;
    font-size: 1.1rem;
}

/* =================================== */
/* RECOMMANDATIONS PERSONNALISÉES */
/* =================================== */

.tc-recommendations {
    margin: 3rem 0;
}

.tc-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tc-recommendation-card {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--tc-border, #dee2e6);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--tc-bg-white, #ffffff);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tc-recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tc-recommendation-card.high-priority {
    border-color: var(--tc-warning, #fd7e14);
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
}

.tc-recommendation-card.medium-priority {
    border-color: var(--tc-info, #17a2b8);
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.tc-recommendation-card.low-priority {
    border-color: var(--tc-border, #dee2e6);
}

.tc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tc-rec-badge {
    background: var(--tc-primary, #00bfa6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tc-rec-priority {
    font-size: 0.8rem;
    color: var(--tc-text-muted, #6c757d);
    font-weight: 500;
}

.tc-card-title {
    margin-bottom: 0.75rem;
    color: var(--tc-text-dark, #343a40);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.tc-rec-reason {
    color: var(--tc-text-muted, #6c757d);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* =================================== */
/* BANNIÈRES CONTEXTUELLES */
/* =================================== */

.tc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tc-banner-info {
    background: var(--tc-info-light, #d1ecf1);
    color: var(--tc-info-dark, #0c5460);
    border-left: 4px solid var(--tc-info, #17a2b8);
}

.tc-banner-warning {
    background: var(--tc-warning-light, #fff3cd);
    color: var(--tc-warning-dark, #856404);
    border-left: 4px solid var(--tc-warning, #ffc107);
}

.tc-banner-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tc-banner-content p {
    margin: 0;
    flex: 1;
}

.tc-banner-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0.25rem;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.tc-banner-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* =================================== */
/* OVERLAY DE CONTENU VERROUILLÉ */
/* =================================== */

.tc-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.tc-overlay-message {
    text-align: center;
    padding: 2rem;
    max-width: 300px;
}

.tc-overlay-message h3 {
    margin-bottom: 0.5rem;
    color: var(--tc-text-dark, #343a40);
    font-size: 1.1rem;
}

.tc-overlay-message p {
    margin-bottom: 1.5rem;
    color: var(--tc-text-muted, #6c757d);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* =================================== */
/* INDICATEURS PREMIUM */
/* =================================== */

.tc-premium-indicator {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    z-index: 1000;
    animation: premiumPulse 3s ease-in-out infinite;
}

@keyframes premiumPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tc-premium-recommendations {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.tc-premium-recommendations h4 {
    margin-bottom: 1rem;
    color: #ffd700;
    font-size: 1.2rem;
}

.tc-premium-recommendations p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.tc-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tc-premium-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.tc-premium-item h5 {
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.tc-premium-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* =================================== */
/* PROGRESSION SUR LES CARTES */
/* =================================== */

.tc-card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tc-bg-light, #f8f9fa);
    overflow: hidden;
}

.tc-card-progress-bar {
    height: 100%;
    background: var(--tc-primary, #00bfa6);
    transition: width 0.3s ease;
    position: relative;
}

.tc-card-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
}

.tc-progress-text {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 5;
}

/* =================================== */
/* RESPONSIVE */
/* =================================== */

@media (max-width: 768px) {
    .tc-progress-indicators {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tc-progress-step {
        min-width: auto;
    }
    
    .tc-recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .tc-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tc-banner-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tc-premium-indicator {
        position: static;
        margin: 1rem auto;
        width: fit-content;
    }
}