:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color-scheme: light;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

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

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

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

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

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

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Hors connexion : Jouer & Mon parcours jamais visibles (double sécurité avec .hidden en JS) */
body[data-auth-logged-in="false"] #hubNavPlay,
body[data-auth-logged-in="false"] #hubTabParcours {
  display: none !important;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* BABOK notes (feedback post-choix) */
.babok-notes-list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #334155;
  text-align: left;
  line-height: 1.35;
}

.babok-notes-list li {
  margin-bottom: 4px;
}

/* Mémoire contextuelle (entrée de scène ch.1 v2) */
.memory-entry-hint {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(31, 78, 121, 0.08);
  border: 1px solid rgba(31, 78, 121, 0.18);
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
}

/* END PERPLEXITY DESIGN SYSTEM */
/* IIBA Cameroon Visual Novel - BA Quest */

/* Additional variables for IIBA branding */
:root {
  --iiba-blue: #1f4e79;
  --iiba-orange: #ff6b35;
  --iiba-blue-dark: #164063;
  --iiba-blue-light: #2d5a8a;
  --iiba-orange-light: #ff8c5a;
  --cameroon-pattern: linear-gradient(45deg, transparent 40%, rgba(255, 107, 53, 0.1) 50%, transparent 60%);
}

/* Override design system colors for IIBA branding */
:root {
  --color-primary: var(--iiba-blue);
  --color-primary-hover: var(--iiba-blue-dark);
  --color-primary-active: var(--iiba-blue-light);
  --color-secondary: var(--iiba-orange);
  --color-secondary-hover: var(--iiba-orange-light);
}

/* Game-specific styles */
.game-header {
  background: linear-gradient(135deg, #0f2f4c 0%, #164063 45%, #1f4e79 100%);
  color: white;
  padding: var(--space-12) 0;
  position: sticky;
  top: 0;
  /* Must stay below modals/toasts */
  z-index: 900;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.game-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cameroon-pattern);
  opacity: 0.3;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.logo-section {
  display: flex;
  align-items: center;
}

.iiba-logo {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.logo-icon {
  background: var(--iiba-orange);
  color: white;
  padding: 6px 10px;
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
}

.cameroun-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--iiba-orange);
}

.game-title {
  font-size: var(--font-size-xl);
  color: white;
  text-align: center;
  flex: 1;
  margin: 0;
  letter-spacing: 0.01em;
}

.game-container {
  padding: var(--space-20) 0;
  min-height: 80vh;
}

/* Character Profile */
.character-profile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
  border: 2px solid var(--iiba-blue);
  margin-bottom: var(--space-16);
  box-shadow: 0 10px 22px rgba(31, 78, 121, 0.14);
}

.character-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-24);
  align-items: center;
}

.character-avatar {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--iiba-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4xl);
  border: 3px solid var(--iiba-blue);
}

.character-details h2 {
  color: var(--iiba-blue);
  margin-bottom: var(--space-4);
}

.character-details p {
  color: var(--color-text-secondary);
  margin: 0;
  font-weight: var(--font-weight-medium);
}

#editProfileBtn {
  margin-top: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: var(--space-12);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(31, 78, 121, 0.14);
  border-radius: var(--radius-base);
  padding: 10px 12px;
}

.stat-item label {
  font-weight: var(--font-weight-semibold);
  color: var(--iiba-blue);
  font-size: var(--font-size-sm);
}

.stat-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat-emoji {
  margin-right: 4px;
}

.stat-align-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.35;
  margin: -2px 0 2px 0;
}

.stat-info-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  border: 1px solid rgba(31, 78, 121, 0.28);
  background: #ffffff;
  color: var(--iiba-blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stat-info-btn:active {
  transform: translateY(1px);
}

.stat-info-btn:focus-visible {
  outline: 2px solid var(--iiba-blue);
  outline-offset: 1px;
}

.stat-info-btn.has-new {
  position: relative;
}

.stat-info-btn.has-new::after {
  content: "Nouveau";
  position: absolute;
  top: -9px;
  right: -26px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 2px 5px;
  pointer-events: none;
}

.stat-bar {
  background: var(--hub-progress-track);
  height: var(--hub-progress-height);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.stat-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-standard);
}

.stat-fill[data-stat="salary"],
.stat-fill[data-stat="reputation"],
.stat-fill[data-stat="babok"],
.stat-fill[data-stat="valueBusiness"] {
  background: var(--hub-progress-fill);
}

/* Petit bouton (i) inline — profil final, DISC, etc. */
.info-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(31, 78, 121, 0.35);
  background: #fff;
  color: var(--iiba-blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
}

.info-chip:focus-visible {
  outline: 2px solid var(--iiba-blue);
  outline-offset: 1px;
}

.info-chip:hover {
  background: rgba(31, 78, 121, 0.14);
}

.info-chip--inline {
  width: 18px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  margin-left: 4px;
  padding: 0;
}

.stat-value {
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
  font-size: var(--font-size-sm);
}

.stat-narrative {
  color: #475569;
  font-size: 12px;
  line-height: 1.25;
}

#openJournalBtn {
  margin-top: 8px;
}

/* Chapters Section */
.chapters-section h2 {
  color: var(--iiba-blue);
  margin-bottom: var(--space-12);
  text-align: left;
  font-size: var(--font-size-xl);
}

.chapters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chapters-header h2 {
  margin-bottom: 0;
}

.view-toggle {
  display: inline-flex;
  gap: 6px;
}

.view-btn.active {
  background: var(--iiba-blue);
  color: white;
  border-color: var(--iiba-blue);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.chapter-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 252, 0.92));
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  min-height: 170px;
}

.chapter-card.unlocked {
  border: 1px solid rgba(31, 78, 121, 0.34);
  box-shadow: 0 8px 20px rgba(31, 78, 121, 0.13);
}

.chapter-card.unlocked:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 30px rgba(31, 78, 121, 0.18);
}

.chapter-card.locked {
  border: 1px solid rgba(130, 140, 150, 0.45);
  opacity: 0.72;
  filter: saturate(0.8);
}

.chapter-number {
  background: linear-gradient(135deg, var(--iiba-blue) 0%, #2d5a8a 100%);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
}

.chapter-card.locked .chapter-number {
  background: var(--color-border);
}

.chapter-content {
  padding: 14px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.chapter-status.status-completed {
  background: rgba(46, 125, 50, 0.14);
  color: #2E7D32;
  border-color: rgba(46, 125, 50, 0.25);
}

.chapter-status.status-available {
  background: rgba(31, 78, 121, 0.12);
  color: var(--iiba-blue);
  border-color: rgba(31, 78, 121, 0.25);
}

.chapter-status.status-locked {
  background: rgba(130, 140, 150, 0.14);
  color: #6b7280;
  border-color: rgba(130, 140, 150, 0.25);
}

.chapter-status.status-dev {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.35);
}

.chapter-card.just-unlocked {
  animation: chapterUnlock 900ms ease-out;
}

@keyframes chapterUnlock {
  0% { transform: scale(0.98); box-shadow: 0 0 0 rgba(31, 78, 121, 0); }
  40% { transform: scale(1.02); box-shadow: 0 0 24px rgba(31, 78, 121, 0.26); }
  100% { transform: scale(1); box-shadow: 0 8px 20px rgba(31, 78, 121, 0.13); }
}

.chapter-content h3 {
  color: var(--iiba-blue);
  margin-bottom: 0;
  font-size: var(--font-size-lg);
  line-height: 1.3;
}

.chapter-content p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.35;
  font-size: var(--font-size-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.locked-indicator {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.play-chapter {
  background: var(--iiba-orange);
  border: none;
  color: white;
  margin-top: auto;
  min-height: 34px;
  font-size: var(--font-size-sm);
  border-radius: 999px;
}

.play-chapter:hover {
  background: var(--iiba-orange-light);
}

body.detailed-view .chapter-content p {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Final Summary */
.final-summary {
  margin-top: var(--space-16);
  border: 2px solid var(--iiba-blue);
}

.final-summary-content {
  padding: var(--space-24);
  text-align: center;
}

.final-summary-content h2 {
  color: var(--iiba-blue);
  margin-bottom: var(--space-12);
}

#finalSummaryText {
  margin-bottom: var(--space-16);
  color: var(--color-text-secondary);
}

.final-badge,
.final-score {
  display: inline-block;
  margin: var(--space-8);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
}

.final-badge {
  background: var(--color-bg-1);
  color: var(--iiba-blue);
}

.final-score {
  background: var(--color-bg-3);
  color: #2E7D32;
}

.export-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.progress-overview {
  margin-bottom: var(--space-12);
  border: 1px solid var(--color-card-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
}

.progress-overview-content {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.progress-overview-content h3 {
  color: var(--iiba-blue);
  font-size: var(--font-size-base);
}

#chapterProgressText {
  margin: 0;
  color: var(--hub-teal);
  font-weight: 700;
  font-size: 16px;
}

#globalScoreMain {
  margin: 0;
  color: var(--iiba-blue);
  font-weight: 700;
  background: rgba(31, 78, 121, 0.1);
  border: 1px solid rgba(31, 78, 121, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.career-path {
  margin-bottom: var(--space-14);
  border: 1px solid var(--color-card-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
}

.career-path-content {
  padding: 10px 12px;
}

.career-path-content h3 {
  color: var(--iiba-blue);
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.career-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

.career-path-item {
  background: rgba(31, 78, 121, 0.07);
  border-radius: var(--radius-base);
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(31, 78, 121, 0.14);
  min-height: 48px;
}

.career-path-item.full-width {
  grid-column: 1 / -1;
  background: var(--color-bg-3);
  min-height: 42px;
}

.career-label {
  font-size: 10px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.career-path-item strong {
  font-size: 13px;
  line-height: 1.2;
  color: #0f2f4c;
}

#nextMilestone {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.score-sparkline {
  width: 100%;
  max-width: 360px;
  height: 52px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-base);
  padding: 3px;
}

.sparkline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.sparkline-meta {
  margin-left: auto;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  color: var(--color-text-secondary);
  font-size: 11px;
  line-height: 1.2;
}

.sparkline-meta .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(31, 78, 121, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-weight: 650;
}

.sparkline-meta .meta-chip--trend.up { border-color: rgba(46, 125, 50, 0.28); background: rgba(220, 252, 231, 0.55); }
.sparkline-meta .meta-chip--trend.down { border-color: rgba(220, 38, 38, 0.28); background: rgba(254, 226, 226, 0.62); }
.sparkline-meta .meta-chip--trend.stable { border-color: rgba(31, 78, 121, 0.22); background: rgba(219, 234, 254, 0.45); }

#scoreSparklineLine {
  fill: none;
  stroke: var(--iiba-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#scoreSparklineLine.sparkline-up {
  stroke: #2E7D32;
}

#scoreSparklineLine.sparkline-stable {
  stroke: var(--iiba-blue);
}

#scoreSparklineLine.sparkline-down {
  stroke: #C62828;
}

#sparklineMeta {
  /* Styled via .sparkline-meta */
}

@media (max-width: 520px) {
  .sparkline-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sparkline-meta {
    justify-content: flex-start;
    margin-left: 0;
  }
  .sparkline-meta .meta-chip--range {
    display: none;
  }
}

#progressTrend.trend-up {
  color: #2E7D32;
}

#progressTrend.trend-stable {
  color: var(--iiba-blue);
}

#progressTrend.trend-down {
  color: #C62828;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-20);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  background: var(--iiba-blue);
  color: white;
  padding: var(--space-20);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: white;
  margin: 0;
}

#scenarioProgress {
  margin: var(--space-4) 0 0;
  font-size: var(--font-size-sm);
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

#scenarioStepLabel {
  margin: 2px 0 0;
  font-size: 11px;
  opacity: 0.82;
  color: rgba(255, 255, 255, 0.84);
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: var(--font-size-3xl);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-body {
  padding: var(--space-24);
}

.profile-modal-content {
  max-width: 520px;
}

.exam-mode-modal-content {
  max-width: 560px;
}

/* Modale aide (i) — corporate comme PJ : en-tête bleu profond, corps blanc, encart Action gris clair */
.info-modal-content {
  max-width: 560px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
  background: #fff;
}

.info-modal-content .modal-header {
  background: linear-gradient(90deg, var(--hub-orange-dark) 0%, var(--hub-orange) 50%, #ea6a2a 100%);
  padding: 20px 22px 20px 24px;
}

.info-modal-content .modal-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.info-modal-content .modal-body {
  padding: 22px 24px 24px;
  background: #fff;
}

#infoModalText {
  color: #111827;
  font-size: 14px;
}

.info-quick-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.info-quick-list li {
  line-height: 1.35;
}

.info-action {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
}

.journal-modal-content {
  max-width: 760px;
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
  background: #fff;
}

/* Journal — en-tête orange corporate (aligné modale aide / hub) */
.journal-modal-content .modal-header {
  background: linear-gradient(90deg, var(--hub-orange-dark) 0%, var(--hub-orange) 50%, #ea6a2a 100%);
  padding: 20px 22px 20px 24px;
}

.journal-modal-content .modal-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.journal-modal-content .modal-body {
  background: #fff;
  padding: 22px 24px 20px;
}

.journal-modal-content .journal-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.journal-modal-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--hub-neutral-border);
  background: #fafaf9;
}

.journal-modal-footer-btn {
  min-width: 120px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  background: var(--hub-orange);
  transition: background 0.2s ease;
}

.journal-modal-footer-btn:hover {
  background: var(--hub-orange-dark);
}

.journal-modal-footer-btn:focus-visible {
  outline: 2px solid var(--hub-orange-dark);
  outline-offset: 2px;
}

.journal-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: var(--font-size-3xl);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.journal-intro {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.journal-intro-micro {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: #78716c;
}

.career-journal-list {
  display: grid;
  gap: 10px;
}

.journal-empty-state {
  text-align: center;
  padding: 28px 20px 24px;
  border: 2px dashed var(--hub-neutral-border);
  border-radius: 12px;
  background: #fafaf9;
}

.journal-empty-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hub-teal);
  letter-spacing: -0.02em;
}

.journal-empty-text {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #57534e;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.journal-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  background: var(--hub-orange);
  transition: background 0.2s ease;
}

.journal-empty-cta:hover {
  background: var(--hub-orange-dark);
}

.journal-empty-cta:focus-visible {
  outline: 2px solid var(--hub-orange-dark);
  outline-offset: 2px;
}

.journal-entry {
  border: 1px solid rgba(31, 78, 121, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 14px;
}

.journal-entry h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hub-orange-dark);
  letter-spacing: -0.01em;
}

.journal-entry p {
  margin: 0 0 6px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.4;
}

