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

/* ===================================================================
   FOUNDING HIRES / DESIGN SYSTEM "EDITORIAL DIVINE"
   Paper, light, thin rules, editorial serif, pale gold accent.
   =================================================================== */

:root {
  /* Surfaces */
  --paper:      #FCFAF6;
  --paper-pure: #FFFEFB;
  --paper-deep: #F5F1E8;

  /* Ink */
  --ink:        #16130E;
  --ink-soft:   #4A443A;
  --ink-mute:   #8C8477;
  --ink-faint:  #B6AEA0;

  /* Accent */
  --gold:       #A67C2E;
  --gold-soft:  #C9A961;
  --gold-wash:  rgba(166,124,46,0.08);
  --gold-line:  rgba(166,124,46,0.28);

  /* Rules */
  --rule:       #E6DFD2;
  --rule-soft:  #EFEAE0;

  /* Type */
  --display:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body:       'Inter', system-ui, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, monospace;

  /* Metrics */
  --wrap:       1120px;
  --wrap-tight: 760px;
  --radius:     4px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Divine light: a soft halo behind the top of the page */
body::before {
  content: '';
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 90vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 42% 44% at 50% 46%, rgba(201,169,97,0.13) 0%, rgba(201,169,97,0) 72%);
}

main, nav, footer { position: relative; z-index: 1; }

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

::selection { background: rgba(166,124,46,0.16); }

/* ---------- Type primitives ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 88px;
  background: var(--gold-line);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 88px;
  background: var(--gold-line);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

/* No italic emphasis: keep display type roman and single colour. */
.display em { font-style: normal; font-weight: inherit; color: inherit; }

.display strong { font-weight: 600; }

.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-pure);
  box-shadow: 0 1px 2px rgba(22,19,14,.16);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold); }

/* ---------- Nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252,250,246,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.mark-lg { width: 30px; height: 30px; }

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

.nav-link {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav-link:hover { color: var(--gold); }

/* La page ouverte se marque dans la barre. Sans cela un visiteur qui passe
   de l'index a la recherche executive ne voit rien changer et croit avoir
   rate son clic. */
.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper-pure);
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* ---------- Layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.section { padding: 104px 0; }
.section-tight { padding: 80px 0; }
.band { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 18px; }
.section-head p { font-size: 17px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 72px; text-align: center; }
.hero .eyebrow { margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin: 0 auto 22px;
  max-width: 18ch;
}

.hero .lead { max-width: 660px; margin: 0 auto 34px; font-size: 15.5px; }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* The two ways in, side by side in the middle of the first screen */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto 24px;
  text-align: left;
}

.path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 24px;
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(22,19,14,.05), 0 18px 40px -22px rgba(22,19,14,.35);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.path:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(22,19,14,.06), 0 26px 54px -22px rgba(22,19,14,.42);
}

/* Le chapeau garde sa hauteur : sans cela il grandit avec la carte et les
   deux titres ne sont plus sur la meme ligne. */
.path .eyebrow { color: var(--gold); flex: 0 0 auto; }

.path h2 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.path > p:not(.eyebrow) {
  flex: 1;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.path .btn { align-self: flex-start; }

.path-note {
  font-size: 13px;
  color: var(--ink-mute);
}
.path-note a { border-bottom: 1px solid var(--gold-line); color: var(--ink-soft); }
.path-note a:hover { color: var(--gold); }

.hero-under {
  margin-bottom: 72px;
  font-size: 14px;
  color: var(--ink-mute);
}
.hero-under a { border-bottom: 1px solid var(--rule); }
.hero-under a:hover { border-color: var(--gold-line); color: var(--gold); }

/* Stat rail */
.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.rail-item {
  padding: 28px 24px;
  text-align: left;
  border-left: 1px solid var(--rule-soft);
}
.rail-item:first-child { border-left: none; }

.rail-item .k {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 300;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 4px;
}
.rail-item .v {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-mute);
}

