/* ==========================================================================
   Site V5 system, 2026-09 redesign.

   Replaces pages/veille.css (V4 "La Voix", rejected by the owner on
   2026-09-06). Proof page expertise_marque.html approved 2026-09-06; in
   use on the four expertise pages (file renamed from expertise_v5.css).
   pages/veille.css no longer has a user.

   The scaffolding is stolen from anthropic.com / claude.com (2026-09
   state), structure only, none of their trademark: the two-column hero
   (display claim left, lede and action right), the customer-logo strip
   directly under the hero, hairline meta rows with a right-aligned value,
   the release-card anatomy (title, body, hairline meta footer), the quote
   set off by a single hairline, and the closing panel. Palette, radii and
   the eight-step type scale are the house tokens from style.css: nothing
   is redeclared here.

   Prefix: e-. Namespaced against Bootstrap and against the v- system so
   both files can coexist while only this page uses the new one.

   House rules encoded:
   1. TYPE SCALE. A component takes the nearest style.css token; it never
      declares a literal font-size.
   2. RED BUDGET. At most two semantic uses per page, never decorative.
      marque: the "10" in the rule meta and the emphasised quote phrase.
      signaux: "invisible" in the timing table (the one true loss).
      concurrentielle and crise: none. "agrégé" is always soft ink,
      because aggregation is an availability state, not a loss.
   3. No dark inversions, no decorative numerals. Hairlines live inside
      components only; sections are separated by whitespace.
   4. NO UPPERCASE (owner, 2026-09-06). Labels, kickers and table heads
      are sentence case, normal tracking, like anthropic.com's own.
   ========================================================================== */

:root {
    --e-rule: 1px solid var(--color-border);
    --e-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Shell ---------- */
.e-page {
    background: var(--color-bg);
    /* clip, not hidden: preserves position: sticky on any descendant */
    overflow-x: clip;
}
.e-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: clamp(24px, 5vw, 72px);
}
.e-hero { padding-block: clamp(48px, 8vh, 96px) clamp(44px, 7vh, 72px); }
.e-sect { padding-bottom: clamp(64px, 9vh, 120px); }

/* ---------- Type ---------- */
/* The offer name is the page's h1 (SEO), worn as a small kicker. */
.e-kick {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: var(--fs-small);
    line-height: 1.4;
    color: var(--color-text-strong);
    margin: 0 0 22px;
}
/* The claim is an h2 that keeps the display-1 cut; scoped so it outweighs
   the generic .e-page h2 rule below. */
.e-page .e-claim {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: var(--fs-display-1);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--color-ink);
    max-width: 20ch;
    margin: 0;
    overflow-wrap: anywhere;
    min-width: 0;
}
.e-page h2 {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: var(--fs-display-2);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-ink);
    max-width: 26ch;
    margin: 0 0 28px;
    overflow-wrap: anywhere;
    min-width: 0;
}
.e-lede {
    font-family: var(--font-body);
    font-size: var(--fs-lede);
    line-height: 1.65;
    color: var(--color-text-strong);
    max-width: 46ch;
    margin: 0 0 30px;
}
.e-intro {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--color-text);
    max-width: 52ch;
    margin: 0;
}
.e-prose p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.75;
    color: var(--color-text);
    margin: 0 0 26px;
}
.e-prose p:last-child { margin-bottom: 0; }
.e-prose ul {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.75;
    color: var(--color-text);
    margin: 0 0 26px;
    padding-left: 22px;
}
.e-prose li { margin-bottom: 10px; }
.e-prose li:last-child { margin-bottom: 0; }
/* a label above a case heading: declares a real client's case with the
   name withheld ("Cas client anonymisé"). Sentence case, rule 4. */
.e-flag {
    font-family: var(--font-body);
    font-weight: bold;
    font-size: var(--fs-caption);
    line-height: 1.4;
    color: var(--color-text-soft);
    margin: 0 0 12px;
}
.e-note {
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    line-height: 1.6;
    color: var(--color-text-soft);
    max-width: 74ch;
    margin: 28px 0 0;
}

/* ---------- Hero: claim left, lede and the one action right ---------- */
.e-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}
/* optical alignment: the lede hangs from the claim's first line, not the kicker */
.e-hero-side { padding-top: clamp(36px, 4vw, 52px); }

