/* =============================================================================
   ALISRAEL PRIVATE FINANCE — Design System
   Style: Private Banking / Cabinet de conseil haut de gamme
   ============================================================================= */

/* ─── 1. VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  /* Couleurs principales */
  --navy:          #0A1628;
  --navy-mid:      #0F2040;
  --navy-card:     #111F38;
  --navy-border:   #1A2F50;

  /* Or discret */
  --gold:          #C9A96E;
  --gold-light:    #DFC090;
  --gold-muted:    #8B7240;
  --gold-pale:     #F0E8D8;

  /* Fond & neutres */
  --cream:         #F5F1EB;
  --cream-dark:    #EDE8E0;
  --off-white:     #FAF8F5;
  --white:         #FFFFFF;

  /* Bordures & séparateurs */
  --border:        #D8D3CC;
  --border-light:  #E8E4DE;

  /* Texte */
  --text-primary:  #1C1A17;
  --text-secondary:#4A4540;
  --text-muted:    #7A7570;
  --text-light:    #9C9589;

  /* États */
  --success:       #2D6A4F;
  --success-bg:    #EAF4EE;
  --error:         #8B2020;
  --error-bg:      #F9ECEC;

  /* Typographie */
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;

  /* Espace */
  --space-xs:      0.25rem;
  --space-sm:      0.5rem;
  --space-md:      1rem;
  --space-lg:      1.5rem;
  --space-xl:      2rem;
  --space-2xl:     3rem;
  --space-3xl:     4.5rem;

  /* Radius */
  --radius-sm:     3px;
  --radius-md:     6px;
  --radius-lg:     10px;

  /* Ombres */
  --shadow-sm:     0 1px 3px rgba(10, 22, 40, 0.08);
  --shadow-md:     0 4px 16px rgba(10, 22, 40, 0.10);
  --shadow-lg:     0 12px 40px rgba(10, 22, 40, 0.14);

  /* Largeur max */
  --max-width:     1100px;
  --header-height: 68px;
}

/* ─── 2. RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--navy);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-sans);
}

/* ─── 3. UTILITAIRES ────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

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

/* ─── 4. HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--navy);
  border-bottom: 1px solid var(--navy-border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand,
.brand-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.15em;
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 1;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.875rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-badge--pre {
  background-color: rgba(201, 169, 110, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 110, 0.30);
}

.nav-badge--post {
  background-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ─── 5. HOME PAGE ──────────────────────────────────────────────────────────── */
.page-home {
  background-color: var(--navy);
}

.main-home {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201, 169, 110, 0.07) 0%, transparent 70%);
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 2px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  max-width: 640px;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

/* CTA Grid */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 860px;
}

.cta-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-xl);
  background-color: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
  text-decoration: none;
}

.cta-card:hover {
  border-color: var(--gold-muted);
  background-color: rgba(17, 31, 56, 0.95);
  transform: translateY(-2px);
}

.cta-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(201, 169, 110, 0.10);
  border: 1px solid rgba(201, 169, 110, 0.20);
  border-radius: var(--radius-md);
  color: var(--gold);
}

.cta-card-content {
  flex: 1;
  min-width: 0;
}

.cta-card-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

.cta-card-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.cta-card-arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: rgba(201, 169, 110, 0.4);
  transition: color 0.2s, transform 0.2s;
}

.cta-card:hover .cta-card-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* Features bar */
.features {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--navy-border);
  padding: var(--space-lg) 0;
  margin-top: auto;
}

.features-list {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

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

.feature-icon {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-muted);
  background-color: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 2px;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}

.feature-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.02em;
}

/* ─── 6. FORM PAGES — LAYOUT ────────────────────────────────────────────────── */
.page-form {
  background-color: var(--cream);
}

.main-form {
  flex: 1;
  padding: var(--space-xl) 0 var(--space-3xl);
}

/* Page header */
.page-header {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-xl);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

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

/* ─── 7. ACTION BARS ────────────────────────────────────────────────────────── */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.action-bar--top {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.action-bar--bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

.action-bar-left,
.action-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ─── 8. FORM SECTIONS ──────────────────────────────────────────────────────── */
.form-section {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.section-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold-pale);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold-muted);
  letter-spacing: 0.05em;
  line-height: 1;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
}

/* ─── 9. FORM GRIDS & GROUPS ────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  gap: var(--space-lg);
}

.form-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group--span2 {
  grid-column: span 2;
}

/* ─── 10. LABELS & INPUTS ───────────────────────────────────────────────────── */
.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.required {
  color: var(--gold-muted);
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background-color: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy-mid);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
  font-weight: 300;
}

