/* =================================
   DIAGNOSTIC STADE MANAGÉRIAL
   Design moderne & épuré
   ================================= */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =================================
   VARIABLES CSS
   ================================= */
:root {
  /* Couleurs - Identité LifeCrafter */
  --sage-50: #f9f8f6;
  --sage-100: #f4f2ee;
  --sage-200: #ede8e0;
  --sage-300: #d8cfc2;
  --sage-400: #566c40;
  --sage-500: #566c40;
  --sage-600: #566c40;
  --sage-700: #4a5b37;
  --sage-800: #4a5b37;

  --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;

  --white: #ffffff;
  --text-dark: #2d2d2d;
  --text-body: #5a5a5a;

  /* Typographie */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 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;

  /* 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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Animations */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
}

/* =================================
   RESET & BASE
   ================================= */
.diagnostic-stade-container {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: linear-gradient(180deg, var(--white) 0%, var(--sage-50) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  padding: 0;

  /* Container premium - pleine largeur */
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  overflow-x: hidden;
}

/* =================================
   INTRODUCTION PAGE
   ================================= */
.diagnostic-intro {
  width: 100%;
  background: var(--white);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  animation: fadeIn var(--duration-500) var(--ease-out);
}

.diagnostic-intro__header {
  text-align: center;
  padding: var(--space-20) var(--space-8) var(--space-16);
  background: linear-gradient(180deg, var(--white) 0%, var(--sage-50) 100%);
  border-bottom: none;
  max-width: 900px;
  margin: 0 auto;
}

.diagnostic-intro__icon {
  font-size: 80px;
  color: var(--sage-600);
  display: block;
  margin-bottom: var(--space-6);
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.diagnostic-intro__title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 var(--space-5);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.diagnostic-intro__subtitle {
  font-size: 1.25rem;
  color: var(--text-body);
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}

.diagnostic-intro__content {
  padding: var(--space-16) var(--space-8);
  max-width: 1100px;
  margin: 0 auto;
}

.intro-section {
  margin-bottom: var(--space-20);
  padding: var(--space-10);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(86, 108, 64, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.intro-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 var(--space-8);
  text-align: center;
  letter-spacing: -0.01em;
}

.intro-section > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-body);
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-8);
}

.intro-meta {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-600);
  margin-bottom: var(--space-6);
  text-align: center;
  background: var(--sage-100);
  padding: var(--space-3) var(--space-6);
  border-radius: 50px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.stades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin: var(--space-10) 0;
}

.stade-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--sage-50));
  border: 2px solid var(--sage-300);
  border-radius: 20px;
  padding: var(--space-8);
  text-align: center;
  transition: all var(--duration-300) var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

.stade-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(86, 108, 64, 0.15);
  border-color: var(--sage-600);
}

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

.stade-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-5);
  color: var(--sage-600);
  width: 70px;
  height: 70px;
  background: rgba(86, 108, 64, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  transition: all var(--duration-300) var(--ease-out);
}

.stade-card:hover .stade-card__icon {
  background: rgba(86, 108, 64, 0.15);
  transform: scale(1.1);
}

.stade-card__icon .material-symbols-outlined {
  font-size: 2.5rem;
}

.stade-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sage-700);
  margin: 0 0 var(--space-3);
  line-height: 1.3;
}

.stade-card__scope {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sage-600);
  margin: 0 0 var(--space-4);
  background: rgba(86, 108, 64, 0.08);
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  display: inline-block;
}

.stade-card__desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0 0 var(--space-2);
}

.stade-card__focus {
  font-size: 0.85rem;
  color: var(--stone-600);
  font-style: italic;
  margin: 0;
}

.intro-callout {
  background: linear-gradient(135deg, var(--sage-100), rgba(255, 255, 255, 0.8));
  border-left: 5px solid var(--sage-600);
  padding: var(--space-6) var(--space-8);
  border-radius: 12px;
  margin-top: var(--space-10);
  font-size: 1.1rem;
  color: var(--text-dark);
  text-align: center;
  box-shadow: 0 4px 12px rgba(86, 108, 64, 0.1);
}