.journal-entry-summary {
  margin-bottom: 8px !important;
}

.journal-entry-forward {
  margin: 8px 0 6px !important;
  padding: 8px 10px;
  background: rgba(216, 96, 24, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--hub-orange);
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #334155 !important;
}

.journal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

/* Grille KPI — journal (scan rapide) */
.journal-kpi-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.journal-kpi-section-title {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.journal-kpi-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.journal-kpi-cells--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .journal-kpi-cells--triple {
    grid-template-columns: 1fr 1fr;
  }
}

.journal-kpi-cell {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 0;
}

.journal-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.journal-kpi-value {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.journal-kpi-value--wrap {
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.journal-kpi-unit {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.72;
  margin-left: 1px;
}

.journal-kpi-style-chip {
  align-self: flex-start;
  margin-top: 2px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #57534e;
  background: rgba(216, 96, 24, 0.09);
  border-radius: 8px;
  border: 1px solid rgba(216, 96, 24, 0.2);
}

.career-insights-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 8px;
}

.insight-tab {
  border: 1px solid rgba(31, 78, 121, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #1f3f63;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
}

#insightTabTrend.insight-tab.active {
  background: var(--hub-teal);
  color: #ffffff;
  border-color: var(--hub-teal);
}

#insightTabBabok.insight-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.insight-panel.hidden {
  display: none;
}