/* ---------- Trust strip, directly under the hero ---------- */
.e-trust p {
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    margin: 0 0 24px;
}
.e-trustrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(24px, 3.5vw, 48px);
}
.e-trustrow img {
    height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: opacity 0.3s var(--e-ease), filter 0.3s var(--e-ease);
}
.e-trustrow img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Split: statement on the left, its answer on the right ---------- */
.e-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.e-split h2 { margin: 0; max-width: 18ch; }
.e-split .e-intro { margin-top: 14px; }
.e-split--head { margin-bottom: clamp(28px, 4vh, 44px); }

/* a stacked section header (h2 + intro) when there is no right column */
.e-sechead { margin-bottom: clamp(28px, 4vh, 44px); }
.e-sechead h2 { margin: 0; }
.e-sechead .e-intro { margin: 12px 0 0; }

/* ---------- Meta rows: a label, a hairline, a right-aligned value ---------- */
.e-meta { margin: 0; }
.e-meta > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding-block: 14px;
    border-top: var(--e-rule);
}
.e-meta > div:last-child { border-bottom: var(--e-rule); }
.e-meta dt {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}
.e-meta dd {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: var(--fs-emph);
    line-height: 1;
    color: var(--color-ink);
    font-variant-numeric: tabular-nums;
    margin: 0;
    white-space: nowrap;
}
.e-meta .e-hit dd { color: var(--color-accent); }        /* red 1 of 2 */

/* ---------- The decision table: hairline rows, no stripes ---------- */
.e-tblwrap { overflow-x: auto; }
.e-page table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-family: var(--font-body);
}
.e-page thead th {
    text-align: left;
    font-weight: bold;
    font-size: var(--fs-caption);
    line-height: 1.4;
    color: var(--color-text-soft);
    padding: 0 24px 12px 0;
    border-bottom: var(--e-rule);
    vertical-align: bottom;
}
.e-page tbody th,
.e-page tbody td {
    text-align: left;
    font-size: var(--fs-small);
    line-height: 1.55;
    padding: 18px 24px 18px 0;
    border-bottom: var(--e-rule);
    vertical-align: top;
}
.e-page tbody th {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: var(--fs-body);
    color: var(--color-ink);
}
.e-page tbody td { color: var(--color-text); }

/* decision marks: retenu is ink, agrégé is soft ink (available, not lost) */
.e-st { white-space: nowrap; font-weight: bold; }
.e-st::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: 1px;
}
.e-st--keep { color: var(--color-ink); }
.e-st--keep::before { background: var(--color-ink); }
.e-st--agg { color: var(--color-text-soft); }
.e-st--agg::before { border: 1px solid var(--color-text-soft); }
/* the one true loss: what a keyword watch never sees (signaux page only) */
.e-st--drop { color: var(--color-accent); }              /* red, signaux only */
.e-st--drop::before { border: 1px solid var(--color-accent); }

/* ---------- The benefit cards ---------- */
.e-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}
.e-card {
    background: var(--color-surface);
    border: var(--e-rule);
    border-radius: var(--radius);
    padding: clamp(24px, 2.5vw, 36px);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.e-card h3 {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: var(--fs-lede);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    margin: 0 0 14px;
}
.e-card > p {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    line-height: 1.65;
    color: var(--color-text);
    margin: 0 0 26px;
}
.e-card-meta {
    margin-top: auto;
    border-top: var(--e-rule);
    padding-top: 16px;
}
.e-card-meta b {
    display: block;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    margin: 0 0 6px;
}
.e-card-meta span {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    line-height: 1.55;
    color: var(--color-text);
}

/* ---------- The case: the product plate, the client, her voice ---------- */
.e-case {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 68px);
    align-items: start;
}
/* the case's payoff paragraph, below the grid, capped at a readable measure */
.e-casefull {
    margin-top: clamp(28px, 4vh, 44px);
    max-width: 72ch;
}
.e-plate { margin: 0; }
.e-plate figcaption {
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    line-height: 1.5;
    color: var(--color-text-soft);
    margin-top: 20px;
    text-align: center;
    max-width: 34ch;
    margin-inline: auto;
}
/* the edition sits in a phone, like the home page: the email arrives on
   mobile. Dark bezel (a device, not a dark content section), a status
   strip holding the dynamic-island pill, the screenshot filling the rest. */