.intro-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: var(--space-4) 0;
}

.intro-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: var(--space-12);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.intro-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--sage-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.intro-rules {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.intro-rules li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 2px solid var(--sage-200);
  transition: all var(--duration-300) var(--ease-out);
}

.intro-rules li:hover {
  border-color: var(--sage-400);
  box-shadow: 0 4px 12px rgba(86, 108, 64, 0.1);
  transform: translateX(8px);
}

.intro-rules li .material-symbols-outlined {
  font-size: 32px;
  color: var(--sage-600);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(86, 108, 64, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-rules li div {
  flex: 1;
  font-size: 1rem;
  line-height: 1.7;
}

.intro-rules li div strong {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
}

.intro-benefits {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: grid;
  gap: var(--space-3);
}

.intro-benefits li {
  padding-left: var(--space-8);
  position: relative;
  line-height: 1.6;
}

.intro-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage-600);
  font-weight: 700;
  font-size: 1.2rem;
}

.intro-section--example {
  background: linear-gradient(135deg, var(--stone-50), rgba(255, 255, 255, 0.9));
  border: 2px solid var(--stone-300);
  border-radius: 20px;
  padding: var(--space-10);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.intro-example {
  background: var(--white);
  border-radius: 12px;
  padding: var(--space-6);
  border: 1px solid var(--stone-200);
}

.intro-example__question {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0 0 var(--space-4);
}

.intro-example__options {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.intro-example__options li {
  padding: var(--space-3);
  background: var(--stone-50);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.intro-example__note {
  font-size: 0.9rem;
  color: var(--stone-600);
  font-style: italic;
  margin: var(--space-4) 0 0;
}

.intro-section--checklist {
  background: linear-gradient(135deg, var(--sage-100), rgba(255, 255, 255, 0.8));
  border-radius: 20px;
  padding: var(--space-10);
  border: 2px solid var(--sage-300);
  box-shadow: 0 4px 16px rgba(86, 108, 64, 0.08);
}

.intro-checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-6) auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 600px;
}

.intro-checklist li {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 500;
  padding-left: var(--space-10);
  position: relative;
  line-height: 1.6;
}

.intro-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--sage-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.intro-reminder {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--sage-600);
  margin-top: var(--space-6);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.intro-reminder .material-symbols-outlined {
  color: var(--sage-600);
  font-size: 24px;
}

.diagnostic-intro__footer {
  text-align: center;
  padding: var(--space-16) var(--space-8) var(--space-16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, var(--sage-50) 100%);
  border-top: none;
  max-width: 900px;
  margin: 0 auto;
}

.diagnostic-intro__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-16);
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--duration-300) var(--ease-out);
  box-shadow: 0 8px 20px rgba(86, 108, 64, 0.25);
  position: relative;
  overflow: hidden;
}

.diagnostic-intro__cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.diagnostic-intro__cta:hover::before {
  width: 300px;
  height: 300px;
}

.diagnostic-intro__cta:hover {
  background: linear-gradient(135deg, var(--sage-700), var(--sage-800));
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(86, 108, 64, 0.35);
}

.diagnostic-intro__cta .material-symbols-outlined {
  font-size: 28px;
  transition: transform var(--duration-300) var(--ease-out);
}

