/*
 * HUSTACHE — design system v1
 * Engineering / B2B premium · navy & cyan · Space Grotesk + Inter
 * Loaded by every page on hustache.net (FR + EN).
 *
 * Token namespace:
 *   --color-*        global tokens
 *   --hustache-*     brand-specific palette
 *   --pomex-*        POMEX sub-system (scoped to .pomex zones)
 *   --display/--sans/--mono   typography
 */
/* ═══════ POMEX proprietary fonts (scoped to POMEX components) ═══════ */
  @font-face {
    font-family: 'Existence';
    src: url('../fonts/Existence-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Eau Douce';
    src: url('../fonts/EauDouce-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  :root {
    /* ═══════ HUSTACHE — engineering / B2B premium tokens ═══════ */
    /* Surfaces — cold whites + steel, dashboard feel */
    --color-bg:          #F4F7F9;
    --color-surface:     #FFFFFF;
    --color-surface-2:   #EAF0F4;
    --color-surface-deep:#DCE5EC;

    /* Ink — navy / steel, never warm */
    --color-ink:         #071827;
    --color-ink-strong:  #03101C;
    --color-muted:       #6D7E8C;
    --color-muted-2:     #93A3AF;

    /* Primary navy (brand) */
    --color-primary:      #0B2235;
    --color-primary-soft: #12324A;

    /* System / IA accents (the AI signal language) */
    --color-accent:        #1E5F86;
    --color-accent-strong: #2F8AB8;
    --color-accent-light:  #55B7D3;
    --color-system:        #1E5F86;

    /* Signal — orange chaud, JAMAIS dominant. Réservé aux alertes / focus */
    --color-signal:      #D8843A;

    /* Structural rules */
    --rule:              #D9E2E8;
    --rule-strong:       #B9C5CE;
    --rule-grid:         rgba(85,183,211,0.10);

    /* HUSTACHE-specific palette tokens (per spec) */
    --hustache-navy-950: #071827;
    --hustache-navy-900: #0B2235;
    --hustache-navy-800: #12324A;
    --hustache-blue-700: #1E5F86;
    --hustache-blue-500: #2F8AB8;
    --hustache-cyan-400: #55B7D3;
    --hustache-steel-700:#405263;
    --hustache-steel-500:#6D7E8C;
    --hustache-steel-300:#B9C5CE;

    /* ═══════ POMEX sub-palette (industries réglementées) ═══════ */
    --pomex-primary:   #053D4A;
    --pomex-secondary: #2A7F98;
    --pomex-bg:        #EDF6F8;
    --pomex-accent:    #8FC5D6;
    --pomex-text:      #04313C;
    --pomex-muted:     #5F8490;
    --pomex-border:    #CFE4EA;

    /* POMEX typography (proprietary, scoped to .pomex / .card.pomex) */
    --font-pomex-logo:    'Existence', 'Inter', sans-serif;
    --font-pomex-heading: 'Existence', 'Inter', sans-serif;
    --font-pomex-body:    'Eau Douce', 'Inter', sans-serif;

    /* ═══════ HUSTACHE type system — Piste 1 ingénierie premium ═══════ */
    --display: 'Space Grotesk', 'Inter Tight', -apple-system, system-ui, sans-serif;
    --sans:    'Inter', -apple-system, system-ui, sans-serif;
    --mono:    'JetBrains Mono', ui-monospace, monospace;
    --hand:    'Caveat', cursive;

    /* Legacy aliases — older selectors still target these */
    --serif:        var(--display);
    --paper:        var(--color-bg);
    --paper-2:      var(--color-surface);
    --paper-3:      var(--color-surface-2);
    --ink:          var(--color-ink);
    --ink-2:        var(--color-muted);
    --ink-3:        var(--color-muted-2);
    --line:         var(--rule);
    --line-2:       var(--rule-strong);
    --accent:       var(--color-accent);
    --accent-2:     var(--color-accent-light);
    --accent-deep:  var(--color-primary);
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-decoration: none; }

  /* ──────────── Layout helpers ──────────── */
  .wrap { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
  .row { display: flex; align-items: center; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
  .grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

  .eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted);
    display: inline-flex; align-items: center; gap: 12px;
  }
  .eyebrow::before {
    /* Cyan signal-line — system marker */
    content: '';
    display: inline-block;
    width: 24px; height: 1.5px;
    background: var(--color-accent-light);
    flex: 0 0 auto;
  }
  .display {
    font-family: var(--display);
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.025em;
    line-height: 1.02;
    color: var(--color-ink);
  }
  .display em {
    font-style: normal;
    font-weight: 500;
    color: var(--color-accent-strong);
  }
  .display em {
    font-style: normal;
    font-weight: 500;
    color: var(--color-accent-strong);
  }
  .lede {
    font-size: 18px;
    line-height: 1.55;
    color: var(--color-muted);
    letter-spacing: -0.005em;
    max-width: 620px;
  }
  .hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

  /* ──────────── Buttons — hierarchical B2B premium ──────────── */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    border-radius: 6px;
    font: 500 14.5px/1 var(--sans);
    letter-spacing: -0.005em;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-1px); }
  /* Primary HUSTACHE — deep navy, the dominant CTA */
  .btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 1px 0 rgba(7,24,39,.06), 0 14px 30px -16px rgba(11,34,53,.55);
  }
  .btn-primary:hover { background: var(--color-primary-soft); }
  .btn-solid {
    background: var(--color-ink);
    color: #fff;
  }
  .btn-solid:hover { background: var(--color-ink-strong); }
  .btn-ghost {
    background: var(--color-surface);
    color: var(--color-ink);
    border-color: var(--rule-strong);
  }
  .btn-ghost:hover { background: var(--color-surface-2); border-color: var(--color-primary); }
  /* System / IA — cyan-blue, used for diagnostic + AI signals */
  .btn-system {
    background: var(--color-accent-strong);
    color: #fff;
    border-color: var(--color-accent-strong);
  }
  .btn-system:hover { background: var(--color-accent); border-color: var(--color-accent); }
  /* POMEX — scoped to POMEX zones, with POMEX typography */
  .btn-pomex {
    background: var(--pomex-primary);
    color: #fff;
    border-color: var(--pomex-primary);
    font-family: var(--font-pomex-heading);
    letter-spacing: 0.02em;
  }
  .btn-pomex:hover { background: var(--pomex-secondary); border-color: var(--pomex-secondary); }
  .btn-sm { padding: 9px 14px; font-size: 13px; }
  .link {
    font: 500 14px/1 var(--sans);
    border-bottom: 1px solid var(--rule-strong);
    padding-bottom: 3px;
    color: var(--color-ink);
    transition: color .15s, border-color .15s;
  }
  .link:hover { color: var(--color-accent-strong); border-color: var(--color-accent-strong); }
  .arrow { display: inline-block; transition: transform .2s; }
  .btn:hover .arrow, a:hover .arrow { transform: translateX(3px); }

  /* ──────────── Nav ──────────── */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(244,247,249,0.82);
    border-bottom: 1px solid var(--rule);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 56px;
  }
  .logo {
    display: inline-flex; align-items: center;
    line-height: 1;
    color: var(--color-primary);
  }
  .logo-mark {
    height: 32px;
    width: auto;
    display: block;
  }
  .logo span { display: none; }
  .logo .dot { display: none; }
  .nav-links {
    display: flex; gap: 28px; font-size: 14px; color: var(--color-muted); font-weight: 500;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .nav-links a { white-space: nowrap; }
  .nav-links a:hover { color: var(--color-primary); }
  .nav-right { display: flex; gap: 18px; align-items: center; }
  .lang { font-family: var(--mono); font-size: 11px; color: var(--color-muted-2); letter-spacing: 0.08em; }
  .lang .active { color: var(--color-primary); font-weight: 500; }

  /* ──────────── Hero — engineering grid + status badges ──────────── */
  .hero { padding: 76px 0 96px; position: relative; overflow: hidden; }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(0deg, var(--rule-grid) 0 1px, transparent 1px 64px),
      repeating-linear-gradient(90deg, var(--rule-grid) 0 1px, transparent 1px 64px);
    pointer-events: none;
    opacity: .8;
  }
  .hero .wrap { position: relative; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
  }
  .hero h1 {
    font-size: clamp(56px, 6.4vw, 92px);
    margin: 18px 0 0;
  }
  .hero h1 .softbreak { display: block; }
  .hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
  .hero-actions .sep { color: var(--color-muted-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; }
  /* Domain badges row — under hero h1 */
  .hero .badges {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-top: 28px;
  }
  .hero .badges .badge {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted);
    background: var(--color-surface);
    border: 1px solid var(--rule);
    padding: 6px 10px;
    border-radius: 3px;
  }
  .hero .badges .badge::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-accent-light);
    margin-right: 8px;
    vertical-align: middle;
  }

  /* portrait frame — real photo when src is present, technical placeholder otherwise */
  .portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background:
      radial-gradient(120% 80% at 30% 25%, rgba(255,255,255,.6), transparent 60%),
      repeating-linear-gradient(135deg, rgba(7,24,39,0.05) 0 1px, transparent 1px 8px),
      linear-gradient(180deg, var(--color-surface-deep), var(--color-surface-2));
    border: 1px solid var(--rule-strong);
    border-radius: 4px;
    overflow: hidden;
  }
  .portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
  }
  .portrait:has(img)::after { display: none; }
  .portrait::after {
    content: 'portrait éditorial';
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    font-family: var(--mono); font-size: 10px; color: var(--color-muted-2);
    letter-spacing: .14em; text-transform: uppercase;
  }
  .signature {
    position: absolute;
    bottom: -16px; right: 14px;
    font-family: var(--hand);
    font-size: 22px;
    color: var(--color-primary);
    background: var(--color-surface);
    padding: 4px 14px 2px;
    border: 1px solid var(--rule-strong);
    border-radius: 3px;
    transform: rotate(-2deg);
  }

  /* ──────────── Orientation ──────────── */
  .orient { padding: 90px 0 70px; }
  .orient-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
    margin-bottom: 44px;
  }
  .orient-head h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(40px, 4.6vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 8px 0 0;
    color: var(--color-ink);
  }
  .orient-head h2 .line { display: block; }
  .orient-head h2 em { font-style: normal; color: var(--color-accent-strong); font-weight: 500; }
  .card {
    background: var(--color-surface);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 24px 20px 20px;
    min-height: 320px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    cursor: pointer;
    overflow: hidden;
  }
  .card::before {
    /* Cyan top rail — system signal that reveals on hover */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--color-accent-light) 0%, transparent 28%);
    opacity: 0;
    transition: opacity .25s;
  }
  .card:hover::before { opacity: 1; }
  .card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent-strong);
    box-shadow: 0 14px 32px -22px rgba(7,24,39,.25);
  }
  .card .num {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--color-muted-2);
    letter-spacing: 0.14em;
  }
  .card .q {
    font-family: var(--display);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-ink);
    margin-top: 20px;
  }
  .card .q em { font-style: normal; font-weight: 600; color: var(--color-accent-strong); }
  .card .div { width: 28px; height: 1.5px; background: var(--color-accent-light); margin: 16px 0 14px; }
  .card .svc { font-weight: 600; font-size: 14.5px; color: var(--color-ink); letter-spacing: -0.005em; }
  .card .tag { font-size: 12px; color: var(--color-muted); margin-top: 4px; line-height: 1.45; }
  .card .cta {
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    display: flex; justify-content: space-between; align-items: center;
    transition: color .2s;
  }
  .card:hover .cta { color: var(--color-accent-strong); }
  /* ─ POMEX variant — same card layout/typo as others, only colors differ */
  .card.pomex {
    background: var(--pomex-bg);
    border-color: var(--pomex-border);
  }
  .card.pomex::before {
    background: linear-gradient(90deg, var(--pomex-secondary) 0%, transparent 28%);
    opacity: 1;
  }
  .card.pomex .pomex-watermark {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    opacity: 0.78;
    pointer-events: none;
  }
  .card.pomex .pomex-watermark img { width: 100%; height: 100%; object-fit: contain; }
  .card.pomex .num  { color: var(--pomex-secondary) !important; }
  .card.pomex .q    { color: var(--pomex-text); }
  .card.pomex .q em { color: var(--pomex-secondary); }
  .card.pomex .div  { background: var(--pomex-accent); }
  .card.pomex .svc  { color: var(--pomex-text); }
  .card.pomex .tag  { color: var(--pomex-muted); }
  .card.pomex .cta  { color: var(--pomex-secondary); }
  .card.pomex:hover { border-color: var(--pomex-secondary); }
  .card.pomex:hover::before { opacity: 1; }
  .card.pomex:hover .cta { color: var(--pomex-primary); }
  .pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--rule-strong);
    color: var(--color-muted);
  }
  .pill.solid  { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
  .pill.accent { background: var(--color-accent-strong); color: #fff; border-color: var(--color-accent-strong); }
  .pill.pomex  { background: var(--pomex-secondary); color: #fff; border-color: var(--pomex-secondary); font-family: var(--font-pomex-heading); }

  /* ──────────── Strip crédibilité — cockpit indicators ──────────── */
  .strip {
    margin: 30px 0 0;
    background: var(--color-surface);
    border: 1px solid var(--rule);
    border-radius: 4px;
    display: grid; grid-template-columns: repeat(5, 1fr);
    counter-reset: strip;
    overflow: hidden;
  }
  .strip-cell {
    padding: 28px 22px 24px;
    border-right: 1px solid var(--rule);
    position: relative;
    counter-increment: strip;
  }
  .strip-cell::before {
    content: 'INDICATOR / ' counter(strip, decimal-leading-zero);
    position: absolute;
    top: 12px; left: 22px;
    font-family: var(--mono); font-size: 9.5px;
    color: var(--color-muted-2);
    letter-spacing: 0.14em;
  }
  .strip-cell::after {
    /* tiny cyan tick — control point */
    content: '';
    position: absolute;
    top: 18px; right: 18px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-accent-light);
    box-shadow: 0 0 0 3px rgba(85,183,211,0.18);
  }
  .strip-cell:last-child { border-right: 0; }
  .strip-cell .k {
    font-family: var(--display);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--color-primary);
    margin-top: 18px;
  }
  .strip-cell .v {
    font-size: 12.5px;
    color: var(--color-muted);
    margin-top: 8px;
    line-height: 1.45;
  }

  /* ──────────── Voix — engineering manifesto ──────────── */
  .voix { padding: 110px 0 70px; background: var(--color-surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .voix-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 72px;
    align-items: start;
  }
  .voix .quote {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin: 20px 0 0;
    color: var(--color-ink);
  }
  .voix .quote .line { display: block; }
  .voix .quote em { font-style: normal; font-weight: 600; color: var(--color-accent-strong); }
  .voix .para {
    font-size: 15.5px; line-height: 1.65; color: var(--color-muted);
    margin: 36px 0 0; max-width: 540px;
  }
  .voix .actions { margin-top: 36px; }

  /* ──────────── Diagnostic block — system action ──────────── */
  .diag {
    padding: 32px 36px 32px 44px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
  }
  .diag::before {
    /* cyan signal rail */
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--color-accent-light);
  }
  .diag::after {
    /* technical grid overlay */
    content: '';
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(0deg, rgba(85,183,211,0.04) 0 1px, transparent 1px 28px),
      repeating-linear-gradient(90deg, rgba(85,183,211,0.04) 0 1px, transparent 1px 28px);
    pointer-events: none;
  }
  .diag > * { position: relative; z-index: 1; }
  .diag .label {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--color-accent-light);
    display: inline-flex; align-items: center; gap: 10px;
  }
  .diag h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 34px;
    margin: 10px 0 0;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #fff;
  }
  .diag p { color: rgba(255,255,255,.72); margin: 10px 0 0; font-size: 14px; max-width: 620px; line-height: 1.55; }
  .diag .btn-primary { background: var(--color-accent-strong); border-color: var(--color-accent-strong); }
  .diag .btn-primary:hover { background: var(--color-accent-light); border-color: var(--color-accent-light); color: var(--color-primary); }
  .diag-section { padding: 0 0 30px; }

  /* ──────────── POMEX (branche historique) ──────────── */
  section.pomex {
    background: var(--pomex-bg);
    border-top: 1px solid var(--pomex-border);
    border-bottom: 1px solid var(--pomex-border);
    padding: 72px 0;
    color: var(--pomex-text);
    position: relative;
    font-family: var(--font-pomex-body);
  }
  section.pomex .eyebrow {
    color: var(--pomex-muted);
    font-family: var(--mono);
  }
  section.pomex .eyebrow::before { background: var(--pomex-secondary); }
  section.pomex .pomex-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 64px;
    align-items: center;
  }
  section.pomex .pomex-grid > .pomex-content { max-width: 720px; }
  section.pomex .pomex-mark {
    width: 220px; height: 220px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: transparent;
    margin-left: auto;
  }
  section.pomex .pomex-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  section.pomex h2 {
    font-family: var(--font-pomex-heading);
    font-weight: 300;
    font-size: 64px;
    line-height: 1.04;
    margin: 10px 0 0;
    letter-spacing: -0.005em;
    color: var(--pomex-primary);
  }
  section.pomex p {
    font-family: var(--font-pomex-body);
    margin: 14px 0 0;
    font-size: 14.5px;
    color: var(--pomex-text);
    line-height: 1.65;
    max-width: 460px;
  }
  section.pomex .btn-solid {
    background: var(--pomex-primary);
    color: #fff;
    border-color: var(--pomex-primary);
    font-family: var(--font-pomex-heading);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 13px;
  }
  section.pomex .btn-solid:hover {
    background: var(--pomex-secondary);
    border-color: var(--pomex-secondary);
  }

  /* ──────────── Galaxie ──────────── */
  .galaxie { padding: 90px 0 70px; }
  .galaxie-head {
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: end;
    gap: 32px;
    margin-bottom: 44px;
  }
  .galaxie h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(38px, 4.4vw, 58px);
    line-height: 1.04;
    margin: 8px 0 0;
    letter-spacing: -0.025em;
    color: var(--color-ink);
  }
  .galaxie h2 .line { display: block; }
  .galaxie h2 em { font-style: normal; color: var(--color-accent-strong); font-weight: 500; }
  .teaser {
    aspect-ratio: 16/11;
    background:
      repeating-linear-gradient(0deg, rgba(85,183,211,0.10) 0 1px, transparent 1px 28px),
      repeating-linear-gradient(90deg, rgba(85,183,211,0.10) 0 1px, transparent 1px 28px),
      var(--color-surface);
    border: 1px solid var(--rule);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
  }
  .teaser::before {
    /* Top-left engineering bracket — cyan */
    content: '';
    position: absolute;
    top: 10px; left: 10px;
    width: 14px; height: 14px;
    border-top: 1.5px solid var(--color-accent-light);
    border-left: 1.5px solid var(--color-accent-light);
  }
  .teaser::after {
    /* Bottom-right engineering bracket — cyan */
    content: '';
    position: absolute;
    bottom: 10px; right: 10px;
    width: 14px; height: 14px;
    border-bottom: 1.5px solid var(--color-accent-light);
    border-right: 1.5px solid var(--color-accent-light);
  }
  .teaser .tag {
    position: absolute; top: 16px; right: 16px;
    font-family: var(--mono); font-size: 9.5px; color: var(--color-muted);
    background: var(--color-surface);
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid var(--rule);
    letter-spacing: 0.14em; text-transform: uppercase;
  }
  .teaser .id {
    position: absolute; bottom: 16px; left: 16px;
    font-family: var(--mono); font-size: 10.5px; color: var(--color-muted);
    letter-spacing: 0.08em;
  }
  .galaxie .actions { margin-top: 28px; }

  /* ──────────── Closing ──────────── */
  .closing {
    padding: 56px 0 72px;
    border-top: 1px solid var(--line);
  }
  .closing-inner {
    display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  }
  .closing h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(34px, 3.8vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin: 0;
    max-width: 720px;
    color: var(--color-ink);
  }
  .closing h2 em { font-style: normal; color: var(--color-accent-strong); font-weight: 500; }
  .closing-actions { display: flex; gap: 18px; align-items: center; }

  /* ──────────── Footer ──────────── */
  footer {
    background: var(--color-primary);
    color: var(--color-surface-2);
    padding: 64px 0 32px;
  }
  footer .wrap {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
  }
  footer .brand .logo { color: #fff; }
  footer .brand .logo .logo-mark--inverted {
    /* Footer uses the white horizontal logo source directly — no filter */
  }
  footer .brand .logo-mark { height: 36px; }
  footer .brand p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.55; margin: 14px 0 0; max-width: 280px; }
  footer h4 {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin: 0 0 16px;
    padding: 0;
    font-weight: 500;
    line-height: 1.4;
  }
  footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
  footer ul a:hover { color: var(--color-accent-light); }
  .foot-bottom {
    margin-top: 56px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between; align-items: baseline;
    flex-wrap: wrap; gap: 12px 24px;
    font-family: var(--mono); font-size: 11px;
    color: rgba(255,255,255,.4);
    letter-spacing: 0.06em;
    line-height: 1.5;
  }

  /* Responsive shorthand — assume design at 1320 width */
  @media (max-width: 1100px) {
    .hero-grid, .voix-grid, .galaxie-head { grid-template-columns: 1fr; }
    section.pomex .pomex-grid { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .strip { grid-template-columns: repeat(2, 1fr); }
    .strip-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    footer .wrap { grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(0, 1fr)); }
    footer .brand { grid-column: 1 / -1; }
  }
  @media (max-width: 700px) {
    footer .wrap { grid-template-columns: 1fr; gap: 32px; }
    .foot-bottom { gap: 8px; }
  }


