/* SpectroMind — Design system émeraude (mobile first) */

:root {
  --bg: #f8fafc;
  --bg-warm: #f1f5f9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;

  /* Charte verte premium validée */
  --emerald-primary: #059669;
  --emerald-dark: #047857;
  --mint-accent: #10b981;
  --emerald-light: #ecfdf5;
  --emerald-glow: rgba(5, 150, 105, 0.12);

  /* Alias compatibilité (legacy teal/green dans le JS/SVG) */
  --teal: var(--mint-accent);
  --teal-light: var(--emerald-light);
  --teal-dark: var(--emerald-dark);
  --green-cta: var(--emerald-primary);
  --green-cta-hover: var(--emerald-dark);

  --border: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(5, 150, 105, 0.05);
  --shadow-lg: 0 16px 48px rgba(5, 150, 105, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --max-w: 1120px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(5, 150, 105, 0.04), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(16, 185, 129, 0.03), transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(5, 150, 105, 0.02), transparent 60%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; }

a { color: inherit; }

/* ——— Typography ——— */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
}

/* ——— Layout ——— */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }

/* ——— Navigation ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo span { color: var(--teal); }

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--teal); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg { width: 22px; height: 22px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.nav-mobile a:hover { background: var(--teal-light); color: var(--teal); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .hidden-mobile-cta { display: inline-flex; }
}

@media (max-width: 899px) {
  .hidden-mobile-cta { display: none; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--mint-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--mint-accent) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald-primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--emerald-primary);
  border: 2px solid rgba(5, 150, 105, 0.35);
}

.btn-secondary:hover {
  background: var(--emerald-light);
  border-color: var(--mint-accent);
}

.btn-teal {
  background: linear-gradient(135deg, var(--emerald-primary), var(--mint-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-teal:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* ——— Hero ——— */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-cta { margin-bottom: 3rem; }

/* ——— Gender funnel ——— */
.gender-section { padding: 2rem 0 4rem; }

.gender-section h2 {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.gender-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
}

.gender-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gender-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.gender-card.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: var(--shadow-md);
}

.gender-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
  border-radius: 50%;
  color: var(--teal);
}

.gender-card span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

/* ——— Cards ——— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  color: var(--teal);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ——— Gaussian section ——— */
.gauss-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.gauss-chart {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.gauss-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gauss-legend { grid-template-columns: repeat(4, 1fr); }
}

.gauss-legend-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.gauss-legend-item strong {
  display: block;
  font-size: 1.125rem;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

/* ——— Stats ——— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ——— Steps ——— */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step-item {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--emerald-primary), var(--mint-accent));
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ——— Pricing teaser ——— */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem;
  background: var(--surface);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 1rem 0;
}

.pricing-card .price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
}