.diagnostic-intro__cta:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.diagnostic-intro__legal {
  font-size: 0.9rem;
  color: var(--stone-600);
  margin: var(--space-8) 0 0;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .stades-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .diagnostic-intro__header {
    padding: var(--space-12) var(--space-6) var(--space-10);
  }

  .diagnostic-intro__icon {
    font-size: 64px;
  }

  .diagnostic-intro__title {
    font-size: 2rem;
  }

  .diagnostic-intro__subtitle {
    font-size: 1.1rem;
  }

  .diagnostic-intro__content {
    padding: var(--space-10) var(--space-6);
  }

  .intro-section {
    padding: var(--space-8);
    margin-bottom: var(--space-12);
  }

  .intro-section__title {
    font-size: 1.5rem;
  }

  .stades-grid {
    grid-template-columns: 1fr;
  }

  .intro-rules li {
    padding: var(--space-5);
  }

  .diagnostic-intro__cta {
    width: 100%;
    justify-content: center;
    font-size: 1.15rem;
    padding: var(--space-5) var(--space-10);
  }
}

/* =================================
   LOADING STATE
   ================================= */
.diagnostic-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: var(--space-6);
}

.diagnostic-loading__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--sage-200);
  border-top-color: var(--sage-600);
  border-radius: 50%;
  animation: diagnosticSpin 1s linear infinite;
}

@keyframes diagnosticSpin {
  to { transform: rotate(360deg); }
}

.diagnostic-loading__text {
  font-size: 1rem;
  color: var(--text-body);
  font-weight: 500;
}

/* =================================
   WIZARD CONTAINER
   ================================= */
.diagnostic-wizard {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(86, 108, 64, 0.1);
}

/* =================================
   WIZARD HEADER
   ================================= */
.diagnostic-wizard__header {
  padding: var(--space-8);
  border-bottom: 1px solid var(--sage-200);
  background: linear-gradient(180deg, var(--white) 0%, var(--sage-50) 100%);
}

.diagnostic-wizard__title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.diagnostic-wizard__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.diagnostic-wizard__close {
  background: transparent;
  border: none;
  color: var(--stone-500);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: 8px;
  transition: all var(--duration-200) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagnostic-wizard__close:hover {
  background: var(--sage-100);
  color: var(--sage-600);
}

.diagnostic-wizard__close .material-symbols-outlined {
  font-size: 24px;
}

/* Progress bar */
.diagnostic-wizard__progress-bar {
  height: 6px;
  background: var(--sage-100);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.diagnostic-wizard__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-500), var(--sage-600));
  transition: width var(--duration-500) var(--ease-out);
  border-radius: 3px;
}

.diagnostic-wizard__step-indicator {
  font-size: 0.875rem;
  color: var(--stone-600);
  font-weight: 500;
  text-align: center;
}

/* =================================
   WIZARD BODY
   ================================= */
.diagnostic-wizard__body {
  padding: var(--space-12) var(--space-8);
  min-height: 400px;
  background: var(--white);
}

/* =================================
   QUESTION CONTAINER
   ================================= */
.diagnostic-question {
  animation: questionFadeIn var(--duration-500) var(--ease-out);
}

@keyframes questionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diagnostic-question__header {
  margin-bottom: var(--space-8);
  text-align: center;
}

.diagnostic-question__title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
}

.diagnostic-question__help {
  font-size: 1rem;
  color: var(--text-body);
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
}

/* =================================
   QUESTION OPTIONS (RADIO)
   ================================= */
.diagnostic-question__input {
  max-width: 700px;
  margin: 0 auto;
}

.question-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  background: var(--white);
  border: 2px solid var(--sage-200);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--duration-300) var(--ease-out);
  position: relative;
}

.question-option:hover {
  border-color: var(--sage-400);
  background: var(--sage-50);
  transform: translateX(4px);
}

.question-option--checked {
  border-color: var(--sage-600);
  background: linear-gradient(135deg, var(--sage-50), var(--white));
  box-shadow: var(--shadow-md);
}

.question-option__input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--sage-600);
  flex-shrink: 0;
}

.question-option__content {
  flex: 1;
}

.question-option__label {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
}