.babok-profile-table {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.babok-profile-row {
  display: grid;
  grid-template-columns: 1.6fr 70px 1.4fr;
  gap: 8px;
  align-items: start;
  font-size: 12px;
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.babok-profile-row strong {
  color: var(--iiba-blue);
}

.babok-profile-score {
  font-weight: 700;
  color: #0f172a;
}

.babok-profile-progress {
  grid-column: 1 / -1;
  height: var(--hub-progress-height);
  border-radius: 999px;
  background: var(--hub-progress-track);
  overflow: hidden;
}

.babok-profile-progress span {
  display: block;
  height: 100%;
  background: var(--hub-progress-fill);
}

.babok-panel-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.babok-profile-table--figma {
  gap: 12px;
  margin-top: 0;
}

.babok-profile-row--figma {
  display: block;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.babok-profile-row-top {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr;
  gap: 12px 16px;
  align-items: start;
  font-size: 12px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .babok-profile-row-top {
    grid-template-columns: 1fr;
  }

  .babok-profile-comment-block {
    text-align: left;
  }
}

.babok-profile-domain {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
}

.babok-profile-row--figma .babok-profile-score {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}

.babok-profile-comment-block {
  text-align: right;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.babok-profile-comment-block .babok-profile-ratio {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
}

.babok-profile-row--figma .babok-profile-progress.babok-profile-progress--rust {
  grid-column: unset;
  background: var(--hub-progress-track);
  height: var(--hub-progress-height);
}

.babok-profile-progress--rust span {
  background: var(--hub-progress-fill);
}

.babok-profile-row--figma .babok-profile-summary,
.babok-profile-table--figma .babok-profile-summary {
  margin-top: 16px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
}

.babok-profile-summary {
  font-size: 12px;
  color: #1f2937;
  line-height: 1.35;
  margin-top: 6px;
}

.babok-profile-ratio {
  display: inline-block;
  margin-left: 4px;
  color: #64748b;
  font-size: 11px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-mode-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.exam-mode-btn {
  width: 100%;
  justify-content: center;
}

.exam-mode-note {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.chapter-player-hud {
  background: rgba(31, 78, 121, 0.08);
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: var(--radius-base);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.memory-hint {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(31, 78, 121, 0.25);
  background: rgba(31, 78, 121, 0.08);
  color: #0f172a;
  font-size: 12px;
  line-height: 1.35;
}

.hud-grade {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(31, 78, 121, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.hud-grade span {
  font-size: 12px;
  color: #475569;
}

#chapterGrade {
  font-size: 14px;
  color: #0f172a;
}

.impact-feed {
  border: 1px solid rgba(31, 78, 121, 0.18);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 10px 12px;
}

.impact-feed--inline {
  padding: 8px 10px;
  max-width: 300px;
  margin-left: auto;
}

.impact-feed--inline .impact-feed-list {
  gap: 4px;
  font-size: 11px;
}

.impact-feed--inline .impact-feed-item .impact-dot {
  margin-top: 3px;
}

.impact-feed--inline.impact-feed--anim-in {
  animation: impactFeedIn 260ms var(--ease-standard);
}

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

.impact-feed-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.impact-feed-header strong {
  color: var(--iiba-blue);
  font-size: 13px;
}

.impact-feed-header small {
  color: #64748b;
  font-size: 11px;
}

.impact-feed-list {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #1f2937;
}

.impact-feed-item {
  display: flex;
  gap: 6px;
  line-height: 1.3;
}

.impact-feed-item .impact-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #94a3b8;
  flex: 0 0 auto;
}

.impact-feed-item.positive .impact-dot {
  background: #16a34a;
}

.impact-feed-item.negative .impact-dot {
  background: #dc2626;
}

@media (max-width: 520px) {
  .choices-header-with-avatar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .impact-feed--inline {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

.hud-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  margin-bottom: 6px;
}

.hud-score-bar {
  height: var(--hub-progress-height);
  background: var(--hub-progress-track);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hud-score-fill {
  height: 100%;
  background: var(--hub-progress-fill);
  transition: width 180ms ease;
}

.hud-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.score-audit {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(31, 78, 121, 0.25);
}

#debugInfo {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.audit-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--iiba-blue);
}

.audit-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 4px 8px;
}

.audit-grid small {
  color: var(--color-text-secondary);
  font-size: 10px;
}

.decisions-recap {
  margin-top: 10px;
  border: 1px solid rgba(31, 78, 121, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px;
}

.decisions-recap h4 {
  margin-bottom: 8px;
  color: var(--iiba-blue);
}

.optimal-choice-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}

.optimal-choice-summary.is-good {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
}

.optimal-choice-summary.is-ok {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.38);
}

.optimal-choice-summary.is-bad {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
}

#decisionsRecapList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.decision-recap-item {
  border: 1px solid rgba(31, 78, 121, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.decision-recap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.decision-recap-result {
  font-size: 11px;
  color: #475569;
}

.decision-recap-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 999px;
  padding: 2px 6px;
}

.decision-recap-title {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.decision-recap-choice {
  font-size: 12px;
  color: #334155;
  margin-bottom: 2px;
}

.decision-recap-time {
  font-size: 11px;
  color: #0d9488;
  font-weight: 600;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.decision-recap-meta {
  font-size: 11px;
  color: #64748b;
}

.dialog-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.avatar-emoji {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 2px solid rgba(31, 78, 121, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(31, 78, 121, 0.14);
}

.dialog-avatar small {
  font-size: 10px;
  color: var(--color-text-secondary);
}

.choices-header-with-avatar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.choices-header-with-avatar h3 {
  margin: 0;
}

.choices-avatar .avatar-emoji {
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.rosine-avatar .avatar-emoji {
  border-color: rgba(255, 107, 53, 0.6);
}

.interviewer-avatar .avatar-emoji {
  border-color: rgba(31, 78, 121, 0.5);
}

.question-dialog {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
  background: rgba(31, 78, 121, 0.05);
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: var(--radius-base);
  padding: 10px;
}

.question-avatar {
  align-items: center;
  justify-self: end;
  order: 2;
}

.question-dialog .story-text {
  margin-bottom: 0;
  order: 1;
}

.chapter-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.chapter-meta small {
  color: #1f2937;
  font-size: 11px;
  font-weight: 500;
}

.chapter-meta-badge {
  display: inline-block;
  margin-top: 4px;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 11px;
  font-weight: 700;
}

.chapter-meta-badge--cert {
  color: #7c2d12;
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(234, 88, 12, 0.35);
}

/* Story Section */
.story-background {
  background: var(--color-bg-1);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  margin-bottom: var(--space-20);
  text-align: center;
}

.douala-office {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--iiba-blue);
}

.douala-office-icon {
  display: inline-flex;
  color: var(--iiba-blue);
  opacity: 0.9;
}

.douala-office-icon .ui-icon-svg {
  width: 22px;
  height: 22px;
}

.story-text {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: var(--space-20);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
}

.briefing-card h4 {
  margin: 0 0 10px;
  color: var(--iiba-blue);
  font-size: 20px;
}

.briefing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.briefing-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.briefing-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(31, 78, 121, 0.10);
  border: 1px solid rgba(31, 78, 121, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.briefing-chip--cert {
  color: #7c2d12;
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(234, 88, 12, 0.35);
}

.briefing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.briefing-item {
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.9);
}

.briefing-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1f4e79;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.briefing-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: #0f172a;
}

.briefing-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(31, 78, 121, 0.38);
  background: rgba(31, 78, 121, 0.06);
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
}

.briefing-bridge {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 78, 121, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

/* Choices Section */
.choices-section h3 {
  color: var(--iiba-blue);
  margin-bottom: var(--space-16);
}

.choices-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.choice-btn {
  background: var(--color-surface);
  border: 2px solid var(--iiba-blue);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  display: flex;
  align-items: center;
  gap: var(--space-12);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  text-align: left;
}

.choice-btn:hover {
  background: var(--iiba-blue);
  color: white;
  transform: translateX(4px);
}

.choice-icon {
  font-size: var(--font-size-xl);
  min-width: 30px;
}

.choice-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

/* Feedback Section */
.feedback-section {
  background: var(--color-bg-3);
  border-radius: var(--radius-base);
  padding: var(--space-24);
  text-align: center;
}

/* Animation choix optimal / sous-optimal (mix = rep + compétence BA − stress) — GPU-friendly pour mobile */
.feedback-section.feedback-extreme-max .feedback-content {
  animation: feedbackExtremeMax 0.7s cubic-bezier(0.34, 1.45, 0.64, 1) both;
  will-change: transform;
}

.feedback-section.feedback-extreme-min .feedback-content {
  animation: feedbackExtremeMin 0.6s ease both;
  will-change: transform;
}

@keyframes feedbackExtremeMax {
  0% {
    transform: scale(0.94);
    opacity: 0.88;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
  45% {
    transform: scale(1.03);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.45), 0 12px 28px rgba(34, 197, 94, 0.12);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: none;
  }
}

@keyframes feedbackExtremeMin {
  0%,
  100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-5px);
  }
  30% {
    transform: translateX(5px);
  }
  45% {
    transform: translateX(-4px);
  }
  60% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
  90% {
    transform: translateX(2px);
  }
}

.feedback-section.feedback-extreme-min .feedback-content {
  box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-base);
}

@media (prefers-reduced-motion: reduce) {
  .feedback-section.feedback-extreme-max .feedback-content,
  .feedback-section.feedback-extreme-min .feedback-content {
    animation: none !important;
    will-change: auto;
    box-shadow: none;
  }
}

.feedback-content h3 {
  color: var(--iiba-blue);
  margin-bottom: var(--space-16);
}

#feedbackText {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-20);
}

.feedback-choice-recap {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(31, 78, 121, 0.22);
  background: rgba(31, 78, 121, 0.06);
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.feedback-scene-timing {
  margin: 0 0 10px;
  font-size: 12px;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.stat-changes {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
  flex-wrap: wrap;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.stat-change.positive {
  background: rgba(76, 175, 80, 0.2);
  color: #2E7D32;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.stat-change.negative {
  background: rgba(244, 67, 54, 0.2);
  color: #C62828;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.decisions-recap {
  text-align: left;
  background: rgba(31, 78, 121, 0.07);
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: var(--radius-base);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.decisions-recap h4 {
  margin: 0 0 6px;
  font-size: var(--font-size-sm);
  color: var(--iiba-blue);
}

#decisionsRecapList {
  margin: 0;
  padding-left: 18px;
}

#decisionsRecapList li {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Achievement Toast */
.achievement-toast {
  position: fixed;
  top: var(--space-20);
  right: var(--space-20);
  background: var(--iiba-orange);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  animation: slideIn 0.5s ease-out;
}

.achievement-toast.hidden {
  display: none;
}

.achievement-toast--info {
  background: var(--iiba-blue);
}

/* Narrative hint toast (memory / mood) */
.hint-toast {
  position: fixed;
  right: var(--space-20);
  bottom: var(--space-20);
  width: min(420px, calc(100vw - 32px));
  border-radius: 14px;
  border: 1px solid rgba(31, 78, 121, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(31, 78, 121, 0.18);
  z-index: 1100;
  padding: 10px 12px;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: auto;
}

.hint-toast.hidden {
  display: none;
}

.hint-toast.hint-in {
  animation: hintToastIn 220ms var(--ease-standard) forwards;
}

.hint-toast.hint-out {
  animation: hintToastOut 200ms var(--ease-standard) forwards;
}

.hint-toast[data-tone="good"] {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(220, 252, 231, 0.62);
}

.hint-toast[data-tone="bad"] {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(254, 226, 226, 0.70);
}

.hint-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.hint-toast-header strong {
  color: var(--iiba-blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hint-toast-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.hint-toast-btn {
  border: 1px solid rgba(31, 78, 121, 0.22);
  background: #ffffff;
  color: #1f3f63;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
}

.hint-toast-btn--close {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.hint-toast-body {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.babok-term {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #0f3c67;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  cursor: pointer;
}

.babok-popover {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid rgba(31, 78, 121, 0.25);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  z-index: 1200;
  padding: 10px 12px;
}

.babok-popover.hidden {
  display: none;
}

.babok-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.babok-popover-header strong {
  color: var(--iiba-blue);
  font-size: 13px;
}

.babok-popover-close {
  border: 1px solid rgba(31, 78, 121, 0.24);
  background: #fff;
  color: #1f3f63;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.babok-popover-def {
  margin: 0 0 6px;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.35;
}

.babok-popover-ref {
  display: block;
  color: #475569;
  font-size: 12px;
}

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

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

.achievement-content {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.achievement-icon {
  font-size: var(--font-size-2xl);
}

.achievement-text {
  display: flex;
  flex-direction: column;
}

.achievement-text strong {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-4);
}

#achievementName {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--space-16);
    text-align: center;
  }
  
  .game-title {
    font-size: var(--font-size-2xl);
  }
  
  .character-info {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .chapters-grid {
    grid-template-columns: 1fr;
  }

  .career-path-item.full-width {
    grid-column: 1 / -1;
  }

  .career-path-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .modal {
    padding: var(--space-8);
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .achievement-toast {
    top: var(--space-8);
    right: var(--space-8);
    left: var(--space-8);
  }

  .hint-toast {
    right: var(--space-8);
    left: var(--space-8);
    bottom: var(--space-8);
    width: auto;
  }

  .final-profile-columns {
    grid-template-columns: 1fr;
  }
}

/* Popup d’aide (data-advanced-info-key) */
.info-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.info-popup-modal.hidden {
  display: none;
}

.info-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.info-popup-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(31, 78, 121, 0.14);
  overflow: hidden;
}

.info-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(90deg, var(--hub-orange-dark) 0%, var(--hub-orange) 50%, #ea6a2a 100%);
  border-bottom: none;
}

.info-popup-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.info-popup-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  opacity: 0.92;
  padding: 2px 4px;
  border-radius: 6px;
}

.info-popup-close:hover {
  opacity: 1;
}

.info-popup-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.info-popup-body {
  padding: 20px 22px 22px;
}

.info-popup-body p {
  margin: 0;
  color: #0f172a;
  line-height: 1.5;
}

.info-popup-detail {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.95rem;
  color: #334155;
}

.info-popup-more {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  color: var(--hub-orange-dark, #c2410c);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-popup-more:hover {
  color: var(--hub-orange, #ea580c);
}

.hub-dash-card-title--with-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.info-chip--on-dark {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.info-chip--metric {
  width: 22px;
  height: 22px;
  min-width: 22px;
  font-size: 12px;
  padding: 0;
}

.hub-dash-score-scope {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.85;
}

.parcours-metric-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.parcours-metric-hint {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.82;
  line-height: 1.25;
}

.parcours-metric-unit {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 2px;
}

.chapter-drawer-performance-title.hub-dash-card-title--with-info {
  font-size: 1rem;
}

.info-popup-body p,
.info-popup-detail {
  white-space: pre-line;
}

/* Synthèse finale profil BA */
.final-profile-block {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.final-profile-title {
  color: var(--iiba-blue);
  font-size: 28px;
  margin-bottom: 8px;
}

.final-profile-disc,
.final-profile-desc,
.final-secondary-profile,
.final-level,
.final-story-outcome,
.final-context,
.final-achievements-line {
  margin-bottom: 12px;
}

.final-profile-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.final-metric {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.final-metric span {
  color: var(--iiba-blue);
  font-weight: 600;
}

.final-metric strong {
  font-size: 22px;
  color: #0f172a;
}

.final-metric small {
  color: #475569;
}

.final-profile-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}

.final-profile-columns h4 {
  margin-bottom: 8px;
  color: var(--iiba-blue);
}

.final-list {
  margin: 0;
  padding-left: 18px;
}

.final-list li {
  margin-bottom: 6px;
}

.career-style-hint {
  display: block;
  margin-top: 4px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

/* ========== IIBA plateforme — shell, hub, catalogue, gameplay modal ========== */
:root {
  /* Aligné Figma1 / theme.css — IIBA Ma vie de BA */
  --hub-teal: #00313c;
  --hub-teal-dark: #001f26;
  --hub-orange: #d86018;
  --hub-orange-dark: #c55515;
  --hub-page-bg: #fafaf9;
  --hub-card-radius: 12px;
  /* Hero / grands blocs — aligné Figma1 (rounded-2xl) */
  --hub-hero-radius: 16px;
  --hub-neutral-border: #e7e5e4;
  /* Palette unique KPI / graphiques (teal IIBA, déclinaisons) */
  --hub-kpi-a: #00313c;
  --hub-kpi-b: #0e7490;
  --hub-kpi-c: #2dd4bf;
  --hub-kpi-bar-mid: #0d9488;
  --hub-kpi-gradient: linear-gradient(90deg, var(--hub-kpi-a) 0%, var(--hub-kpi-bar-mid) 55%, var(--hub-kpi-b) 100%);
  /* Barres de progression linéaires (PJ : piste gris clair, remplissage orange) */
  --hub-progress-track: #f2f2f2;
  --hub-progress-fill: linear-gradient(90deg, var(--hub-orange-dark) 0%, var(--hub-orange) 50%, #ea6a2a 100%);
  --hub-progress-height: 6px;
  /* Cartes hub / catalogue — ombre & bordure alignées Figma */
  --hub-card-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  --hub-card-shadow-hover: 0 10px 28px rgba(15, 23, 42, 0.08);
  --hub-card-shadow-locked: 0 1px 8px rgba(15, 23, 42, 0.04);
  --motion-fast: 0.2s;
  --motion-med: 0.42s;
  --ease-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: var(--hub-page-bg);
}

.app-shell-header {
  background: var(--hub-teal);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 950;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-shell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 16px;
  max-width: var(--container-xl);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .app-shell-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.app-brand-mark {
  background: var(--hub-orange);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.app-brand-mark--footer {
  display: inline-block;
  margin-right: 6px;
}

.app-brand-name {
  font-size: 15px;
  font-weight: 600;
}

.app-shell-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.app-shell-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.app-nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.app-nav-menu-bars,
.app-nav-menu-bars::before,
.app-nav-menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.app-nav-menu-bars::before,
.app-nav-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.app-nav-menu-bars::before {
  top: -6px;
}

.app-nav-menu-bars::after {
  top: 6px;
}

.app-brand--link {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.app-brand--link:hover {
  opacity: 0.92;
}

.app-brand--link:focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 3px;
  border-radius: 8px;
}

.app-shell-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.app-auth-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-auth-slot.hidden {
  display: none !important;
}

.app-auth-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.app-auth-btn:focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 2px;
}

.app-auth-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.app-auth-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
}

.app-auth-btn--solid {
  background: var(--hub-orange);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.app-auth-btn--solid:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(216, 96, 24, 0.35);
}

.app-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.app-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.app-nav-item:focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 2px;
}

.app-nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.app-nav-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.95;
}

.app-user-menu {
  position: relative;
}

.app-user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  max-width: 200px;
}

.app-user-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.16);
}

.app-user-menu-trigger:focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 2px;
}

.app-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--hub-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.app-user-trigger-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid #e2e8f0;
  padding: 12px 0;
  z-index: 980;
}

.app-user-dropdown.hidden {
  display: none !important;
}

.app-user-dropdown-head {
  padding: 4px 16px 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 6px;
}

.app-user-dropdown-name {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 4px;
}

.app-user-dropdown-email {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  word-break: break-all;
}

.app-user-dropdown-role {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-orange);
}

.app-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.app-user-dropdown-item:hover {
  background: #f8fafc;
}

.app-user-dropdown-item:focus-visible {
  outline: 2px solid var(--hub-teal);
  outline-offset: -2px;
}

.app-user-dropdown-item--danger {
  color: #b91c1c;
}

.app-user-dropdown-item--danger:hover {
  background: #fef2f2;
}

.app-user-dropdown-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Auth modals (Figma Connexion / Inscription) */
.auth-modal .modal-content.auth-modal-content {
  max-width: 420px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.auth-modal-header {
  position: relative;
  background: linear-gradient(135deg, var(--hub-teal) 0%, rgba(0, 49, 60, 0.92) 100%);
  color: #fff;
  padding: 22px 48px 22px 22px;
}

.auth-modal-brand {
  margin-bottom: 10px;
}

.app-brand-mark--auth {
  display: inline-block;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.auth-modal-close:focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 2px;
}

.auth-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.auth-modal-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.auth-modal-body {
  padding: 24px 22px 22px;
  background: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .auth-field-row {
    grid-template-columns: 1fr;
  }
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #44403c;
  margin-bottom: 8px;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hub-neutral-border);
  border-radius: 10px;
  padding: 0 14px;
  min-height: 48px;
  background: #fafaf9;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-input-wrap:focus-within {
  border-color: var(--hub-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 49, 60, 0.12);
}

.auth-input-icon {
  display: flex;
  color: #94a3b8;
  flex-shrink: 0;
}

.auth-input {
  flex: 1;
  border: none;
  padding: 12px 0;
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
  background: transparent;
}

.auth-input:focus {
  outline: none;
}

.auth-form-error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
}

.auth-submit-btn {
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  background: var(--hub-orange) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer;
}

.auth-submit-btn:hover {
  filter: brightness(1.05);
}

.auth-forgot-planb {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #fefce8;
  border: 1px solid #facc15;
}

.auth-forgot-planb-lead {
  font-size: 0.82rem;
  color: #713f12;
  line-height: 1.45;
  margin: 0 0 12px;
}

.auth-forgot-planb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.auth-forgot-planb-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
}

.auth-forgot-divider {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  margin: 20px 0;
}

.auth-forgot-step-label {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--iiba-blue, #1f4e79);
}

.auth-forgot-hint {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 12px;
}

.auth-input--textarea {
  min-height: 52px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.35;
}

.auth-submit-btn--secondary {
  background: #fff;
  color: var(--iiba-blue, #1f4e79);
  border: 2px solid var(--iiba-blue, #1f4e79);
}

.auth-submit-btn--secondary:hover {
  background: #f1f5f9;
}
  text-align: right;
  margin: 0 0 10px;
}

.auth-form-success {
  color: #047857;
  font-size: 0.9rem;
  margin: 0 0 10px;
  line-height: 1.4;
}

.auth-switch {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.auth-switch-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--hub-orange);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch-link:focus-visible {
  outline: 2px solid var(--hub-teal);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 880px) {
  .app-nav-menu-toggle {
    display: flex;
  }

  .app-shell-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .app-shell-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: stretch;
  }

  .app-shell-nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 10px 0 4px;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .app-shell-nav-links.app-shell-nav-links--open {
    display: flex;
  }

  .app-nav-item {
    justify-content: flex-start;
    border-radius: 10px;
    width: 100%;
  }

  .app-shell-actions {
    margin-left: auto;
  }
}

.container--hub {
  max-width: 1120px;
  padding-left: max(var(--space-16), 16px);
  padding-right: max(var(--space-16), 16px);
  padding-top: 24px;
  padding-bottom: 32px;
}

@media (min-width: 640px) {
  .container--hub {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 28px;
  }
}

@media (min-width: 1024px) {
  .container--hub {
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 32px;
  }
}

.hub-view.hidden {
  display: none !important;
}

.hub-hero {
  background: linear-gradient(135deg, var(--hub-teal) 0%, rgba(0, 49, 60, 0.92) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 12px 32px rgba(0, 61, 74, 0.25);
  border-radius: var(--hub-hero-radius);
  padding: 32px;
  margin-bottom: 32px;
}

.hub-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hub-hero-identity-col {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-hero-parcours-trigger {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.hub-hero-parcours-trigger:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hub-hero-parcours-trigger:focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 2px;
}

.hub-hero-access-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hub-profile-access-summary {
  width: 100%;
  margin-top: 4px;
  padding-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.35;
}

.hub-profile-access-summary .profile-access-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.hub-profile-access-summary .profile-access-summary-key {
  font-weight: 600;
  opacity: 0.88;
}

.hub-profile-access-summary .profile-access-summary-val {
  font-weight: 800;
  text-align: right;
}

.profile-access-summary--modal {
  display: grid;
  gap: 6px;
}

.profile-access-summary--modal .profile-access-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-access-readonly {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
}

.profile-access-readonly-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #18181b;
}

.profile-access-readonly-hint {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.hub-access-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.hub-access-badge--demo {
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
}

.hub-access-badge--full {
  background: #fff;
  color: var(--hub-orange);
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  text-transform: uppercase;
}

.hub-access-badge--paid {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hub-access-badge--chapter {
  background: #fff;
  color: var(--hub-orange);
  border: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hub-disc-posture-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--hub-orange);
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.hub-disc-posture-cta:hover {
  background: #fafaf9;
  color: var(--hub-orange-dark);
}

.hub-disc-posture-cta:focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .hub-hero-main {
    gap: 24px;
    align-items: center;
  }
}

.hub-hero-avatar {
  width: 96px;
  height: 96px;
  font-size: 2.75rem;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.hub-hero-name {
  margin: 0 0 6px;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hub-hero-role {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.35;
}

.hub-hero-meta {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

.hub-hero-babok {
  margin: 10px 0 0;
  padding: 10px 12px;
  max-width: 42rem;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hub-hero-babok.hidden {
  display: none;
}

.hub-hero-babok--layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  max-width: 44rem;
}

.hub-hero-babok-lead {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.hub-hero-babok-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.hub-hero-babok-row-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.72);
  min-width: 5.5rem;
}

.hub-babok-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.hub-babok-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hub-teal);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  max-width: 100%;
}

.hub-hero-text {
  flex: 1 1 200px;
  min-width: 0;
}

.hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.hub-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hub-hero-btn:focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 3px;
}

.hub-hero-btn-ico {
  flex-shrink: 0;
}

.hub-hero-btn--primary {
  background: #fff;
  color: var(--hub-teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hub-hero-btn--primary:hover {
  background: #f1f5f9;
}

.hub-hero-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.hub-hero-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
  .hub-hero-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .hub-hero-btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }
}

.btn--hub-light {
  background: #fff;
  color: var(--hub-teal);
  border: none;
  font-weight: 600;
}

.btn--hub-light:hover {
  background: #f0f4f6;
}

.btn--hub-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.btn--hub-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hub-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  max-width: 420px;
}

.hub-summary-card {
  position: relative;
  background: #fff;
  border-radius: var(--hub-card-radius);
  padding: 18px 20px;
  box-shadow: var(--hub-card-shadow);
  border: 1px solid var(--hub-neutral-border);
}

.hub-summary-card--score {
  border: 2px solid rgba(230, 126, 34, 0.55);
}

.hub-summary-trend {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--hub-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-summary-trend .ui-icon-svg {
  width: 20px;
  height: 20px;
}

.hub-summary-label {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 600;
}

.hub-summary-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--hub-teal);
  line-height: 1.1;
}

.hub-summary-denom {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.75;
}

.hub-summary-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: #475569;
}

.hub-progress-track {
  height: var(--hub-progress-height);
  background: var(--hub-progress-track);
  border-radius: 999px;
  margin: 12px 0 10px;
  overflow: hidden;
}

.hub-progress-fill {
  height: 100%;
  background: var(--hub-progress-fill);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.hub-summary-foot {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.hub-summary-foot .muted {
  color: #94a3b8;
}

.hub-trajectory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.hub-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.hub-pill--ok {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.hub-kpi-section {
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid var(--hub-neutral-border);
  border-radius: var(--hub-hero-radius);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.hub-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

#hubParcoursAnchor {
  scroll-margin-top: 96px;
}

@media (max-width: 900px) {
  .hub-dash-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 20px;
  }
}

.hub-dash-card {
  background: #fff;
  border: 1px solid var(--hub-neutral-border);
  border-radius: var(--hub-hero-radius);
  padding: 22px 24px;
  box-shadow: var(--hub-card-shadow);
  min-height: 168px;
  display: flex;
  flex-direction: column;
}

.hub-dash-card--progression .hub-prog-next {
  margin-top: auto;
}

.hub-dash-card--trajectory .hub-mini-trajectory-list {
  margin-top: auto;
}

.hub-dash-card--score {
  border: 2px solid var(--hub-orange);
  box-shadow: 0 2px 14px rgba(234, 88, 12, 0.1);
}

.hub-dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hub-dash-card-head-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hub-dash-trend-figma {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(216, 96, 24, 0.12);
  color: var(--hub-orange);
  flex-shrink: 0;
}

.hub-dash-trend-figma svg {
  display: block;
}

@media (max-width: 520px) {
  .hub-dash-card-head {
    flex-wrap: wrap;
  }

  .hub-dash-card-head-aside {
    width: 100%;
    justify-content: flex-end;
  }
}

.hub-dash-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #57534e;
  line-height: 1.3;
}

.hub-dash-card-title--block {
  margin-bottom: 10px;
}

.hub-dash-score-value {
  margin: 0 0 8px;
  font-size: 3rem;
  font-weight: 800;
  color: var(--hub-teal);
  line-height: 1.05;
}

.hub-dash-score-value .hub-summary-denom {
  font-size: 1.5rem;
  font-weight: 600;
  color: #a8a29e;
  opacity: 1;
  vertical-align: baseline;
}

.hub-dash-score-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #57534e;
}

.btn--voir-evolution {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--hub-teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.15s ease, filter 0.15s ease;
}

.btn--voir-evolution:hover {
  background: rgba(0, 49, 60, 0.92);
  filter: brightness(1.02);
}

.btn--voir-evolution:focus-visible {
  outline: 2px solid var(--hub-orange);
  outline-offset: 2px;
}

.btn--voir-evolution-ico {
  flex-shrink: 0;
}

.hub-kpi-evolution--collapsible {
  margin-top: 22px;
  margin-bottom: 0;
}

.hub-kpi-evolution-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 8px;
}

.hub-kpi-evolution-head .hub-kpi-evolution-title {
  margin: 0;
  flex: 1 1 200px;
}

.hub-kpi-evolution-head .sparkline-meta-row {
  flex: 1 1 220px;
  justify-content: flex-end;
}

.hub-kpi-babok-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.hub-kpi-babok-heading {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hub-teal);
}

.hub-kpi-babok-block .babok-panel-kicker {
  margin-bottom: 10px;
}

.hub-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hub-kpi-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hub-teal);
  line-height: 1.25;
}

