
  :root {
    --ink: #1c1a17;
    --paper: #f6f3ee;
    --surface: #ffffff;
    --red: #8b1a1a;
    --red-ink: #ffffff;
    --teal: #2f4858;
    --teal-ink: #ffffff;
    --muted: #726b5e;
    --line: #e2dccf;
    --focus: #8b1a1a;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #f2eee6; --paper: #16140f; --surface: #201d18;
      --red: #d15a4a; --red-ink: #16140f; --teal: #7fabc0; --teal-ink: #16140f;
      --muted: #a89d8a; --line: #34302a; --focus: #d15a4a;
    }
  }
  :root[data-theme="dark"] {
    --ink: #f2eee6; --paper: #16140f; --surface: #201d18;
    --red: #d15a4a; --red-ink: #16140f; --teal: #7fabc0; --teal-ink: #16140f;
    --muted: #a89d8a; --line: #34302a; --focus: #d15a4a;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
  h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; text-wrap: balance; margin: 0; text-rendering: optimizeLegibility; }
  .eyebrow { font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
  .wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

  header.site { border-bottom: 1px solid var(--line); }
  .masthead { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 24px; }
  .logo { display: flex; align-items: baseline; gap: 10px; font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; font-weight: 600; text-decoration: none; }
  .logo .mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--red); color: var(--red-ink); font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: .85rem; border-radius: 3px; letter-spacing: -.02em; }
  nav.primary { display: flex; gap: 28px; font-size: .92rem; }
  nav.primary a { text-decoration: none; color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .15s ease, border-color .15s ease; }
  nav.primary a:hover { color: var(--ink); border-color: var(--line); }
  @media (max-width: 640px) { nav.primary { display: none; } }

  .breadcrumb { padding: 16px 0 0; font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--muted); }
  .breadcrumb a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
  .breadcrumb a:hover { color: var(--ink); }
  .breadcrumb .sep { margin: 0 8px; opacity: .5; }

  .page-hero { padding: 28px 0 44px; border-bottom: 1px solid var(--line); }
  .page-hero .tag { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; margin-bottom: 16px; }
  .page-hero .tag.seo { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
  .page-hero .tag.geo { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); }
  .page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 500; line-height: 1.18; max-width: 20ch; }
  .page-hero p.lede { margin-top: 18px; max-width: 62ch; font-size: 1.05rem; color: var(--muted); }
  .hero-cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 3px; text-decoration: none; font-size: .94rem; font-weight: 500; border: 1px solid transparent; }
  .btn-primary { background: var(--ink); color: var(--paper); }
  .btn-primary:hover { opacity: .88; }
  .btn-ghost { border-color: var(--line); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--muted); }

  section.block { padding: 44px 0; border-bottom: 1px solid var(--line); }
  section.block:last-of-type { border-bottom: none; }
  .block h2 { font-size: 1.35rem; font-weight: 500; margin-bottom: 18px; }
  .block p { margin: 0 0 14px; }
  .block p:last-child { margin-bottom: 0; }
  .block a.inline-link { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

  .feature-list { display: grid; gap: 18px; }
  .feature-list li { list-style: none; padding-left: 20px; border-left: 2px solid var(--red); }
  .feature-list li b { font-family: "Playfair Display", Georgia, serif; font-weight: 500; display: block; margin-bottom: 4px; }

  .satellite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
  .satellite-card { background: var(--surface); padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
  .satellite-card .name { font-family: "Playfair Display", Georgia, serif; font-size: 1.05rem; }
  .satellite-card .desc { font-size: .88rem; color: var(--muted); }
  .satellite-card .go { margin-top: auto; font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--red); }

  .faq-list { display: flex; flex-direction: column; }
  .faq-item { border-bottom: 1px solid var(--line); }
  .faq-item:first-child { border-top: 1px solid var(--line); }
  .faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 28px 16px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.08rem;
    font-weight: 500;
    position: relative;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 14px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.2rem;
    color: var(--red);
    transition: transform .15s ease;
  }
  .faq-item[open] summary::after { content: "\2212"; }
  .faq-item .a { color: var(--muted); margin: 0 0 18px; }

  .repere-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; margin-top: 8px; }
  .repere { border-left: 2px solid var(--red); padding-left: 14px; }
  .repere .num { font-family: "IBM Plex Mono", monospace; font-size: clamp(1.05rem, 1.4vw + .7rem, 1.4rem); color: var(--ink); display: block; line-height: 1.2; }
  .repere .label { color: var(--muted); font-size: .9rem; margin-top: 4px; display: block; }
  .repere a { text-decoration: none; border-bottom: 1px dotted var(--muted); }

  .callout { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; margin-top: 8px; }
  .callout h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 8px; }
  .callout p { margin: 0; color: var(--muted); }

  form.contact-form { display: grid; gap: 16px; max-width: 480px; margin-top: 8px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field label { font-family: "IBM Plex Mono", monospace; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .field input, .field textarea { font: inherit; font-size: .96rem; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); }
  .field textarea { min-height: 130px; resize: vertical; }
  .field input:focus, .field textarea:focus { border-color: var(--red); }
  .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  form.contact-form button { justify-self: start; }

  footer.site { padding: 40px 0 48px; margin-top: 8px; }
  .cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
  .cta-band h2 { font-size: 1.3rem; font-weight: 500; max-width: 22ch; }
  .foot-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted); }
  .foot-links a { text-decoration: none; }
  .foot-links a:hover { color: var(--ink); }