.question-option__description {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* =================================
   QUESTION DROPDOWN (Select)
   ================================= */
.diagnostic-question__input--select {
  max-width: 700px;
  margin: 0 auto;
}

.diagnostic-question__select {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  border: 2px solid var(--sage-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--duration-300) var(--ease-out);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23566c40' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 24px;
  padding-right: var(--space-12);
}

.diagnostic-question__select:hover {
  border-color: var(--sage-400);
  background-color: var(--sage-50);
}

.diagnostic-question__select:focus {
  outline: none;
  border-color: var(--sage-600);
  box-shadow: 0 0 0 3px rgba(86, 108, 64, 0.1);
}

.diagnostic-question__select option {
  padding: var(--space-3);
}

/* =================================
   WIZARD FOOTER
   ================================= */
.diagnostic-wizard__footer {
  padding: var(--space-8);
  border-top: 1px solid var(--sage-200);
  background: var(--sage-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.diagnostic-wizard__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--duration-300) var(--ease-out);
}

.diagnostic-wizard__btn--primary {
  background: var(--sage-600);
  color: white;
  box-shadow: var(--shadow-md);
}

.diagnostic-wizard__btn--primary:hover:not(:disabled) {
  background: var(--sage-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.diagnostic-wizard__btn--secondary {
  background: transparent;
  color: var(--sage-700);
  border: 2px solid var(--sage-600);
}

.diagnostic-wizard__btn--secondary:hover:not(:disabled) {
  background: var(--sage-100);
  transform: translateY(-1px);
}

.diagnostic-wizard__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.diagnostic-wizard__btn .material-symbols-outlined {
  font-size: 20px;
}

/* =================================
   RESPONSIVE
   ================================= */
@media (max-width: 768px) {
  .diagnostic-wizard__header {
    padding: var(--space-6) var(--space-4);
  }

  .diagnostic-wizard__title {
    font-size: 1.25rem;
  }

  .diagnostic-wizard__body {
    padding: var(--space-8) var(--space-4);
  }

  .diagnostic-question__title {
    font-size: 1.5rem;
  }

  .question-option {
    padding: var(--space-4);
  }

  .diagnostic-wizard__footer {
    padding: var(--space-4);
    flex-direction: column;
  }

  .diagnostic-wizard__btn {
    width: 100%;
    justify-content: center;
  }
}

/* =================================
   ERROR STATE
   ================================= */
.diagnostic-error {
  text-align: center;
  padding: var(--space-12);
  color: var(--stone-600);
}

.diagnostic-error .material-symbols-outlined {
  font-size: 48px;
  color: var(--stone-400);
  margin-bottom: var(--space-4);
}

.diagnostic-error__message {
  font-size: 1.1rem;
  margin: var(--space-4) 0;
  color: var(--text-dark);
}

.diagnostic-error__btn {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-8);
  background: var(--sage-600);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-200) var(--ease-out);
}

.diagnostic-error__btn:hover {
  background: var(--sage-700);
  transform: translateY(-2px);
}

/* =================================
   RESULTS - HERO
   ================================= */
.stade-managerial-results {
  animation: resultsFadeIn var(--duration-500) var(--ease-out);
}

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

.results-hero {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  background: linear-gradient(180deg, var(--sage-50), var(--white));
  border-radius: 16px;
  margin-bottom: var(--space-12);
}

.results-hero__badge {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.results-hero__badge .material-symbols-outlined {
  font-size: 48px;
  color: white;
}

.results-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
}

.results-hero__subtitle {
  font-size: 1.25rem;
  color: var(--sage-600);
  font-weight: 600;
  margin-bottom: var(--space-8);
}

.results-hero__coherence {
  margin: var(--space-8) 0;
  display: flex;
  justify-content: center;
}

.coherence-circle {
  position: relative;
  width: 160px;
  height: 160px;
}

.coherence-circle__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.coherence-circle__bg {
  fill: none;
  stroke: var(--sage-100);
  stroke-width: 8;
}

.coherence-circle__fill {
  fill: none;
  stroke: url(#coherenceGradient);
  stroke: var(--sage-600);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 282.6;
  stroke-dashoffset: 282.6;
  transition: stroke-dashoffset 1.5s var(--ease-out);
  animation: fillCircle 1.5s var(--ease-out) forwards;
}

@keyframes fillCircle {
  to {
    stroke-dashoffset: var(--target-offset, 70.65);
  }
}

.coherence-circle__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.coherence-circle__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage-700);
  line-height: 1;
}