.hub-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1000px) {
  .hub-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hub-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.hub-kpi-card {
  background: #fff;
  border: 1px solid var(--hub-neutral-border);
  border-radius: var(--hub-hero-radius);
  padding: 22px 24px;
  box-shadow: var(--hub-card-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-kpi-card:hover {
  border-color: rgba(216, 96, 24, 0.35);
  box-shadow: var(--hub-card-shadow-hover);
}

.hub-kpi-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hub-kpi-help {
  margin-left: auto;
}

.hub-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 49, 60, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--hub-teal);
}

.hub-kpi-icon .ui-icon-svg {
  width: 18px;
  height: 18px;
}

.hub-kpi-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hub-kpi-trend .ui-icon-svg {
  width: 15px;
  height: 15px;
}

.hub-kpi-trend--up {
  color: var(--hub-kpi-b);
}

.hub-kpi-trend--flat {
  color: #94a3b8;
}

.hub-kpi-value {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hub-teal);
  line-height: 1.15;
}

.hub-kpi-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #57534e;
}

.hub-kpi-tagline {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #78716c;
  line-height: 1.35;
}

.hub-kpi-bar-wrap {
  cursor: help;
}

.hub-kpi-label-row {
  margin-bottom: 4px;
}

.hub-kpi-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.hub-kpi-bar {
  height: var(--hub-progress-height);
  background: var(--hub-progress-track);
  border-radius: 999px;
  overflow: hidden;
}

.hub-kpi-bar span {
  display: block;
  height: 100%;
  background: var(--hub-progress-fill);
  border-radius: 999px;
  transition: width var(--motion-med) var(--ease-out-smooth);
}

.hub-kpi-stat-bar {
  margin-bottom: 6px;
}

.hub-kpi-section .hub-kpi-stat-bar .stat-fill {
  background: var(--hub-progress-fill) !important;
}

.hub-kpi-section .hub-kpi-stat-bar.stat-bar {
  height: var(--hub-progress-height);
  background: var(--hub-progress-track);
  border-radius: 999px;
}

.hub-kpi-raw {
  font-size: 11px;
  color: #94a3b8;
}

.hub-kpi-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn--voir-evolution--compact {
  padding: 6px 12px;
  font-size: 11px;
}

.btn--iiba-navy {
  background: var(--hub-teal);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 16px;
}

.btn--iiba-navy:hover {
  background: var(--hub-teal-dark);
  color: #fff;
}

.btn--ghost-link {
  background: transparent;
  color: var(--hub-teal);
  border: none;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 6px;
}

.btn--ghost-link:hover {
  color: var(--hub-orange);
}

.hub-kpi-evolution {
  margin-top: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--hub-neutral-border);
  border-radius: var(--hub-card-radius);
  box-shadow: var(--hub-card-shadow);
}

.hub-kpi-evolution-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--hub-teal);
}

.hub-kpi-evolution-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #78716c;
}

.hub-dashboard-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .hub-dashboard-split {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
  }
}

.hub-journal-card {
  padding: 22px 24px;
}

.hub-journal-title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: var(--hub-teal);
}

.hub-timeline-empty {
  margin: 0;
  color: #78716c;
  font-size: 14px;
  line-height: 1.5;
}

/* Timeline dashboard — types + dates (esprit Figma TimelineItem) */
.hub-timeline-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hub-timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 32px;
}

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

.hub-timeline-icon-wrap {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.hub-timeline-item:not(.hub-timeline-item--last) .hub-timeline-icon-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 52px;
  bottom: -32px;
  width: 2px;
  background: var(--hub-neutral-border);
  border-radius: 1px;
}

.hub-timeline-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: #fff;
  box-shadow: 0 0 0 3px var(--hub-page-bg);
  z-index: 1;
}

.hub-timeline-node .hub-timeline-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hub-timeline-node--achievement {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.hub-timeline-node--learning {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.hub-timeline-node--decision {
  background: rgba(216, 96, 24, 0.12);
  border-color: rgba(216, 96, 24, 0.35);
  color: var(--hub-orange-dark);
}

.hub-timeline-node--progress {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #52525b;
}

.hub-timeline-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-timeline-type-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.hub-timeline-type-chip--achievement {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.hub-timeline-type-chip--learning {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.hub-timeline-type-chip--decision {
  background: rgba(216, 96, 24, 0.12);
  color: var(--hub-orange-dark);
  border-color: rgba(216, 96, 24, 0.25);
}

.hub-timeline-type-chip--progress {
  background: #f4f4f5;
  color: #52525b;
  border-color: #e4e4e7;
}

.hub-timeline-card {
  background: #fff;
  border: 1px solid var(--hub-neutral-border);
  border-radius: var(--hub-card-radius);
  padding: 16px;
  box-shadow: var(--hub-card-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-timeline-card:hover {
  border-color: rgba(216, 96, 24, 0.35);
  box-shadow: var(--hub-card-shadow-hover);
}

.hub-timeline-date {
  display: block;
  font-size: 12px;
  color: #78716c;
  margin-bottom: 8px;
}

.hub-timeline-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hub-teal);
  line-height: 1.3;
}

.hub-timeline-card-body {
  margin: 0 0 10px;
  font-size: 13px;
  color: #57534e;
  line-height: 1.5;
}

.hub-timeline-card-meta {
  font-size: 12px;
  color: #78716c;
}

.hub-dashboard-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hub-reco-wrap {
  margin-bottom: 28px;
}

.hub-reco-card {
  background: linear-gradient(135deg, var(--hub-orange) 0%, var(--hub-orange-dark) 100%);
  color: #fff;
  border-radius: var(--hub-hero-radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 40px rgba(216, 96, 24, 0.42),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.hub-reco-card--prominent {
  max-width: 100%;
}

.hub-reco-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.95;
  line-height: 1.35;
}

.hub-reco-title-main {
  display: inline;
  font-weight: 800;
}

.hub-reco-title-suffix {
  display: inline;
  font-weight: 600;
  opacity: 0.92;
}

.hub-reco-benefit {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.96;
}

.hub-reco-progress {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.88;
}

.hub-reco-chapter-num {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 800;
}

.hub-reco-chapter-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.95;
}

.hub-reco-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--hub-orange);
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hub-reco-cta-ico {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
}

.hub-reco-cta:hover {
  background: #fafaf9;
  color: var(--hub-orange-dark);
}

.hub-recent-card {
  padding: 22px 24px;
  border-radius: var(--hub-hero-radius);
}

.hub-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hub-recent-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hub-teal);
  line-height: 1.3;
}

.hub-link-orange {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-orange);
  cursor: pointer;
  text-decoration: none;
}

.hub-link-orange:hover {
  color: var(--hub-orange-dark);
  text-decoration: underline;
}

.hub-recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-recent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--hub-neutral-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hub-recent-row:hover {
  border-color: rgba(216, 96, 24, 0.45);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.06);
}

.hub-recent-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--hub-teal);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-recent-info {
  flex: 1 1 140px;
  font-weight: 600;
  font-size: 14px;
  color: var(--hub-teal);
}

.hub-recent-score {
  flex: 0 0 auto;
  font-size: 13px;
  color: #78716c;
}

.hub-recent-score strong {
  color: var(--hub-teal);
}

.catalog-page-head {
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.catalog-page-title {
  margin: 0 0 12px;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--hub-teal);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.catalog-page-sub {
  margin: 0 0 24px;
  color: #57534e;
  font-size: 1.125rem;
  max-width: 720px;
  line-height: 1.55;
}

.catalog-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 800px) {
  .catalog-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.catalog-stat-chip {
  background: #fff;
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid var(--hub-neutral-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-stat-chip:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.catalog-stat-chip strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hub-teal);
  line-height: 1.15;
}

.catalog-stat-chip span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #78716c;
}

.catalog-stat-chip--done {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.catalog-stat-chip--done strong {
  color: #15803d;
}

.catalog-stat-chip--open {
  background: rgba(230, 126, 34, 0.12);
  border-color: rgba(230, 126, 34, 0.28);
}

.catalog-stat-chip--open strong {
  color: var(--hub-orange-dark);
}

.catalog-stat-chip--lock {
  background: rgba(148, 163, 184, 0.15);
}

.catalog-stat-chip--lock strong {
  color: #475569;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.catalog-filters-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-teal);
  margin-right: 6px;
}

.catalog-filters-icon {
  font-size: 14px;
  opacity: 0.85;
}

.catalog-chip {
  border: 2px solid var(--hub-neutral-border);
  background: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #44403c;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.catalog-chip:hover {
  border-color: rgba(216, 96, 24, 0.45);
  color: var(--hub-teal);
}

.catalog-chip.active {
  background: var(--hub-orange);
  border: 2px solid var(--hub-orange);
  color: #fff;
}

.catalog-chip.active .catalog-chip-badge {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
}

.catalog-filter-card {
  padding: 20px 22px;
  margin-bottom: 24px;
  border: 1px solid var(--hub-neutral-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.catalog-filter-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.catalog-filter-funnel {
  display: flex;
  color: var(--hub-teal);
}

.catalog-filter-funnel .ui-icon-svg {
  width: 22px;
  height: 22px;
}

.catalog-filter-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--hub-teal);
}

.catalog-filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.catalog-chip--figma {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
}

.catalog-chip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 49, 60, 0.08);
  color: var(--hub-teal);
}

.catalog-chip:not(.active) .catalog-chip-badge {
  background: #f1f5f9;
  color: #64748b;
}

.chapter-card.catalog-filter-hidden {
  display: none !important;
}

.catalog-chapters-section .chapters-heading-compact {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hub-teal);
  letter-spacing: -0.01em;
}

.catalog-chapters-section .chapters-header {
  margin-bottom: 16px;
  align-items: center;
}

/* Liste verticale de cartes chapitre pleine largeur (maquette catalogue) */
.catalog-chapters-section .chapters-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
}

/* Carte chapitre horizontale : grille = pastille + colonne texte alignées, pied sur toute la largeur (PJ) */
.catalog-chapters-section .chapter-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 0;
  align-items: start;
  padding: 22px 24px 20px;
  background: #fff;
  border-radius: var(--hub-hero-radius);
  border: 1px solid var(--hub-neutral-border);
  box-shadow: var(--hub-card-shadow);
  min-height: 0;
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-chapters-section .chapter-card.unlocked {
  border-color: var(--hub-neutral-border);
  box-shadow: var(--hub-card-shadow);
}

.catalog-chapters-section .chapter-card.unlocked:hover {
  border-color: rgba(216, 96, 24, 0.35);
  box-shadow: var(--hub-card-shadow-hover);
}

.catalog-chapters-section .chapter-card.locked {
  opacity: 1;
  filter: none;
  background: #f8fafc;
  border-color: var(--hub-neutral-border);
  box-shadow: var(--hub-card-shadow-locked);
}

.catalog-chapters-section .chapter-card[data-chapter-status="completed"] {
  border-color: var(--hub-neutral-border);
  box-shadow:
    inset 4px 0 0 #22c55e,
    var(--hub-card-shadow);
}

.catalog-chapters-section .chapter-card[data-chapter-status="available"] {
  border-color: var(--hub-neutral-border);
}

.catalog-chapters-section .chapter-status {
  display: none;
}

.catalog-chapters-section .chapter-number {
  position: static;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hub-teal);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.catalog-chapters-section .chapter-card.locked .chapter-number {
  background: #94a3b8;
  color: #fff;
}

.catalog-chapters-section .chapter-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-chapters-section .chapter-content h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.catalog-chapters-section .chapter-content p {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #57534e;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.chapter-catalog-scenes {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.chapter-catalog-playtime {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.01em;
}

.chapter-scenes-ico {
  flex-shrink: 0;
  color: #94a3b8;
}

