/* ============================================================================
   JusticePourtous.ch — Design System
   Copilote juridique suisse pour citoyens

   Direction artistique :
   - Presse de reference (NZZ, Le Temps, The Guardian)
   - Signaletique suisse (SBB/CFF, admin.ch)
   - Produit numerique premium (Stripe, Linear, Notion)

   Zero framework, zero build step, CSS pur.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Google Fonts
   ---------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* ----------------------------------------------------------------------------
   Design Tokens
   ---------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --surface-primary: #FAF9F7;
  --surface-elevated: #FFFFFF;
  --surface-sunken: #F0EEEB;
  --surface-inverse: #1B1B1B;

  /* Texte */
  --text-primary: #1B1B1B;
  --text-secondary: #4A4A4A;
  --text-tertiary: #7A7A7A;
  --text-inverse: #FAF9F7;

  /* Accents */
  --accent-primary: #8B2500;
  --accent-primary-hover: #6D1D00;
  --accent-secondary: #2C5F7C;
  --accent-success: #2D6A4F;
  --accent-warning: #B45309;
  --accent-danger: #9B1B30;

  /* Bordures */
  --border-subtle: #E5E2DE;
  --border-default: #D1CEC8;
  --border-strong: #1B1B1B;

  /* Espacements */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Rayons */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(27, 27, 27, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 27, 27, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 27, 27, 0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 720px;
  --max-width-content: 640px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Selection */
::selection {
  background-color: rgba(139, 37, 0, 0.12);
  color: var(--text-primary);
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ----------------------------------------------------------------------------
   Typography
   ---------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

p + p {
  margin-top: var(--space-md);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

small {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

code, .mono {
  font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.875em;
}

/* Inline code */
code {
  background: var(--surface-sunken);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

/* Accent text */
.text-accent {
  color: var(--accent-primary);
}

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

.text-tertiary {
  color: var(--text-tertiary);
}

.text-success {
  color: var(--accent-success);
}

.text-warning {
  color: var(--accent-warning);
}

.text-danger {
  color: var(--accent-danger);
}

/* ----------------------------------------------------------------------------
   Layout
   ---------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-content {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* ----------------------------------------------------------------------------
   Navigation
   ---------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background-color: var(--surface-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-mark {
  width: 24px;
  height: 24px;
  background-color: var(--accent-primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-out);
  padding: var(--space-xs) 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--duration-fast) var(--ease-out);
}

/* ----------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: var(--space-3xl) var(--space-xl);
}

.hero h1 {
  font-size: 3.5rem;
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.hero h1 .text-accent {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
}

/* Hero search — the central object */
.hero-search {
  width: 100%;
  max-width: 600px;
  position: relative;
  margin: 0 auto var(--space-lg);
}

.hero-search .search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  overflow: hidden;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.hero-search .search-wrapper:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(139, 37, 0, 0.08);
}

.hero-search .search-input {
  flex: 1;
  height: 56px;
  padding: 0 var(--space-lg);
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: var(--text-primary);
  background: transparent;
}

.hero-search .search-input::placeholder {
  color: var(--text-tertiary);
}

.hero-search .search-btn {
  height: 44px;
  padding: 0 var(--space-lg);
  margin-right: 6px;
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

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

.hero-search .search-btn:active {
  transform: scale(0.97);
}

/* Search hints / pills */
.search-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.search-hint {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.85em;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  background: var(--surface-elevated);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.search-hint:hover {
  border-color: var(--border-default);
  color: var(--text-primary);
  background: var(--surface-sunken);
}

/* ----------------------------------------------------------------------------
   Trust Band
   ---------------------------------------------------------------------------- */
.trust-band {
  background-color: var(--surface-sunken);
  padding: var(--space-xl) 0;
}

.trust-band .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.trust-item svg,
.trust-item .trust-icon {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.trust-item span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------------------
   Domain Grid (Homepage)
   ---------------------------------------------------------------------------- */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.domain-card {
  display: block;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition:
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.domain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.domain-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.domain-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Domain color variants */
.domain-card[data-domain="logement"]  { border-left-color: var(--accent-primary); }
.domain-card[data-domain="travail"]   { border-left-color: var(--accent-secondary); }
.domain-card[data-domain="famille"]   { border-left-color: var(--accent-success); }
.domain-card[data-domain="contrats"]  { border-left-color: var(--accent-warning); }
.domain-card[data-domain="penal"]     { border-left-color: var(--accent-danger); }
.domain-card[data-domain="admin"]     { border-left-color: var(--text-tertiary); }

/* ----------------------------------------------------------------------------
   Card System (Generic)
   ---------------------------------------------------------------------------- */
.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

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

.card-highlight {
  border-left: 4px solid var(--accent-primary);
}

.card-warn {
  border-left: 4px solid var(--accent-warning);
  background: rgba(180, 83, 9, 0.03);
}

.card-danger {
  border-left: 4px solid var(--accent-danger);
  background: rgba(155, 27, 48, 0.02);
}

.card-success {
  border-left: 4px solid var(--accent-success);
}

.card + .card {
  margin-top: var(--space-md);
}

/* Card header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

/* ----------------------------------------------------------------------------
   Result Page Layout
   ---------------------------------------------------------------------------- */
.result-layout {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: var(--space-xl);
  align-items: start;
}

.result-main {
  min-width: 0;
}

.result-aside {
  position: sticky;
  top: calc(64px + var(--space-lg));
}

/* Triage summary card */
.triage-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.triage-card .triage-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.triage-card .triage-situation {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.triage-card .triage-next {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.triage-card .triage-delay {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-warning);
}

/* Urgency banner (inside triage) */
.urgency-banner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  background: rgba(155, 27, 48, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--accent-danger);
  font-weight: 500;
}

/* "Pourquoi cette reponse" — collapsible */
.explainer {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  overflow: hidden;
}

.explainer summary {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.explainer summary::-webkit-details-marker {
  display: none;
}

.explainer summary::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-tertiary);
  border-bottom: 1.5px solid var(--text-tertiary);
  transform: rotate(-45deg);
  transition: transform var(--duration-fast) var(--ease-out);
}

.explainer[open] summary::before {
  transform: rotate(45deg);
}

.explainer-content {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Legal references */
.legal-ref {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 0.8125rem;
  color: var(--accent-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.legal-ref:hover {
  border-bottom-color: var(--accent-secondary);
}

/* Anti-error warnings */
.anti-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  font-size: 0.875rem;
  color: var(--accent-danger);
  background: rgba(155, 27, 48, 0.03);
  border-radius: var(--radius-sm);
}

.anti-error svg,
.anti-error .anti-error-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* Contact card */
.contact-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.contact-card .contact-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.contact-card .contact-type {
  display: inline-flex;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  margin-right: var(--space-sm);
}

.contact-card .contact-free {
  display: inline-flex;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
  background: rgba(45, 106, 79, 0.08);
  color: var(--accent-success);
}

.contact-card .contact-details {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Result sections */
.result-section {
  margin-bottom: var(--space-xl);
}

.result-section h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.result-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* Steps / procedures list */
.steps-list {
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.steps-list li:last-child {
  border-bottom: none;
}

.steps-list li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(139, 37, 0, 0.06);
  border-radius: 50%;
}

/* Article list (legal articles) */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.article-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.article-item .article-ref {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 0.8125rem;
  color: var(--accent-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.article-item .article-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 0 var(--space-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

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

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

.btn-secondary {
  background-color: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0 var(--space-md);
}

.btn-ghost:hover {
  text-decoration: underline;
  color: var(--text-primary);
}

.btn-danger {
  background-color: var(--accent-danger);
  color: var(--text-inverse);
}

.btn-danger:hover {
  background-color: #7E1628;
}

.btn-sm {
  min-height: 36px;
  padding: 0 var(--space-md);
  font-size: 0.8125rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 var(--space-xl);
  font-size: 1rem;
}

/* CTA "J'ai besoin d'un avocat" — restrained, not flashy */
.btn-cta-lawyer {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  width: 100%;
  min-height: 48px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

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

/* ----------------------------------------------------------------------------
   Badges
   ---------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.badge-simple {
  background: rgba(45, 106, 79, 0.1);
  color: var(--accent-success);
}

.badge-moyen {
  background: rgba(180, 83, 9, 0.1);
  color: var(--accent-warning);
}

.badge-complexe {
  background: rgba(155, 27, 48, 0.1);
  color: var(--accent-danger);
}

.badge-confiance {
  background: var(--surface-sunken);
  color: var(--text-secondary);
}

.badge-info {
  background: rgba(44, 95, 124, 0.1);
  color: var(--accent-secondary);
}

/* ----------------------------------------------------------------------------
   Inputs & Forms
   ---------------------------------------------------------------------------- */
.input {
  height: 48px;
  padding: 0 var(--space-md);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  font-size: 1rem;
  color: var(--text-primary);
  width: 100%;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 37, 0, 0.08);
}

.search-input {
  height: 56px;
  font-size: 1.125rem;
  font-family: 'Inter', sans-serif;
}

textarea.input {
  height: auto;
  min-height: 120px;
  padding: var(--space-md);
  resize: vertical;
  line-height: 1.6;
}

.input-group {
  margin-bottom: var(--space-lg);
}

.input-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.input-help {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* Select */
.select {
  height: 48px;
  padding: 0 var(--space-lg) 0 var(--space-md);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  font-size: 1rem;
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237A7A7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 37, 0, 0.08);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

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

.reveal {
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

/* Stagger delays */
.reveal-delay-1 { animation-delay: 60ms; }
.reveal-delay-2 { animation-delay: 120ms; }
.reveal-delay-3 { animation-delay: 180ms; }
.reveal-delay-4 { animation-delay: 240ms; }
.reveal-delay-5 { animation-delay: 300ms; }
.reveal-delay-6 { animation-delay: 360ms; }
.reveal-delay-7 { animation-delay: 420ms; }
.reveal-delay-8 { animation-delay: 480ms; }

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

/* ----------------------------------------------------------------------------
   States
   ---------------------------------------------------------------------------- */

/* Loading skeleton */
.loading,
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-sunken) 25%,
    var(--border-subtle) 50%,
    var(--surface-sunken) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-sm);
}

.skeleton-text:last-child {
  width: 60%;
}

/* Error box */
.error-box {
  border: 1px solid var(--accent-danger);
  background: rgba(155, 27, 48, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--accent-danger);
  font-size: 0.9375rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--text-tertiary);
}

.empty-state svg,
.empty-state .empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  opacity: 0.4;
}

.empty-state p {
  max-width: 360px;
  margin: 0 auto;
}

/* Success state */
.success-box {
  border: 1px solid var(--accent-success);
  background: rgba(45, 106, 79, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--accent-success);
  font-size: 0.9375rem;
}

/* ----------------------------------------------------------------------------
   Dividers & Separators
   ---------------------------------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-xl) 0;
}

.divider-strong {
  border-top-color: var(--border-strong);
}

/* ----------------------------------------------------------------------------
   Tables
   ---------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 2px solid var(--border-default);
}

.table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  vertical-align: top;
}

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

/* ----------------------------------------------------------------------------
   Tooltips
   ---------------------------------------------------------------------------- */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 0.35em 0.65em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-inverse);
  background: var(--surface-inverse);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* ----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
}

.footer-info {
  max-width: 320px;
}

.footer-info .nav-logo {
  margin-bottom: var(--space-md);
}

.footer-info p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: var(--space-2xl);
}

.footer-col h5 {
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* ----------------------------------------------------------------------------
   Disclaimer
   ---------------------------------------------------------------------------- */
.disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--surface-sunken);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-sm) var(--space-lg);
  text-align: center;
}

.disclaimer p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  max-width: var(--max-width);
  margin: 0 auto;
  line-height: 1.5;
}

/* Add padding to body to prevent content from being hidden behind fixed disclaimer */
body.has-disclaimer {
  padding-bottom: 48px;
}

/* Inline disclaimer variant (non-fixed) */
.disclaimer-inline {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}

.disclaimer-inline p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  max-width: var(--max-width);
  margin: 0 auto;
  line-height: 1.5;
}

/* ----------------------------------------------------------------------------
   Consultation Page
   ---------------------------------------------------------------------------- */
.consult-form {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.consult-form .form-step {
  margin-bottom: var(--space-2xl);
}

.consult-form .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(139, 37, 0, 0.06);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 100px;
  transition: width var(--duration-slow) var(--ease-out);
}

/* ----------------------------------------------------------------------------
   Premium Page
   ---------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Recommande';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25em 0.75em;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-inverse);
  background: var(--accent-primary);
  border-radius: 100px;
}

.pricing-card .price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: var(--space-md) 0;
}

.pricing-card .price small {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.pricing-card ul {
  text-align: left;
  margin: var(--space-lg) 0;
}

.pricing-card li {
  padding: var(--space-sm) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-card li:last-child {
  border-bottom: none;
}

/* ----------------------------------------------------------------------------
   Annuaire (Directory)
   ---------------------------------------------------------------------------- */
.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 0.4em 1em;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  background: var(--surface-elevated);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--border-default);
  background: var(--surface-sunken);
}

.filter-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(139, 37, 0, 0.04);
}