.coherence-circle__label {
  font-size: 0.75rem;
  color: var(--stone-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.results-hero__description {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 700px;
  margin: var(--space-8) auto 0;
}

/* =================================
   RESULTS - SECTIONS
   ================================= */
.results-section {
  margin-bottom: var(--space-16);
  animation: sectionFadeIn var(--duration-500) var(--ease-out);
  animation-fill-mode: backwards;
}

.results-section:nth-child(2) { animation-delay: 100ms; }
.results-section:nth-child(3) { animation-delay: 200ms; }
.results-section:nth-child(4) { animation-delay: 300ms; }
.results-section:nth-child(5) { animation-delay: 400ms; }

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-section__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 var(--space-8);
}

.results-section__title .material-symbols-outlined {
  font-size: 32px;
  color: var(--sage-600);
}

/* =================================
   STAGE SCORES
   ================================= */
.stage-scores {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.stage-score {
  background: var(--white);
  border: 2px solid var(--sage-200);
  border-radius: 12px;
  padding: var(--space-6);
  transition: all var(--duration-300) var(--ease-out);
}

.stage-score--main {
  border-color: var(--sage-600);
  background: linear-gradient(135deg, var(--sage-50), var(--white));
  box-shadow: var(--shadow-md);
}

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

.stage-score__label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.stage-score__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sage-700);
}

.stage-score__bar {
  height: 12px;
  background: var(--sage-100);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

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

.stage-score__badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--sage-600);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* =================================
   DOMAINS GRID
   ================================= */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.domain-card {
  background: var(--white);
  border: 2px solid var(--sage-200);
  border-radius: 12px;
  padding: var(--space-6);
  transition: all var(--duration-300) var(--ease-out);
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-400);
}

.domain-card--critical {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fef3c7, var(--white));
}

.domain-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.domain-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  flex: 1;
}

.domain-card__alert {
  color: #f59e0b;
  font-size: 20px;
}

.domain-card__score {
  margin-top: var(--space-4);
}

.domain-card__bar {
  height: 8px;
  background: var(--sage-100);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.domain-card__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-500), var(--sage-600));
  border-radius: 4px;
  transition: width 1s var(--ease-out);
}

.domain-card__details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.domain-card__level {
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
}

.domain-card__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sage-700);
}

/* =================================
   DEVELOPMENT PROFILE
   ================================= */
.development-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.development-card {
  background: var(--white);
  border-radius: 16px;
  padding: var(--space-8);
  border: 2px solid var(--sage-200);
}

.development-card--strengths {
  background: linear-gradient(135deg, #f0fdf4, var(--white));
  border-color: #10b981;
}

.development-card--weaknesses {
  background: linear-gradient(135deg, var(--sage-50), var(--white));
  border-color: var(--sage-400);
}

.development-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.development-card__header .material-symbols-outlined {
  font-size: 32px;
  color: var(--sage-600);
}

.development-card__header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.development-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.development-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all var(--duration-200) var(--ease-out);
}

.development-item:hover {
  background: var(--white);
  border-color: var(--sage-300);
}

.development-item .material-symbols-outlined {
  font-size: 24px;
  flex-shrink: 0;
}

.development-item--strength .material-symbols-outlined {
  color: #10b981;
}

.development-item--weakness .material-symbols-outlined {
  color: var(--sage-600);
}

.development-item span:not(.material-symbols-outlined):not(.priority-badge) {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  flex: 1;
}

.development-item--priority {
  border-color: #f59e0b;
}