/* ─────────────────────────────────────────────────────────────────────
 * Sub-page layouts (services, about, pomex, contact, conferences, blog)
 * Added on top of the homepage tokens to keep every page in the same system.
 * ─────────────────────────────────────────────────────────────────── */

/* — Page hero — smaller than homepage hero, with breadcrumb */
.page-hero {
  padding: 56px 0 64px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, var(--rule-grid) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, var(--rule-grid) 0 1px, transparent 1px 64px);
  pointer-events: none;
  opacity: .8;
}
.page-hero .wrap { position: relative; }
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 18px;
  display: flex; gap: 10px; align-items: center;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-accent-strong); }
.breadcrumb .sep { color: var(--color-muted-2); }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--color-ink);
  max-width: 980px;
}
.page-hero h1 em { font-style: normal; color: var(--color-accent-strong); font-weight: 500; }
.page-hero .lede { margin-top: 22px; max-width: 660px; }
.page-hero .badges { margin-top: 26px; }

/* — Pain quote — the « problem » block that opens every service page */
.pain-quote {
  padding: 60px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--rule);
}
.pain-quote .wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
.pain-quote .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.pain-quote .label::before {
  content: '';
  display: inline-block; width: 24px; height: 1.5px;
  background: var(--color-signal);
  flex: 0 0 auto;
}
.pain-quote blockquote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--color-ink);
  max-width: 880px;
}
.pain-quote blockquote::before { content: '« '; color: var(--color-muted-2); }
.pain-quote blockquote::after  { content: ' »'; color: var(--color-muted-2); }