/* Hero: two-column variant with portrait (home, qui-suis-je) */
.page-hero--portrait {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .page-hero--portrait { grid-template-columns: 1fr; }
  .page-hero--portrait .hero-portrait { order: -1; aspect-ratio: 16 / 10; max-width: 260px; }
}
.hero-portrait {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%;
  display: block; filter: grayscale(0.15);
}
.page-hero p.subtitle {
  margin-top: 18px; max-width: 46ch;
  font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; font-weight: 500; color: var(--red);
  text-wrap: balance;
}
.page-hero p.digimood-mention {
  margin-top: 10px; font-size: 0.92rem; color: var(--muted);
  padding-left: 14px; border-left: 2px solid var(--line); max-width: 52ch;
}

/* Deux expertises (pillar cards) */
.pillars { padding: 52px 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; max-width: 60ch; }
.section-head h2 { font-size: 1.55rem; font-weight: 500; margin-top: 8px; }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 700px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card { background: var(--surface); padding: 32px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; position: relative; }
.pillar-card .tag { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; width: fit-content; }
.pillar-card.seo .tag { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.pillar-card.geo .tag { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); }
.pillar-card h3 { font-size: 1.3rem; font-weight: 500; }
.pillar-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.pillar-card .go { margin-top: auto; font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; display: flex; align-items: center; gap: 6px; }
.pillar-card.seo .go { color: var(--red); }
.pillar-card.geo .go { color: var(--teal); }
.pillar-card .go .arrow { transition: transform 0.15s ease; }
.pillar-card:hover .go .arrow { transform: translateX(3px); }

/* Ailuris / double casquette */
.casquette { padding: 52px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .casquette { grid-template-columns: 1fr; gap: 20px; } }
.casquette h2 { font-size: 1.4rem; font-weight: 500; max-width: 18ch; }
.casquette-body p { margin: 0 0 14px; color: var(--ink); }
.casquette-body p:last-child { margin-bottom: 0; }
.casquette-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.badge { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; border: 1px solid var(--line); border-radius: 2px; padding: 6px 10px; color: var(--muted); }
a.badge.badge-link { text-decoration: none; color: var(--red); border-color: var(--red); transition: background 0.15s ease, color 0.15s ease; }
a.badge.badge-link:hover { background: var(--red); color: var(--red-ink); }

/* Repères */
.reperes { padding: 52px 0; border-bottom: 1px solid var(--line); }