.priority-badge {
  padding: var(--space-1) var(--space-3);
  background: #f59e0b;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* =================================
   RECOMMENDATIONS
   ================================= */
.recommendations {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.recommendation-block {
  background: var(--white);
  border-radius: 12px;
  padding: var(--space-8);
  border-left: 4px solid var(--sage-600);
  box-shadow: var(--shadow-sm);
}

.recommendation-block--immediate {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2, var(--white));
}

.recommendation-block--short-term {
  border-left-color: #f59e0b;
}

.recommendation-block--long-term {
  border-left-color: #3b82f6;
}

.recommendation-block__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.recommendation-block__header .material-symbols-outlined {
  font-size: 28px;
  color: var(--sage-600);
}

.recommendation-block__header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  flex: 1;
}

.recommendation-block__badge {
  padding: var(--space-2) var(--space-4);
  background: #ef4444;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.recommendation-item {
  padding-left: var(--space-6);
  border-left: 2px solid var(--sage-200);
}

.recommendation-item__domain {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.recommendation-item__action {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

/* =================================
   RESULTS FOOTER
   ================================= */
.results-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 2px solid var(--sage-200);
}

.results-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.results-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--duration-300) var(--ease-out);
}

.results-action--primary {
  background: var(--sage-600);
  color: white;
  box-shadow: var(--shadow-md);
}

.results-action--primary:hover {
  background: var(--sage-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.results-action--secondary {
  background: transparent;
  color: var(--sage-700);
  border: 2px solid var(--sage-600);
}

.results-action--secondary:hover {
  background: var(--sage-100);
  transform: translateY(-1px);
}

.results-action .material-symbols-outlined {
  font-size: 20px;
}

.results-cta {
  text-align: center;
  padding: var(--space-10);
  background: linear-gradient(135deg, var(--sage-50), var(--white));
  border-radius: 16px;
  border: 2px solid var(--sage-200);
}

.results-cta__text {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0 0 var(--space-6);
}

.results-cta__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-8);
  background: var(--sage-600);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-300) var(--ease-out);
}

.results-cta__button:hover {
  background: var(--sage-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.results-cta__button .material-symbols-outlined {
  font-size: 24px;
}

/* =================================
   RESPONSIVE - RESULTS
   ================================= */
@media (max-width: 768px) {
  .results-hero__title {
    font-size: 1.75rem;
  }

  .coherence-circle {
    width: 120px;
    height: 120px;
  }

  .coherence-circle__value {
    font-size: 2rem;
  }

  .results-section__title {
    font-size: 1.5rem;
  }

  .domains-grid {
    grid-template-columns: 1fr;
  }

  .development-grid {
    grid-template-columns: 1fr;
  }

  .results-actions {
    flex-direction: column;
  }

  .results-action {
    width: 100%;
    justify-content: center;
  }
}

/* =================================
   SECTIONS IA
   ================================= */

/* Badge IA global */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  color: var(--white);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.ai-badge .material-symbols-outlined {
  font-size: 1.1rem;
}

.ai-badge--success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.ai-badge--warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ai-badge--danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ai-badge--neutral {
  background: linear-gradient(135deg, var(--stone-400), var(--stone-500));
}

/* Section Narrative IA */
.ai-narrative-section {
  background: linear-gradient(135deg, var(--sage-50), var(--white));
  border: 2px solid var(--sage-200);
}

.ai-narrative {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.ai-narrative__synthese {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 500;
}

.ai-narrative__insight,
.ai-narrative__tension,
.ai-narrative__vigilance {
  padding: var(--space-5);
  border-radius: 12px;
  background: var(--white);
  border-left: 4px solid var(--sage-600);
}

.ai-narrative__insight-label,
.ai-narrative__tension-label,
.ai-narrative__vigilance-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage-700);
  margin-bottom: var(--space-3);
}

.ai-narrative__tension {
  border-left-color: #f59e0b;
}

.ai-narrative__tension-label {
  color: #d97706;
}

.ai-narrative__vigilance ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ai-narrative__vigilance li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ai-narrative__vigilance li .material-symbols-outlined {
  color: var(--sage-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Section Quick Win */
.ai-quick-win-section {
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  border: 2px solid var(--sage-300);
}

.ai-quick-win {
  background: var(--white);
  padding: var(--space-8);
  border-radius: 16px;
  border: 2px solid var(--sage-200);
  box-shadow: var(--shadow-lg);
}

.ai-quick-win__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.ai-quick-win__header .material-symbols-outlined {
  font-size: 2rem;
  color: var(--sage-600);
  background: var(--sage-100);
  padding: var(--space-3);
  border-radius: 12px;
}

.ai-quick-win__header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.ai-quick-win__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage-700);
  margin: var(--space-4) 0;
  line-height: 1.3;
}

.ai-quick-win__badges {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.ai-quick-win__action,
.ai-quick-win__why {
  margin-bottom: var(--space-5);
}

.ai-quick-win__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-600);
  margin-bottom: var(--space-2);
}