/* — Section primitive — used for besoin / méthode / résultat / for-whom */
.svc-section {
  padding: 70px 0;
}
.svc-section + .svc-section { border-top: 1px solid var(--rule); }
.svc-section .head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  margin-bottom: 40px;
  align-items: baseline;
}
.svc-section .head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--color-ink);
}
.svc-section .head .intro {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 640px;
}
.svc-section .body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
}
.svc-section .body > .anchor { display: block; }

/* — Method steps (numbered process cards) */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.step {
  background: var(--color-surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px 24px 24px;
  position: relative;
  counter-increment: step;
}
.step .step-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--color-accent-strong);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.step .step-num::before {
  content: '';
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent-light);
}
.step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--color-ink);
}
.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* — Results bullets (→ list with accent arrows) */
.results { list-style: none; padding: 0; margin: 0; }
.results li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink);
}
.results li:last-child { border-bottom: 0; }
.results li::before {
  content: '→';
  color: var(--color-accent-strong);
  flex: 0 0 auto;
  font-weight: 500;
}

/* — Quick-info bar (Pour qui · Format · Engagement) */
.svc-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.svc-info > div { padding: 22px 24px; border-right: 1px solid var(--rule); }
.svc-info > div:last-child { border-right: 0; }
.svc-info .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted-2);
  margin-bottom: 8px;
}
.svc-info .v {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}