.directory-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ----------------------------------------------------------------------------
   Dark sections
   ---------------------------------------------------------------------------- */
.section-dark {
  background: var(--surface-inverse);
  color: var(--text-inverse);
}

.section-dark h2,
.section-dark h3 {
  color: var(--text-inverse);
}

.section-dark p {
  color: rgba(250, 249, 247, 0.7);
}

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

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-xs     { gap: var(--space-xs); }
.gap-sm     { gap: var(--space-sm); }
.gap-md     { gap: var(--space-md); }
.gap-lg     { gap: var(--space-lg); }
.gap-xl     { gap: var(--space-xl); }

.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs  { margin-bottom: var(--space-xs); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ----------------------------------------------------------------------------
   Print Styles
   ---------------------------------------------------------------------------- */
@media print {
  .nav,
  .footer,
  .disclaimer,
  .disclaimer-inline,
  .btn,
  .hero-search,
  .search-hints,
  .trust-band,
  .nav-toggle {
    display: none !important;
  }

  body {
    font-family: 'Georgia', serif;
    color: #000;
    background: #fff;
    font-size: 11pt;
    line-height: 1.5;
    padding: 0;
  }

  h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    color: #000;
    page-break-after: avoid;
  }

  .card,
  .triage-card,
  .contact-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .result-layout {
    display: block;
  }

  .result-aside {
    position: static;
    margin-top: 2em;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  .legal-ref::after {
    content: none;
  }
}

/* ----------------------------------------------------------------------------
   Responsive — Tablet (max 1024px)
   ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .result-layout {
    grid-template-columns: 1fr 0.55fr;
    gap: var(--space-lg);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer .container {
    flex-direction: column;
  }

  .footer-links {
    gap: var(--space-xl);
  }
}

/* ----------------------------------------------------------------------------
   Responsive — Mobile (max 768px)
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Layout */
  .container,
  .container-narrow,
  .container-content {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-sm {
    padding: var(--space-xl) 0;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-md);
    gap: var(--space-md);
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: var(--space-2xl) var(--space-md);
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-search .search-wrapper {
    flex-direction: column;
    border: none;
    background: transparent;
  }

  .hero-search .search-input {
    width: 100%;
    height: 52px;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 0 var(--space-md);
    font-size: 1rem;
    background: var(--surface-elevated);
  }

  .hero-search .search-wrapper:focus-within {
    box-shadow: none;
    border-color: transparent;
  }

  .hero-search .search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 37, 0, 0.08);
  }

  .hero-search .search-btn {
    width: 100%;
    height: 48px;
    margin: var(--space-sm) 0 0 0;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  /* Trust band */
  .trust-band .container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .trust-item:last-child {
    grid-column: span 2;
  }

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

  /* Result page */
  .result-layout {
    grid-template-columns: 1fr;
  }

  .result-aside {
    position: static;
  }

  .triage-card {
    padding: var(--space-lg);
  }

  .triage-card .triage-situation {
    font-size: 1.25rem;
  }

  /* Disclaimer */
  .disclaimer {
    padding: var(--space-xs) var(--space-md);
  }

  .disclaimer p {
    font-size: 0.7rem;
  }

  body.has-disclaimer {
    padding-bottom: 40px;
  }
}