/* ---------- Role cards ---------- */

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.role {
  background: var(--paper-pure);
  padding: 34px 30px 32px;
  transition: background .25s ease;
  position: relative;
}
.role:hover { background: #fff; }
.role::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.role:hover::after { transform: scaleX(1); }

.role-idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 18px;
}

.role h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.role p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

.role-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-wash);
  border: 1px solid var(--gold-line);
  border-radius: 100px;
  padding: 3px 9px;
}

/* ---------- Pull quote ---------- */

.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote blockquote {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 31px);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quote .attr {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-mute);
  margin-top: 26px;
}

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }

.step {
  padding: 34px 28px 8px 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
.step + .step { padding-left: 28px; border-left: 1px solid var(--rule); }

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- StarHunt ---------- */

.starhunt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 44px 44px;
  box-shadow: 0 1px 2px rgba(22,19,14,.03), 0 18px 44px -28px rgba(22,19,14,.16);
}
.starhunt .eyebrow { margin-bottom: 16px; }
.starhunt h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.starhunt p { font-size: 15px; color: var(--ink-soft); max-width: 520px; line-height: 1.7; }
.starhunt p + p { margin-top: 14px; }
/* Un lien dans le corps du texte doit se voir sans crier : le meme trait
   dore que le reste du site, pas la couleur des liens par defaut. */
.starhunt p a { color: var(--ink); border-bottom: 1px solid var(--gold-line); }
.starhunt p a:hover { color: var(--gold); }

/* ---------- Contact ---------- */

.contact-inner { max-width: var(--wrap-tight); margin: 0 auto; padding: 0 40px; }
.contact-inner .eyebrow { margin-bottom: 20px; }
.contact-inner h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.contact-inner > p { font-size: 17px; color: var(--ink-soft); margin-bottom: 44px; line-height: 1.7; max-width: 560px; }

.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { position: relative; }

.field label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 8px;
}

.form-input {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  padding: 13px 16px;
  width: 100%;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-input:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px var(--gold-wash);
  background: #fff;
}
.form-input::placeholder { color: var(--ink-faint); }

textarea.form-input { resize: vertical; min-height: 132px; line-height: 1.65; }

.form-submit {
  background: var(--ink);
  color: var(--paper-pure);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  transition: background .2s ease, transform .2s ease;
}
.form-submit:hover:not(:disabled) { background: #000; transform: translateY(-1px); }
.form-submit:disabled { opacity: .6; cursor: default; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--rule); }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner p { font-size: 13px; color: var(--ink-mute); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--ink-mute); transition: color .2s ease; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,19,14,0.32);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transition: opacity .3s ease;
  padding: 20px;
}
.overlay.active { display: flex; }
.overlay.visible { opacity: 1; }

.overlay-modal {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 52px 44px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: scale(.96);
  transition: transform .3s ease;
  box-shadow: 0 40px 90px -30px rgba(22,19,14,.4);
}
.overlay.visible .overlay-modal { transform: scale(1); }

.overlay-modal h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.overlay-modal p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 30px; }

.overlay-close {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-mute);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s ease;
}
.overlay-close:hover { color: var(--ink); }

/* ---------- Guides ---------- */

/* Un article se lit sur une colonne etroite. Les mille cent vingt pixels de
   la grille du site donnent des lignes de deux cents caracteres, que
   personne ne lit jusqu'au bout. */
.guide .wrap.prose { max-width: var(--wrap-tight); }

/* En-tete d'un carrefour, pas d'une page d'accueil : le titre est un
   libelle, il n'a pas besoin de la taille d'une promesse commerciale, et les
   cartes doivent rester visibles sans defiler. */
.hero-tight { padding: 56px 0 4px; }
.hero-tight .display {
  font-size: clamp(30px, 4vw, 42px);
  max-width: 780px;
  margin: 0 auto 24px;
}
.hero-tight + .section-tight { padding-top: 48px; }