.chapter-catalog-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.chapter-catalog-rewards {
  margin-top: 6px;
  padding: 12px 14px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.chapter-catalog-rewards-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-catalog-rewards-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.chapter-catalog-rewards-title-ico {
  flex-shrink: 0;
  color: var(--hub-orange, #ea580c);
}

.chapter-catalog-rewards-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px 10px;
  align-items: stretch;
}

.chapter-catalog-reward {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  min-width: 0;
}

@media (max-width: 360px) {
  .chapter-catalog-rewards-list {
    grid-template-columns: 1fr;
  }
}

.chapter-catalog-reward--locked {
  opacity: 0.88;
}

.chapter-catalog-reward-icon {
  flex-shrink: 0;
  line-height: 0;
  margin-top: 2px;
}

.chapter-catalog-reward-ico {
  display: block;
}

.chapter-catalog-reward-body {
  min-width: 0;
}

.chapter-catalog-reward-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.chapter-catalog-reward-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.chapter-catalog-reward-date {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.chapter-catalog-reward--yellow {
  background: #fffbeb;
  border-color: rgba(234, 179, 8, 0.25);
}

.chapter-catalog-reward--yellow .chapter-catalog-reward-ico {
  color: #ca8a04;
}

.chapter-catalog-reward--yellow .chapter-catalog-reward-desc {
  color: #92400e;
}

.chapter-catalog-reward--yellow .chapter-catalog-reward-date {
  color: #a16207;
}

.chapter-catalog-reward--purple {
  background: #f5f3ff;
  border-color: rgba(124, 58, 237, 0.2);
}

.chapter-catalog-reward--purple .chapter-catalog-reward-ico {
  color: #7c3aed;
}

.chapter-catalog-reward--purple .chapter-catalog-reward-desc,
.chapter-catalog-reward--purple .chapter-catalog-reward-date {
  color: #6d28d9;
}

.chapter-catalog-reward--blue {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.2);
}

.chapter-catalog-reward--blue .chapter-catalog-reward-ico {
  color: #2563eb;
}

.chapter-catalog-reward--blue .chapter-catalog-reward-desc,
.chapter-catalog-reward--blue .chapter-catalog-reward-date {
  color: #1d4ed8;
}

.chapter-catalog-reward--cyan {
  background: #ecfeff;
  border-color: rgba(6, 182, 212, 0.25);
}

.chapter-catalog-reward--cyan .chapter-catalog-reward-ico {
  color: #0891b2;
}

.chapter-catalog-reward--cyan .chapter-catalog-reward-desc,
.chapter-catalog-reward--cyan .chapter-catalog-reward-date {
  color: #0e7490;
}

.chapter-catalog-reward--green {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.22);
}

.chapter-catalog-reward--green .chapter-catalog-reward-ico {
  color: #16a34a;
}

.chapter-catalog-reward--green .chapter-catalog-reward-desc,
.chapter-catalog-reward--green .chapter-catalog-reward-date {
  color: #15803d;
}

.chapter-catalog-reward--slate {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.25);
}

.chapter-catalog-reward--slate .chapter-catalog-reward-ico {
  color: #64748b;
}

.chapter-catalog-reward--slate .chapter-catalog-reward-desc,
.chapter-catalog-reward--slate .chapter-catalog-reward-date {
  color: #475569;
}

/* Panneau global sous la grille catalogue : succès du jeu (débloqués / à débloquer) */
.catalog-achievements-panel {
  margin-top: 20px;
  padding: 20px 22px 22px;
  border-radius: var(--hub-hero-radius);
  border: 1px solid var(--hub-neutral-border);
  box-shadow: var(--hub-card-shadow);
  background: #fff;
}

.catalog-achievements-heading {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hub-teal);
  letter-spacing: -0.01em;
}

.catalog-achievements-sub {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.catalog-achievements-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.catalog-achievement-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--hub-neutral-border);
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

.catalog-achievement-tile--locked {
  opacity: 0.78;
  background: #f8fafc;
}

.catalog-achievement-emoji {
  flex-shrink: 0;
  font-size: 1.75rem;
  line-height: 1;
}

.catalog-achievement-body {
  min-width: 0;
}

.catalog-achievement-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.catalog-achievement-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
}

.catalog-achievement-status {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hub-orange);
}

.catalog-achievement-tile--locked .catalog-achievement-status {
  color: #94a3b8;
}

@media (max-width: 480px) {
  .catalog-achievement-tile {
    flex: 1 1 100%;
  }
}

.chapter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.chapter-pill--cat-babok {
  background: #ccfbf1;
  color: #0f766e;
}

.chapter-pill--cat-carriere {
  background: #f4f4f5;
  color: #3f3f46;
}

.chapter-pill--cat-moduleA {
  background: #f4f4f5;
  color: #3f3f46;
}

.chapter-pill--cat-moduleB {
  background: rgba(33, 128, 141, 0.14);
  color: #155e66;
}

.chapter-pill--cat-bonus {
  background: #fef3c7;
  color: #92400e;
}

.chapter-pill--cat-cert {
  background: #fef3c7;
  color: #92400e;
}

.chapter-pill--cat-scrum {
  background: #ede9fe;
  color: #5b21b6;
}

.chapter-pill--diff-easy {
  background: #ecfdf5;
  color: #047857;
}

.chapter-pill--diff-mid {
  background: #fffbeb;
  color: #b45309;
}

.chapter-pill--diff-hard {
  background: #fef2f2;
  color: #b91c1c;
}

.chapter-pill-diff-dots {
  letter-spacing: 0.5px;
  margin-right: 2px;
  font-size: 9px;
  opacity: 0.9;
}

.chapter-pill--status-completed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.chapter-pill--status-available {
  background: rgba(216, 96, 24, 0.14);
  color: var(--hub-orange-dark);
  border: 1px solid rgba(216, 96, 24, 0.22);
}

.chapter-pill--status-locked {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.chapter-pill--status-dev {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.chapter-pill-ico {
  flex-shrink: 0;
}

.chapter-catalog-recap {
  margin-top: 8px;
}

.catalog-chapters-section .chapter-recap-summary {
  font-size: 13px;
  color: #334155;
}

.chapter-recap-details {
  font-size: 13px;
}

.chapter-recap-summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--hub-teal);
  list-style: none;
}

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

.chapter-recap-inner {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.chapter-recap-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-recap-dl > div {
  display: grid;
  grid-template-columns: minmax(90px, 110px) 1fr;
  gap: 8px;
  font-size: 12px;
}

.chapter-recap-dl dt {
  margin: 0;
  color: #64748b;
  font-weight: 600;
}

.chapter-recap-dl dd {
  margin: 0;
  color: #1e293b;
}

.chapter-recap-badges-inline {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Pied de carte catalogue : pleine largeur sous le bloc numéro + contenu */
.catalog-chapters-section .chapter-catalog-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
  margin: 14px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
  border-radius: 0;
}

.catalog-score-num {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.catalog-score-denom {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.catalog-score-hint {
  font-size: 14px;
  font-weight: 500;
  color: #78716c;
}

.btn--catalog-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hub-orange) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.btn--catalog-play:hover {
  filter: brightness(1.06);
}

.btn--catalog-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff !important;
  border: 2px solid var(--hub-teal) !important;
  color: var(--hub-teal) !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 49, 60, 0.12);
}

.btn--catalog-replay:hover {
  background: var(--hub-teal) !important;
  color: #fff !important;
  border-color: var(--hub-teal) !important;
}

.btn-catalog-ico {
  flex-shrink: 0;
}

.catalog-chapters-section .locked-indicator {
  font-size: 12px;
  color: #64748b;
  text-align: right;
  line-height: 1.35;
}

.app-site-footer {
  background: var(--hub-teal-dark);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 40px;
  padding: 36px 16px 20px;
  font-size: 13px;
}

.app-site-footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: var(--container-xl);
  margin: 0 auto;
}

.app-footer-brand {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.app-footer-tagline {
  margin: 0;
  opacity: 0.85;
  line-height: 1.45;
}

.app-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-footer-links a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-footer-copy {
  text-align: center;
  margin: 28px 0 0;
  font-size: 12px;
  opacity: 0.65;
}

.app-footer-col .footer-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.app-footer-col .footer-contact-line:last-child {
  margin-bottom: 0;
}

.footer-icon {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.footer-icon .ui-icon-svg {
  width: 18px;
  height: 18px;
}

/* Gameplay modal */
.modal-content--gameplay {
  max-width: 920px;
  max-height: min(92vh, 880px);
  background: var(--hub-page-bg);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

/* Saison 2 ch. 16 — jalons Partie 1 / Partie 2 (sans scène supplémentaire) */
.s2-chapter-part-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(15, 23, 23, 0.58);
  backdrop-filter: blur(5px);
}

.s2-chapter-part-overlay.hidden {
  display: none;
}

.s2-chapter-part-card {
  max-width: 420px;
  width: 100%;
  padding: 22px 22px 18px;
  text-align: center;
  border: 1px solid rgba(33, 128, 141, 0.28);
  box-shadow: 0 16px 40px rgba(19, 52, 59, 0.18);
}

.s2-chapter-part-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal-700, #1d7480);
}

.s2-chapter-part-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-charcoal-900, #0f172a);
}

.s2-chapter-part-msg {
  margin: 0 0 20px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-charcoal-700, #334155);
}

.s2-chapter-part-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .s2-chapter-part-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Fin de chapitre — effets non bloquants (pointer-events: none) */
.chapter-complete-fx {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}

.chapter-fx-particle {
  position: absolute;
  top: -12%;
  font-size: clamp(18px, 3.5vw, 28px);
  line-height: 1;
  opacity: 0.95;
  animation: chapterFxFall linear forwards;
  will-change: transform, opacity;
}

.chapter-fx-particle--soft {
  font-size: clamp(14px, 2.8vw, 22px);
  opacity: 0.75;
  animation-duration: 2.8s !important;
}

.chapter-fx-particle--sad {
  font-size: clamp(16px, 3vw, 24px);
  opacity: 0.55;
  filter: grayscale(0.35);
  animation: chapterFxDrift linear forwards;
}

.chapter-fx-particle--bad {
  font-size: clamp(18px, 3.2vw, 26px);
  opacity: 0.85;
  animation: chapterFxFallFast linear forwards;
}

.chapter-fx-firework {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 200, 80, 0.95),
    0 0 24px 10px rgba(255, 120, 40, 0.5),
    0 0 48px 20px rgba(216, 96, 24, 0.25);
  animation: chapterFxBurst 1.1s ease-out forwards;
  opacity: 0;
}

/* Mobile / petit écran : rafraîchir les effets plus vite (complète le réglage JS particules / durée) */
.chapter-complete-fx--compact .chapter-fx-firework {
  animation-duration: 0.72s;
}

.chapter-complete-fx--narrow .chapter-fx-firework {
  animation-duration: 0.55s;
}

.chapter-complete-fx--compact .chapter-fx-vignette {
  animation-duration: 1.45s;
}

.chapter-complete-fx--narrow .chapter-fx-vignette {
  animation-duration: 1.1s;
}

.chapter-complete-fx--narrow .chapter-fx-firework {
  box-shadow:
    0 0 0 2px rgba(255, 200, 80, 0.9),
    0 0 16px 6px rgba(255, 120, 40, 0.45),
    0 0 32px 12px rgba(216, 96, 24, 0.2);
}

.chapter-fx-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(127, 29, 29, 0.35) 100%);
  animation: chapterFxVignettePulse 2.2s ease-in-out infinite;
}

@keyframes chapterFxFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes chapterFxFallFast {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) scale(1.2);
    opacity: 0;
  }
}

@keyframes chapterFxDrift {
  0% {
    transform: translate(0, 0);
    opacity: 0.6;
  }
  100% {
    transform: translate(-12px, 85vh);
    opacity: 0;
  }
}

@keyframes chapterFxBurst {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: scale(18);
    opacity: 0;
  }
}

@keyframes chapterFxVignettePulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.feedback-section--fx-weak .feedback-content {
  animation: chapterFxMoodLow 0.6s ease-out both;
  filter: saturate(0.88);
}

.feedback-section--fx-critical .feedback-content {
  animation: chapterFxShake 0.5s ease-in-out both;
  box-shadow: inset 0 0 0 2px rgba(185, 28, 28, 0.45);
  border-radius: 12px;
}

@keyframes chapterFxMoodLow {
  from {
    opacity: 0.85;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chapterFxShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.stat-change--complete {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.stat-change--complete-excellent {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(250, 204, 21, 0.18));
  color: #14532d;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.stat-change--complete-good {
  background: rgba(59, 130, 246, 0.12);
  color: #1e3a8a;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.stat-change--complete-weak {
  background: rgba(120, 113, 108, 0.15);
  color: #44403c;
  border: 1px solid rgba(120, 113, 108, 0.3);
}

.stat-change--complete-critical {
  background: rgba(185, 28, 28, 0.12);
  color: #7f1d1d;
  border: 1px solid rgba(185, 28, 28, 0.35);
}

.modal-body--gameplay {
  padding: 22px 24px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 49, 60, 0.45) rgba(0, 49, 60, 0.08);
}

.modal-body--gameplay .scenario-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-body--gameplay::-webkit-scrollbar {
  width: 10px;
}

.modal-body--gameplay::-webkit-scrollbar-track {
  background: rgba(0, 49, 60, 0.06);
  border-radius: 8px;
}

.modal-body--gameplay::-webkit-scrollbar-thumb {
  background: rgba(0, 49, 60, 0.35);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Bandeau contexte : affiché uniquement en scène de briefing (voir updateGameContextStrip + attribut hidden) */
.modal-body--gameplay .context-strip.card--context[hidden] {
  display: none !important;
}

.modal-close--game {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.scene-hud-card {
  background: linear-gradient(145deg, var(--hub-teal) 0%, rgba(0, 31, 38, 0.95) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 18px 20px 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 32px rgba(0, 31, 38, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.scene-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.scene-hud-timing {
  margin: -6px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.95);
}

.scene-hud-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.scene-hud-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  background: var(--hub-orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 10px;
}

.scene-hud-chapter-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.scene-hud-line {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
}

.scene-hud-meta {
  margin: 0;
  font-size: 12px;
  opacity: 0.78;
}

@media (max-width: 540px) {
  .scene-hud-meta {
    font-size: 11px;
    line-height: 1.4;
    word-break: break-word;
  }
}

.scene-hud-progress-block {
  text-align: right;
}

.scene-hud-progress-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.scene-hud-fraction {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hub-orange);
  line-height: 1;
}

.scene-hud-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .scene-hud-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scene-hud-metric {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
}

.scene-hud-metric span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-bottom: 4px;
}

.scene-hud-metric strong {
  font-size: 14px;
  font-weight: 700;
}

.scene-hud-metric--salary strong {
  color: #86efac;
}

.scene-hud-metric--infl strong {
  color: #e9d5ff;
}

.scene-hud-metric--ba strong {
  color: #93c5fd;
}

.scene-hud-metric--vb strong {
  color: #fdba74;
}

.scene-hud-score-block {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
  border: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  align-items: center;
}

.scene-hud-score-block .hud-score-bar--wide {
  grid-column: 1 / -1;
}

.hud-score-bar--wide {
  margin-top: 8px;
}

.card--context {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: var(--hub-card-radius);
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
}

.context-strip-icon {
  display: inline-flex;
  color: #2563eb;
  flex-shrink: 0;
}

.context-strip-icon .ui-icon-svg {
  width: 22px;
  height: 22px;
}

.context-strip-title {
  display: block;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.context-strip-text {
  margin: 0;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.45;
}

.card--dialogue {
  background: #fff;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(28, 25, 23, 0.06);
  border: 1px solid var(--hub-neutral-border);
}

.modal-body--gameplay .story-background {
  display: none;
}

.modal-body--gameplay .question-dialog .story-text {
  background: #f5f5f4;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
}

.modal-body--gameplay .question-dialog .story-text p {
  font-style: italic;
  color: #44403c;
  margin: 0;
  line-height: 1.5;
}

.card--choices {
  background: #fff;
  padding: 20px 20px 22px;
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 61, 74, 0.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

#gameModal .choices-grid {
  gap: 12px;
}

.modal-body--gameplay .feedback-section {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--hub-neutral-border);
  border-radius: 14px;
  padding: 22px 22px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.modal-body--gameplay .feedback-section .feedback-content h3 {
  margin-top: 0;
  color: var(--hub-teal);
  font-size: 1.15rem;
}

.modal-body--gameplay .feedback-section #feedbackText {
  color: #44403c;
  line-height: 1.55;
  font-size: 15px;
}

.choices-decision-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--hub-teal);
}

.choices-decision-icon {
  display: inline-flex;
  color: var(--hub-orange);
  flex-shrink: 0;
}

.choices-decision-icon .ui-icon-svg {
  width: 20px;
  height: 20px;
}

.choice-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(0, 61, 74, 0.15) !important;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  position: relative;
  transition: border-color var(--motion-fast) var(--ease-out-smooth), box-shadow var(--motion-fast) var(--ease-out-smooth), transform var(--motion-fast) var(--ease-out-smooth);
}