/* ----------------------------------------------------------------------------
   Responsive — Small Mobile (max 375px — iPhone SE)
   ---------------------------------------------------------------------------- */
@media (max-width: 375px) {
  h1 {
    font-size: 1.875rem;
  }

  .hero {
    padding: var(--space-xl) var(--space-sm);
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .search-hints {
    gap: var(--space-xs);
  }

  .search-hint {
    font-size: 0.75rem;
    padding: 0.25em 0.65em;
  }

  .card {
    padding: var(--space-md);
  }

  .triage-card {
    padding: var(--space-md);
  }

  .btn {
    min-height: 40px;
    padding: 0 var(--space-md);
    font-size: 0.875rem;
  }

  .container,
  .container-narrow,
  .container-content {
    padding: 0 var(--space-sm);
  }

  .trust-band .container {
    grid-template-columns: 1fr;
  }

  .trust-item:last-child {
    grid-column: span 1;
  }
}

/* ============================================================================
   INTEGRATION FIX — Classes du HTML manquantes dans le design system
   Ces styles mappent les classes utilisees dans index.html et resultat.html
   ============================================================================ */

/* --- Layout wrappers --- */
.nav-inner,
.hero-inner,
.trust-inner,
.process-inner,
.domains-inner,
.stat-inner,
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.nav-scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.nav-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.nav-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.nav-links a:hover { color: var(--accent-primary); }

/* --- Quick Exit --- */
.quick-exit {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-tertiary);
  transition: all var(--duration-fast);
  text-decoration: none;
}

