/* MinderCoach Professional Styles */
:root { 
  color-scheme: light dark;
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body { 
  font-family: var(--font-inter); 
  margin: 0; 
  line-height: 1.6;
  color: #374151;
}

.container { max-width: 900px; margin: 0 auto; padding: 24px; }
h1 { margin: 0 0 16px; font-size: 24px; }
.card { background: canvas; border: 1px solid #ddd; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.hidden { display: none; }
.row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
label { width: 150px; }
input { flex: 1; padding: 8px; border-radius: 6px; border: 1px solid #ccc; }
button { padding: 10px 14px; border: 0; border-radius: 8px; background: #2f6feb; color: white; cursor: pointer; }
button.primary { background: #2f6feb; }
.question { display: grid; grid-template-columns: 1fr 100px; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #ddd; }
.muted { color: #777; }
.small { font-size: 12px; }
.toast { position: fixed; bottom: 16px; right: 16px; background: #333; color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 1000; }

/* Professional Analysis Results Styles */
.analysis-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-card {
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.section-header {
  position: relative;
  overflow: hidden;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.section-card:hover .section-header::before {
  left: 100%;
}

/* Typography enhancements */
.prose {
  font-family: var(--font-inter);
  max-width: none;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1f2937;
}

.prose p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: #374151;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.prose strong {
  font-weight: 600;
  color: #1f2937;
}

/* Animation utilities */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

/* Professional loading states */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

/* Navigation Styles */
.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.7);
}

.nav-tab.active {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-tab-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.nav-tab-mobile:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.8);
}

.nav-tab-mobile.active {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Section Management */
.section {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.section.active {
  display: block;
}

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

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(15, 95, 92, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Button Styles - Improved Contrast */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0F5F5C 0%, #072A37 100%);
  color: white;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  min-height: 48px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #0C504E 0%, #094541 100%);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: rgba(255, 255, 255, 0.8);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-weight: 600;
  border: 2px solid #374151;
  border-radius: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.15);
  min-height: 44px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(15, 95, 92, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, #0F5F5C 0%, #0C504E 50%, #1f2937 100%);
  color: white;
  font-weight: 800;
  font-size: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  min-height: 56px;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #0C504E 0%, #094541 50%, #111827 100%);
}

/* Styles spécifiques pour les boutons de gradient dans le HTML */
.gradient-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  min-height: 48px;
}

.gradient-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.gradient-button:disabled {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Plan Selection Styles - Enhanced Contrast */
.plan-option {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 3px solid rgba(15, 95, 92, 0.2);
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.plan-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  border-color: rgba(15, 95, 92, 0.6);
  background: rgba(255, 255, 255, 1);
}

.plan-option.selected {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(15, 95, 92, 0.2), 0 15px 25px -5px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

.plan-header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  color: white;
  position: relative;
}

.plan-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.plan-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.plan-content {
  padding: 1.5rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  space-y: 0.75rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* Question Styles */
.question-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.question-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.question-text {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.rating-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.rating-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rating-circle {
  width: 3rem;
  height: 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.rating-option:hover .rating-circle {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: scale(1.1);
}

.rating-option.selected .rating-circle {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: white;
  transform: scale(1.1);
}

.rating-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  font-weight: 500;
}

/* Score Display Styles */
.score-dimension {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.score-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
  position: relative;
}

.score-name {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.score-value {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Toast Styles */
.toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.3s ease-out;
  max-width: 20rem;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

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

/* MinderCoach brand design layer */
:root {
        /* MinderCoach brand palette: teal primary, navy, light blue-gray */
        --brand-primary: #0F5F5C;
        --brand-primary-hover: #0C504E;
        --brand-primary-active: #094541;
        --brand-primary-soft: #E8F3F2;
        --brand-navy: #072A37;
        --brand-bg: #E5F2F9;
        --brand-bg-light: #F3F8FB;
        --brand-surface: #FFFFFF;
        --brand-border: #C9DDE4;
        /* Compatibility aliases (legacy names resolve to the new palette) */
        --copper: var(--brand-primary);
        --copper-light: var(--brand-primary-hover);
        --copper-lighter: var(--brand-primary-soft);
        --bg-base: #F8FAFC;
        --bg-card: #FFFFFF;
        --fg-primary: #0F2A38;
        --fg-secondary: #475569;
        --fg-muted: #64748B;
        --gray: #94A3B8;
        --border: #E2E8F0;
        --input-bg: #F1F5F9;
        --muted-bg: #F8FAFC;
        --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.08);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
        --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.12);
        --radius: 8px;
        --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
        --font-body: 'Inter', system-ui, sans-serif;
      }

/* Phase 2 landing and navigation refinements */
.app-shell { min-height: 100vh; overflow-x: hidden; }
.site-header { position: sticky !important; top: 0 !important; z-index: 100 !important; background: rgba(255, 255, 255, 0.92) !important; backdrop-filter: blur(14px); }
.site-header-inner { width: min(calc(100% - 48px), 1480px); min-height: 5rem; margin: 0 auto; padding: 0.75rem 2rem !important; }
.brand-lockup { gap: 0.9rem !important; }
.brand-logo { width: 9.25rem; height: 2.65rem; object-fit: contain; object-position: left center; }
.brand-copy h1 { letter-spacing: -0.04em; }
.nav-actions { gap: 0.65rem !important; }
.nav-actions .btn { min-height: 2.5rem; }
.landing-content { width: min(calc(100% - 48px), 1480px); margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.landing-hero { position: relative; isolation: isolate; min-height: 32rem; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 -2rem 3rem !important; padding: 6rem 2rem 3.5rem !important; background: linear-gradient(135deg, #E5F2F9 0%, #f8fafc 58%, #F3F8FB 100%) !important; overflow: hidden; }
.landing-hero::before { content: ''; position: absolute; width: 28rem; height: 28rem; right: -9rem; top: -12rem; border-radius: 50%; background: rgba(15, 95, 92, 0.08); z-index: -1; }
.landing-hero::after { content: ''; position: absolute; width: 18rem; height: 18rem; left: -8rem; bottom: -9rem; border-radius: 50%; border: 1px solid rgba(15, 42, 56, 0.08); z-index: -1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 1.5rem; padding: 0.45rem 0.8rem; border: 1px solid rgba(15, 95, 92, 0.2); border-radius: 999px; background: rgba(255, 255, 255, 0.8); color: var(--copper); font-size: 0.75rem; font-weight: 700; }
.landing-hero h2 { max-width: 48rem; font-size: clamp(2.35rem, 5vw, 4.25rem) !important; line-height: 1.08; }
.landing-hero p { max-width: 38rem !important; font-size: 1.1rem !important; }
.landing-hero p strong { color: var(--fg-primary); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.hero-method-link { color: var(--fg-primary); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.hero-method-link:hover { color: var(--copper); }
.hero-method-link span { color: var(--copper); font-size: 1.1rem; }
.hero-stats { display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); margin-top: 3rem; }
.hero-stats div { display: grid; gap: 0.2rem; text-align: center; }
.hero-stats strong { color: var(--fg-primary); font-family: var(--font-heading); font-size: 1.2rem; }
.hero-stats span { color: var(--fg-muted); font-size: 0.7rem; }
.landing-content > section:not(.landing-hero) { max-width: 58rem; margin-left: auto !important; margin-right: auto !important; }
.landing-content > section#questions-section,
.landing-content > section#login-section,
.landing-content > section#user-section,
.landing-content > section#plans-section,
.landing-content > section#scores-section,
.landing-content > section#analysis-section { max-width: none; width: 100%; }
@media (max-width: 768px) {
  .site-header-inner { padding: 0.7rem 1rem !important; }
  .brand-logo { width: 7.5rem; height: 2.25rem; }
  .brand-copy { display: none !important; }
  .landing-content { padding: 0 1rem 2rem !important; }
  .landing-hero { min-height: 30rem; margin: 0 -1rem 2rem !important; padding: 4.5rem 1.25rem 2.5rem !important; }
  .landing-hero h2 { font-size: 2.35rem !important; }
  .landing-hero p { font-size: 1rem !important; }
  .hero-stats { gap: 1rem; }
  .hero-stats strong { font-size: 1rem; }
  .hero-stats span { font-size: 0.65rem; }
}
@media (max-width: 420px) {
  .nav-actions .btn { padding-left: 0.75rem; padding-right: 0.75rem; font-size: 0.78rem; }
  .hero-break { display: none; }
  .hero-stats { gap: 0.7rem; }
  .hero-stats span { max-width: 5.5rem; }
}
      
      * { box-sizing: border-box; margin: 0; padding: 0; }
      body {
        background: var(--bg-base);
        color: var(--fg-primary);
        font-family: var(--font-body);
        line-height: 1.6;
        min-height: 100vh;
        font-size: 15px;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }
      h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--fg-primary); letter-spacing: -0.025em; }
      
      .card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-soft);
        padding: 2rem;
        transition: all 250ms ease;
      }
      .card:hover { box-shadow: var(--shadow-md); }
      
      .btn {
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 0.9375rem;
        border-radius: var(--radius);
        padding: 0.625rem 1.25rem;
        transition: all 200ms ease;
        cursor: pointer;
        border: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
      }
      .btn-primary {
        background: var(--copper);
        color: white;
        box-shadow: var(--shadow-soft);
      }
      .btn-primary:hover { 
        background: var(--copper-light);
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
      }
      .btn-primary:disabled { 
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
      }
      .btn-secondary {
        background: var(--input-bg);
        color: var(--fg-primary);
        border: 1.5px solid var(--border);
      }
      .btn-secondary:hover { 
        background: white;
        border-color: var(--copper);
        box-shadow: var(--shadow-soft);
      }
      .btn-secondary:disabled { 
        opacity: 0.4;
        cursor: not-allowed;
      }
      
      /* Floating label inputs */
      .form-group {
        position: relative;
        padding-top: 0.75rem;
      }
      .form-field {
        font-family: var(--font-body);
        font-size: 1rem;
        width: 100%;
        border: none;
        border-bottom: 2px solid var(--border);
        outline: 0;
        color: var(--fg-primary);
        padding: 0.75rem 0;
        background: transparent;
        transition: all 200ms ease;
      }
      .form-field::placeholder { color: transparent; }
      .form-field:placeholder-shown ~ .form-label {
        font-size: 1rem;
        cursor: text;
        top: 0.75rem;
      }
      .form-label {
        position: absolute;
        top: 0;
        display: block;
        transition: all 200ms ease;
        font-size: 0.8125rem;
        color: var(--fg-muted);
        font-weight: 500;
      }
      .form-field:focus {
        border-bottom-color: var(--copper);
        border-bottom-width: 2px;
      }
      .form-field:focus ~ .form-label {
        font-size: 0.8125rem;
        top: 0;
        color: var(--copper);
        font-weight: 600;
      }
      .form-field:required, .form-field:invalid { box-shadow: none; }
      select.form-field { 
        cursor: pointer;
        background: var(--input-bg);
        border: 1.5px solid var(--border);
        border-radius: var(--radius);
        padding: 0.75rem 1rem;
      }
      select.form-field:focus { 
        border-color: var(--copper);
        box-shadow: 0 0 0 3px rgba(15, 95, 92, 0.12);
      }
      .password-toggle {
        position: absolute;
        right: 0;
        bottom: 0.75rem;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.125rem;
        padding: 0.25rem;
        color: var(--fg-muted);
        line-height: 1;
        z-index: 2;
      }
      .password-toggle:hover { color: var(--fg-primary); }
      .form-group.pwd-field { position: relative; }
      .form-field.pwd-input { padding-right: 2rem; }
      
      .radio-group { 
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
      }
      .radio-label {
        flex: 1;
        min-width: 140px;
        padding: 0.75rem 1rem;
        background: var(--input-bg);
        border: 1.5px solid var(--border);
        border-radius: var(--radius);
        cursor: pointer;
        transition: all 200ms ease;
        box-shadow: var(--shadow-soft);
        transform: translateY(0);
        text-align: center;
        font-size: 0.875rem;
        color: var(--fg-secondary);
        font-weight: 500;
      }
      .radio-label:hover { 
        border-color: var(--copper);
        background: white;
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
      }
      .radio-label input[type="radio"] { display: none; }
      .radio-label input[type="radio"]:checked + span { 
        font-weight: 700;
        color: var(--fg-primary);
      }
      .radio-label:has(input:checked) {
        border-color: var(--copper);
        background: var(--copper-lighter);
        box-shadow: 0 0 0 3px rgba(15, 95, 92, 0.08), var(--shadow-md);
        transform: translateY(-1px);
      }
      .radio-label:focus-within { 
        outline: none;
        box-shadow: 0 0 0 3px rgba(15, 95, 92, 0.12), var(--shadow-md);
        border-color: var(--copper);
      }
      
      .section-divider {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        background: var(--muted-bg);
      }
      @keyframes fadeIn { 
        from { opacity: 0; transform: translateY(8px); } 
        to { opacity: 1; transform: translateY(0); } 
      }
      .fade-in { animation: fadeIn 300ms ease-out; }
      @keyframes pulse { 
        0%, 100% { box-shadow: 0 0 0 0 rgba(15, 95, 92, 0.7); }
        50% { box-shadow: 0 0 0 10px rgba(15, 95, 92, 0); }
      }
      .pulse { animation: pulse 1s ease-in-out infinite; }
      .hidden { display: none !important; }
      
      .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
      .chip {
        display: inline-flex; align-items: center; justify-content: center;
        padding: 0.5rem 0.875rem; border-radius: 999px;
        background: var(--input-bg); color: var(--fg-primary);
        border: 1.5px solid var(--border); box-shadow: var(--shadow-soft);
        user-select: none; pointer-events: none;
        font-weight: 500; font-size: 0.875rem;
      }
      .chip:hover { box-shadow: var(--shadow-md); }
      
      .scroll-x {
        display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 1rem;
        overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
      }
      .scroll-item { scroll-snap-align: start; }
      .statement { font-size: 1rem; line-height: 1.7; color: var(--fg-secondary); }
      
      .brand-logo {
        height: 40px;
        object-fit: contain;
        display: block;
      }
      
      /* ========== MOBILE RESPONSIVE STYLES ========== */
      @media (max-width: 768px) {
        body {
          font-size: 14px;
        }
        
        .card {
          padding: 1.25rem;
        }
        
        header > div {
          padding: 1rem !important;
        }
        header h1 {
          font-size: 1.125rem !important;
        }
        header p {
          font-size: 0.75rem !important;
        }
        .brand-logo {
          height: 32px;
        }
        
        div > div:not(header) {
          padding: 1rem !important;
        }
        
        h2 {
          font-size: 1.5rem !important;
          line-height: 1.25 !important;
        }
        
        h3 {
          font-size: 1.125rem !important;
        }
        
        .btn {
          padding: 0.75rem 1rem;
          font-size: 0.875rem;
        }
        
        .radio-group {
          flex-direction: column;
        }
        .radio-label {
          min-width: 100%;
          padding: 0.875rem 0.75rem;
          font-size: 0.8rem;
        }
        
        .form-group {
          padding-top: 0.75rem;
        }
        .form-field {
          font-size: 1rem;
        }
        
        .section-divider {
          padding: 1rem;
          margin-bottom: 0.75rem;
        }
        
        #questions-section > div:nth-last-child(2) {
          flex-direction: column;
          gap: 0.75rem;
        }
        #prev-page, #next-page {
          width: 100%;
          justify-content: center;
        }
        #page-indicator {
          order: -1;
          text-align: center;
          width: 100%;
        }
        
        #scores > div {
          padding: 1rem !important;
        }
        #scores .text-4xl {
          font-size: 1.75rem !important;
        }
        #scores .text-2xl {
          font-size: 1.25rem !important;
        }
        #scores .w-16 {
          width: 3rem !important;
          height: 3rem !important;
        }
        #scores .text-3xl {
          font-size: 1.5rem !important;
        }
        
        #analysis {
          padding: 1rem !important;
          font-size: 0.9rem;
          overflow-x: auto;
        }
        #analysis .section-divider {
          padding: 0.75rem;
        }
        
        #analysis div[style*="grid-template-columns"] {
          grid-template-columns: 1fr !important;
        }
        
        #prompt-modal > div:last-child,
        #admin-modal > div:last-child {
          margin: 0.5rem;
          padding: 1rem;
          max-height: 95vh;
          border-radius: 1rem;
        }
        #prompt-modal textarea {
          min-height: 80px;
          font-size: 0.8rem;
        }
        
        #toast {
          left: 1rem;
          right: 1rem;
          bottom: 1rem;
          text-align: center;
        }
        
        #access-admin-fab {
          bottom: 0.5rem;
          right: 0.5rem;
        }
        
        * {
          max-width: 100%;
        }
        pre, code {
          white-space: pre-wrap;
          word-break: break-word;
        }
      }
      
      @media (max-width: 768px) {
        .analysis-grid {
          grid-template-columns: 1fr !important;
        }
      }
      
      @media (max-width: 400px) {
        .card {
          padding: 1rem;
        }

        .btn {
          padding: 0.625rem 0.75rem;
          font-size: 0.8rem;
        }
        
        h2 {
          font-size: 1.25rem !important;
        }
        
        h3 {
          font-size: 1rem !important;
        }
        
        .radio-label {
          font-size: 0.75rem;
          padding: 0.75rem 0.5rem;
        }
        
        #questions-section > div:last-child {
          flex-direction: column;
        }
        #questions-section > div:last-child .btn {
          width: 100%;
          justify-content: center;
        }
        
        #analysis-section .analysis-actions-row {
          flex-direction: column;
          align-items: stretch;
        }
        #analysis-section .btn {
          width: 100%;
          justify-content: center;
        }
      }