/* — Related (links to other services at the bottom) */
.related { padding: 70px 0; background: var(--color-surface); border-top: 1px solid var(--rule); }
.related h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.022em;
  margin: 0 0 28px;
  color: var(--color-ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* — Page section header pattern (about, pomex full, etc) */
.section-head {
  margin-bottom: 36px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 10px 0 0;
  color: var(--color-ink);
  max-width: 880px;
}
.section-head h2 em { font-style: normal; color: var(--color-accent-strong); font-weight: 500; }
.section-head .lede { margin-top: 18px; }

/* — Timeline (parcours / about) */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-2);
}
.timeline .what {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}
.timeline .desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-top: 6px;
}

/* — Form primitives */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field {
  display: flex; flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.field input, .field textarea, .field select {
  background: var(--color-surface);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 12px 14px;
  font: 400 14.5px/1.4 var(--sans);
  color: var(--color-ink);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--color-accent-strong);
  box-shadow: 0 0 0 3px rgba(85,183,211,0.15);
}
.field textarea { min-height: 120px; resize: vertical; font-family: var(--sans); }

/* — Tag chips for service badges */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--rule);
  padding: 6px 10px;
  border-radius: 3px;
}
.chip::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent-light);
  margin-right: 8px;
  vertical-align: middle;
}