.pricing-features svg {
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: auto;
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .logo { color: #fff; }
.footer-brand .logo span { color: #5eead4; }

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.25rem 0;
}

.footer-col a:hover { color: #5eead4; }

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ——— Cookie banner ——— */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.cookie-inner p {
  flex: 1;
  min-width: 200px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ——— Presentation page ——— */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.gender-reminder {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.presentation-cta {
  text-align: center;
  padding: 2rem 0 4rem;
}

/* ——— Test page header ——— */
.test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.test-header .logo { font-size: 1.125rem; }

.q-counter {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.4rem 0.875rem;
  border-radius: 100px;
}

.timer-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

.timer-badge.warning { background: #b45309; }
.timer-badge.critical { background: #b91c1c; }

.progress-wrap {
  height: 4px;
  background: var(--border);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald-primary), var(--mint-accent));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ——— Test main ——— */
.test-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2rem 1.25rem 4rem;
}

.test-card {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.test-card.transitioning {
  opacity: 0.6;
  pointer-events: none;
}

.question-text {
  font-size: clamp(1rem, 3vw, 1.125rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.matrix-viewport {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.matrix-viewport:empty { display: none; }

.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
}

.option-btn:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--teal-light);
}

.option-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.option-btn:disabled { cursor: default; }

.option-btn.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.2);
}

/* Pas de feedback correct/incorrect pendant le quiz — uniquement après déblocage */

.option-letter {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text-muted);
}

.option-btn.selected .option-letter {
  background: var(--teal);
  color: #fff;
}

.option-content { flex: 1; font-weight: 600; }

/* ——— Paywall ——— */
.paywall-card {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 2px solid var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.paywall-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.paywall-card > p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.paywall-score-preview { display: none !important; }

.paywall-price {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.paywall-price-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.paywall-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.paywall-features li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.paywall-features svg { flex-shrink: 0; color: var(--teal); }

.btn-checkout {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.paywall-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ——— Results ——— */
.results-wrap {
  width: 100%;
  max-width: 680px;
}

.results-hero {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* .results-hero-main remplace l'ancien bloc unique dans results-score-row */

.results-hero .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.iq-score {
  font-size: clamp(3rem, 10vw, 4rem);
  font-weight: 900;
  color: var(--emerald-primary);
  margin: 0.5rem 0;
  letter-spacing: -0.03em;
}

.results-profile {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric-box {
  padding: 1rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

.metric-box span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

/* ——— Résultats : Score de QI + Points forts ——— */
.iq-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-primary);
  margin: 0.25rem 0 0;
}

.iq-score {
  line-height: 1;
  margin-bottom: 0.35rem;
}

.results-insight-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}

@media (min-width: 540px) {
  .results-insight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .insight-card-spectrum {
    grid-column: 1 / -1;
  }
}

.insight-card {
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.insight-card-muted {
  background: #f1f5f9;
  opacity: 0.92;
}

.insight-card-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.insight-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.insight-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
}

.insight-value-muted {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-muted);
}

.spectrum-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spectrum-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2.75rem;
  align-items: center;
  gap: 0.65rem;
}

.spectrum-row-secondary .spectrum-name {
  color: var(--text-muted);
}

.spectrum-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

.spectrum-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.spectrum-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #047857, #10b981);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.spectrum-fill-muted {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.spectrum-pct {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--emerald-primary);
  text-align: right;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.disclaimer-box {
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.corrections-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.corrections-panel h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.correction-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.correction-item:last-child { border-bottom: none; padding-bottom: 0; }

.correction-item h3 {
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.correction-item .q-preview {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.answer-row {
  font-size: 0.8125rem;
  padding: 0.35rem 0;
}

.answer-row.user-wrong { color: #b91c1c; }
.answer-row.user-right { color: var(--green-cta); }
.answer-row strong { font-weight: 700; }

.correction-exp {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.55;
  padding: 0.75rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
}

.status-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.status-badge.ok { background: rgba(45, 90, 61, 0.12); color: var(--green-cta); }
.status-badge.ko { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }

/* ——— Modal ——— */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(26, 46, 53, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.modal p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ——— Balance shapes (test content) ——— */
.balance-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 320px;
  margin: 0 auto;
  font-size: 0.875rem;
}

.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
}

.balance-row:last-child { border-bottom: none; font-weight: 700; }

.shape { display: inline-flex; gap: 4px; align-items: center; }

.shape-sq { width: 14px; height: 14px; background: var(--teal); border-radius: 2px; }
.shape-ci { width: 14px; height: 14px; background: #f59e0b; border-radius: 50%; }
.shape-tri { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--green-cta); }
.shape-star { color: #6366f1; font-weight: 800; font-size: 0.875rem; }

/* ——— Auth gate (fin de test) ——— */
.auth-gate-card {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.auth-gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  border-radius: 50%;
  color: var(--teal);
}

.auth-gate-card h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.auth-gate-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.auth-gate-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.auth-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.auth-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.auth-form input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.req { color: var(--teal); }

/* ——— Page connexion ——— */
.auth-page-wrap {
  padding: 3rem 0 4rem;
  flex: 1;
}

.auth-page-inner {
  max-width: 480px;
  margin: 0 auto;
}

.auth-page-inner h1 {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-forgot-wrap {
  margin: -0.25rem 0 0.5rem;
  text-align: right;
}

.auth-panel-lead {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.auth-page-lead {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.auth-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.auth-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.auth-message.error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.auth-message.success {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.auth-logged {
  text-align: center;
  padding: 2rem;
}

.auth-logged-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.text-muted { color: var(--text-muted); font-size: 0.875rem; }

.nav-link-btn {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}

.nav-link-btn:hover { color: var(--teal); }

.email-toast {
  padding: 1rem 1.25rem;
  background: var(--teal-light);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-sm);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-beta-badge,
.modal-beta-badge[hidden] {
  display: none !important;
}

.modal-beta-badge-legacy {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.shape-dia {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #6366f1;
  transform: rotate(45deg);
  border-radius: 1px;
}

/* ——— Print attestation A4 ——— */
.print-report { display: none; }

@media print {
  @page { size: A4 portrait; margin: 12mm; }

  body {
    background: #fff !important;
    background-image: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header, .test-header, .progress-wrap,
  .test-main, .results-wrap, .modal-overlay, .cookie-banner {
    display: none !important;
  }

  .print-report {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .certificate {
    width: 100%;
    min-height: 260mm;
    box-sizing: border-box;
  }

  .certificate-border {
    border: 3px double #1a2e35;
    padding: 14mm 16mm;
    min-height: 250mm;
    display: flex;
    flex-direction: column;
  }

  .certificate-header {
    text-align: center;
    padding-bottom: 8mm;
    border-bottom: 1px solid #dde8ec;
  }

  .certificate-logo {
    font-size: 28pt;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a2e35;
  }

  .certificate-logo span { color: #059669; }

  .certificate-subtitle {
    font-size: 10pt;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #5a6f78;
    margin-top: 4mm;
  }

  .certificate-body {
    flex: 1;
    text-align: center;
    padding: 12mm 8mm;
  }

  .certificate-intro {
    font-size: 11pt;
    color: #5a6f78;
    line-height: 1.6;
    margin-bottom: 4mm;
  }

  .certificate-name {
    font-size: 22pt;
    font-weight: 800;
    color: #1a2e35;
    margin: 6mm 0;
  }

  .certificate-score-box {
    margin: 10mm auto;
    padding: 8mm 12mm;
    border: 2px solid #059669;
    border-radius: 8px;
    max-width: 80mm;
  }

  .certificate-score-label {
    display: block;
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #5a6f78;
    margin-bottom: 3mm;
  }

  .certificate-score-value {
    display: block;
    font-size: 48pt;
    font-weight: 900;
    color: #059669;
    line-height: 1;
  }

  .certificate-score-unit {
    display: block;
    font-size: 9pt;
    color: #8fa3ab;
    margin-top: 3mm;
  }

  .certificate-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6mm;
    margin-top: 10mm;
    font-size: 10pt;
  }

  .certificate-meta span {
    display: block;
    color: #8fa3ab;
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .certificate-meta strong {
    color: #1a2e35;
    font-size: 11pt;
  }

  .certificate-footer {
    border-top: 1px solid #dde8ec;
    padding-top: 6mm;
    text-align: center;
    font-size: 8pt;
    color: #8fa3ab;
    line-height: 1.5;
  }

  .certificate-footer p { margin-bottom: 2mm; }

  .certificate-brand {
    font-weight: 700;
    color: #5a6f78;
    margin-top: 4mm;
  }
}

/* Aperçu écran de l'attestation (optionnel) */
@media screen {
  .print-report .certificate {
    max-width: 210mm;
    margin: 2rem auto;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }
  .print-report .certificate-border {
    border: 3px double var(--border);
    padding: 2.5rem;
    min-height: 480px;
  }
  .print-report .certificate-logo { font-size: 1.75rem; font-weight: 800; }
  .print-report .certificate-logo span { color: var(--emerald-primary); }
  .print-report .certificate-score-value { font-size: 4rem; font-weight: 900; color: var(--emerald-primary); }
}

/* ——— Utility ——— */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden { display: none !important; }

/* ——— Sélecteur de langue ——— */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.lang-btn {
  min-width: 36px;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

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

.lang-btn.active {
  background: var(--surface);
  color: var(--emerald-primary);
  box-shadow: var(--shadow-sm);
}

.nav-actions .lang-switcher {
  margin-right: 0.25rem;
}

/* ——— Emplacements Google AdSense (invisibles si vide) ——— */
.ad-placeholder {
  width: 100%;
  min-height: 72px;
  margin: 1.5rem auto;
  max-width: var(--max-w);
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.ad-placeholder::after {
  content: attr(data-ad-label);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.35;
}

/* ——— Courbe de distribution (résultats) ——— */
.results-bell-chart {
  margin: 1.25rem 0 0;
  padding: 0.75rem 0;
}

.results-bell-chart svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.cta-with-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cta-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 420px;
  text-align: center;
  line-height: 1.45;
}

.refund-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem;
  line-height: 1.5;
  text-align: center;
}

.ad-placeholder-hero {
  max-width: 728px;
  min-height: 90px;
}

.ad-placeholder-cta {
  max-width: 468px;
  min-height: 60px;
  margin-top: 1.25rem;
}

.ad-placeholder-test {
  min-height: 50px;
  margin-top: 1.25rem;
  max-width: 100%;
}

.ad-placeholder-results {
  min-height: 250px;
  margin: 0;
}

@media (min-width: 768px) {
  .ad-placeholder-results {
    min-height: 280px;
  }
}

/* Résultats : annonce à côté du score */
.results-score-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .results-score-row {
    grid-template-columns: 1fr minmax(280px, 320px);
    align-items: start;
  }
}

.results-hero-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* =============================================================================
   SpectroMind — Accueil (page-home)
   ============================================================================= */

/* ——— Hero premium (accueil clair) ——— */
.hero-premium {
  padding: 2.5rem 0 3.5rem;
}

.hero-premium-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-premium-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .hero-premium-copy { text-align: left; }
  .hero-premium-copy .hero-sub { margin-left: 0; }
  .hero-premium-copy .cta-with-sub { align-items: flex-start; }
  .hero-premium-copy .cta-sub { text-align: left; margin-left: 0; }
}

.page-home .hero-badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--mint-accent);
  border-color: rgba(16, 185, 129, 0.25);
}

.hero-premium h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--text);
  max-width: none;
  margin-bottom: 1rem;
}

.hero-premium .hero-sub {
  color: var(--text-muted);
  max-width: 520px;
}

.hero-premium-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ——— Carte hologramme cyber (accueil + paywall) ——— */
.premium-hologram-card,
.premium-character-placeholder {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.55);
  background: #0d1117;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: hologramNeonPulse 3.5s ease-in-out infinite;
}

.premium-hologram-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(16, 185, 129, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(13, 17, 23, 0) 0%, rgba(5, 150, 105, 0.08) 100%);
  pointer-events: none;
}

.hologram-core {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 1.25rem;
}

.hologram-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.hologram-ring-1 {
  animation: hologramSpin 12s linear infinite;
}

.hologram-ring-2 {
  inset: 18%;
  border-style: dashed;
  opacity: 0.7;
  animation: hologramSpin 18s linear infinite reverse;
}

.hologram-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.9);
}

.hologram-tag {
  position: relative;
  z-index: 1;
  margin: 0 1.25rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.9);
}

.hero-hologram-slot {
  min-height: 360px;
}

.paywall-hologram {
  max-width: 100%;
  min-height: 160px;
  margin-bottom: 1.25rem;
}

@keyframes hologramNeonPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(16, 185, 129, 0.25),
      0 0 28px rgba(16, 185, 129, 0.18),
      0 20px 50px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(52, 211, 153, 0.65),
      0 0 42px rgba(16, 185, 129, 0.45),
      0 0 80px rgba(5, 150, 105, 0.2),
      0 24px 56px rgba(0, 0, 0, 0.4);
  }
}

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

/* ——— Modal paiement (carte bancaire) ——— */
.checkout-payment-card {
  max-width: 420px;
  width: calc(100% - 2rem);
  margin: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.payment-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.payment-card-chip {
  width: 42px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.payment-card-brand {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.payment-card-brand span {
  color: var(--emerald-primary);
}

.checkout-payment-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.checkout-payment-card .modal-lead {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.checkout-payment-card .modal-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--emerald-primary);
  margin-bottom: 1.25rem;
}

.checkout-payment-card .modal-price small {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-form {
  text-align: left;
}

.checkout-field {
  margin-bottom: 1rem;
}

.checkout-label {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.required-asterisk {
  color: var(--emerald-primary);
  font-weight: 800;
}

.checkout-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-input:focus {
  outline: none;
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.checkout-input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
}

.checkout-payment-card .modal-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.checkout-payment-card .modal-features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
}

.checkout-payment-card .modal-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-primary);
}

.checkout-payment-card .modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.checkout-trust-line {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
}

.modal-checkout {
  max-width: 440px;
  text-align: left;
}

.paywall-optional-account {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
}

.paywall-optional-account a {
  color: var(--emerald-primary);
  font-weight: 600;
  text-decoration: none;
}

.paywall-optional-account a:hover {
  text-decoration: underline;
}

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

@keyframes neuralPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes nodeGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-in-up.delay-1 { animation-delay: 0.15s; }
.fade-in-up.delay-2 { animation-delay: 0.3s; }

.neural-pulse { animation: neuralPulse 4s ease-in-out infinite; }
.node-pulse { animation: nodeGlow 2.5s ease-in-out infinite; }
.node-pulse.delay-1 { animation-delay: 0.4s; }
.node-pulse.delay-2 { animation-delay: 0.8s; }
.node-pulse.delay-3 { animation-delay: 1.2s; }

.section-heading-with-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-heading-with-art h2 { margin: 0; }

.section-deco { flex-shrink: 0; }

/* ——— Infographie 3 étapes (clair) ——— */
.section-steps-light {
  background: var(--bg-warm);
}

.infographic-steps {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 900px) {
  .infographic-steps {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 1rem;
  }
}

.infographic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.infographic-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 40px rgba(5, 150, 105, 0.1);
}

.infographic-icon {
  margin: 0 auto 1rem;
  width: 80px;
  height: 80px;
}

.infographic-icon svg {
  width: 80px;
  height: 80px;
  display: block;
}

.infographic-step-num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--emerald-primary);
  margin-bottom: 0.5rem;
}

.infographic-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.infographic-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.infographic-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--emerald-primary);
  opacity: 0.6;
  padding-top: 2.5rem;
}