.e-phone {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    background: #1c1c1e;
    border-radius: 48px;
    padding: 11px;
}
.e-phone-screen {
    position: relative;
    aspect-ratio: 41 / 89;
    border-radius: 38px;
    overflow: hidden;
    background: var(--color-bg);
}
.e-phone-screen img {
    display: block;
    width: 100%;
    margin-top: 24px;   /* status strip below the island */
    border: 0;
    border-radius: 0;
}
.e-phone-screen::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 34%;
    height: 18px;
    background: #000;
    border-radius: 999px;
    z-index: 2;
}
/* The client's own logo, above the case headline: the light-surface lockup
   (static/images/virtualbrowser.webp), keeping the no-dark-inversions rule. */
.e-caselogo {
    display: block;
    height: clamp(26px, 3vw, 34px);
    width: auto;
    margin: 0 0 20px;
}
.e-quote {
    font-family: var(--font-quote);
    font-style: normal;
    font-weight: normal;
    font-size: var(--fs-display-3);
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    max-width: 42ch;
    margin: clamp(26px, 4vh, 36px) 0 0;
    padding: 24px 0 0;
    border: 0;
    border-top: var(--e-rule);
    overflow-wrap: anywhere;
    min-width: 0;
}
.e-quote .e-em { color: var(--color-accent); }           /* red 2 of 2 */
.e-attr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 20px;
    margin-top: 18px;
}
.e-attr .e-who {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: var(--fs-body);
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--color-ink);
}
.e-attr .e-role {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--color-text);
}

/* ---------- The numbers ---------- */
.e-readout {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}
.e-readout > div {
    border-top: var(--e-rule);
    padding-top: 18px;
    min-width: 0;
}
.e-readout b {
    display: block;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: var(--fs-display-2);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}
.e-readout span {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    line-height: 1.45;
    color: var(--color-text);
}

/* ---------- Buttons and inline links ---------- */
.e-btn {
    display: inline-block;
    background: var(--color-ink);
    color: var(--color-surface);
    border: 2px solid var(--color-ink);
    border-radius: 999px;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: var(--fs-small);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s var(--e-ease), color 0.25s var(--e-ease);
}
.e-btn:hover { background: var(--color-surface); color: var(--color-ink); }
.e-btn:active { background: var(--color-ink-2); color: var(--color-surface); }
/* a text link inside prose rides its sentence */
.e-prose .e-tlink {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1px;
    transition: border-color 0.25s var(--e-ease), color 0.25s var(--e-ease);
}
.e-prose .e-tlink:hover { color: var(--color-ink); border-color: var(--color-ink); }

/* ---------- The closing panel ---------- */
.e-panel {
    background: var(--color-surface);
    border: var(--e-rule);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 64px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px clamp(24px, 4vw, 48px);
}
.e-panel h2 { margin: 0; max-width: 22ch; }

/* ---------- Signature ---------- */
.e-sig { padding-bottom: clamp(64px, 10vh, 110px); }
.e-sig p {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: var(--fs-display-3);
    letter-spacing: -0.015em;
    color: var(--color-text-strong);
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 950px) {
    .e-hero-grid,
    .e-split,
    .e-case,
    .e-cards { grid-template-columns: minmax(0, 1fr); }
    .e-hero-grid { gap: clamp(24px, 4vh, 36px); }
    .e-hero-side { padding-top: 0; }
    .e-split--head { gap: clamp(24px, 4vh, 36px); }
}
@media (max-width: 900px) {
    .e-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    /* display leading is cramped over five wrapped lines at phone widths */
    .e-page .e-claim { line-height: 1.08; }

    .e-readout { grid-template-columns: minmax(0, 1fr); }
    .e-trustrow img { height: 30px; }

    /* the table reflows into stacked records instead of side-scrolling */
    .e-tblwrap { overflow-x: visible; }
    .e-page table { min-width: 0; }
    .e-page thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .e-page tbody tr {
        display: block;
        padding-block: 22px;
        border-bottom: var(--e-rule);
    }
    .e-page tbody tr:first-child { border-top: var(--e-rule); }
    .e-page tbody th,
    .e-page tbody td { display: block; border: 0; padding: 0; }
    .e-page tbody th { margin-bottom: 6px; }
    .e-page tbody td::before {
        content: attr(data-label) ' ';
        color: var(--color-text-soft);
        font-size: var(--fs-caption);
    }
    .e-page tbody td + td { margin-top: 6px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .e-btn,
    .e-prose .e-tlink,
    .e-trustrow img { transition: none; }
}