/* — Article preview (blog) */
.article-card {
  display: block;
  padding: 26px 28px;
  background: var(--color-surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.article-card:hover { border-color: var(--color-accent-strong); transform: translateY(-2px); box-shadow: 0 14px 32px -22px rgba(7,24,39,.25); }
.article-card .article-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.article-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--color-ink);
}
.article-card p { color: var(--color-muted); font-size: 14px; line-height: 1.55; margin: 0; }

/* — Article body (prose) */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-ink);
}
.prose h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  margin: 32px 0 12px;
}
.prose p { margin: 0 0 16px; color: var(--color-muted); }

/* — Responsive */
@media (max-width: 900px) {
  .pain-quote .wrap, .svc-section .head, .svc-section .body { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .svc-info { grid-template-columns: 1fr; }
  .svc-info > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .form-grid { grid-template-columns: 1fr; }
}


/* ─ Odoo appointment embed (contact.html#diagnostic) ─────────────────── */
.rdv-embed {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.rdv-embed iframe {
  width: 100%;
  min-height: 780px;
  border: 0;
  display: block;
  background: #fff;
}
@media (max-width: 768px) {
  .rdv-embed iframe { min-height: 1050px; }
}


/* ─────────────────────────────────────────────────────────────────────
 * Motion system — scroll reveals, subtle pulses, GSAP-friendly hooks
 * ─────────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(.2,.65,.25,1), transform 0.7s cubic-bezier(.2,.65,.25,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Soft pulse on the cyan tick of strip cells */
.strip-cell::after {
  animation: hus-pulse 2.4s ease-in-out infinite;
}
@keyframes hus-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(85,183,211,0.18); transform: none; }
  50%      { box-shadow: 0 0 0 7px rgba(85,183,211,0);    transform: scale(1.04); }
}