.quick-exit:hover {
  background: var(--surface-sunken);
  color: var(--text-primary);
  border-color: var(--border-default);
}

/* --- Notice juridique --- */
.notice-juridique {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xl);
}

.notice-juridique strong {
  color: var(--text-secondary);
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero-accent {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-2xl);
}

/* --- Search --- */
.search {
  max-width: 620px;
  margin: 0 auto;
}

.search-field {
  display: flex;
  border: 2px solid var(--text-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  background: var(--surface-elevated);
}

.search-field:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(139, 37, 0, 0.08);
}

.search-input {
  flex: 1;
  height: 56px;
  padding: 0 var(--space-lg);
  font-size: 1.0625rem;
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: none;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-submit {
  height: 56px;
  padding: 0 var(--space-xl);
  background: var(--accent-primary);
  color: var(--text-inverse);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast);
}

.search-submit:hover {
  background: var(--accent-primary-hover);
}

/* --- Search suggestions --- */
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

.suggestion {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35em 0.85em;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--duration-fast);
  background: transparent;
}

.suggestion:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(139, 37, 0, 0.04);
}

/* --- Trust band --- */
.trust {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-xl) 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.trust-icon {
  flex-shrink: 0;
  color: var(--accent-primary);
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* --- Process 01-02-03 --- */
.process {
  padding: var(--space-3xl) 0;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.process-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.process-number {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  opacity: 0.25;
  flex-shrink: 0;
}

.process-step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Domains grid --- */
.domains {
  padding: 0 0 var(--space-3xl);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.domain-card {
  display: block;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-fast);
}

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

.domain-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--domain-color, var(--accent-primary));
}

