/* ---------- polices, servies par le site : aucune requete vers un tiers ----------
   Spectral et IBM Plex, licence SIL Open Font 1.1 (voir polices/LICENCE-*.txt) */
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('polices/spectral-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('polices/spectral-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('polices/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('polices/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('polices/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('polices/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('polices/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --paper:      #FFFFFF;
  --surface:    #FFFFFF;
  --surface-2:  #F1F3F8;
  --navy:       #16255A;
  --navy-mid:   #3D4C85;
  --ink:        #141F42;
  --ink-soft:   #23315E;
  --ink-mute:   #3D4C85;
  --line:       #E1E5EF;
  --line-soft:  #EDF0F6;
  --gold:       #FBCF1C;
  --gold-deep:  #C29A04;
  --gold-wash:  #FEF8E2;
  --focus:      #16255A;

  --display: 'Spectral', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.1rem; letter-spacing: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow::before {
  content: ""; display: block; width: 44px; height: 13px; margin-bottom: 0.55rem;
  background: no-repeat left center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='13' viewBox='0 0 44 13'%3E%3Cpath d='M2.5 11 A 30 30 0 0 1 41.5 11' fill='none' stroke='%23FBCF1C' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin: 0;
}

/* ---------- header ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(6px);
}
.masthead-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.95rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { display: block; height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.8rem); }
.nav a {
  font-size: 0.875rem; text-decoration: none; color: var(--ink-soft);
  padding-block: 0.2rem; border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav .nav-cta {
  color: var(--ink); font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.38rem 0.95rem;
}
.nav .nav-cta:hover { border-color: var(--gold-deep); background: var(--gold-wash); }
@media (max-width: 640px) { .nav a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.hero-text { display: flex; flex-direction: column; gap: 1.35rem; max-width: 46rem; }
.hero-text h1 { margin-top: 0.15rem; }
.hero-text h1 em {
  font-style: italic; font-weight: 400; color: var(--navy);
  background: linear-gradient(var(--gold), var(--gold)) 0 92% / 100% 0.14em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft); max-width: var(--measure);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.btn {
  font-family: var(--body); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; padding: 0.72rem 1.35rem; border-radius: 2px;
  border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--gold); color: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold-deep); background: var(--gold-wash); }

/* ---------- sections ---------- */
.band { padding-block: clamp(2.5rem, 6vw, 4.25rem); border-top: 1px solid var(--line); }
.band-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.band-head p.sub { color: var(--ink-soft); max-width: var(--measure); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.side { padding: 0 clamp(1rem, 3vw, 2.25rem); }
.side:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.side:last-child { padding-right: 0; }
@media (max-width: 820px) {
  .side { padding-inline: 0; }
  .side:first-child { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2rem; }
}
.side-who {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--ink-mute); margin-top: 0.5rem;
}
.side h2 { margin-top: 0.75rem; }
.side ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.side li {
  display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: 0.7rem;
  font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55;
}
.side li strong { color: var(--ink); font-weight: 600; }
.side li::before {
  content: ""; width: 0.6rem; height: 0.6rem; margin-top: 0.5rem;
  border-left: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy);
  transform: rotate(-135deg);
}

/* method — a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1.5rem; padding-block: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--navy); padding-top: 0.28rem; font-variant-numeric: tabular-nums;
}
.step p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 0.3rem; max-width: var(--measure); }

/* livrables */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em;
  border: 1px solid var(--line); background: var(--surface);
  padding: 0.45rem 0.7rem; color: var(--ink-soft);
}
.chips li b { color: var(--ink); font-weight: 500; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact p { color: var(--ink-soft); max-width: var(--measure); }
.contact-aside { display: grid; gap: 1rem; }
.contact-mail { font-size: 0.95rem; }
.contact-mail a { text-decoration: none; border-bottom: 1px solid var(--navy); }
.contact-mail a:hover { color: var(--navy); }

.contact-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 1.85rem); }
.form { display: grid; gap: 1.05rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy);
}
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 0.95rem; line-height: 1.5; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 0.65rem 0.75rem; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--gold-wash);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); }
.form button {
  font-family: var(--body); font-size: 0.9rem; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px; padding: 0.78rem 1.35rem;
  background: var(--navy); color: var(--paper); justify-self: start;
  transition: background .18s ease;
}
.form button:hover { background: var(--gold); color: var(--navy); }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: 0.88rem; color: var(--ink-soft); min-height: 1.2rem; }
.form-status.is-ok { color: var(--navy); }
.form-status a { color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* pages de contenu : mentions legales, confidentialite */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page > * { max-width: 44rem; }
.page h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); margin-top: 0.5rem; }
.page > .lede { margin-top: 1rem; font-size: 1.02rem; color: var(--ink-soft); }
.prose { display: grid; gap: 1.9rem; margin-top: clamp(2rem, 4vw, 2.75rem); }
.prose section { display: grid; gap: 0.7rem; }
.prose h2 {
  font-family: var(--body); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-mid);
}
.prose p { font-size: 0.95rem; line-height: 1.65; color: var(--ink-soft); }
.prose a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold-deep); }
.prose a:hover { color: var(--navy); }
.prose ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.prose li {
  font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft);
  padding-left: 1.1rem; position: relative;
}
.prose li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.42rem; height: 0.42rem; background: var(--gold); border-radius: 50%;
}
.prose .maj { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-mute); }
.page-back { margin-top: clamp(2.25rem, 5vw, 3rem); font-size: 0.9rem; }
.page-back a { text-decoration: none; border-bottom: 1px solid var(--line); color: var(--ink); }
.page-back a:hover { border-bottom-color: var(--gold-deep); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 1.6rem 2.5rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: baseline; }
.foot p { font-size: 0.8rem; color: var(--ink-mute); }
.foot .foot-mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.foot .foot-mono a { text-decoration: none; border-bottom: 1px solid var(--line); }
.foot .foot-mono a:hover { border-bottom-color: var(--gold-deep); }