/* ============================================================
   Header / navbar / footer — restoration (demo build)
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--brand-border);
  box-shadow: var(--shadow-soft);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 1rem;
}
.navbar-link {
  color: var(--fg-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 200ms ease, border-bottom-color 200ms ease;
}
.navbar-link:hover {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.navbar-burger { display: none; position: relative; }
.navbar-burger summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-primary);
  font-size: 1.15rem;
  cursor: pointer;
  user-select: none;
}
.navbar-burger summary::-webkit-details-marker { display: none; }
.navbar-burger summary::marker { content: ''; }
.navbar-burger summary:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.navbar-burger-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 60;
}
.navbar-burger-menu .navbar-link { padding: 0.6rem 0.75rem; border-radius: 0.5rem; border-bottom: none; }
.navbar-burger-menu .navbar-link:hover { background: var(--brand-bg-light); color: var(--brand-primary); }

/* Footer */
.site-footer {
  background: var(--brand-navy);
  color: #FFFFFF;
  margin-top: 2rem;
}
.footer-inner {
  width: min(calc(100% - 48px), 1480px);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

.footer-heading {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
  width: fit-content;
  transition: color 200ms ease;
}
.footer-col a:hover { color: #6FC4BF; }
.footer-bottom {
  width: min(calc(100% - 48px), 1480px);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  text-align: center;
}

/* Anchor offset under the sticky header */
section[id] { scroll-margin-top: 88px; }

/* "Comment ça marche" steps */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.how-step {
  background: var(--brand-bg-light);
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 1.5rem;
}
.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Responsive header / footer */
@media (max-width: 900px) {
  .navbar-links { display: none; }
  .navbar-burger { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Results / analysis page — hierarchy, width & layout (demo build)
   ============================================================ */
#analysis-section { padding: 2.5rem; }

.analysis-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.analysis-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin: 0 0 0.35rem;
}
.analysis-subtitle { margin: 0; color: var(--fg-muted); font-size: 1rem; }
.plan-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 112px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--brand-navy);
  color: #FFF;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
}
.analysis-block { margin-bottom: 2.25rem; }
.analysis-block-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin: 0 0 0.25rem;
}
.analysis-block-desc { margin: 0 0 1.1rem; color: var(--fg-muted); font-size: 0.95rem; }

