/* ==========================================================================
   Omera, design system
   Blanc / encre / violet (60/30/10). Aucun hex hors de ce bloc :root.
   ========================================================================== */

:root {
  /* Fonds */
  --bg-base:    #ffffff;
  --bg-surface: #fafafa;
  --bg-subtle:  #f4f4f5;
  --bg-tint:    #f7f2fe;
  --bg-ink:     #18181b;

  /* Violet, action uniquement */
  --accent:       #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft:  #d3abfe;
  --accent-fill:  #ede4fd;
  --accent-text:  #5b21b6;
  --focus-ring:   rgba(124, 58, 237, 0.35);

  /* Texte */
  --text-primary:   #18181b;
  --text-secondary: #52525b;
  --text-muted:     #a1a1aa;
  --text-on-ink:        #fafafa;
  --text-on-ink-soft:   rgba(250, 250, 250, 0.72);

  /* Bordures */
  --border:       #e4e4e7;
  --border-hover: rgba(124, 58, 237, 0.3);
  --border-on-ink: rgba(250, 250, 250, 0.16);

  /* Sémantique, états fonctionnels uniquement */
  --success: #0f6e56;
  --error:   #dc2626;
  --warning: #b45309;
  /* Texte sur fond teinté : --error seul ne passe pas 4.5:1 sur --error-fill */
  --error-text: #b91c1c;
  --success-fill: #eaf5f1;
  --error-fill:   #fdeaea;

  /* Rayons & ombres */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(24, 24, 27, 0.06);
  --shadow-md: 0 4px 16px rgba(24, 24, 27, 0.08);
  --shadow-lg: 0 12px 32px rgba(24, 24, 27, 0.12);

  /* Typo */
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container: 1120px;
  --header-h: 64px;
  --section-y: clamp(56px, 6vw, 88px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

figure, blockquote { margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

button { font-family: inherit; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
/* Un filet structure la page : sans lui, le blanc sur blanc laisse croire
   a un trou plutot qu'a une respiration. */
.section + .section { border-top: 1px solid var(--border); }
.cta-final { border-top: 0; }
/* Plus d'alternance grise : le blanc porte tout, seuls les filets séparent. */
.section--surface { background: var(--bg-base); }
/* Une section qui porte un mesh doit le contenir et passer devant */
.section--surface { position: relative; overflow: hidden; }
.section--surface > .container { position: relative; z-index: 1; }

.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }

/* Surtitre technique. JetBrains Mono était prévu au brief et ne servait
   nulle part : c'est ce qui manquait le plus au vocabulaire « tech ». */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.display {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lead {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 58ch;
}

.muted { color: var(--text-secondary); }
.small { font-size: 14px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

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

/* ==========================================================================
   Composants : boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--secondary {
  background: var(--bg-base);
  border-color: var(--border);
  color: var(--text-primary);
}
.btn--secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}
.btn--secondary:active { transform: translateY(0); }

/* Sur fond encre */
.btn--on-ink {
  background: var(--bg-base);
  color: var(--text-primary);
}
.btn--on-ink:hover {
  background: var(--bg-subtle);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn--on-ink:active { transform: translateY(0); }

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Composants : cards, badges
   ========================================================================== */

.card {
  padding: 32px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card--surface { background: var(--bg-base); }

/* Contour plutôt qu'aplat pastel : les fonds lavande faisaient cheap. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
/* Point violet en tête : la seule couleur du badge */
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
a.badge:hover {
  text-decoration: none;
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* ==========================================================================
   Composants : formulaires
   ========================================================================== */

.field { display: grid; gap: 6px; }

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}

.input::placeholder,
.textarea::placeholder { color: var(--text-muted); }

.input:hover,
.textarea:hover { border-color: var(--border-hover); }

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.input[readonly] {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

/* États de formulaire */
.form-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.form-note.is-success { color: var(--success); font-weight: 500; }
.form-note.is-error   { color: var(--error);   font-weight: 500; }

.field-error {
  font-size: 13px;
  color: var(--error);
  min-height: 1em;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  /* currentColor pilote les points et le wordmark du SVG inline */
  color: var(--text-primary);
}
.logo:hover { text-decoration: none; }

.logo-svg { display: block; width: auto; }
.site-header .logo-svg { height: 26px; }
.site-footer .logo-svg { height: 24px; }

/* Animation signature : 8 points puis le noyau. Total ~700ms.
   Ne joue qu'au premier chargement de l'accueil (classe posée en JS). */
.logo-svg .logo-dot,
.logo-svg .logo-core {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes logo-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.logo-svg--anim .logo-dot,
.logo-svg--anim .logo-core {
  transform: scale(0);
  animation: logo-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.logo-svg--anim .logo-dot { animation-delay: calc(var(--i) * 40ms); }
.logo-svg--anim .logo-core {
  animation-duration: 0.34s;
  animation-delay: 360ms;
}

@media (prefers-reduced-motion: reduce) {
  .logo-svg--anim .logo-dot,
  .logo-svg--anim .logo-core {
    transform: none;
    animation: none;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--border);
}


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

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

.nav-link {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-actions .btn { margin-left: 8px; }

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.burger:hover { border-color: var(--border-hover); background: var(--bg-subtle); }

.burger-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: background-color 0.2s;
}
.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s;
}
.burger-icon::before { top: -6px; }
.burger-icon::after  { top: 6px; }

.burger.is-open .burger-icon { background: transparent; }
.burger.is-open .burger-icon::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open .burger-icon::after  { transform: translateY(-6px) rotate(-45deg); }

/* Drawer mobile */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  display: grid;
  gap: 4px;
  padding: 16px max(4vw, 16px) 24px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.drawer.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
}
.drawer .nav-link {
  padding: 12px;
  font-size: 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.drawer .btn { width: 100%; margin-top: 8px; }

@media (max-width: 900px) {
  .site-header .nav,
  .site-header .nav-actions { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 901px) {
  .drawer { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: 0;
  background: var(--bg-base);
  overflow: hidden;
}

/* Lueur violette derrière le produit. Seule couleur du hero. */
.hero::before {
  content: '';
  position: absolute;
  top: 24%;
  left: 50%;
  width: min(1100px, 92vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 0.16) 0%, transparent 62%);
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
}
.hero-top .display { max-width: 16ch; }
.hero-top .lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

/* La scène : le produit est légèrement basculé, posé sur la page */
.hero-stage {
  container-type: inline-size;
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw);
  margin: clamp(44px, 5vw, 72px) auto 0;
  perspective: 2000px;
}

.app {
  font-size: 1cqw; /* tout le mockup est en em : il suit la largeur de la scène */
  transform: rotateX(7deg) scale(0.99);
  transform-origin: top center;
  border: 1px solid var(--border);
  border-radius: 1.4em;
  background: var(--bg-base);
  box-shadow:
    0 40px 90px -30px rgba(24, 24, 27, 0.28),
    0 8px 24px -8px rgba(24, 24, 27, 0.06);
  overflow: hidden;
}

/* Barre de fenêtre */
.app-bar {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 1.1em 1.4em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.app-dots { display: flex; gap: 0.5em; }
.app-dots i { width: 0.72em; aspect-ratio: 1/1; border-radius: 50%; background: var(--border); }
.app-url {
  flex: 1;
  max-width: 26em;
  margin-inline: auto;
  padding: 0.35em 1.2em;
  border-radius: 99px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--text-muted);
  text-align: center;
}
.app-avatar {
  width: 1.9em;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--text-primary);
  color: #fff;
  font-size: 0.85em;
  font-weight: 600;
  flex-shrink: 0;
}

.app-body { display: grid; grid-template-columns: 15.5em 1fr; }

/* Rail */
.app-rail {
  border-right: 1px solid var(--border);
  padding: 1.3em 1em;
  display: grid;
  gap: 0.25em;
  align-content: start;
  background: var(--bg-surface);
}
.app-brand { display: flex; align-items: center; gap: 0.7em; padding: 0.3em 0.6em 1.3em; }
.app-brand b {
  width: 2em; aspect-ratio: 1/1; border-radius: 0.5em;
  display: grid; place-items: center;
  background: var(--text-primary); color: #fff;
  font-size: 0.95em; font-weight: 700;
}
.app-brand span { font-size: 1.15em; font-weight: 600; color: var(--text-primary); }
.app-rail a {
  display: flex; align-items: center; gap: 0.7em;
  padding: 0.6em; border-radius: 0.5em;
  font-size: 1.08em; color: var(--text-secondary); text-decoration: none;
}
.app-rail a i { width: 1.15em; aspect-ratio: 1/1; border-radius: 0.3em; background: var(--border); }
.app-rail a.is-on { background: var(--bg-base); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.app-rail a.is-on i { background: var(--accent); }

/* Contenu */
.app-main { padding: 1.6em; display: grid; gap: 1.3em; align-content: start; }

.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; }
.app-head h3 { font-size: 1.85em; font-weight: 700; letter-spacing: -0.03em; }
.app-head p { font-size: 1.05em; color: var(--text-muted); margin-top: 0.15em; }
.app-head-actions { display: flex; align-items: center; gap: 0.7em; }
.app-search {
  padding: 0.5em 1.1em; border: 1px solid var(--border); border-radius: 0.6em;
  font-size: 1em; color: var(--text-muted);
}
.app-cta {
  padding: 0.55em 1.2em; border-radius: 0.6em;
  background: var(--accent); color: #fff;
  font-size: 1em; font-weight: 600;
}

.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9em; }
.app-kpi {
  border: 1px solid var(--border); border-radius: 0.8em;
  padding: 0.9em 1em; display: grid; gap: 0.15em;
}
.app-kpi span { font-size: 0.98em; color: var(--text-muted); }
.app-kpi b {
  font-family: var(--font-mono); font-size: 2.3em; font-weight: 500;
  letter-spacing: -0.04em; line-height: 1.15; color: var(--text-primary);
}
.app-kpi u { text-decoration: none; font-size: 0.92em; color: var(--text-muted); }
.app-kpi u.up { color: var(--success); }
.app-kpi--accent { border-color: var(--accent); background: var(--bg-tint); }
.app-kpi--accent b { color: var(--accent); }

.app-panels { display: grid; grid-template-columns: 1fr 1.35fr; gap: 0.9em; }
.app-chart, .app-table {
  border: 1px solid var(--border); border-radius: 0.8em; padding: 1em;
  display: grid; gap: 0.9em; align-content: start;
}
.app-panel-head { display: flex; align-items: baseline; justify-content: space-between; }
.app-panel-head h4 { font-size: 1.15em; font-weight: 600; }
.app-panel-head span { font-size: 0.92em; color: var(--text-muted); }

.app-bars { display: flex; align-items: flex-end; gap: 0.6em; height: 9.5em; }
.app-bars i {
  flex: 1; height: var(--h); border-radius: 0.3em 0.3em 0 0;
  background: var(--bg-subtle); transform-origin: bottom;
}
.app-bars i.is-peak { background: var(--accent); }

.app-row {
  display: grid; grid-template-columns: 6.5em 1fr 1fr auto;
  align-items: center; gap: 0.8em;
  padding: 0.55em 0.2em; font-size: 1.02em;
  border-bottom: 1px solid var(--border);
}
.app-row:last-child { border-bottom: 0; }
.app-row em { font-family: var(--font-mono); font-style: normal; font-size: 0.94em; color: var(--text-primary); }
.app-row span { color: var(--text-secondary); }
.app-row u { text-decoration: none; padding: 0.15em 0.65em; border-radius: 99px; font-size: 0.85em; font-weight: 600; white-space: nowrap; }
.app-row--head { border-bottom-color: var(--border); }
.app-row--head em, .app-row--head span, .app-row--head u {
  font-family: var(--font-sans); font-size: 0.9em; color: var(--text-muted);
  font-weight: 500; padding: 0; background: none;
}
.app-row u.ok { background: var(--success-fill); color: var(--success); }
.app-row u.warn { background: var(--bg-subtle); color: var(--warning); }
.app-row u.go { background: var(--accent-fill); color: var(--accent-text); }

/* Construction du produit à l'arrivée */
.app.is-building .app-brand,
.app.is-building .app-rail a,
.app.is-building .app-head,
.app.is-building .app-kpi,
.app.is-building .app-chart,
.app.is-building .app-table {
  animation: app-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--d) * 65ms);
}
.app.is-building .app-bars i {
  animation: app-bar 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(600ms + var(--b) * 60ms);
}
@keyframes app-in {
  from { opacity: 0; transform: translateY(0.9em); }
  to   { opacity: 1; transform: none; }
}
@keyframes app-bar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@media (max-width: 860px) {
  .app { transform: none; font-size: 1.7cqw; }
  .app-body { grid-template-columns: 1fr; }
  .app-rail { display: none; }
  .app-kpis { grid-template-columns: 1fr 1fr; }
  .app-panels { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Mini-produits des cartes Services

   Deux vrais produits, pas des schémas : un gestionnaire de parc automobile
   et un site d'agence d'architecture. Du vrai texte, de vraies données.
   Tout est en em avec 1em = 1 % de la largeur de la carte (unité de
   conteneur) : en pixels, le mockup serait minuscule dans une carte large.
   -------------------------------------------------------------------------- */

.mini {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 1cqw;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 2em;
  background: var(--bg-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}

.mini-bar {
  display: flex;
  align-items: center;
  gap: 1.1em;
  padding: 2.2em 2.6em;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mini-bar i { width: 1.3em; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--bg-subtle); flex-shrink: 0; }
.mini-url {
  margin-left: 1.4em;
  padding: 0.6em 2em;
  border-radius: 99px;
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 2em;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Parc automobile ---------- */
.mini-body { display: grid; grid-template-columns: 11% 1fr; flex: 1; min-height: 0; }
.mini-rail {
  border-right: 1px solid var(--border);
  display: grid;
  gap: 1.8em;
  align-content: start;
  justify-items: center;
  padding: 2.4em 0;
}
.mini-rail b { width: 3em; aspect-ratio: 1 / 1; border-radius: 0.9em; background: var(--text-primary); }
.mini-rail i { width: 3em; aspect-ratio: 1 / 1; border-radius: 0.9em; background: var(--bg-subtle); }
.mini-rail i.is-on { background: var(--accent); }

.mini-main { padding: 2.8em 3em; display: grid; grid-template-rows: auto auto 1fr; gap: 2.4em; }

.mini-head { display: flex; align-items: center; justify-content: space-between; }
.mini-h { font-size: 3em; font-weight: 700; letter-spacing: -0.03em; color: var(--text-primary); }
.mini-btn {
  padding: 0.7em 1.6em;
  border-radius: 0.9em;
  background: var(--accent);
  color: #fff;
  font-size: 2em;
  font-weight: 600;
}

.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8em; }
.mini-kpi {
  border: 1px solid var(--border);
  border-radius: 1.2em;
  padding: 1.4em 1.6em;
  display: grid;
  gap: 0.2em;
}
.mini-kpi b {
  font-family: var(--font-mono);
  font-size: 3.4em;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.2;
}
.mini-kpi span { font-size: 1.9em; color: var(--text-muted); line-height: 1.3; }
.mini-kpi--accent { border-color: var(--accent); }
.mini-kpi--accent b { color: var(--accent); }

.mini-table { display: grid; gap: 0.9em; align-content: start; }
.mini-row {
  display: grid;
  grid-template-columns: 7em 1fr auto;
  align-items: center;
  gap: 1.4em;
  padding: 1.2em 1.4em;
  border: 1px solid var(--border);
  border-radius: 1em;
  font-size: 2em;
}
.mini-row em { font-family: var(--font-mono); font-style: normal; color: var(--text-primary); font-size: 0.92em; }
.mini-row span { color: var(--text-secondary); }
.mini-row u {
  text-decoration: none;
  padding: 0.15em 0.7em;
  border-radius: 99px;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}
.mini-row u.ok { background: var(--success-fill); color: var(--success); }
.mini-row u.warn { background: var(--bg-subtle); color: var(--warning); }

/* ---------- Site d'architecture ---------- */
.mini-page { padding: 2.4em 2.6em 2.6em; display: grid; grid-template-rows: auto 1fr auto; gap: 1.8em; flex: 1; min-height: 0; }
.mini-nav { display: flex; align-items: center; gap: 2.2em; }
.mini-nav b { font-size: 2.2em; font-weight: 700; letter-spacing: 0.08em; color: var(--text-primary); }
.mini-nav span { font-size: 1.9em; color: var(--text-secondary); }
.mini-nav em {
  margin-left: auto;
  font-style: normal;
  font-size: 1.9em;
  font-weight: 600;
  padding: 0.4em 1.2em;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-primary);
}

/* Emplacement de la photo d'architecture. Dégradé neutre en attendant :
   remplacer par background-image dès que la photo est fournie. */
.mini-shot {
  position: relative;
  border-radius: 1.4em;
  min-height: 0;
  /* Dégradé de repli tant que la photo n'est pas déposée */
  background: linear-gradient(200deg, #e9e9ee 0%, #c9c9d2 45%, #9b9ba6 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2.2em;
}
.mini-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,24,27,0.55), transparent 60%);
}
.mini-shot-title {
  position: relative;
  z-index: 1;
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8em; }
.mini-grid figure { display: grid; gap: 0.9em; margin: 0; }
.mini-grid i {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 1em;
  background: linear-gradient(170deg, #e4e4e9, #b8b8c2);
  overflow: hidden;
}
.mini-grid i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-grid figcaption { font-size: 1.7em; color: var(--text-secondary); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Automatisation (SaaS sur mesure) ----------
   Une chaine verticale, pas un tableau : le portail liste des documents,
   le SaaS enchaine des actions. Deux produits differents doivent se voir
   differents au premier coup d'oeil, sinon la carte ment. */
.mini-flow { display: grid; gap: 0; align-content: start; }

.mini-node {
  display: flex;
  align-items: center;
  gap: 1.4em;
  padding: 1.3em 1.6em;
  border: 1px solid var(--border);
  border-radius: 1.2em;
  background: var(--bg-base);
}
.mini-node i {
  width: 2.4em;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--bg-subtle);
  flex-shrink: 0;
}
.mini-node b {
  flex: 1;
  font-size: 2em;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.mini-node u {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1.6em;
  color: var(--text-muted);
  white-space: nowrap;
}
/* L'etape en cours : le seul violet de la chaine, sinon rien ne ressort. */
.mini-node--on { border-color: var(--accent); }
.mini-node--on i { background: var(--accent); }
.mini-node--on u { color: var(--accent-text); }

/* Le trait qui relie : c'est lui qui fait lire une chaine plutot qu'une pile */
.mini-link {
  width: 2px;
  height: 1.6em;
  margin-left: 2.8em;
  background: var(--border);
}

/* ---------- Assistant documentaire (RAG) ----------
   La promesse tient dans les sources : sans elles, un assistant qui repond
   n'est qu'un modele qui invente. C'est ce que la maquette doit montrer. */
.mini-chat { padding: 3em; display: grid; gap: 2em; align-content: start; flex: 1; min-height: 0; }

.mini-ask {
  justify-self: end;
  max-width: 72%;
  padding: 1.6em 2.2em;
  border-radius: 1.6em 1.6em 0.4em 1.6em;
  background: var(--accent);
  color: #fff;
  font-size: 2em;
  line-height: 1.45;
}

.mini-reply {
  max-width: 86%;
  padding: 1.6em 2.2em;
  border: 1px solid var(--border);
  border-radius: 1.6em 1.6em 1.6em 0.4em;
  background: var(--bg-surface);
  font-size: 2em;
  line-height: 1.45;
  color: var(--text-secondary);
  display: grid;
  gap: 1.2em;
}
.mini-reply strong { color: var(--text-primary); font-weight: 600; }

.mini-sources { display: flex; flex-wrap: wrap; gap: 0.8em; }
.mini-src {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 1em;
  border-radius: 99px;
  border: 1px solid var(--accent);
  background: var(--accent-fill);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8em;
  white-space: nowrap;
}

/* ---------- CMS ---------- */
.mini-edit { display: grid; gap: 1.4em; align-content: start; }
.mini-block {
  border: 1px solid var(--border);
  border-radius: 1.2em;
  padding: 1.6em 1.8em;
  display: grid;
  gap: 0.9em;
}
/* Le bloc en cours d'edition : c'est tout le propos, le client modifie
   lui-meme sans appeler personne. */
.mini-block--on { border-color: var(--accent); box-shadow: 0 0 0 0.3em var(--accent-fill); }
.mini-block-tag {
  font-family: var(--font-mono);
  font-size: 1.5em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mini-block--on .mini-block-tag { color: var(--accent-text); }
.mini-line { height: 1.1em; border-radius: 99px; background: var(--bg-subtle); }
.mini-line--title { height: 2.2em; width: 62%; background: var(--text-primary); opacity: 0.85; }
.mini-line--short { width: 44%; }
/* Le titre et son curseur sur la meme ligne : un curseur renvoye a la ligne
   ne ressemble plus a une saisie. */
.mini-field { display: flex; align-items: center; gap: 0.4em; }
/* Le curseur signale que le champ est vivant, pas une image. */
.mini-caret {
  width: 0.18em;
  height: 2.2em;
  flex-shrink: 0;
  background: var(--accent);
  animation: mini-caret 1s steps(2, start) infinite;
}
@keyframes mini-caret { 50% { opacity: 0; } }

/* ---------- Construction ---------- */
.mini.is-building .mini-rail b,
.mini.is-building .mini-rail i,
.mini.is-building .mini-head,
.mini.is-building .mini-kpi,
.mini.is-building .mini-row,
.mini.is-building .mini-nav,
.mini.is-building .mini-shot,
.mini.is-building .mini-grid figure,
.mini.is-building .mini-ask,
.mini.is-building .mini-reply,
.mini.is-building .mini-src,
.mini.is-building .mini-block,
.mini.is-building .mini-node {
  animation: mini-in 0.55s var(--ease) backwards;
  animation-delay: calc(var(--d) * 70ms);
}
/* Le trait se dessine de haut en bas : la chaine se construit, elle
   n'apparait pas d'un bloc. */
.mini.is-building .mini-link {
  animation: mini-link 0.35s var(--ease) backwards;
  animation-delay: calc(var(--d) * 70ms);
  transform-origin: top;
}
@keyframes mini-link {
  from { transform: scaleY(0); }
  to   { transform: none; }
}

@keyframes mini-in {
  from { opacity: 0; transform: translateY(0.9em); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.offer {
  display: grid;
  gap: 24px;
  align-content: start;
  padding: 32px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.offer:hover {
  text-decoration: none;
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.offer:hover .offer-cta { color: var(--accent-hover); gap: 10px; }

.offer-illu {
  container-type: inline-size; /* référence des unités cqw du mockup */
  border-radius: var(--radius-md);
  padding: 0;
  /* 4/3 plutôt que 16/10 : la photo d'architecture a besoin de hauteur,
     sinon les vignettes l'écrasent à un bandeau de 70 px. */
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.offer-title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.offer-desc { color: var(--text-secondary); font-size: 16px; }

.offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.offer-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.offer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s, color 0.2s;
}

/* ==========================================================================
   Pourquoi nous, en défilement interactif
   Les piliers défilent, le visuel reste collé et change avec le pilier actif.
   ========================================================================== */

.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  /* Surtout pas align-items: start : la colonne de droite se reduirait a la
     hauteur du panneau, et un sticky ne voyage que dans son parent. Le
     panneau resterait bloque en haut pendant que les piliers defilent. */
  align-items: stretch;
}

.why-list { display: grid; }

.why-item {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--border);
  opacity: 0.32;
  transition: opacity 0.4s ease;
}
.why-item:first-child { border-top: 0; padding-top: 0; }
.why-item:last-child { padding-bottom: 0; }
.why-item.is-on { opacity: 1; }

.why-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.why-item h3 {
  margin-top: 14px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.why-item p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 44ch;
}

.why-stage { position: relative; }
.why-sticky {
  position: sticky;
  /* Centre dans l'ecran, sinon le panneau reste en haut pendant que le
     pilier actif descend, et la colonne de droite se vide. */
  top: calc(50vh - 170px);
  height: 340px;
}

.why-panel {
  position: absolute;
  inset: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  box-shadow: var(--shadow-md);
  display: grid;
  align-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.why-panel.is-on { opacity: 1; transform: none; }

/* 01 : les étapes du projet */
.why-steps { display: grid; gap: 10px; }
.why-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.why-step b { font-size: 15px; font-weight: 600; }
.why-step u {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.why-step.is-done { border-color: var(--success); background: var(--success-fill); }
.why-step.is-done u { color: var(--success); }
.why-step.is-live { border-color: var(--accent); background: var(--bg-tint); }
.why-step.is-live u { color: var(--accent); }

/* 02 : l'échange */
.why-thread { display: grid; gap: 12px; }
.why-msg { display: grid; gap: 4px; justify-items: start; }
.why-msg b { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.why-msg p {
  padding: 12px 16px;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-subtle);
  font-size: 15px;
  max-width: 90%;
}
.why-msg--us { justify-items: end; }
.why-msg--us p {
  border-radius: 14px 14px 4px 14px;
  background: var(--accent);
  color: #fff;
}

/* 03 : le devis */
.why-quote { display: grid; gap: 2px; }
.why-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.why-line span { color: var(--text-secondary); }
.why-line em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
}
.why-line--total { border-bottom: 0; padding-top: 18px; }
.why-line--total span { color: var(--text-primary); font-weight: 600; }
.why-line--total em { font-size: 18px; font-weight: 500; color: var(--accent); }

@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; gap: 0; }
  /* Le collant n'a pas de sens en une colonne : le visuel suit son pilier */
  .why-stage { display: none; }
  .why-item { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .why-item { opacity: 1; }
}

/* ==========================================================================
   Mesh gradient
   ========================================================================== */

.mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Approche
   Un trait et quatre chiffres ne pesaient rien dans la page : chaque etape
   devient une carte avec son delai, ce qui la rend concrete.
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 28px 24px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  display: grid;
  gap: 10px;
  align-content: start;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.step:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Le fil qui relie les etapes, derriere les cartes */
.step::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -17px;
  width: 16px;
  height: 1px;
  background: var(--border);
}
.step:last-child::after { display: none; }

.step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.step-top u {
  text-decoration: none;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.step p { font-size: 15px; color: var(--text-secondary); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA final : UNIQUE section sombre du site
   ========================================================================== */

.cta-final {
  position: relative;
  overflow: hidden;
  background: var(--bg-ink);
  color: var(--text-on-ink);
  text-align: center;
}
.cta-final .container {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 24px;
}
.cta-final .logo-svg { height: 34px; }
.cta-final h2 {
  color: var(--text-on-ink);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.cta-final p {
  color: var(--text-on-ink-soft);
  max-width: 52ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  list-style: none;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { font-size: 13px; color: var(--text-secondary); }

@media (max-width: 640px) {
  .site-footer .container { justify-content: flex-start; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-stack { display: grid; gap: 16px; }

.checklist { display: grid; gap: 12px; list-style: none; }
.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.checklist svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 3px;
}
.checklist b { color: var(--text-primary); font-weight: 600; }

/* Filet de secours quand l'envoi echoue */
.recovery {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  background: var(--error-fill);
}
.recovery[hidden] { display: none; }
.recovery-lead {
  font-size: 14px;
  font-weight: 500;
  color: var(--error-text);
  margin-bottom: 14px;
}
.recovery-text {
  margin: 0;
  padding: 14px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}
.recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Upload */
.drop {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  padding: 24px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-base);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.drop:hover,
.drop.is-dragover {
  border-color: var(--accent);
  background: var(--bg-tint);
}
.drop svg { width: 20px; height: 20px; color: var(--text-muted); margin-bottom: 4px; }
.drop strong { font-size: 14px; font-weight: 600; }
.drop span { font-size: 13px; color: var(--text-secondary); }

.file-list { display: grid; gap: 6px; margin-top: 12px; list-style: none; }
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.file-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.file-remove:hover { background: var(--error-fill); color: var(--error); }
.file-remove svg { width: 12px; height: 12px; }

/* ==========================================================================
   Vues détail service
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .switch { grid-template-columns: 1fr; } }

.switch-card {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  text-align: left;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.switch-card:hover { border-color: var(--border-hover); }
.switch-card h3 { font-size: 16px; font-weight: 600; }
.switch-card p { font-size: 13px; color: var(--text-secondary); }
.switch-card[aria-current='true'] {
  border-color: var(--accent);
  background: var(--bg-tint);
  box-shadow: var(--shadow-sm);
}

.steps-stack { display: grid; gap: 12px; }
.step-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 16px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.step-row b {
  grid-column: 2;
  font-size: 15px;
  font-weight: 600;
}
.step-row p {
  grid-column: 2;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}
.step-row .step-row-num {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-tint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

/* ==========================================================================
   Écran de confirmation
   ========================================================================== */

.thanks {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  text-align: center;
}
.thanks-inner { display: grid; justify-items: center; gap: 16px; max-width: 46ch; }
.thanks-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-fill);
  color: var(--success);
}
.thanks-icon svg { width: 24px; height: 24px; }
.thanks-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ==========================================================================
   Retour en haut
   ========================================================================== */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, border-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--border-hover); }
.to-top svg { width: 16px; height: 16px; }

/* ==========================================================================
   Utilitaires
   ========================================================================== */

.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;
}

/* Pot de miel : hors écran, jamais display:none. Un robot qui lit le DOM
   voit un champ ordinaire et le remplit ; un humain ne le rencontre jamais,
   ni à l'œil, ni au clavier, ni au lecteur d'écran. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--bg-base);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; text-decoration: none; }

.view { display: none; }
.view.is-active { display: block; }

/* ==========================================================================
   Pages légales

   Une colonne de texte, rien d'autre. La mesure est bornée à 68ch : au-delà,
   l'oeil perd la ligne en revenant à la marge, et ces pages se lisent
   vraiment, contrairement à une section marketing qui se balaie.
   ========================================================================== */

.legal {
  padding: calc(var(--header-h) + var(--section-y)) 0 var(--section-y);
}
.legal .container { max-width: 720px; }

.legal-head { margin-bottom: 48px; }
.legal-title {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 16px;
}
.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
}

.legal-body { max-width: 68ch; }
.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 8px;
}
.legal-body p { margin: 0 0 14px; color: var(--text-secondary); }
.legal-body strong { color: var(--text-primary); font-weight: 600; }
.legal-body a { color: var(--accent-text); }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-secondary); }
.legal-body li { margin-bottom: 7px; }
.legal-body li::marker { color: var(--accent); }

/* Fiche d'identité : une définition par ligne, alignée. Un tableau serait
   plus lourd à lire sur mobile pour trois mots par cellule. */
.legal-facts {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 10px 20px;
  font-size: 15px;
}
.legal-facts dt { color: var(--text-secondary); }
.legal-facts dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
}
@media (max-width: 560px) {
  .legal-facts { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-facts dt { font-size: 13px; }
  .legal-facts dd { margin-bottom: 12px; }
}

/* Encart : sert à isoler ce que le lecteur doit retenir, pas à décorer. */
.legal-note {
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--bg-tint);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.legal-note p:last-child { margin-bottom: 0; }