/* Diagnostic block: cyan rail traces from top to bottom when in view */
.diag::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s cubic-bezier(.2,.65,.25,1) 0.15s;
}
.diag.rail-trace::before {
  transform: scaleY(1);
}

/* Galaxie teaser: gentle pulsing corner brackets */
.galaxie .teaser::before,
.galaxie .teaser::after {
  animation: hus-corner-pulse 3.2s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}
@keyframes hus-corner-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Cards: lift + cyan rail bloom on hover (already in base) — make it smoother */
.card { transition: transform 0.28s cubic-bezier(.2,.65,.25,1), box-shadow 0.28s, border-color 0.28s; }
.card::before { transition: opacity 0.4s cubic-bezier(.2,.65,.25,1); }

/* Domain badges: subtle inner-dot breath */
.hero .badges .badge::before {
  animation: hus-dot-breath 3s ease-in-out infinite;
}
@keyframes hus-dot-breath {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.65; }
}

/* Accessibility: respect user preference */
.motion-off .reveal,
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-cell::after,
  .diag::before,
  .galaxie .teaser::before,
  .galaxie .teaser::after,
  .hero .badges .badge::before { animation: none !important; }
}


/* ─ Odoo newsletter embed (contact.html#newsletter) ──────────────────── */
.newsletter-embed {
  width: 100%;
  max-width: 640px;
}
.newsletter-embed iframe {
  width: 100%;
  min-height: 180px;
  border: 0;
  display: block;
  background: transparent;
}
@media (max-width: 768px) {
  .newsletter-embed iframe { min-height: 240px; }
}