.domain-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.domain-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- Stat section --- */
.stat {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-pct {
  font-size: 3rem;
  opacity: 0.6;
}

.stat-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(250, 249, 247, 0.75);
  max-width: 480px;
  margin: var(--space-md) auto 0;
}

.stat-source {
  display: block;
  font-size: 0.75rem;
  margin-top: var(--space-sm);
  opacity: 0.5;
  font-style: italic;
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.footer-links a:hover { color: var(--accent-primary); }

.footer-legal {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 560px;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

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

/* --- Responsive --- */
/* --- Methodologie page --- */
.page {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.page-inner {
  max-width: var(--max-width-narrow, 720px);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.page-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.5rem;
  margin-bottom: var(--space-2xl);
}

.method-section {
  margin-bottom: var(--space-2xl);
}

.method-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.method-list {
  padding-left: var(--space-lg);
  list-style: disc;
}

.method-list li {
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.method-list-numbered {
  list-style: decimal;
}

.method-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.method-stat {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
}

.method-stat-number {
  display: block;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.method-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

.method-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.method-do, .method-dont {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.method-do {
  background: rgba(45, 106, 79, 0.06);
  border: 1px solid rgba(45, 106, 79, 0.15);
}

.method-dont {
  background: rgba(155, 27, 48, 0.06);
  border: 1px solid rgba(155, 27, 48, 0.15);
}

.method-do h3 { color: var(--accent-success); }
.method-dont h3 { color: var(--accent-danger); }

.method-do h3, .method-dont h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.method-confidence {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.method-conf-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero { min-height: auto; padding: var(--space-2xl) 0; }

  .nav-inner,
  .hero-inner,
  .trust-inner,
  .process-inner,
  .domains-inner,
  .stat-inner,
  .footer-inner,
  .page-inner { padding: 0 var(--space-md); }

  .search-field { flex-direction: column; }
  .search-submit { height: 48px; }

  .trust-inner { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: var(--space-lg); }
  .domains-grid { grid-template-columns: 1fr; }

  .stat-number { font-size: 3.5rem; }
  .stat-pct { font-size: 2rem; }

  .notice-juridique { font-size: 0.7rem; }

  .suggestion { font-size: 0.72rem; padding: 0.3em 0.7em; }

  .quick-exit { width: 32px; height: 32px; }

  .page-title { font-size: 1.75rem; }
  .method-stats { grid-template-columns: repeat(2, 1fr); }
  .method-two-col { grid-template-columns: 1fr; }
}