.guide-head { padding: 48px 0 28px; border-bottom: 1px solid var(--rule-soft); }
.guide-head .wrap { max-width: var(--wrap-tight); }
.guide-head .display { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; margin: 18px 0 20px; }
.guide-head .lead { max-width: none; font-size: 17px; }

.crumbs { font-size: 12.5px; color: var(--ink-mute); margin-bottom: 22px; }
.crumbs a { border-bottom: 1px solid var(--rule); }
.crumbs a:hover { color: var(--gold); border-color: var(--gold-line); }
.crumbs span { margin: 0 6px; color: var(--ink-faint); }

.guide-dates + .guide-meta { margin-top: 8px; }
.guide-meta {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.prose { padding: 44px 0 24px; }
.prose h2 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
  margin: 52px 0 18px;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
/* Le meme trait dore que partout ailleurs : un lien dans un article se voit,
   il ne hurle pas. */
.prose a { color: var(--ink); border-bottom: 1px solid var(--gold-line); }
.prose a:hover { color: var(--gold); }

/* La reponse directe, en tete d'article. Assez marquee pour qu'un lecteur
   presse la voie, assez sobre pour ne pas ressembler a un encart publicitaire. */
.answer {
  background: var(--paper-deep);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 0 0 40px;
}
.answer-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.answer p:last-child { margin-bottom: 0; }
.answer p { font-size: 16.5px; line-height: 1.7; color: var(--ink); }

/* Tableau de comparaison, dans le corps d'un article. */
.compare { overflow-x: auto; margin: 30px 0 34px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.compare th, .compare td {
  text-align: left;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  line-height: 1.55;
}
.compare thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare td { color: var(--ink-soft); }

.guide-list { list-style: none; margin: 0 0 24px; }
.guide-list li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  padding-left: 22px;
  margin-bottom: 16px;
  position: relative;
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--gold-soft);
}

/* Emplacement des chiffres. Le generateur remplace ce qui est entre les
   marqueurs `fh:data`, le reste de la page ne bouge pas. */
.figures {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 28px 0 32px;
}
/* Un emplacement que le generateur n'a pas encore rempli ne se montre pas :
   une page publiee avec des encadres vides annoncant des chiffres a venir
   vaut moins qu'une page sans encadre du tout. La classe disparait quand les
   donnees arrivent. */
.figures.placeholder { display: none; }
/* Et par securite, tout encadre qui ne contient rien d'autre que sa
   note d'attente : la classe ci-dessus s'oublie a la premiere
   regeneration, cette regle non. */
.figures:not(:has(table)) { display: none; }
.figures-note { font-size: 14px; color: var(--ink-mute); margin: 0; font-style: italic; }
.figures table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.figures th, .figures td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.figures th { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.figures td:last-child, .figures th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.figures tr:last-child td { border-bottom: none; }
.figures caption { caption-side: bottom; padding-top: 14px; font-size: 12.5px; color: var(--ink-mute); text-align: left; }
.figures-stamp { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }

.faq { margin-top: 8px; }
.faq dt { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 26px; }
.faq dd { margin: 8px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }

.guide-cta { margin-bottom: 8px; }
.guide-cta-actions { display: flex; flex-direction: column; gap: 10px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.guide-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.guide-card h2 { font-family: var(--display); font-size: 21px; font-weight: 400; line-height: 1.25; margin-bottom: 12px; }
.guide-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); flex: 1; margin-bottom: 20px; }
.guide-card-more { font-size: 13px; color: var(--gold); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-inner, .wrap, .contact-inner, .footer-inner { padding-left: 24px; padding-right: 24px; }
  .nav-links { gap: 18px; }
  .nav-links .nav-link { font-size: 13px; }
  .nav-cta { padding: 9px 14px; }
  .section { padding: 76px 0; }
  .roles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step + .step { border-left: none; padding-left: 0; }
  .step:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--rule); }
  .rail { grid-template-columns: 1fr 1fr; }
  .rail-item:nth-child(3) { border-left: none; border-top: 1px solid var(--rule-soft); }
  .rail-item:nth-child(4) { border-top: 1px solid var(--rule-soft); }
  .starhunt { padding: 34px 28px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-cta-actions { flex-direction: row; flex-wrap: wrap; }
}

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