/* Conference form iframe — uses the same .rdv-embed shell as the booking iframe.
   Override height for the conference form. */
#demande-conference .rdv-embed iframe { min-height: 720px; }
@media (max-width: 768px) {
  #demande-conference .rdv-embed iframe { min-height: 1000px; }
}


/* ─────────────────────────────────────────────────────────────────────
 * Cookies / embed notice — minimal bottom bar
 * ─────────────────────────────────────────────────────────────────── */
#hus-cookies {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 14px 40px -16px rgba(7,24,39,0.5);
  transition: opacity 0.25s;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  max-width: 880px;
  margin: 0 auto;
}
#hus-cookies .hus-cookies-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 22px;
}
#hus-cookies .hus-cookies-msg { flex: 1; min-width: 280px; color: rgba(255,255,255,0.88); }
#hus-cookies .hus-cookies-msg a { color: var(--color-accent-light); text-decoration: underline; text-underline-offset: 3px; }
#hus-cookies .hus-cookies-btn {
  flex: 0 0 auto;
  background: var(--color-accent-strong);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 10px 18px;
  font: 500 13px/1 var(--sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.2s;
}
#hus-cookies .hus-cookies-btn:hover { background: var(--color-accent-light); color: var(--color-primary); }
@media (max-width: 600px) {
  #hus-cookies { bottom: 8px; left: 8px; right: 8px; }
  #hus-cookies .hus-cookies-inner { padding: 14px 16px; gap: 12px; }
  #hus-cookies .hus-cookies-btn { width: 100%; }
}