/* Champs monétaires — alignement droite + police tabulaire */
.form-input--currency {
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Select custom arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C9589' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-select option {
  background-color: var(--white);
  color: var(--text-primary);
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* Date input */
input[type="date"].form-input {
  font-variant-numeric: tabular-nums;
}

/* Number input — retirer flèches */
input[type="number"].form-input::-webkit-inner-spin-button,
input[type="number"].form-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* ─── 11. RATIOS PANEL ──────────────────────────────────────────────────────── */
.ratios-panel {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--navy);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.ratio-item {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ratio-item + .ratio-item {
  padding-left: var(--space-lg);
  border-left: 1px solid var(--navy-border);
}

.ratio-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ratio-value {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.ratio-item--highlight .ratio-label {
  color: var(--gold-light);
  opacity: 0.8;
}

.ratio-item--highlight .ratio-value {
  color: var(--gold-light);
}

/* ─── 12. TRACKS (PARCOURS) ─────────────────────────────────────────────────── */
.tracks-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Empty state */
.tracks-empty {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  background-color: var(--off-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Track card — injected by app.js */
.track-card {
  background-color: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.track-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--cream-dark);
  border-bottom: 1px solid var(--border-light);
}

.track-card-index {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.track-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
  margin: 0 var(--space-lg);
}

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

.track-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: var(--space-md);
  align-items: end;
}

/* ─── 13. CHARTS ────────────────────────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.chart-card {
  background-color: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.chart-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.chart-wrapper {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── 14. BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
}

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

/* Primary — navy plein */
.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

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

/* Secondary — gold discret */
.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

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

/* Outline — bordure fine */
.btn-outline {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background-color: var(--cream-dark);
}

/* Ghost — texte seul */
.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-secondary);
  background-color: var(--cream-dark);
}

/* Danger (delete track) */
.btn-danger {
  background-color: transparent;
  color: var(--error);
  border-color: transparent;
}

.btn-danger:hover {
  background-color: var(--error-bg);
  border-color: rgba(139, 32, 32, 0.15);
}

/* Sizes */
.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

/* ─── 15. MODAL ─────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-xl);
  overflow-y: auto;
}

.modal.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(2px);
}

.modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 4rem);
  margin: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: color 0.15s, background-color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
  background-color: var(--cream-dark);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* PDF preview inside modal */
.pdf-preview-content {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  min-height: 400px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ─── 16. TOAST NOTIFICATIONS ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem var(--space-lg);
  background-color: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  max-width: 340px;
  animation: toast-in 0.2s ease-out;
}

.toast--success {
  background-color: var(--success);
}

.toast--error {
  background-color: var(--error);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── 17. FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--navy);
  border-top: 1px solid var(--navy-border);
  padding: var(--space-lg) 0;
  margin-top: auto;
}

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

.footer-brand {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
}

.footer-legal {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}

/* ─── 18. DIVIDER LIGNE OR ──────────────────────────────────────────────────── */
.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-muted), transparent);
  opacity: 0.4;
  margin: var(--space-xl) 0;
}

/* ─── 19. RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .form-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-group--span2 {
    grid-column: span 2;
  }

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

  .ratios-panel {
    gap: var(--space-lg);
  }

  .ratio-item + .ratio-item {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--navy-border);
    padding-top: var(--space-md);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }

  .form-section {
    padding: var(--space-lg);
  }

  .form-grid--3 {
    grid-template-columns: 1fr;
  }

  .form-group--span2 {
    grid-column: span 1;
  }

  .action-bar--bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .action-bar--bottom .btn {
    width: 100%;
  }

  .site-footer .container {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .features-list {
    gap: var(--space-lg);
    flex-wrap: wrap;
  }
}

/* ─── 20. EXPLICATION DES PARCOURS ──────────────────────────────────────────── */
.track-explanation {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--gold-pale);
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
}

.track-explanation-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.track-explanation-text {
  font-size: 0.8375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── 21. PROCESSUS DE VALIDATION ───────────────────────────────────────────── */
.section--validation {
  margin-top: var(--space-2xl);
}

.validation-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.validation-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.validation-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 0.1rem;
}

.validation-step-content {
  flex: 1;
}

.validation-step-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.validation-step-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.validation-key-points {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--navy-pale, rgba(10,22,40,0.04));
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-md);
}

.validation-key-points-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.validation-key-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.validation-key-points-list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-left: var(--space-md);
  position: relative;
}

.validation-key-points-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold-muted);
}