@media (max-width: 620px) {
  /* Sur un ecran etroit la barre passe a deux lignes plutot que de perdre
     des liens : le nom au dessus, la navigation entiere en dessous. Elle
     cesse d'etre collante, sinon deux lignes mangeraient le haut de chaque
     ecran pendant tout le defilement. */
  nav { position: static; }
  .nav-inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .nav-links { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: nowrap; }
  /* Un libelle qui passe a la ligne double la hauteur de la barre et donne
     une navigation en escalier : ils tiennent sur une ligne ou rien. */
  .nav-links .nav-link { font-size: 12.5px; white-space: nowrap; }
  .nav-cta { font-size: 12px; padding: 8px 12px; white-space: nowrap; }
  .hero { padding: 72px 0 60px; }
  .roles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { padding-left: 0; border-left: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .rail { grid-template-columns: 1fr; }
  .rail-item { border-left: none; border-top: 1px solid var(--rule-soft); }
  .rail-item:first-child { border-top: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Legal pages ---------- */

.legal { max-width: var(--wrap-tight); margin: 0 auto; padding: 64px 40px 96px; }
.legal h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); font-weight: 300; letter-spacing: -0.02em; }
.legal .updated { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-mute); margin-top: 10px; }
.legal h2 { font-family: var(--display); font-size: 23px; font-weight: 400; letter-spacing: -0.01em; margin: 42px 0 12px; }
.legal h3 { font-size: 15px; font-weight: 600; margin: 24px 0 8px; }
.legal p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 20px; }
.legal li { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 8px; }
.legal a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.legal .lead { font-size: 16px; color: var(--ink); margin-top: 26px; }
.legal .box { margin: 24px 0; padding: 22px 24px; background: var(--paper-pure); border: 1px solid var(--rule); border-radius: var(--radius); }
.legal .box p:last-child { margin-bottom: 0; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.legal td { font-size: 14.5px; color: var(--ink-soft); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.legal td:first-child { color: var(--ink); width: 40%; }
@media (max-width: 620px) { .legal { padding: 40px 20px 64px; } }

@media (max-width: 400px) {
  /* Plus la place pour quatre entrees : la connexion s'efface, elle reste
     dans le pied de page et le bouton d'acces mene au meme endroit. */
  .nav-links .nav-link[href^="https://app.foundinghires.tech"] { display: none; }
}

/* ---------- Etroit : rien ne deborde ----------
   Le pied de page alignait ses liens sur une seule ligne, six cent
   cinquante pixels sur un ecran de trois cent quatre-vingt-dix, et la barre
   a cinq entrees depassait a son tour. Les deux passent a la ligne : trois
   rangees sur un telephone valent mieux qu'un defilement lateral. */
.footer-links { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 620px) {
  .nav-links { flex-wrap: wrap; row-gap: 10px; justify-content: flex-start; }
  .nav-cta { margin-left: auto; }
}

/* Tableaux de la page de donnees et blocs de commandes. */
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 32px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.data-table thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.data-table tbody th { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.data-table td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table td:last-child { white-space: nowrap; }
.data-table td:last-child a { margin-right: 10px; }
.data-scroll { overflow-x: auto; }
.prose pre { background: var(--paper-deep); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 22px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 0.92em; background: var(--paper-deep); padding: 1px 5px; border-radius: 3px; }
.prose pre code { background: none; padding: 0; }
.not-found { max-width: var(--wrap-tight); margin: 0 auto; padding: 96px 40px 120px; }
.not-found h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 16px; }
.not-found p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 14px; }
.not-found ul { list-style: none; margin: 24px 0 0; }
.not-found li { margin-bottom: 10px; font-size: 16px; }
.not-found a { color: var(--ink); border-bottom: 1px solid var(--gold-line); }
.not-found a:hover { color: var(--gold); }