@media (min-width: 900px) {
  .infographic-arrow { display: flex; }
}

.stats-row-light {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .stats-row-light { grid-template-columns: repeat(4, 1fr); }
}

.stats-row-light .stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stats-row-light .stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--emerald-primary);
  margin-bottom: 0.25rem;
}

.stats-row-light .stat-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ——— Spécifications cognitives ——— */
.section-specs {
  padding: 4rem 0;
}

.specs-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .specs-grid { grid-template-columns: 1fr 1fr; }
}

.section-specs .section-desc { max-width: 100%; }

.specs-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.specs-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--emerald-primary);
}

.specs-list strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.specs-list span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.specs-diagram {
  display: flex;
  justify-content: center;
}

.specs-radar-svg {
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
}

.gauss-desc-center {
  margin: 0 auto 2rem;
  text-align: center;
  max-width: 560px;
}

.neural-lines {
  animation: neuralPulse 5s ease-in-out infinite;
}

/* Matrices extrêmes dans le test */
.elite-matrix {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* ════════════════════════════════════════════════════════════════
   SECTION SOCIAL PROOF
   ════════════════════════════════════════════════════════════════ */

.section-social-proof {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.4) 0%, rgba(248, 250, 252, 0) 100%);
}

.social-proof-counters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .social-proof-counters { grid-template-columns: repeat(3, 1fr); }
}