.choice-btn::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 61, 74, 0.25);
  margin-top: 2px;
}

.choice-btn:hover {
  border-color: rgba(230, 126, 34, 0.45) !important;
  box-shadow: 0 4px 12px rgba(0, 61, 74, 0.08);
}

.choice-btn.selected {
  border-color: var(--hub-orange) !important;
  box-shadow: 0 0 0 1px var(--hub-orange);
}

.choice-btn.selected::before {
  border-color: var(--hub-orange);
  background: radial-gradient(circle, var(--hub-orange) 45%, transparent 46%);
}

/* Modal jeu : le fond #fff !important empêche le hover legacy (fond bleu) mais laisse color:#fff → texte illisible */
#gameModal .choice-btn:hover,
#gameModal .choice-btn:focus-visible {
  background: #fafaf9 !important;
  color: #1c1917 !important;
  border-color: rgba(216, 96, 24, 0.45) !important;
  box-shadow: 0 6px 20px rgba(0, 49, 60, 0.1);
}

#gameModal .choice-btn:hover .choice-text,
#gameModal .choice-btn:focus-visible .choice-text,
#gameModal .choice-btn:hover .choice-icon,
#gameModal .choice-btn:focus-visible .choice-icon {
  color: #1c1917;
}

#gameModal .choice-btn.selected {
  color: var(--hub-teal) !important;
  background: #fffaf5 !important;
}

#gameModal .choice-btn.selected .choice-text,
#gameModal .choice-btn.selected .choice-icon {
  color: #1c1917;
}

#gameModal .choice-btn.selected:hover,
#gameModal .choice-btn.selected:focus-visible {
  background: #fff5eb !important;
  color: var(--hub-teal) !important;
}

#continueBtn.btn--primary {
  background: var(--hub-orange);
  border-color: var(--hub-orange);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
}

#continueBtn.btn--primary:hover {
  background: var(--hub-orange-dark);
  border-color: var(--hub-orange-dark);
}

.choices-footer-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 49, 60, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.choice-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-teal);
  cursor: pointer;
  user-select: none;
}

.choice-mode-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--hub-orange);
  cursor: pointer;
}

.choices-validate-btn {
  flex: 1 1 auto;
  min-width: 200px;
  max-width: 100%;
  background: var(--hub-orange) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
}

.choices-validate-btn:hover:not(:disabled) {
  background: var(--hub-orange-dark) !important;
}

.choices-validate-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ========== Drawer détail chapitre (Figma ChapterDetailDrawer) ========== */
.chapter-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s;
}

.chapter-drawer.chapter-drawer--open {
  visibility: visible;
  pointer-events: auto;
}

.chapter-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.chapter-drawer--open .chapter-drawer-overlay {
  opacity: 1;
}

.chapter-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 42rem);
  max-width: 100vw;
  background: #fff;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chapter-drawer--open .chapter-drawer-panel {
  transform: translateX(0);
}

.chapter-drawer-header {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--hub-teal) 0%, rgba(0, 49, 60, 0.94) 100%);
  color: #fff;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chapter-drawer-header-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 44px;
}

.chapter-drawer-badge {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--hub-orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-drawer-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
}

.chapter-drawer-scenes {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.chapter-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chapter-drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chapter-drawer-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.chapter-drawer-tag--category-carriere {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.chapter-drawer-tag--category-moduleA {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.chapter-drawer-tag--category-moduleB {
  background: rgba(33, 128, 141, 0.12);
  color: #155e66;
  border-color: rgba(33, 128, 141, 0.28);
}

.chapter-drawer-tag--category-bonus {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde047;
}

.chapter-drawer-tag--category-cert {
  background: rgba(216, 96, 24, 0.12);
  color: var(--hub-orange-dark);
  border-color: rgba(216, 96, 24, 0.25);
}

.chapter-drawer-tag--category-scrum {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.chapter-drawer-tag--category-babok {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #99f6e4;
}

.chapter-drawer-tag--diff {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.chapter-drawer-tag--status-done {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.chapter-drawer-tag--status-open {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.chapter-drawer-tag--status-lock {
  background: #f4f4f5;
  color: #71717a;
  border-color: #e4e4e7;
}

.chapter-drawer-tag--status-dev {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.chapter-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px 24px 28px;
}

.chapter-drawer-block {
  margin-bottom: 26px;
}

.chapter-drawer-text--sm {
  font-size: 12px;
  color: #57534e;
  line-height: 1.45;
  margin: 0 0 10px;
}

.chapter-drawer-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #78716c;
}

.chapter-drawer-subtitle {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hub-teal);
}

.chapter-drawer-badges-catalog {
  margin-top: 4px;
}

.chapter-drawer-badges-catalog .chapter-catalog-rewards {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.chapter-drawer-badges-catalog .chapter-catalog-rewards-inner {
  padding: 0;
}

.chapter-drawer-badges-catalog .chapter-catalog-rewards-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.chapter-drawer-decisions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter-drawer-decision-item {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--hub-neutral-border);
  background: #fafaf9;
}

.chapter-drawer-decision-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.chapter-drawer-decision-result {
  color: #57534e;
  font-weight: 600;
}

.chapter-drawer-decision-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.chapter-drawer-decision-title {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 4px;
}

.chapter-drawer-decision-choice {
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 6px;
}

.chapter-drawer-decision-meta {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.chapter-drawer-babok-mini .babok-profile-row {
  padding: 8px 0;
}

.chapter-drawer-babok-mini .babok-profile-summary {
  font-size: 12px;
  margin-top: 8px;
}

.chapter-drawer-block-title {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--hub-teal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chapter-drawer-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  color: var(--hub-teal);
}

.chapter-drawer-block-icon .ui-icon-svg {
  width: 20px;
  height: 20px;
}

.chapter-drawer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #44403c;
}

.chapter-drawer-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chapter-drawer-skill-pill {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-teal);
  background: rgba(0, 49, 60, 0.06);
  border: 1px solid var(--hub-neutral-border);
}

.chapter-drawer-rewards-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #78716c;
}

.chapter-drawer-rewards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .chapter-drawer-rewards {
    grid-template-columns: 1fr;
  }
}

.chapter-drawer-reward-cell {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.chapter-drawer-reward-cell--salary {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.chapter-drawer-reward-cell--infl {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.chapter-drawer-reward-cell--ba {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.chapter-drawer-reward-cell--vb {
  background: #fff7ed;
  border-color: #fed7aa;
}

.chapter-drawer-reward-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  opacity: 0.85;
}

.chapter-drawer-reward-value {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.chapter-drawer-performance {
  margin-bottom: 18px;
}

.chapter-drawer-performance-inner {
  padding: 20px;
  border-radius: var(--hub-card-radius);
  background: linear-gradient(135deg, var(--hub-teal) 0%, rgba(0, 31, 38, 0.92) 100%);
  color: #fff;
}

.chapter-drawer-performance-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chapter-drawer-performance-inner .chapter-drawer-block-icon {
  color: rgba(255, 255, 255, 0.95);
}

.chapter-drawer-performance-score {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.chapter-drawer-performance-denom {
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.75;
}

.chapter-drawer-performance-msg {
  margin: 12px 0 0;
  font-size: 13px;
  opacity: 0.88;
  line-height: 1.45;
}

.chapter-drawer-recap {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: var(--hub-card-radius);
  border: 1px solid rgba(0, 31, 38, 0.1);
  background: #f8fafc;
}

.chapter-drawer-recap .chapter-drawer-block-title {
  margin-top: 0;
}

.chapter-drawer-recap-body {
  margin-top: 10px;
}

.chapter-drawer-recap-line {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.chapter-drawer-recap-line:last-child {
  margin-bottom: 0;
}

.chapter-drawer-recap-k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hub-teal);
  margin-bottom: 4px;
}

.chapter-drawer-recap-forward {
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 31, 38, 0.12);
}

.chapter-drawer-note {
  padding: 14px 16px;
  background: #fafaf9;
  border: 1px solid var(--hub-neutral-border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #57534e;
}

.chapter-drawer-note strong {
  color: var(--hub-teal);
}

.chapter-drawer-footer {
  flex: 0 0 auto;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--hub-neutral-border);
  background: #fafaf9;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
}

.chapter-drawer-lock-reason {
  margin: 0 0 12px;
  font-size: 13px;
  color: #b45309;
  line-height: 1.4;
}

.chapter-drawer-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chapter-drawer-cta-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.chapter-drawer-cta-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chapter-drawer-cta-ico:empty {
  display: none;
}

.chapter-drawer-cta-svg {
  display: block;
  width: 22px;
  height: 22px;
}

.chapter-drawer-cta--play {
  background: var(--hub-orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(216, 96, 24, 0.35);
}

.chapter-drawer-cta--play:hover:not(:disabled) {
  background: var(--hub-orange-dark);
}

.chapter-drawer-cta--replay {
  background: #fff;
  color: var(--hub-teal);
  border: 2px solid var(--hub-teal);
}

.chapter-drawer-cta--replay:hover:not(:disabled) {
  background: var(--hub-teal);
  color: #fff;
}

.chapter-drawer-cta--locked {
  background: #f4f4f5;
  color: #a1a1aa;
  cursor: not-allowed;
}

.catalog-chapters-section .chapter-card.unlocked,
.catalog-chapters-section .chapter-card.locked {
  cursor: pointer;
}

.catalog-chapters-section .chapter-card .play-chapter {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

@media (max-width: 520px) {
  .catalog-chapters-section .chapter-card {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .catalog-chapters-section .chapter-number {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 4px;
  }

  .catalog-chapters-section .chapter-content {
    grid-column: 1;
    grid-row: 2;
  }

  .catalog-chapters-section .chapter-catalog-footer {
    grid-column: 1;
    grid-row: 3;
  }
}

/* ===== Figma polish : motion + icônes SVG (Lucide-like) ===== */
.ui-icon-svg {
  display: block;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hubFadeUp {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes hubFadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes modalGameplayIn {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.99);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes hubTimelineItemIn {
    from {
      opacity: 0;
      transform: translateX(-8px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  #hubDashboardView:not(.hidden) .hub-hero {
    animation: hubFadeUp var(--motion-med) var(--ease-out-smooth) both;
  }

  #hubDashboardView:not(.hidden) .hub-disc-card {
    animation: hubFadeUp var(--motion-med) var(--ease-out-smooth) 0.06s both;
  }

  #hubDashboardView:not(.hidden) .hub-dash-grid .hub-dash-card:nth-child(1) {
    animation: hubFadeUp var(--motion-med) var(--ease-out-smooth) 0.04s both;
  }

  #hubDashboardView:not(.hidden) .hub-dash-grid .hub-dash-card:nth-child(2) {
    animation: hubFadeUp var(--motion-med) var(--ease-out-smooth) 0.1s both;
  }

  #hubDashboardView:not(.hidden) .hub-dash-grid .hub-dash-card:nth-child(3) {
    animation: hubFadeUp var(--motion-med) var(--ease-out-smooth) 0.16s both;
  }

  #hubDashboardView:not(.hidden) .hub-kpi-section {
    animation: hubFadeUp var(--motion-med) var(--ease-out-smooth) 0.08s both;
  }

  #hubDashboardView:not(.hidden) .hub-kpi-grid .hub-kpi-card:nth-child(1) {
    animation: hubFadeUp calc(var(--motion-med) + 0.04s) var(--ease-out-smooth) 0.12s both;
  }

  #hubDashboardView:not(.hidden) .hub-kpi-grid .hub-kpi-card:nth-child(2) {
    animation: hubFadeUp calc(var(--motion-med) + 0.04s) var(--ease-out-smooth) 0.16s both;
  }

  #hubDashboardView:not(.hidden) .hub-kpi-grid .hub-kpi-card:nth-child(3) {
    animation: hubFadeUp calc(var(--motion-med) + 0.04s) var(--ease-out-smooth) 0.2s both;
  }

  #hubDashboardView:not(.hidden) .hub-kpi-grid .hub-kpi-card:nth-child(4) {
    animation: hubFadeUp calc(var(--motion-med) + 0.04s) var(--ease-out-smooth) 0.24s both;
  }

  #hubDashboardView:not(.hidden) .hub-journal-card {
    animation: hubFadeUp var(--motion-med) var(--ease-out-smooth) 0.14s both;
  }

  #hubDashboardView:not(.hidden) .hub-reco-wrap .hub-reco-card:not(.hidden),
  #hubDashboardView:not(.hidden) .hub-dashboard-aside .hub-recent-card {
    animation: hubFadeUp var(--motion-med) var(--ease-out-smooth) 0.18s both;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item {
    animation: hubTimelineItemIn 0.38s var(--ease-out-smooth) both;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(1) {
    animation-delay: 0.05s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(2) {
    animation-delay: 0.1s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(3) {
    animation-delay: 0.14s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(4) {
    animation-delay: 0.18s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(5) {
    animation-delay: 0.22s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(6) {
    animation-delay: 0.26s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(7) {
    animation-delay: 0.3s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(8) {
    animation-delay: 0.34s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(9) {
    animation-delay: 0.38s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(10) {
    animation-delay: 0.42s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(11) {
    animation-delay: 0.46s;
  }

  :is(#hubDashboardView, #hubParcoursView):not(.hidden) .hub-timeline-item:nth-child(12) {
    animation-delay: 0.5s;
  }

  #hubCatalogView:not(.hidden) .catalog-page-head,
  #hubCatalogView:not(.hidden) .catalog-chapters-section {
    animation: hubFadeUp var(--motion-med) var(--ease-out-smooth) both;
  }

  #gameModal:not(.hidden) .modal-content--gameplay {
    animation: modalGameplayIn var(--motion-med) var(--ease-out-smooth) both;
  }

  #gameModal:not(.hidden) .scene-hud-metric {
    animation: hubFadeIn 0.35s var(--ease-out-smooth) both;
  }

  #gameModal:not(.hidden) .scene-hud-metric:nth-child(1) {
    animation-delay: 0.04s;
  }

  #gameModal:not(.hidden) .scene-hud-metric:nth-child(2) {
    animation-delay: 0.08s;
  }

  #gameModal:not(.hidden) .scene-hud-metric:nth-child(3) {
    animation-delay: 0.12s;
  }

  #gameModal:not(.hidden) .scene-hud-metric:nth-child(4) {
    animation-delay: 0.16s;
  }

  #gameModal:not(.hidden) .card--context {
    animation: hubFadeUp 0.4s var(--ease-out-smooth) 0.06s both;
  }

  #gameModal:not(.hidden) .card--dialogue {
    animation: hubFadeUp 0.42s var(--ease-out-smooth) 0.1s both;
  }

  #gameModal:not(.hidden) .card--choices {
    animation: hubFadeUp 0.42s var(--ease-out-smooth) 0.14s both;
  }

  .hub-summary-card,
  .hub-dash-card,
  .hub-kpi-card,
  .hub-timeline-card {
    transition: transform var(--motion-fast) var(--ease-out-smooth), box-shadow var(--motion-fast) var(--ease-out-smooth);
  }

  .hub-summary-card:hover,
  .hub-dash-card:hover,
  .hub-kpi-card:hover,
  .hub-timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hub-card-shadow-hover);
  }

  .choice-btn:hover {
    transform: translateY(-1px);
  }

  .choice-btn:active {
    transform: scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  #hubDashboardView:not(.hidden) .hub-hero,
  #hubDashboardView:not(.hidden) .hub-disc-card,
  #hubDashboardView:not(.hidden) .hub-dash-grid .hub-dash-card,
  #hubDashboardView:not(.hidden) .hub-kpi-section,
  #hubDashboardView:not(.hidden) .hub-kpi-grid .hub-kpi-card,
  #hubDashboardView:not(.hidden) .hub-journal-card,
  #hubDashboardView:not(.hidden) .hub-reco-wrap .hub-reco-card,
  #hubDashboardView:not(.hidden) .hub-dashboard-aside .hub-recent-card,
  #hubDashboardView:not(.hidden) .hub-timeline-item,
  #hubCatalogView:not(.hidden) .catalog-page-head,
  #hubCatalogView:not(.hidden) .catalog-chapters-section,
  #gameModal:not(.hidden) .modal-content--gameplay,
  #gameModal:not(.hidden) .scene-hud-metric,
  #gameModal:not(.hidden) .card--context,
  #gameModal:not(.hidden) .card--dialogue,
  #gameModal:not(.hidden) .card--choices {
    animation: none !important;
  }

  .hub-summary-card:hover,
  .hub-kpi-card:hover,
  .hub-timeline-card:hover,
  .choice-btn:hover,
  .choice-btn:active {
    transform: none;
  }
}

