/* ==========================================================================
   NB Consulting — feuille de style unique
   Direction : papier blanc cassé, encre anthracite, accent bleu outremer.
   Mobile-first. Aucune dépendance externe.
   ========================================================================== */

/* ---------- Polices auto-hébergées (aucun appel à Google, RGPD-friendly) --- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2"), url("../fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2"), url("../fonts/inter-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("../fonts/inter-display-500.woff2") format("woff2"), url("../fonts/inter-display-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic.woff2") format("woff2"), url("../fonts/lora-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --paper-3: #e2ded5;
  --ink: #131314;
  --ink-2: #1b1b1d;
  --ink-3: #26262a;
  --muted: #5f5e5a;
  --muted-2: #6f6e69;
  --line: rgba(19, 19, 20, 0.12);
  --line-strong: rgba(19, 19, 20, 0.22);

  --on-dark: #f1efe9;
  --on-dark-muted: #a3a29c;
  --line-dark: rgba(241, 239, 233, 0.12);

  --accent: #2b3bd0;
  --accent-ink: #1f2cab;
  --accent-soft: rgba(43, 59, 208, 0.08);
  --accent-on-dark: #95a0ff;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(120px, 16vw, 216px);
  --header-h: 68px;

  --radius: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.9s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

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

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

p {
  margin: 0;
  text-wrap: pretty; /* évite les mots orphelins en fin de paragraphe */
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.section--dark :focus-visible {
  outline-color: var(--accent-on-dark);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 8px;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typographie -------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section--dark .eyebrow {
  color: var(--on-dark-muted);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 6.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2 em,
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.h2 em {
  color: var(--muted);
}

.section--dark .h2 em {
  color: var(--on-dark-muted);
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38em;
  text-wrap: pretty;
}

.section--dark .lead {
  color: var(--on-dark-muted);
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Boutons & liens --------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}

@media (hover: hover) {
  .btn:hover::before {
    transform: translateY(0);
  }

  .btn:hover .arrow {
    transform: translateX(4px);
  }

  .btn:hover {
    box-shadow: 0 10px 30px -12px rgba(43, 59, 208, 0.55);
  }
}

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

.btn--light {
  --btn-bg: var(--on-dark);
  --btn-fg: var(--ink);
}

@media (hover: hover) {
  .btn--light:hover {
    color: #fff;
  }
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.link-arrow span:first-child {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease);
  padding-bottom: 2px;
}

.link-arrow .arrow {
  transition: transform 0.5s var(--ease);
}

@media (hover: hover) {
  .link-arrow:hover span:first-child {
    background-size: 100% 1px;
  }

  .link-arrow:hover .arrow {
    transform: translateY(3px);
  }
}

.section--dark .link-arrow {
  color: var(--on-dark);
}

/* ---------- Monogramme --------------------------------------------------- */
.mono {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
  position: relative;
  flex: none;
}

.mono::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent-on-dark);
}

.section--dark .mono,
.footer .mono {
  background: var(--on-dark);
  color: var(--ink);
}

.section--dark .mono::after,
.footer .mono::after {
  background: var(--accent);
}

/* ---------- Header ------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(244, 242, 237, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Logo typographique : « NB » droit + « Consulting » en serif italique,
   le même contraste que « Optimiser » dans le hero. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.wordmark__c {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .wordmark {
    font-size: 1.375rem;
  }
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
}

.nav__link {
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s ease;
  padding: 6px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

@media (hover: hover) {
  .nav__link:hover {
    color: var(--ink);
  }

  .nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.nav__link.is-active {
  color: var(--ink);
}

.header__cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle__icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
}

.menu-toggle__icon span {
  position: absolute;
  left: 10px;
  width: 12px;
  height: 1.5px;
  background: var(--on-dark);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.menu-toggle__icon span:nth-child(1) {
  top: 13px;
}

.menu-toggle__icon span:nth-child(2) {
  top: 18px;
}

.menu-open .menu-toggle__icon span:nth-child(1) {
  top: 15.5px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle__icon span:nth-child(2) {
  top: 15.5px;
  transform: rotate(-45deg);
}

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}

.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.45s var(--ease), visibility 0s;
}

.menu-open {
  overflow: hidden;
}

.menu-open .header {
  background: var(--paper);
  border-bottom-color: var(--line);
}

.mobile-menu__list {
  border-top: 1px solid var(--line);
}

.mobile-menu__list li {
  border-bottom: 1px solid var(--line);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.menu-open .mobile-menu__list li {
  transform: none;
  opacity: 1;
}

.menu-open .mobile-menu__list li:nth-child(2) { transition-delay: 0.04s; }
.menu-open .mobile-menu__list li:nth-child(3) { transition-delay: 0.08s; }
.menu-open .mobile-menu__list li:nth-child(4) { transition-delay: 0.12s; }

.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mobile-menu__list a small {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.mobile-menu__footer {
  margin-top: auto;
  display: grid;
  gap: 18px;
}

.mobile-menu__footer .btn {
  width: 100%;
}

.mobile-menu__contact {
  display: grid;
  gap: 4px;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  :root {
    --header-h: 76px;
  }

  .nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}

/* ---------- Sections génériques ------------------------------------------ */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--dark {
  background: var(--ink-2);
  color: var(--on-dark);
}