.social-counter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.social-counter-num {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--emerald-primary);
  letter-spacing: -0.02em;
}

.social-counter-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.social-counter-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.15rem;
}

.social-counter-flags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.flag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  border-radius: 5px;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(5, 150, 105, 0.18);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(5, 150, 105, 0.25);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-warm);
}

.review-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.review-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.review-country {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-stars {
  display: flex;
  gap: 0.1rem;
  margin-left: auto;
}

.review-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
}

.social-disclaimer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════════
   SECTION REPORT PREVIEW
   ════════════════════════════════════════════════════════════════ */

.section-report-preview {
  padding: 4rem 0;
  background: var(--bg-warm);
}

.report-preview-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .report-preview-grid { grid-template-columns: 1fr 1.05fr; }
}

.report-preview-bullets {
  list-style: none;
  margin: 1.25rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-preview-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.report-preview-bullets svg {
  flex-shrink: 0;
  color: var(--emerald-primary);
  margin-top: 0.15rem;
}

.report-preview-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.report-mockup {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(5, 150, 105, 0.08);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform var(--transition);
}

.report-mockup:hover {
  transform: rotate(0deg) translateY(-4px);
}

.report-mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--text);
  color: #fff;
}

.report-mockup-logo {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.report-mockup-logo span {
  color: var(--mint-accent);
}

.report-mockup-pill {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--mint-accent);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.report-mockup-body {
  padding: 1.25rem 1.1rem 1.5rem;
}

.report-mockup-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.report-mockup-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--emerald-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.report-mockup-score.blurred {
  filter: blur(11px);
  user-select: none;
}

.report-mockup-curve {
  margin: 0.5rem 0 1rem;
}

.report-mockup-curve svg {
  display: block;
  width: 100%;
  height: auto;
}

.report-mockup-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.report-mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.report-mockup-bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  width: 60px;
  flex-shrink: 0;
}