.ai-quick-win__action p,
.ai-quick-win__why p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* Section Leviers Prioritaires */
.ai-priority-levers {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-left: var(--space-8);
}

.ai-priority-levers::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--sage-300), var(--sage-200));
}

.ai-lever {
  position: relative;
  display: flex;
  gap: var(--space-6);
}

.ai-lever__timeline-dot {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage-600);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--sage-300);
  z-index: 2;
}

.ai-lever__content {
  flex: 1;
  background: var(--white);
  padding: var(--space-6);
  border-radius: 12px;
  border: 1px solid var(--sage-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-300) var(--ease-out);
}

.ai-lever__content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sage-300);
}

.ai-lever__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
}

.ai-lever__domain {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sage-700);
}

.ai-lever__horizon {
  font-size: 0.85rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  background: var(--stone-100);
  color: var(--stone-700);
  border-radius: 8px;
  white-space: nowrap;
}

.ai-lever__action,
.ai-lever__why {
  margin-bottom: var(--space-4);
}

.ai-lever__action:last-child,
.ai-lever__why:last-child {
  margin-bottom: 0;
}

.ai-lever__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-600);
  margin-bottom: var(--space-2);
}

.ai-lever__action p,
.ai-lever__why p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* Section Formation IA */
.ai-training-section {
  background: linear-gradient(135deg, var(--stone-50), var(--white));
}

.ai-training {
  background: var(--white);
  padding: var(--space-8);
  border-radius: 16px;
  border: 1px solid var(--stone-200);
}

.ai-training__type {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--sage-100);
  color: var(--sage-700);
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.ai-training__type .material-symbols-outlined {
  font-size: 1.5rem;
}

.ai-training__reason,
.ai-training__themes {
  margin-bottom: var(--space-6);
}

.ai-training__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-600);
  margin-bottom: var(--space-3);
}

.ai-training__reason p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
}

.ai-training__themes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ai-training__themes li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
}

.ai-training__themes li .material-symbols-outlined {
  color: var(--sage-600);
  font-size: 1.3rem;
}

.ai-training__cta {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--stone-200);
}

.ai-training__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  color: var(--white);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--duration-300) var(--ease-out);
  box-shadow: var(--shadow-md);
}

.ai-training__button:hover {
  background: linear-gradient(135deg, var(--sage-700), var(--sage-800));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ai-training__button .material-symbols-outlined {
  font-size: 1.2rem;
  transition: transform var(--duration-300) var(--ease-out);
}

.ai-training__button:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* Responsive pour sections IA */
@media (max-width: 768px) {
  .ai-quick-win {
    padding: var(--space-6);
  }

  .ai-quick-win__title {
    font-size: 1.2rem;
  }

  .ai-priority-levers {
    padding-left: var(--space-6);
  }

  .ai-lever__timeline-dot {
    left: -28px;
    width: 20px;
    height: 20px;
  }

  .ai-lever__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-training {
    padding: var(--space-6);
  }

  .ai-training__button {
    width: 100%;
    justify-content: center;
  }
}