/* ========== Alignement maquettes Figma (trajectoire, journal, récents, KPI) ========== */
.hub-summary-card--suppressed[hidden],
#hubChaptersProgressCard[hidden] {
  display: none !important;
}

.hub-summary-grid--score-row {
  margin-bottom: 16px;
}

.hub-dashboard-dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 720px) {
  .hub-dashboard-dual-cards {
    grid-template-columns: 1fr;
  }
}

.hub-card-progression,
.hub-card-trajectory-mini {
  border: 1px solid var(--hub-neutral-border);
  border-radius: var(--hub-card-radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  padding: 18px 20px;
}

.hub-mini-card-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--hub-teal);
}

.hub-prog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hub-prog-label {
  font-size: 14px;
  color: #44403c;
}

.hub-progress-track--figma {
  height: var(--hub-progress-height);
  border-radius: 999px;
  background: var(--hub-progress-track);
  overflow: hidden;
  margin-bottom: 12px;
}

.hub-progress-track--figma .hub-progress-fill {
  height: 100%;
  background: var(--hub-progress-fill);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.hub-prog-next {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.hub-prog-next strong {
  color: var(--hub-teal);
  font-weight: 700;
}

.hub-mini-trajectory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-mini-trajectory-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hub-mini-trajectory-label {
  font-size: 14px;
  color: #44403c;
}

.hub-mini-trajectory-value {
  font-size: 15px;
  color: var(--hub-teal);
}

.career-path--insights-only {
  margin-bottom: 32px;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.career-path-hidden-fields {
  display: none !important;
}

.career-path--insights-only .career-path-content--insights {
  padding: 0;
}

.career-path--insights-only .career-milestone-ribbon {
  margin-top: 0;
}

.career-path--figma {
  margin-bottom: 22px;
  border: 1px solid var(--hub-neutral-border);
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.career-path--figma .career-path-content {
  padding: 22px 24px 24px;
}

.career-path-heading {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-teal);
}

.career-path-status-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px 20px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.career-path-status-cell--right {
  text-align: right;
}

.career-path-status-cell--right strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.career-path-grid--figma {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.career-path-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 76px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.career-path-tile--wide {
  grid-column: 1 / -1;
}

.career-path-tile .career-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
}

.career-path-tile strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.career-milestone-ribbon {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(220, 252, 231, 0.45);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.career-milestone-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #166534;
  margin-bottom: 6px;
}

.career-milestone-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #14532d;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.career-insights-shell {
  margin-top: 18px;
  padding: 18px;
  background: rgba(236, 253, 245, 0.5);
  border: 1px solid #d1fae5;
  border-radius: 12px;
}

.career-path--insights-only .career-insights-shell {
  background: #fff;
  border: 1px solid var(--hub-neutral-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.career-insights-shell--babok-active {
  background: #fff;
  border-color: var(--hub-neutral-border);
}

.career-insights-shell .career-insights-tabs {
  margin-bottom: 14px;
}

.insight-panel-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

@media (min-width: 720px) {
  .insight-panel-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.insight-panel-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.sparkline-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sparkline-meta-row .meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}

.sparkline-meta-row .meta-chip--trend.up {
  border-color: rgba(22, 101, 52, 0.25);
  background: rgba(220, 252, 231, 0.65);
  color: #166534;
}

.sparkline-meta-row .meta-chip--trend.down {
  border-color: rgba(185, 28, 28, 0.25);
  background: rgba(254, 226, 226, 0.65);
  color: #b91c1c;
}

.sparkline-meta-row .meta-chip--trend.stable {
  border-color: rgba(0, 49, 60, 0.2);
  background: rgba(224, 242, 242, 0.7);
  color: var(--hub-teal);
}

.kpi-chart-wrap {
  width: 100%;
  background: #fff;
  border: 1px solid var(--hub-neutral-border);
  border-radius: 12px;
  padding: 8px 10px 4px;
}

.kpi-chart-wrap--hub {
  margin-top: 4px;
}

.kpi-chart-wrap--figma {
  position: relative;
  overflow: visible;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
  padding: 10px 12px 6px;
}

.hub-kpi-evolution-tooltip {
  position: absolute;
  z-index: 20;
  min-width: 188px;
  max-width: min(260px, 92vw);
  padding: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.hub-kpi-tooltip-inner {
  background: #fff;
  border: 1px solid #001f24;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.hub-kpi-tooltip-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #001f24;
  margin: 0 0 10px;
}

.hub-kpi-tooltip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.55;
}

.hub-kpi-tooltip-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 2px 0;
}

.hub-kpi-tooltip-list strong {
  color: #0f172a;
  font-weight: 700;
}

.hub-kpi-tooltip-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.hub-kpi-tooltip-dot--inf {
  background: #e65100;
}

.hub-kpi-tooltip-dot--ba {
  background: #001f24;
}

.hub-kpi-tooltip-dot--vb {
  background: #008955;
}

.hub-kpi-evolution-head--figma {
  align-items: flex-start;
}

.hub-kpi-evolution-head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.hub-kpi-evolution-sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  font-weight: 500;
}

.sparkline-meta-row--figma {
  flex: 1 1 240px;
}

.kpi-evolution-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
}

.hub-kpi-evolution--figma {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 49, 60, 0.08);
  background: #fff;
}

.hub-kpi-evolution--figma .hub-kpi-evolution-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #001f24;
  letter-spacing: -0.02em;
}

.kpi-evolution-svg--figma {
  max-height: 280px;
  min-height: 200px;
}

.kpi-evolution-legend--figma {
  margin-top: 14px;
  padding-top: 4px;
}

.kpi-evolution-legend--figma .kpi-legend-item--inf .kpi-legend-dot {
  background: #e65100;
}

.kpi-evolution-legend--figma .kpi-legend-item--ba .kpi-legend-dot {
  background: #001f24;
}

.kpi-evolution-legend--figma .kpi-legend-item--vb .kpi-legend-dot {
  background: #008955;
}

.hub-kpi-evolution-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hub-teal);
}

.kpi-evolution-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.kpi-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kpi-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.kpi-legend-item--inf .kpi-legend-dot {
  background: var(--hub-kpi-a);
}

.kpi-legend-item--ba .kpi-legend-dot {
  background: var(--hub-kpi-b);
}

.kpi-legend-item--vb .kpi-legend-dot {
  background: var(--hub-kpi-c);
}

.hub-journal-card {
  border: 1px solid var(--hub-neutral-border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.hub-journal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px;
}

.hub-timeline-card {
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  box-shadow: none;
  background: #fff;
}

.hub-timeline-date {
  color: #94a3b8;
  font-size: 12px;
}

.hub-timeline-card-title {
  color: #0f172a;
}

.hub-timeline-card-body {
  color: #57534e;
  line-height: 1.5;
}

.hub-recent-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #fafaf9;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.hub-recent-row:hover {
  border-color: rgba(216, 96, 24, 0.35);
  background: #fff;
}

.hub-recent-badge {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--hub-teal);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.hub-recent-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-recent-chapter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hub-teal);
  line-height: 1.35;
}

.hub-recent-scoreline {
  font-size: 13px;
  color: #78716c;
}

.hub-recent-scoreline strong {
  color: #0f172a;
  font-weight: 700;
}

.insight-panel--babok .career-label--block {
  display: block;
  margin-bottom: 10px;
}

/* —— Page Mon parcours (vue hub dédiée) —— */
#hubParcoursView {
  padding-bottom: 40px;
}

/* Ruban Mon parcours — charte IIBA (bleu #1f4e79, orange #d86018) */
.parcours-hero {
  position: relative;
  background: linear-gradient(
    128deg,
    var(--iiba-blue-dark, #164063) 0%,
    var(--iiba-blue, #1f4e79) 48%,
    var(--iiba-blue-light, #2d5a8a) 100%
  );
  color: #f8fafc;
  border: none;
  box-shadow: 0 8px 28px rgba(22, 64, 99, 0.2);
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: var(--hub-hero-radius, 16px);
}

.parcours-hero-brand-bar {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--hub-orange-dark, #c55515) 0%,
    var(--hub-orange, #d86018) 45%,
    var(--iiba-orange-light, #ff8c5a) 100%
  );
}

.parcours-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px 20px;
}

@media (min-width: 640px) {
  .parcours-hero-inner {
    padding: 20px 22px 22px;
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .parcours-hero-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 28px;
    padding: 22px 26px 24px;
  }
}

.parcours-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

@media (min-width: 640px) {
  .parcours-hero-main {
    gap: 18px;
  }
}

.parcours-hero-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
  .parcours-hero-avatar {
    width: 68px;
    height: 68px;
    font-size: 2.1rem;
    border-radius: 14px;
  }
}

.parcours-hero-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iiba-orange-light, #ff8c5a);
}

@media (min-width: 640px) {
  .parcours-hero-kicker {
    font-size: 12px;
    margin-bottom: 6px;
  }
}

.parcours-hero-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.parcours-hero-metrics-wrap {
  width: 100%;
  min-width: 0;
}

@media (min-width: 960px) {
  .parcours-hero-metrics-wrap {
    flex: 1 1 58%;
    max-width: 720px;
  }
}

.parcours-hero-metrics-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 960px) {
  .parcours-hero-metrics-title {
    display: none;
  }
}

.parcours-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

@media (min-width: 600px) {
  .parcours-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
  }
}