/* ─── 22. POINTS D'ATTENTION ────────────────────────────────────────────────── */
.section--attention {
  margin-top: var(--space-2xl);
}

.attention-points {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--gold-pale);
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
}

.attention-point {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.attention-point-dash {
  flex-shrink: 0;
  color: var(--gold-muted);
  font-weight: 600;
}

/* ─── 23. PROCHAINES ÉTAPES ─────────────────────────────────────────────────── */
.section--next-steps {
  margin-top: var(--space-2xl);
}

.next-steps-list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.next-step-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.next-step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--surface);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 50%;
}

.next-step-text {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── 24. NOTRE ACCOMPAGNEMENT ──────────────────────────────────────────────── */
.section--support {
  margin-top: var(--space-2xl);
}

.support-intro {
  margin-top: var(--space-md);
  font-size: 0.8375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.support-list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.support-list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-left: var(--space-md);
  position: relative;
  line-height: 1.6;
}

.support-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-muted);
  font-weight: 600;
}

/* ─── 25. RAPPORT PRÉVISUALISATION (.rpt-*) ─────────────────────────────────── */
.rpt-wrap {
  padding: var(--space-xl) var(--space-2xl);
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--white);
}

.rpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.rpt-brand {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}

.rpt-header-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rpt-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.rpt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-xl);
}

.rpt-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rpt-meta-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.rpt-meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.rpt-divider {
  border: none;
  border-top: 1px solid var(--gold);
  opacity: 0.35;
  margin: var(--space-lg) 0;
}

.rpt-section {
  margin-top: var(--space-2xl);
}

.rpt-section-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

/* Synthesis */
.rpt-synthesis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.rpt-synth-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rpt-synth-item--hl {
  background: var(--gold-pale);
  border-color: rgba(201, 169, 110, 0.35);
}

.rpt-synth-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rpt-synth-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.rpt-synth-sub {
  font-size: 0.6875rem;
  color: var(--gold-muted);
  font-weight: 500;
}

/* Tracks */
.rpt-track {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.rpt-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--navy);
}

.rpt-track-index {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.rpt-track-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.rpt-track-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.rpt-track-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
}

.rpt-track-label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rpt-track-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.rpt-track-expl {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--gold-pale);
}

.rpt-track-expl-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: var(--space-xs);
}

.rpt-track-expl-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Steps */
.rpt-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.rpt-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rpt-step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 2px;
}

.rpt-step-body { flex: 1; }

.rpt-step-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.rpt-step-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Attention */
.rpt-attention {
  padding: var(--space-md) var(--space-lg);
  background: var(--gold-pale);
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.rpt-attention-item {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rpt-attn-dash {
  flex-shrink: 0;
  color: var(--gold-muted);
  font-weight: 600;
}

/* Next steps */
.rpt-next-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.rpt-next-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rpt-next-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 50%;
}

.rpt-next-text {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Support */
.rpt-support-intro {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.rpt-support-list {
  list-style: none;
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.rpt-support-list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-left: var(--space-md);
  position: relative;
  line-height: 1.6;
}

.rpt-support-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-muted);
  font-weight: 600;
}

/* Comment */
.rpt-comment {
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Footer mention */
.rpt-footer-note {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

.rpt-empty {
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ─── 26. PREMIER RDV — CHECKLIST ────────────────────────────────────────── */

.nav-badge--rdv {
  background: var(--navy);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

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

.checklist-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.checklist-category-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--navy);
  padding: 10px 14px;
  margin: 0;
}

.checklist-items {
  padding: 4px 0;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-light);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item:hover {
  background: var(--surface);
}

.checklist-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--red, #d0121b);
  cursor: pointer;
}

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

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

/* ─── APRÈS SIGNATURE — Classes additionnelles ──────────────────────────────── */

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

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

.form-group--full {
  grid-column: 1 / -1;
}

.form-subsection {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px dashed var(--border-light);
}

.form-subsection:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-subsection-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  padding: var(--space-md) 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.checkbox-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.contact-card-auto {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-card-auto.hidden {
  display: none;
}

.contact-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-card-company {
  font-size: 0.8rem;
  color: var(--gold-muted);
  font-weight: 500;
}

.contact-card-detail {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Variable track revision fields */
.track-var-fields {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--border-light);
}

.track-var-fields.hidden {
  display: none;
}

.track-comment-field {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--border-light);
}

/* Contacts section */
.contact-block {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.contact-block-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

@media (max-width: 1024px) {
  .form-grid--2 { grid-template-columns: 1fr; }
  .form-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .form-grid--4 { grid-template-columns: 1fr; }
}