.report-mockup-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-warm);
  border-radius: 4px;
  overflow: hidden;
}

.report-mockup-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-primary), var(--mint-accent));
  border-radius: 4px;
}

.report-mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.report-mockup-lines span {
  display: block;
  height: 6px;
  background: var(--bg-warm);
  border-radius: 3px;
}

.report-mockup-lines span:nth-child(1) { width: 100%; }
.report-mockup-lines span:nth-child(2) { width: 88%; }
.report-mockup-lines span:nth-child(3) { width: 65%; }

.report-mockup-blur-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--surface) 50%);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-dark);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   SECTION FAQ (accordion)
   ════════════════════════════════════════════════════════════════ */

.section-faq {
  padding: 4rem 0 4.5rem;
}

.faq-container {
  max-width: 760px;
}

.faq-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover { border-color: rgba(5, 150, 105, 0.25); }

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--emerald-primary); }

.faq-toggle {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--emerald-primary);
  border-radius: 2px;
  transition: transform var(--transition);
}

.faq-toggle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2.5px;
  transform: translateY(-50%);
}

.faq-toggle::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2.5px;
  transform: translateX(-50%);
}

.faq-item.open .faq-toggle::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.25rem 1.1rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   NAV — Bouton Connexion et lien Déconnexion
   ════════════════════════════════════════════════════════════════ */