.analysis-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
}
.analysis-actions-row .btn-lg {
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  border-radius: 0.75rem;
}
.analysis-actions-row #get-analysis { min-width: 230px; }

.analysis-output {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: 2rem;
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  color: var(--fg-primary);
  line-height: 1.75;
}
.analysis-output .section-divider {
  background: #FFFFFF;
  padding: 1.5rem;
}

/* Dimensions & facettes grid: 3 / 2 / 1 columns */
.analysis-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1280px) {
  .analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .analysis-grid { grid-template-columns: minmax(0, 1fr); }
}

.scores-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  color: var(--brand-navy);
  margin-bottom: 2rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.score-title-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.dimension-title-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Bottom actions: retake + PDF */
.retake-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.retake-footer .btn {
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  border-radius: 0.75rem;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .retake-footer {
    flex-direction: column;
    width: 100%;
  }
  .retake-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Plan-adapted analysis result */
.analysis-result-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-align: center;
  color: var(--brand-navy);
  margin: 0 0 2rem;
  scroll-margin-top: 110px;
}
.analysis-section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}
.analysis-upgrade-card {
  margin-top: 2.5rem;
  padding: 2.25rem 2rem;
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  text-align: center;
}
.analysis-upgrade-text {
  margin: 0 auto 1.5rem;
  max-width: 46rem;
  color: var(--brand-navy);
  font-size: 1.05rem;
  line-height: 1.6;
}
.analysis-upgrade-btn {
  min-height: 3rem;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border-radius: 0.75rem;
}

/* Header logo: bigger and crisp */
.brand-logo { width: auto; height: 56px; max-width: 220px; }
@media (max-width: 768px) {
  .brand-logo { height: 44px; max-width: 180px; }
}

/* Navbar spacing refinements */
.navbar-links { gap: 2rem; }
.nav-actions .btn { min-height: 2.75rem; }

@media (max-width: 768px) {
  #analysis-section { padding: 1.25rem; }
}