.section__head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(64px, 9vw, 120px);
}

.section__head .h2 {
  max-width: 15ch;
}

@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
    gap: 64px;
  }

  .section__head--split .lead {
    justify-self: end;
  }
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px));
  padding-bottom: clamp(32px, 5vh, 56px);
  isolation: isolate;
}

/* Grille technique très discrète */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 75% 20%, #000 0%, transparent 70%);
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__label strong {
  font-weight: 500;
  color: var(--ink);
}

.hero__label .sep {
  display: none;
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.hero__title {
  margin-top: clamp(28px, 5vh, 48px);
  font-family: var(--font-display);
  font-size: clamp(3rem, 15vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero__title .line > span {
  display: inline-block;
}

.hero__title .line--serif > span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero__bottom {
  margin-top: clamp(32px, 6vh, 64px);
  display: grid;
  gap: 32px;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}

.hero__subtitle strong {
  color: var(--ink);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

@media (min-width: 600px) {
  .hero__label .sep {
    display: block;
  }
}

/* Mobile : titre, puis texte + CTA, puis les trois axes */
.hero__head {
  display: contents;
}

.hero__title { order: 1; }
.hero__bottom { order: 2; }
.pillars { order: 3; }

@media (min-width: 900px) {
  .hero__bottom {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 64px;
  }

  .hero__actions {
    justify-content: flex-end;
  }
}

/* Desktop large : chaque axe aligné sur la ligne de son verbe */
@media (min-width: 1100px) {
  .hero__head {
    order: 1;
    display: grid;
    grid-template-columns: auto minmax(240px, 340px);
    justify-content: space-between;
    column-gap: 48px;
    margin-top: clamp(28px, 5vh, 48px);
  }

  .hero__head .hero__title {
    margin-top: 0;
  }

  .hero__head .pillars {
    margin-top: 0;
    border-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .hero__head .pillar,
  .hero__head .pillar + .pillar {
    align-self: end;
    padding: 14px 0 0;
    margin-bottom: 0.9rem;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    grid-template-columns: 36px 1fr;
    gap: 2px 8px;
  }

  .hero__head .pillar__n {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* Index des trois verbes */
.pillars {
  margin-top: clamp(48px, 9vh, 96px);
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.pillar:last-child {
  border-bottom: 0;
}

.pillar {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pillar__n {
  grid-row: span 2;
  font-size: 0.8125rem;
  color: var(--muted-2);
  padding-top: 3px;
}

.pillar__t {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.pillar__d {
  font-size: 0.9375rem;
  color: var(--muted);
}

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

  .pillar {
    border-bottom: 0;
    padding: 22px 28px 0 0;
    grid-template-columns: 1fr;
  }

  .pillar + .pillar {
    padding-left: 28px;
    border-left: 1px solid var(--line);
  }

  .pillar__n {
    grid-row: auto;
    margin-bottom: 14px;
  }
}

/* ---------- Rythme des sections -----------------------------------------
   Un seul fond (papier) sur toute la page. Les sections sont séparées
   uniquement par l’espace et un filet très fin aligné sur la grille.     */
.section--ruled::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 2 * var(--gutter), var(--container));
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

/* ---------- Constat (problèmes) ----------------------------------------- */
.problems__list {
  border-top: 1px solid var(--line);
}

.problem {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.6s var(--ease);
}

.problem__n {
  font-size: 0.8125rem;
  color: var(--muted-2);
  padding-top: 0.5em;
  transition: color 0.4s ease;
}

.problem__t {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

@media (hover: hover) {
  .problem:hover {
    padding-left: 12px;
  }

  .problem:hover .problem__n {
    color: var(--ink);
  }
}

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

  .problem__t {
    grid-column: 2;
  }
}

.problems__outro {
  margin-top: clamp(64px, 9vw, 112px);
  display: grid;
  gap: 28px;
}

.problems__outro p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 26ch;
  text-wrap: balance;
}

.problems__outro p .muted {
  color: var(--muted-2);
}

@media (min-width: 900px) {
  .problems__outro {
    grid-template-columns: 120px 1fr auto;
    column-gap: 16px;
    align-items: end;
  }

  .problems__outro p {
    grid-column: 2;
  }
}

/* ---------- Services : une liste éditoriale, quatre entrées égales ------ */
.audience {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.audience {
  gap: 6px 20px;
}

.services {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-areas:
    "n"
    "title"
    "lead"
    "list";
  gap: 12px;
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.service__top {
  grid-area: n;
}

.service__n {
  font-size: 0.8125rem;
  color: var(--muted-2);
  transition: color 0.4s ease;
}

.service__title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  transition: transform 0.6s var(--ease);
}

.service__lead {
  grid-area: lead;
  margin-top: 4px;
  color: var(--ink);
  max-width: 34em;
}

.service__list {
  grid-area: list;
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.service__list li {
  position: relative;
  padding-left: 20px;
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--muted-2);
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas:
      "n title lead"
      "n title list";
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    row-gap: 0;
  }

  .service__n {
    display: block;
    padding-top: 0.75em;
  }

  .service__title {
    padding-right: 32px;
  }

  .service__lead {
    margin-top: 6px;
  }
}

@media (hover: hover) {
  .service:hover .service__n {
    color: var(--ink);
  }

  .service:hover .service__title {
    transform: translateX(8px);
  }
}

/* ---------- Méthode ------------------------------------------------------ */
.steps {
  position: relative;
  display: grid;
  gap: 0;
}

/* Ligne de progression : verticale sur mobile, horizontale sur desktop */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.steps::after {
  background: var(--ink);
  opacity: 0.35;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ease-in-out);
}

.steps.is-in::after {
  transform: scaleY(1);
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding-bottom: 48px;
}

.step:last-child {
  padding-bottom: 0;
}

/* Numéro posé sur la ligne, sans cercle ni couleur */
.step__dot {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 0.75rem;
  color: var(--muted-2);
  transition: color 0.6s ease;
}

.steps.is-in .step__dot {
  color: var(--ink);
}

.steps.is-in .step:nth-child(1) .step__dot { transition-delay: 0.1s; }
.steps.is-in .step:nth-child(2) .step__dot { transition-delay: 0.45s; }
.steps.is-in .step:nth-child(3) .step__dot { transition-delay: 0.8s; }
.steps.is-in .step:nth-child(4) .step__dot { transition-delay: 1.15s; }
.steps.is-in .step:nth-child(5) .step__dot { transition-delay: 1.5s; }

.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  padding-top: 2px;
}

.step__desc {
  margin-top: 8px;
  color: var(--ink);
  max-width: 30em;
}

.step__concrete {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 30em;
}

.step__concrete b {
  display: block;
  margin-bottom: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
  }

  .steps::before,
  .steps::after {
    left: 0;
    right: 0;
    top: 15px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .steps::after {
    transform: scaleX(0);
    transform-origin: left;
  }

  .steps.is-in::after {
    transform: scaleX(1);
  }

  .step {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 0;
  }

  .step__dot {
    width: auto;
    justify-self: start;
    place-items: center start;
    padding-right: 14px;
  }
}

.method__loop {
  margin-top: clamp(72px, 10vw, 128px);
}

.method__loop p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 30ch;
  text-wrap: balance;
}

.method__loop p span {
  color: var(--muted-2);
}

/* ---------- Pourquoi ----------------------------------------------------- */
.reasons {
  display: grid;
}

.reason {
  display: grid;
  gap: 12px;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}

.reason__n {
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.reason__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.reason__text {
  color: var(--muted);
  max-width: 32em;
}

@media (min-width: 900px) {
  .reasons {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
  }

  .reason {
    align-content: start;
  }
}

/* ---------- À propos ----------------------------------------------------- */
.about__grid {
  display: grid;
  gap: clamp(48px, 7vw, 112px);
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .about__media {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-3);
  isolation: isolate;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__name {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.about__role {
  margin-top: 8px;
  color: var(--muted);
}

.quote {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.about__text {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  gap: 18px;
  max-width: 36em;
  font-size: 1.0625rem;
  color: var(--muted);
}

.about__text strong {
  color: var(--ink);
  font-weight: 500;
}

.about__sign {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
}

.about__sign .line {
  width: 32px;
  height: 1px;
  background: var(--ink);
}

/* ---------- Contact ------------------------------------------------------ */
.contact {
  padding-bottom: clamp(64px, 9vw, 112px);
}

.contact__grid {
  display: grid;
  align-items: start;
  gap: clamp(48px, 7vw, 96px);
}

@media (min-width: 1000px) {
  .contact__grid {
    grid-template-columns: 5fr 6fr;
  }
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.contact__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--on-dark-muted);
}

.contact__intro {
  margin-top: 24px;
}

.card-info {
  margin-top: clamp(40px, 6vw, 56px);
  border-top: 1px solid var(--line-dark);
}

.card-info__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.9375rem;
}

.card-info__row dt {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  padding-top: 2px;
}

.card-info__row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-info a {
  background-image: linear-gradient(var(--on-dark), var(--on-dark));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s ease;
}

@media (hover: hover) {
  .card-info a:hover {
    background-size: 100% 1px;
  }
}

.next-steps {
  margin-top: 40px;
  display: grid;
  gap: 14px;
  counter-reset: ns;
}

.next-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}

.next-steps li::before {
  counter-increment: ns;
  content: counter(ns, decimal-leading-zero);
  font-size: 0.75rem;
  color: var(--on-dark-muted);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.next-steps__title {
  margin-top: 40px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
}

/* Formulaire */
.form-card {
  padding-top: 40px;
  border-top: 1px solid var(--line-dark);
}

@media (min-width: 1000px) {
  .form-card {
    padding-top: clamp(56px, 6vw, 88px);
    border-top: 0;
  }
}

.form {
  display: grid;
  gap: 28px;
}

.form[hidden] {
  display: none;
}

.form__row {
  display: grid;
  gap: 28px;
}

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

.field {
  position: relative;
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

.field label .opt {
  color: #8f8e88;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(241, 239, 233, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--on-dark);
  font-size: 1rem; /* 16px : évite le zoom auto sur iOS */
  line-height: 1.4;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #8f8e88;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(241, 239, 233, 0.4);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--on-dark);
  box-shadow: 0 1px 0 0 var(--on-dark);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff9b8f;
}

.field__error {
  font-size: 0.8125rem;
  color: #ffb3aa;
  min-height: 0;
}

.field__error:empty {
  display: none;
}

/* Pot de miel anti-spam : invisible pour les humains */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__legal {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.form__legal a {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(241, 239, 233, 0.35);
  text-underline-offset: 3px;
}

.form__footer {
  display: grid;
  gap: 16px;
  align-items: center;
}

.form__footer .btn {
  grid-column: -2 / -1;
  justify-self: end;
  width: 100%;
}

@media (min-width: 640px) {
  .form__footer {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  .form__footer .btn {
    width: auto;
  }
}

.form__status {
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  padding: 14px 16px;
  background: rgba(255, 155, 143, 0.1);
  color: #ffc7c0;
  border: 1px solid rgba(255, 155, 143, 0.3);
}

.form__status.is-error a {
  color: #fff;
  text-decoration: underline;
}

.form-success {
  display: grid;
  gap: 14px;
  padding: 8px 0;
}

.form-success[hidden] {
  display: none;
}

.form-success__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(241, 239, 233, 0.08);
  color: var(--on-dark);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.form-success p {
  color: var(--on-dark-muted);
}

/* ---------- Footer ------------------------------------------------------- */
/* Grande adresse email : la vraie fin de page */
.footer__big {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-top: clamp(64px, 10vw, 128px);
  padding-bottom: clamp(56px, 8vw, 96px);
  margin-bottom: 32px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.footer .eyebrow {
  color: var(--on-dark-muted);
}

.footer__email {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 6.4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--on-dark);
  max-width: 100%;
  overflow-wrap: anywhere;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.08em;
  transition: background-size 0.8s var(--ease);
}

@media (hover: hover) {
  .footer__email:hover {
    background-size: 100% 2px;
  }
}

.footer__copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

@media (hover: hover) {
  .footer__copy:hover {
    color: var(--on-dark);
    border-color: rgba(241, 239, 233, 0.4);
  }
}

.footer__copy.is-copied {
  color: var(--on-dark);
  border-color: rgba(241, 239, 233, 0.4);
}

/* Bouton de contact flottant (mobile) */
.fab-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  width: max-content;
  margin-inline: auto;
  box-shadow: 0 12px 32px -12px rgba(19, 19, 20, 0.45);
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.fab-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.menu-open .fab-cta,
html.intro-on .fab-cta {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 900px) {
  .fab-cta {
    display: none;
  }
}

.footer {
  background: var(--ink-2);
  color: var(--on-dark-muted);
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
  font-size: 0.875rem;
}

.footer__inner {
  display: grid;
  gap: 28px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
}



.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer__links a {
  transition: color 0.25s ease;
}

@media (hover: hover) {
  .footer__links a:hover {
    color: var(--on-dark);
  }
}

.footer__legal {
  font-size: 0.8125rem;
  color: #8f8e88;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer__links {
    justify-content: flex-end;
  }

  .footer__legal {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
  }
}

/* ---------- Pages légales ------------------------------------------------ */
.legal {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: var(--section-y);
}

.legal__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.legal__head h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.legal__head p {
  margin-top: 16px;
  color: var(--muted);
}

.prose {
  max-width: 760px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose h2 {
  margin-top: 56px;
  margin-bottom: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}

.prose ul {
  display: grid;
  gap: 8px;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 1px;
  background: var(--muted-2);
}

.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose dl {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.prose dl div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.prose dd {
  margin: 0;
}

@media (min-width: 700px) {
  .prose dl div {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

/* Placeholder à compléter avant publication : bien visible volontairement */
.todo {
  background: #fff3c4;
  color: #6b4e00;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* Pages simples (merci, 404) */
.simple {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-top: var(--header-h);
  padding-bottom: 64px;
}

.simple h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 14ch;
}

.simple p {
  margin-top: 20px;
  color: var(--muted);
  max-width: 34em;
  font-size: 1.125rem;
}

.simple .btn {
  margin-top: 36px;
}

/* ---------- Animations d’apparition -------------------------------------
   Les états masqués ne s’appliquent que si JS est actif (classe .js)
   ET si l’utilisateur n’a pas demandé à réduire les animations.         */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease);
    transition-delay: var(--d, 0s);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* Titre du hero : chaque ligne monte depuis son masque */
  .js .hero__title .line > span {
    transform: translate3d(0, 105%, 0);
    transition: transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
  }

  .js.is-loaded .hero__title .line > span {
    transform: none;
  }

  .js .hero [data-hero] {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
  }

  .js.is-loaded .hero [data-hero] {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- Impression --------------------------------------------------- */
@media print {
  .header,
  .mobile-menu,
  .hero__grid,
  .form-card {
    display: none !important;
  }

  .section--dark {
    background: none;
    color: #000;
  }
}

/* ---------- Transitions entre pages (View Transitions, sans JavaScript) -- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .header {
    view-transition-name: site-header;
  }

  ::view-transition-old(root) {
    animation: vt-out 0.32s cubic-bezier(0.55, 0, 1, 0.45) both;
  }

  ::view-transition-new(root) {
    animation: vt-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  @keyframes vt-out {
    to {
      opacity: 0;
      transform: translate3d(0, -10px, 0);
    }
  }

  @keyframes vt-in {
    from {
      opacity: 0;
      transform: translate3d(0, 18px, 0);
    }
  }
}

/* ---------- Page 404 : le plan du site se réorganise --------------------- */
.lost {
  display: grid;
  gap: 48px;
  align-items: center;
}

.lost__map {
  position: relative;
  width: 100%;
  height: 300px;
  touch-action: pan-y;
}

.lost__map canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.lost__caption {
  position: absolute;
  left: 0;
  bottom: -28px;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

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

  .lost__map {
    height: 420px;
  }
}