.nav-login-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-login-link:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  background: var(--emerald-light);
}

@media (max-width: 768px) {
  .nav-login-link { display: none; }
}

.nav-link-btn {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.nav-link-btn:hover {
  color: var(--emerald-dark);
  border-color: var(--emerald-primary);
}

.nav-link-btn.hidden { display: none; }

/* CTA final sans sous-texte */
.section-cta-final .section-desc {
  margin: 0.75rem auto 1.75rem;
  max-width: 620px;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER : bouton "Gérer mes cookies" + footer de la page test
   ════════════════════════════════════════════════════════════════ */

.footer-link-btn {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-link-btn:hover {
  color: var(--mint-accent);
}

/* Footer sur test-logique : masqué tant que le quiz est actif (sécurité visuelle) */
.site-footer-test { display: none; }
.site-footer-test.is-visible { display: block; }

/* ════════════════════════════════════════════════════════════════
   PAGES LÉGALES : structure & sélecteur de langue CSS-only
   ════════════════════════════════════════════════════════════════ */

/* Affiche le bloc de la langue courante (basé sur html[lang]) */
.lang-en, .lang-es { display: none; }
html[lang="en"] .lang-fr { display: none; }
html[lang="en"] .lang-en { display: block; }
html[lang="es"] .lang-fr { display: none; }
html[lang="es"] .lang-es { display: block; }

.legal-page {
  background: var(--bg);
  padding: 4rem 0 5rem;
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.legal-breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-breadcrumb a {
  color: var(--emerald-primary);
  text-decoration: none;
}

.legal-breadcrumb a:hover { text-decoration: underline; }

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.legal-page .legal-update {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.legal-page h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--emerald-light);
}

.legal-page h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-page ul, .legal-page ol {
  margin: 0.5rem 0 1.25rem 1.5rem;
  padding: 0;
}

.legal-page ul li, .legal-page ol li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.legal-page strong { color: var(--text); }

.legal-page a {
  color: var(--emerald-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover { color: var(--emerald-dark); }

.legal-callout {
  background: var(--emerald-light);
  border-left: 4px solid var(--emerald-primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.legal-callout p { margin-bottom: 0; color: var(--emerald-dark); font-weight: 500; }

.legal-cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin: 1rem 0 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.legal-cookies-table th,
.legal-cookies-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.legal-cookies-table th {
  background: var(--bg-warm);
  font-weight: 700;
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-cookies-table td { color: var(--text-muted); }

.legal-cookies-table tr:last-child td { border-bottom: none; }

.legal-cookies-table code {
  background: var(--bg-warm);
  padding: 0.125rem 0.35rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.75rem;
  color: var(--emerald-dark);
}

.legal-cookies-table .pill-essential {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  font-size: 0.6875rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .legal-cookies-table { font-size: 0.75rem; }
  .legal-cookies-table th,
  .legal-cookies-table td { padding: 0.5rem 0.45rem; }
}

/* ════════════════════════════════════════════════════════════════
   MODALE CONTACT + FOOTER CONTACT
   ════════════════════════════════════════════════════════════════ */

.modal-contact {
  max-width: 480px;
  text-align: left;
}

.contact-modal-lead {
  margin-bottom: 1.25rem;
}

.contact-form .form-field {
  margin-bottom: 1rem;
  text-align: left;
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form-status {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.contact-form-status.is-success {
  background: var(--emerald-light);
  color: var(--emerald-dark);
}

.contact-form-status.is-error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.contact-modal-fallback {
  font-size: 0.875rem;
  margin-top: 1rem;
}

.contact-modal-fallback a {
  color: var(--emerald-primary);
  font-weight: 600;
}

.footer-col-contact .btn-footer-contact {
  width: 100%;
  margin-bottom: 0.65rem;
}

.footer-contact-email {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
  margin: 0 0 0.5rem;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.footer-contact-link {
  font-size: 0.875rem;
  color: #5eead4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact-link:hover {
  color: #fff;
}

.legal-page a[data-open-contact] {
  cursor: pointer;
}

.contact-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 500;
  padding: 0.65rem 1.25rem;
  background: var(--text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  pointer-events: none;
}

.contact-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Bêta : masquer les emplacements pub vides */
.ad-placeholder {
  display: none !important;
}