@media (min-width: 900px) {
  .parcours-hero-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Tablette : grille 3 colonnes, dernière carte élargie */
@media (min-width: 600px) and (max-width: 899px) {
  .parcours-metric--xp {
    grid-column: span 2;
  }
}

.parcours-metric {
  background: #fff;
  border-radius: 10px;
  padding: 12px 12px 11px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  min-height: 0;
}

@media (min-width: 640px) {
  .parcours-metric {
    padding: 13px 14px 12px;
    border-radius: 12px;
  }
}

.parcours-metric-value {
  font-size: clamp(1.35rem, 4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--iiba-blue, #1f4e79);
  letter-spacing: -0.02em;
}

.parcours-metric--chapters .parcours-metric-value,
.parcours-metric--score-latest .parcours-metric-value,
.parcours-metric--score-history .parcours-metric-value,
.parcours-metric--score .parcours-metric-value {
  color: var(--hub-orange, #d86018);
}

.parcours-metric--badges .parcours-metric-value,
.parcours-metric--xp .parcours-metric-value {
  color: var(--iiba-blue, #1f4e79);
}

.parcours-metric-unit {
  font-size: 0.72em;
  font-weight: 700;
  color: #64748b;
  margin-left: 1px;
}

.parcours-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .parcours-metric-label {
    font-size: 12px;
  }
}

.parcours-metric-hint {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .parcours-metric-hint {
    font-size: 11px;
  }
}

.parcours-hero .parcours-metric-label-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.parcours-hero .info-chip--metric {
  border-color: rgba(31, 78, 121, 0.25);
  color: var(--iiba-blue, #1f4e79);
  background: #f1f5f9;
}

.parcours-hero .info-chip--metric:hover {
  background: #e2e8f0;
  border-color: var(--iiba-blue, #1f4e79);
}

.parcours-metric--score-latest,
.parcours-metric--score-history {
  border-top: 3px solid var(--hub-orange, #d86018);
}

.parcours-page-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.parcours-page-main,
.parcours-page-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

@media (min-width: 960px) {
  .parcours-page-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 32px;
  }
}

/* Cartes : même langage visuel que le dashboard (sauf carte profil DISC déjà stylée) */
#hubParcoursView .parcours-section.card:not(.profile-disc-card) {
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid rgba(31, 78, 121, 0.1);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

#hubParcoursView .parcours-section.card:not(.profile-disc-card):hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.09);
}

#hubParcoursView .profile-disc-card.card {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(31, 78, 121, 0.14);
}

.parcours-section {
  margin-bottom: 0;
}

.parcours-stats-lead {
  margin: -4px 0 18px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  max-width: 36rem;
}

.parcours-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

#hubParcoursView .parcours-section.card:not(.profile-disc-card) .parcours-section-title {
  color: var(--iiba-blue, #1f4e79);
}

.parcours-section-ico {
  display: flex;
  color: var(--hub-teal, #0d5c66);
  opacity: 0.9;
}

.parcours-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.parcours-section-head .parcours-section-title {
  margin-bottom: 0;
}

.parcours-journal-export {
  display: flex;
  gap: 8px;
}

.parcours-completed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.parcours-completed-row {
  width: 100%;
  text-align: left;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.parcours-completed-row:hover {
  border-color: var(--hub-teal, #0d5c66);
  box-shadow: 0 4px 16px rgba(13, 92, 102, 0.08);
}

.parcours-completed-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.parcours-completed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--hub-teal, #0d5c66);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.parcours-completed-status {
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.parcours-completed-status::before {
  content: "✓";
  font-weight: 800;
}

.parcours-completed-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.parcours-completed-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--hub-teal, #0d5c66);
  line-height: 1.35;
}

.parcours-completed-score {
  font-size: 13px;
  color: #78716c;
}

.parcours-completed-score strong {
  color: #0f172a;
}

.parcours-badges-summary {
  font-size: 13px;
  color: #57534e;
  margin: 0 0 14px;
  line-height: 1.45;
}

.parcours-achievements-grid {
  max-height: 420px;
  overflow-y: auto;
}

.career-journal-list--inline {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
}

.parcours-stats-card .parcours-stat-block {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(31, 78, 121, 0.045);
  border: 1px solid rgba(31, 78, 121, 0.09);
}

.parcours-stats-card .parcours-stat-block + .parcours-stat-block {
  margin-top: 12px;
}

.parcours-stats-card .parcours-section-title {
  color: var(--iiba-blue, #1f4e79);
  margin-bottom: 0;
}

.parcours-stat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.parcours-stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.parcours-stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.parcours-stat-bar-wrap {
  width: 100%;
}

.parcours-stat-bar {
  height: 10px;
  border-radius: 999px;
  background: #e7e5e4;
  overflow: hidden;
}

.parcours-stat-bar--salary span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c, #f97316);
  transition: width 0.25s ease;
}

@media (max-width: 640px) {
  .career-path-status-bar {
    grid-template-columns: 1fr;
  }

  .career-path-status-cell--right {
    text-align: left;
  }
}

/* —— DISC : repère lisible (dashboard, feedback jeu, Mon parcours) —— */
.hub-disc-card {
  margin-bottom: 20px;
}

.hub-disc-card--compact .hub-disc-kicker {
  margin-bottom: 8px;
}

.hub-disc-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hub-disc-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--iiba-blue);
  background: rgba(31, 78, 121, 0.08);
  border: 1px solid rgba(31, 78, 121, 0.18);
}

.hub-disc-disc-line {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.hub-disc-disc-line strong {
  color: #0f172a;
  font-weight: 700;
}

.hub-disc-disc-line-prelude {
  font-weight: 600;
  color: #64748b;
}

.hub-disc-card,
.profile-disc-card,
.feedback-disc-card {
  border: 1px solid rgba(31, 78, 121, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 252, 0.94));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hub-disc-card-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hub-disc-card-main,
.profile-disc-card-body {
  padding: 18px 20px;
}

.hub-disc-kicker,
.profile-disc-kicker,
.feedback-disc-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

/* « DISC » cliquable dans « Ton style DISC actuel » — ouvre la modale schéma + texte */
.hub-disc-word-btn {
  margin: 0 1px;
  padding: 0 2px;
  border: none;
  background: none;
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--hub-orange-dark, #c2410c);
  text-decoration: underline;
  text-decoration-color: rgba(194, 65, 12, 0.35);
  text-underline-offset: 2px;
  cursor: pointer;
  border-radius: 2px;
}

.hub-disc-word-btn:hover {
  color: var(--hub-orange, #ea580c);
  text-decoration-color: rgba(234, 88, 12, 0.55);
}

.hub-disc-word-btn:focus-visible {
  outline: 2px solid var(--hub-orange, #ea580c);
  outline-offset: 2px;
}

.hub-hero-taille {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  max-width: 42rem;
}

.hub-hero-taille-label {
  font-weight: 600;
  color: #64748b;
}

.disc-explain-modal-content {
  max-width: 440px;
}

.disc-explain-modal-body {
  text-align: left;
}

.disc-explain-figure {
  margin: 0 0 16px;
  text-align: center;
}

.disc-explain-figure img {
  max-width: min(280px, 100%);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.disc-explain-lead,
.disc-explain-next {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #0f172a;
}

.disc-explain-next {
  margin-bottom: 16px;
}

.disc-explain-source {
  margin: 0;
  font-size: 14px;
}

.disc-explain-source a {
  color: var(--iiba-blue, #1f4e79);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disc-explain-source a:hover {
  color: #0c2d4a;
}

.hub-disc-title,
.profile-disc-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--iiba-blue);
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.hub-disc-title-prelude {
  font-weight: 800;
}

.profile-disc-title {
  align-items: center;
}

.hub-disc-interpretation,
.profile-disc-translation,
.feedback-disc-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.profile-disc-style,
.feedback-disc-main {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #0f172a;
}

.hub-disc-next,
.profile-disc-next-step {
  margin-top: 10px;
  font-size: 13px;
  color: #57534e;
}

.hub-api-status {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
  max-width: 42rem;
}

.hub-api-status--below-disc {
  margin-top: 4px;
  margin-bottom: 0;
}

.auth-gate-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}

.auth-migration-hint,
.auth-migration-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #1e3a5f;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.auth-migration-notice {
  margin-top: 4px;
}

.auth-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-gate-secondary {
  width: 100%;
}

.hub-disc-actions,
.profile-disc-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-disc-actions {
  margin-top: 0;
  align-self: center;
}

.profile-disc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.profile-disc-box {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(31, 78, 121, 0.04);
  border: 1px solid rgba(31, 78, 121, 0.08);
}

.profile-disc-box h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--iiba-blue);
}

.profile-disc-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.profile-disc-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 78, 121, 0.1);
}

.profile-disc-secondary {
  margin: 0 0 8px;
  font-size: 14px;
  color: #475569;
}

.feedback-disc-card {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(216, 96, 24, 0.06);
  border: 1px solid rgba(216, 96, 24, 0.14);
}

.feedback-disc-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .profile-disc-columns {
    grid-template-columns: 1fr;
  }
}

/* —— Réflexes BA (badges pattern chapitre, UX sobre) —— */
.feedback-reflex-badge-host {
  margin-top: 14px;
}

.feedback-reflex-badge-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-reflex-badge {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(31, 78, 121, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 252, 0.95));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.feedback-reflex-badge--reflex {
  border-color: rgba(216, 96, 24, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 237, 0.5));
}

.feedback-reflex-badge--vigilance {
  border-color: rgba(100, 116, 139, 0.35);
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.feedback-reflex-badge--enter {
  animation: feedbackReflexIn 0.4s var(--ease-out-smooth, ease-out) both;
}

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

@media (prefers-reduced-motion: reduce) {
  .feedback-reflex-badge--enter {
    animation: none;
  }
}

.feedback-reflex-badge-ico {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.9;
}

.feedback-reflex-badge-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}

.feedback-reflex-badge-name {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--iiba-blue, #1f4e79);
  letter-spacing: -0.02em;
}

.feedback-reflex-badge-impact {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.feedback-reflex-badge-disc {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.hub-reflex-badges {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 78, 121, 0.1);
  background: linear-gradient(180deg, #fff, #fafbfc);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* Bandeau réflexes : masqué sur l’accueil (conservé sur Mon parcours / catalogue) */
#hubReflexBadgesStrip {
  display: none !important;
}

.hub-reflex-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.hub-reflex-lead {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #57534e;
  max-width: 40rem;
}

.hub-reflex-empty {
  font-size: 13px;
  color: #78716c;
  margin-bottom: 8px;
}

.hub-reflex-empty.hidden {
  display: none;
}

.hub-reflex-subkicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.hub-reflex-last-name {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--iiba-blue, #1f4e79);
}

.hub-reflex-last-impact {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.45;
}

.hub-reflex-last-chapter {
  margin: 8px 0 0;
  font-size: 12px;
}

.hub-reflex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hub-reflex-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: rgba(31, 78, 121, 0.06);
  border: 1px solid rgba(31, 78, 121, 0.1);
}

.hub-reflex-next {
  margin: 12px 0 0;
  font-size: 13px;
  color: #57534e;
}

.hub-reflex-link {
  margin-top: 8px;
}

.parcours-reflex-intro {
  margin: -6px 0 14px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.parcours-reflex-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.parcours-reflex-tile {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(31, 78, 121, 0.1);
  background: rgba(31, 78, 121, 0.03);
}

.parcours-reflex-tile--locked {
  opacity: 0.72;
  background: #f8fafc;
}

.parcours-reflex-tile-ico {
  font-size: 1.25rem;
  line-height: 1;
}

.parcours-reflex-tile-name {
  display: block;
  font-size: 15px;
  color: var(--iiba-blue, #1f4e79);
  margin-bottom: 4px;
}

.parcours-reflex-tile-impact {
  margin: 0 0 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.parcours-reflex-tile-meta {
  margin: 0;
  font-size: 12px;
  color: #78716c;
}

.catalog-reflex-mount {
  margin-bottom: 12px;
}

.catalog-reflex-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.catalog-reflex-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(31, 78, 121, 0.06);
  border: 1px solid rgba(31, 78, 121, 0.12);
  color: #334155;
}

.catalog-reflex-pill--locked {
  opacity: 0.55;
}

.catalog-reflex-pill-ico {
  font-size: 14px;
  line-height: 1;
}

.catalog-reflex-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #78716c;
  line-height: 1.45;
}

/* Saison 2 — multi-sélection (prototype ch. 16) */
.choice-multiselect-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
}

.choice-multiselect-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 78, 121, 0.15);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-multiselect-row:hover {
  border-color: rgba(33, 128, 141, 0.45);
  background: rgba(50, 184, 198, 0.06);
}

.choice-multiselect-check {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-teal-600, #1d7480);
}

.choice-multiselect-label {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-charcoal-800, #262828);
}

.s2-immersive-banner {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(33, 128, 141, 0.35);
  background: rgba(50, 184, 198, 0.1);
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--color-charcoal-800, #262828);
}

.s2-immersive-banner strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.s2-immersive-banner-sub {
  opacity: 0.92;
  font-size: 0.84rem;
}

.s2-immersive-metrics {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(33, 128, 141, 0.35);
  font-size: 0.82rem;
  line-height: 1.35;
}

.s2-immersive-metric-row {
  padding: 0.15rem 0;
}

/* Saison 2 — carte catalogue mise en avant */
.chapter-card--season2-spotlight {
  grid-column: 1 / -1;
  max-width: 100%;
  border: 2px solid rgba(33, 128, 141, 0.35);
  background: linear-gradient(135deg, rgba(50, 184, 198, 0.08) 0%, rgba(255, 255, 255, 0.96) 55%);
  box-shadow: 0 8px 28px rgba(19, 52, 59, 0.08);
}

@media (min-width: 720px) {
  .chapter-card--season2-spotlight {
    grid-column: span 2;
  }
}

.chapter-card--module-b-study-lock {
  opacity: 0.72;
  filter: grayscale(0.28);
}

.module-b-unlock-modal-content {
  max-width: 420px;
}

.module-b-unlock-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #3f3f46;
}

.module-b-unlock-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #52525b;
}

.module-b-unlock-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
}

.module-b-unlock-err {
  min-height: 1.25em;
  font-size: 13px;
  color: #b91c1c;
  margin: 8px 0 0;
}

.module-b-unlock-actions {
  margin-top: 16px;
}

.module-b-catalog-code-btn {
  margin-top: 10px;
  width: 100%;
  max-width: 220px;
}

.chapter-number--s2 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-teal-700, #1a6873);
}

.chapter-number--s1 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-orange-500, #a84b2f);
}

.chapter-number--scrum {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #6b21a8;
}

.chapter-number--secret {
  font-size: 0.95rem;
  font-weight: 800;
  color: #b45309;
}

.chapter-catalog-lead {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3f4e52;
  margin: 0 0 12px;
}

/* Descriptions scénarisées (catalogue) : contexte + tension + promesse */
.chapter-catalog-story {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3f4e52;
  margin: 0 0 12px;
}

.chapter-catalog-story > p {
  margin: 0 0 0.65rem;
}

.chapter-catalog-story > p:last-child {
  margin-bottom: 0;
}

.chapter-catalog-hook {
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #9a3412;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.55rem !important;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.65), rgba(255, 251, 235, 0.9));
  border: 1px solid rgba(217, 119, 6, 0.22);
}

.chapter-pill--s2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.chapter-pill--s2-season {
  background: rgba(33, 128, 141, 0.12);
  border-color: rgba(33, 128, 141, 0.28);
  color: #155e69;
}

.chapter-pill--s2-study {
  background: rgba(168, 75, 47, 0.1);
  border-color: rgba(168, 75, 47, 0.22);
  color: #8a4a2f;
}

.chapter-pill--s2-proto {
  background: rgba(98, 108, 113, 0.1);
  border-color: rgba(98, 108, 113, 0.2);
  color: #3d4548;
}