/* Pages d'expertise (/expertises/<slug>), générées par scripts/generate-expertise-pages.py */
.xp-page {
  --xp-ink: var(--prune-encre, #431C43);
  --xp-text: #2E2530;
  --xp-muted: #5E4F5C;
  --xp-line: #DDD5CA;
  --xp-card: #FBF8F2;
  color: var(--xp-ink);
}
.xp-wrap { max-width: 1440px; margin: 0 auto; padding-inline: 24px; }
@media (min-width: 768px) { .xp-wrap { padding-inline: 6%; } }

.xp-label, .agency-scale .xp-page .xp-wrap p.xp-label {
  margin: 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--xp-muted);
}
.xp-label a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

/* Titres de section */
.xp-h2 { display: flex; align-items: baseline; gap: 18px; margin: 0 0 40px; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 400; color: var(--xp-ink); }
.xp-h2--light { color: #F3EFE7; }
.xp-num { font-family: var(--font-mono, ui-monospace, monospace); font-size: 14px; letter-spacing: .1em; color: var(--xp-muted); transform: translateY(-.6em); }
.xp-h3 { margin: 40px 0 16px; font-size: 22px; font-weight: 400; letter-spacing: -.01em; }

/* En-tête */
.xp-hero { padding-block: 56px 80px; }
.xp-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .xp-hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 80px; } }
.agency-scale .xp-page .xp-hero h1, .agency-scale section.xp-hero h1:not(.creative-title) {
  margin: 24px 0 0; font-size: clamp(52px, 7vw, 108px); line-height: 1; letter-spacing: -.04em; font-weight: 400;
}
.agency-scale .xp-page .xp-wrap p.xp-lead { margin: 28px 0 0; max-width: 34ch; font-size: clamp(22px, 2vw, 30px); line-height: 1.3; color: var(--xp-ink); }
.agency-scale .xp-page .xp-wrap p.xp-intro { margin: 18px 0 0; max-width: 58ch; font-size: 19px; line-height: 1.6; color: var(--xp-text); }
.xp-btn { display: inline-flex; align-items: center; min-height: 52px; margin-top: 32px; padding: 0 26px; border-radius: 999px; background: var(--xp-ink); color: #F3EFE7; font-size: 17px; text-decoration: none; transition: background .2s; }
.xp-btn:hover { background: #2A1B27; }
.xp-btn:focus-visible { outline: 2px solid var(--xp-ink); outline-offset: 3px; }
.xp-paper { width: clamp(150px, 17vw, 260px); height: auto; transform: rotate(-4deg); }

/* Bande prune : quand faire appel à nous */
.xp-band { background: var(--xp-ink); color: #F3EFE7; padding-block: 64px; }
.xp-band .xp-h2 { margin-bottom: 32px; }
.xp-band-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
@media (min-width: 900px) { .xp-band-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.xp-band-list li { padding: 24px 24px 26px; background: rgb(243 239 231 / .07); border-top: 3px solid var(--xp-accent, #B9A3D0); border-radius: 3px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; letter-spacing: -.01em; }

/* Sections */
.xp-section { padding-block: 88px; }
.xp-section--tint { background: var(--secondary, #E9E4DA); }

/* Cartes de services */
.xp-cards { display: grid; gap: 20px; }
@media (min-width: 900px) { .xp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.xp-card { padding: 32px 32px 28px; background: var(--xp-card); border-radius: 4px; box-shadow: 0 1px 0 var(--xp-line); position: relative; overflow: hidden; }
.xp-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--xp-accent, #B9A3D0); }
.xp-card h3 { margin: 0; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 400; }
.agency-scale .xp-page .xp-wrap p.xp-card-desc { margin: 10px 0 0; font-size: 19px; line-height: 1.5; color: var(--xp-text); }
.xp-includes { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.xp-includes li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.45; color: var(--xp-text); }
.xp-includes li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--xp-accent, #B9A3D0); }
.agency-scale .xp-page .xp-wrap p.xp-example { margin: 22px 0 0; padding: 16px 18px; background: color-mix(in srgb, var(--xp-accent, #B9A3D0) 18%, #FFFFFF); border-radius: 3px; font-size: 17px; line-height: 1.5; color: var(--xp-text); }
.xp-example span { display: block; margin-bottom: 4px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--xp-muted); }

/* Démarche */
.xp-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; }
@media (min-width: 900px) { .xp-steps { grid-template-columns: repeat(var(--xp-cols, 3), minmax(0, 1fr)); gap: 32px; } }
.xp-step-n { display: block; font-size: clamp(56px, 5vw, 80px); line-height: 1; letter-spacing: -.04em; color: var(--xp-accent, #B9A3D0); -webkit-text-stroke: 1px var(--xp-ink); }
.xp-steps h3 { margin: 14px 0 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 400; }
.agency-scale .xp-page .xp-wrap .xp-steps p { margin: 10px 0 0; font-size: 18px; line-height: 1.5; color: var(--xp-text); }

/* Exemples par secteur */
.xp-sectors { display: grid; gap: 20px; }
@media (min-width: 900px) { .xp-sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.xp-sector { background: var(--xp-card); border-radius: 4px; overflow: hidden; box-shadow: 0 1px 0 var(--xp-line); }
.xp-sector img { display: block; width: 100%; height: 96px; object-fit: cover; }
.xp-sector h3 { margin: 22px 24px 0; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 400; }
.xp-sector ul { margin: 12px 24px 26px; padding: 0; list-style: none; display: grid; gap: 10px; }
.xp-sector li { font-size: 17px; line-height: 1.5; color: var(--xp-text); }

/* Livrables, indicateurs, réalisations */
.xp-two { display: grid; gap: 56px; }
@media (min-width: 900px) { .xp-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.xp-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.xp-checks li { position: relative; padding-left: 38px; font-size: 20px; line-height: 1.4; color: var(--xp-text); }
.xp-checks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 4px; background: var(--xp-accent, #B9A3D0); transform: rotate(-4deg); }
.xp-checks li::after { content: ""; position: absolute; left: 7px; top: .38em; width: 10px; height: 5px; border-left: 2px solid var(--xp-ink); border-bottom: 2px solid var(--xp-ink); transform: rotate(-48deg); }
.xp-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.xp-chips li { padding: 10px 16px; border: 1px solid var(--xp-line); border-radius: 999px; background: var(--xp-card); font-size: 16px; line-height: 1.3; color: var(--xp-text); }
.agency-scale .xp-page .xp-wrap p.xp-note { margin: 20px 0 0; font-size: 16px; line-height: 1.55; color: var(--xp-muted); }

.xp-cases { display: grid; gap: 20px; }
.xp-case { display: grid; grid-template-columns: 1fr; background: var(--xp-card); border-radius: 4px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 1px 0 var(--xp-line); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
@media (min-width: 640px) { .xp-case { grid-template-columns: 200px minmax(0, 1fr); } }
.xp-case:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(42 27 39 / .1); }
.xp-case:focus-visible { outline: 2px solid var(--xp-ink); outline-offset: 3px; }
.xp-case--plain { grid-template-columns: 1fr; }
.xp-case-media { position: relative; display: block; min-height: 150px; background: #745C7C; }
.xp-case-media > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xp-case-logo { position: absolute; left: 12%; top: 50%; width: 76%; height: auto; transform: translateY(-50%); filter: brightness(0) invert(1); }
.xp-case-body { display: block; padding: 22px 24px; }
.xp-case strong { display: block; margin-top: 8px; font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.xp-case-text { display: block; margin-top: 6px; font-size: 17px; line-height: 1.5; color: var(--xp-text); }
.xp-case-link { display: inline-block; margin-top: 12px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

/* Questions fréquentes */
.xp-faq details { border-top: 1px solid var(--xp-line); }
.xp-faq details:last-child { border-bottom: 1px solid var(--xp-line); }
.xp-faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3; letter-spacing: -.01em; }
.xp-faq summary::-webkit-details-marker { display: none; }
.xp-faq summary::after { content: "+"; flex: none; font-size: 28px; line-height: 1; transition: transform .25s; }
.xp-faq details[open] summary::after { transform: rotate(45deg); }
.xp-faq summary:focus-visible { outline: 2px solid var(--xp-ink); outline-offset: 4px; }
.agency-scale .xp-page .xp-wrap .xp-faq p { margin: 0 0 24px; max-width: 58ch; font-size: 18px; line-height: 1.6; color: var(--xp-text); }

/* Autres expertises */
.xp-others { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
@media (min-width: 900px) { .xp-others { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.xp-others a { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--xp-card); border-radius: 4px; box-shadow: 0 1px 0 var(--xp-line); color: inherit; text-decoration: none; font-size: 24px; letter-spacing: -.02em; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.xp-others a:hover { transform: translateY(-2px); }
.xp-others a span:last-child { margin-left: auto; font-size: 20px; }
.xp-others img { width: 56px; height: 56px; flex: none; }

/* Page Expertises : titres cliquables et lien vers chaque page */
.xp-title-link { color: inherit; text-decoration: none; }
.xp-title-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.xp-more { display: inline-block; margin-top: 16px; font-size: 15px; color: var(--prune-encre, #431C43); text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 2000px) { .agency-scale .xp-page { zoom: var(--uw, 1); } }

/* ---------- Texture : papiers du collage ---------- */
/* Déchirures entre les sections (paper-join, papier.css) */
.xp-page .paper-join { z-index: 2; }
.xp-page .paper-join.xp-join--band { --surface: var(--prune-encre, #431C43); --fibre: #e9dfcf; }

/* Bande prune : papier prune du collage, fondu dans la couleur */
.xp-band { position: relative; isolation: isolate; overflow: hidden; }
.xp-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/85d12b3de3.webp") center / cover; opacity: .32; mix-blend-mode: soft-light; }
.xp-band-list li { position: relative; border-top: 0; padding-top: 34px; background: rgb(243 239 231 / .08); }
.xp-band-list li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--xp-tex) center / cover; -webkit-mask: url("/assets/paper-rim-c.svg") left bottom / 1200px 100% repeat-x; mask: url("/assets/paper-rim-c.svg") left bottom / 1200px 100% repeat-x; transform: scaleY(-1); }

/* Cartes : bandeau de papier déchiré en haut */
.xp-card::before, .xp-sector::before { height: 24px; background: var(--xp-tex) center / cover; -webkit-mask: url("/assets/paper-rim-a.svg") left bottom / 1400px 100% repeat-x; mask: url("/assets/paper-rim-a.svg") left bottom / 1400px 100% repeat-x; transform: scaleY(-1); }
.xp-card { padding-top: 46px; }
.xp-sector { position: relative; }
.xp-sector::before { content: none; }
.xp-sector img { height: 110px; }
.xp-sector::after { content: ""; position: absolute; left: 0; right: 0; top: 96px; height: 15px; background: var(--xp-card); -webkit-mask: url("/assets/paper-rim-b.svg") left bottom / 1400px 100% repeat-x; mask: url("/assets/paper-rim-b.svg") left bottom / 1400px 100% repeat-x; }
.agency-scale .xp-page .xp-wrap p.xp-example { background: color-mix(in srgb, var(--xp-accent, #B9A3D0) 16%, #FFFFFF); position: relative; overflow: hidden; }
.agency-scale .xp-page .xp-wrap p.xp-example::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--xp-tex) center / cover; }

/* Chiffres des étapes : découpés dans le papier */
.xp-step-n { color: transparent; -webkit-text-stroke: 0; background: var(--xp-tex) center / 260% auto; -webkit-background-clip: text; background-clip: text; font-size: clamp(72px, 7vw, 112px); filter: saturate(1.5) brightness(.78) drop-shadow(0 1px 0 rgb(42 27 39 / .25)); }

/* Cases à cocher et pastilles en papier */
.xp-checks li::before { background: var(--xp-tex) center / cover; box-shadow: 0 1px 2px rgb(42 27 39 / .2); }
.xp-chips li { background: color-mix(in srgb, var(--xp-accent, #B9A3D0) 14%, #FBF8F2); border-color: transparent; }

/* ---------- Études de cas (/etudes-de-cas/<slug>) ---------- */
.cs-hero { padding-bottom: 96px; }
.cs-name { margin: 28px 0 0; font-size: 20px; color: var(--xp-muted); }
.agency-scale .xp-page .cs-hero h1, .agency-scale section.cs-hero h1:not(.creative-title) { margin-top: 8px; max-width: 18ch; font-size: clamp(42px, 5.4vw, 84px); line-height: 1.04; }
.cs-intro { display: grid; gap: 32px; margin-top: 8px; }
@media (min-width: 900px) { .cs-intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 72px; align-items: end; } }
.cs-meta { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cs-meta div { padding-top: 12px; border-top: 2px solid var(--xp-ink); }
.cs-meta dt { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--xp-muted); }
.cs-meta dd { margin: 6px 0 0; font-size: 18px; line-height: 1.3; }
.cs-figure { margin: 48px 0 0; }
.cs-figure img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px rgb(42 27 39 / .16); }
.cs-figure--side { margin: 0; }
.cs-figure--side .xp-more { margin-top: 18px; }
.cs-facts li span { display: block; margin-bottom: 8px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #D9CCD6; }
@media (min-width: 900px) { .cs-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs-facts li { font-size: 18px; }
.agency-scale .xp-page .xp-wrap p.cs-sub { margin: -16px 0 32px; max-width: 32ch; font-size: clamp(22px, 2vw, 30px); line-height: 1.3; color: var(--xp-ink); }
.cs-built { display: grid; gap: 40px; }
@media (min-width: 900px) { .cs-built { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } }
.cs-built-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.cs-decisions h3 { padding-top: 16px; border-top: 2px solid var(--xp-ink); }
.cs-built-list li { padding-top: 16px; border-top: 1px solid var(--xp-line); }
@media (min-width: 900px) { .cs-built-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; } }
.cs-built-list h3 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.agency-scale .xp-page .xp-wrap .cs-built-list p { margin: 6px 0 0; font-size: 18px; line-height: 1.5; color: var(--xp-text); }
.cs-table-wrap { overflow-x: auto; }
.cs-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--xp-card); border-radius: 4px; overflow: hidden; }
.cs-table th, .cs-table td { padding: 18px 20px; text-align: left; vertical-align: top; font-size: 17px; line-height: 1.45; border-top: 1px solid var(--xp-line); }
.cs-table thead th { border-top: 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--xp-muted); }
.cs-table tbody th { font-weight: 400; font-size: 20px; color: var(--xp-ink); width: 22%; }
.cs-table td { color: var(--xp-text); }
.cs-eco { margin-top: 40px; }
.agency-scale .xp-page .xp-wrap p.cs-shared { margin: 32px 0 40px; padding: 14px 18px; border: 1px dashed var(--xp-ink); border-radius: 3px; font-size: 17px; color: var(--xp-ink); }
.cs-eco-cards { grid-template-columns: 1fr; }
@media (min-width: 900px) { .cs-eco-cards, .cs-roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cs-roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs-eco-cards .xp-label, .cs-roadmap .xp-label { margin-bottom: 10px; }
.cs-done { outline: 2px solid var(--xp-ink); }
/* Expertises mobilisées : les couleurs de la transformation */
.cs-tags { margin-top: 40px; }
.cs-tags .rl-tags { margin-top: 12px; }
.cs-tags .rl-tags a { padding: 6px 16px 6px 8px; font-size: 16px; }
.cs-tags .rl-tags img { width: 28px; height: 28px; }
.cs-decisions li[style] h3 { border-top-color: var(--c); border-top-width: 4px; }
.agency-scale .xp-page .xp-wrap p.cs-dec-tag, .cs-dec-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 3px 12px 3px 5px; border-radius: 999px; background: color-mix(in srgb, var(--c) 30%, #FFFFFF); font-size: 14px; line-height: 1.3; color: var(--xp-ink); }
.cs-dec-tag img { width: 22px; height: 22px; transform: rotate(-6deg); }
.cs-wip { outline: 2px dashed var(--xp-ink); }
/* Citation du client */
.cs-quote-sec { padding-block: clamp(64px, 8vw, 120px); }
.cs-quote { margin: 0; max-width: 1100px; }
.cs-quote blockquote { margin: 0; }
.agency-scale .xp-page .xp-wrap .cs-quote blockquote p, .cs-quote blockquote p { margin: 0; font-size: clamp(32px, 4.2vw, 64px); line-height: 1.12; letter-spacing: -.03em; font-weight: 350; color: var(--xp-ink); text-wrap: balance; }
.cs-quote figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 32px; padding-top: 14px; border-top: 4px solid var(--xp-accent); max-width: 420px; }
.cs-quote figcaption strong { font-weight: 500; font-size: 18px; color: var(--xp-ink); }
.cs-quote figcaption span { font-size: 16px; color: var(--xp-muted); }
/* Titres en phrases : petit libellé + phrase qui porte l'histoire */
.agency-scale .xp-page .xp-wrap p.cs-kicker { margin: 0 0 14px; }
.xp-h2.cs-h2 { display: block; max-width: 22ch; font-size: clamp(30px, 3vw, 44px); line-height: 1.12; }
/* Chiffres d'impact (trois au plus) */
.cs-stats { margin: 48px 0 0; padding: 0; list-style: none; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cs-stats li { padding-top: 14px; border-top: 2px solid var(--xp-ink); }
.cs-stats strong { display: block; font-size: clamp(48px, 5.4vw, 80px); font-weight: 400; line-height: 1; letter-spacing: -.04em; color: var(--xp-ink); }
.cs-stats span { display: block; margin-top: 10px; max-width: 26ch; font-size: 17px; line-height: 1.4; color: var(--xp-text); }
/* Crédits : l'équipe du client, nommée avec son accord */
.cs-credits { margin-top: 40px; }
.cs-credits ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.cs-credits strong { display: block; font-weight: 500; font-size: 17px; color: var(--xp-ink); }
.cs-credits span { font-size: 15px; color: var(--xp-muted); }
.cs-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; border-top: 2px solid var(--xp-ink); border-bottom: 1px solid var(--xp-line); color: inherit; text-decoration: none; }
.cs-next strong { display: block; margin-top: 8px; font-size: clamp(48px, 6vw, 96px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.cs-next > span:last-child { font-size: 40px; transition: transform .3s; }
.cs-next:hover > span:last-child { transform: translateX(8px); }
.cs-next > span:first-child { display: block; }

/* ---------- À propos ---------- */
.ab-founder { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .ab-founder { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; } }
.ab-founder > img { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; filter: grayscale(1) contrast(1.05); transform: rotate(-2deg); box-shadow: 0 12px 28px rgb(42 27 39 / .16); }
.ab-name { margin: -20px 0 0; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.02em; color: var(--xp-ink); }
.ab-links { display: flex; flex-wrap: wrap; gap: 24px; }
.ab-talk { font-weight: 400; color: var(--xp-ink); }
@media (min-width: 900px) { .ab-expertises { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Évaluation ---------- */
.ev-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.ev-btn-ghost { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 17px; color: var(--xp-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; cursor: pointer; }
.ev-btn-ghost:disabled { opacity: .35; cursor: not-allowed; }
.ev-page button.xp-btn { border: 0; font: inherit; cursor: pointer; }
.ev-page button.xp-btn:disabled { opacity: .4; cursor: not-allowed; }
.ev-step { padding-top: clamp(48px, 7vw, 96px); }
.ev-narrow { max-width: 820px; }
.agency-scale .xp-page .ev-title { margin: 12px 0 32px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 400; color: var(--xp-ink); }
.ev-progress p { display: flex; justify-content: space-between; margin: 0 0 12px; font-family: var(--font-mono, monospace); font-size: 12px; color: #6A5D68; }
.ev-progress div { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.ev-progress i { height: 3px; background: #D7D0C8; }
.ev-progress i[data-on] { background: var(--xp-ink); }
.ev-questions { display: grid; gap: 40px; }
.ev-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.ev-q legend { display: flex; gap: 16px; padding: 0; margin-bottom: 18px; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3; color: var(--xp-ink); }
.ev-q legend span { flex: none; padding-top: 6px; font-family: var(--font-mono, monospace); font-size: 12px; color: #6A5D68; }
.ev-options { display: grid; gap: 8px; }
.ev-options label { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border: 1px solid #D7D0C8; background: rgb(255 255 255 / .45); font-size: 17px; line-height: 1.45; color: #4A3E48; cursor: pointer; transition: border-color .15s, background .15s; }
.ev-options label:hover { border-color: var(--xp-ink); }
.ev-options label[data-on] { border-color: var(--xp-ink); background: #fff; color: var(--xp-ink); }
.ev-options input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--prune-encre, #431C43); }
.ev-options label:focus-within { outline: 2px solid var(--xp-ink); outline-offset: 2px; }
.ev-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #D7D0C8; }
.ev-form { display: grid; gap: 20px; margin-top: 32px; }
.ev-form label { display: grid; gap: 8px; font-size: 15px; color: #4A3E48; }
.ev-form input[type="text"], .ev-form input[type="email"], .ev-form select { height: 54px; padding: 0 16px; border: 1px solid #CFC7CA; border-radius: 2px; background: #fff; font: inherit; font-size: 17px; color: var(--xp-ink); }
.ev-form input:focus, .ev-form select:focus { outline: 2px solid var(--xp-ink); outline-offset: 1px; }
.ev-form .ev-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.ev-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--prune-encre, #431C43); }
.ev-consent a { color: var(--xp-ink); }
.ev-form .xp-btn { justify-self: start; margin-top: 8px; }
.ev-score { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) { .ev-score { grid-template-columns: auto minmax(0, 1fr); gap: 64px; } }
.ev-score-num { display: flex; align-items: baseline; gap: 8px; color: var(--xp-ink); }
.ev-score-num strong { font-weight: 400; font-size: clamp(96px, 12vw, 180px); line-height: .9; letter-spacing: -.05em; }
.ev-score-num span { font-family: var(--font-mono, monospace); font-size: 14px; color: #6A5D68; }
.ev-bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.ev-bars p { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 18px; color: var(--xp-ink); }
.ev-bars p span:last-child { font-family: var(--font-mono, monospace); font-size: 13px; color: #6A5D68; }
.ev-bars div { height: 6px; background: #E2DCD3; }
.ev-bars i { display: block; height: 100%; background: var(--prune-encre, #431C43); transition: width .8s ease; }
.ev-priorities { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }
@media (min-width: 900px) { .ev-priorities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev-priorities li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 28px; background: var(--paper, #F2F0EA); border: 1px solid #D7D0C8; }
.ev-pri-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--xp-accent); font-family: var(--font-mono, monospace); font-size: 13px; color: var(--xp-ink); }
.agency-scale .xp-page .ev-priorities h3 { margin: 4px 0 10px; font-size: 24px; font-weight: 400; color: var(--xp-ink); }
.agency-scale .xp-page .ev-priorities p { margin: 0 0 16px; font-size: 17px; line-height: 1.55; color: #4A3E48; }
.ev-note { margin-top: 40px; }

/* ---------- Calculateur ---------- */
.rc-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .rc-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; } }
.rc-panel { padding: clamp(24px, 3vw, 44px); background: var(--paper, #F2F0EA); border: 1px solid #D7D0C8; }
.rc-group { margin: 0 0 20px; font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #6A5D68; }
.rc-panel .rc-group:not(:first-child) { margin-top: 40px; padding-top: 28px; border-top: 1px solid #D7D0C8; }
.rc-field { display: grid; gap: 10px; margin-bottom: 26px; }
.rc-field > label, .rc-row label { font-size: 17px; color: var(--xp-ink); }
.rc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rc-row output { font-size: 22px; color: var(--xp-ink); white-space: nowrap; }
.rc-field input[type="range"] { width: 100%; accent-color: var(--prune-encre, #431C43); }
.rc-field select, .rc-money input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #CFC7CA; border-radius: 2px; background: #fff; font: inherit; font-size: 17px; color: var(--xp-ink); }
.rc-money { position: relative; }
.rc-money span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #6A5D68; }
.agency-scale .xp-page .rc-hint { margin: 0; font-size: 14px; line-height: 1.5; color: #6A5D68; }
.rc-results { position: relative; padding: clamp(28px, 3vw, 48px); background: var(--prune-encre, #431C43); color: #F2F0EA; }
@media (min-width: 1024px) { .rc-results { position: sticky; top: 130px; } }
.rc-results .rc-group { color: #B9A3D0; }
.agency-scale .xp-page .rc-big { display: grid; margin: 0 0 32px; font-size: clamp(64px, 7vw, 104px); line-height: .95; letter-spacing: -.045em; color: #F2F0EA; }
.rc-big span { margin-top: 12px; font-size: 18px; letter-spacing: 0; color: rgb(242 240 234 / .75); }
.rc-results dl { margin: 0; display: grid; }
.rc-results dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid rgb(242 240 234 / .18); }
.rc-results dt { font-size: 16px; color: rgb(242 240 234 / .8); }
.rc-results dd { margin: 0; font-size: 24px; color: #F2F0EA; white-space: nowrap; }
.agency-scale .xp-page .rc-note { margin: 24px 0 0; font-size: 14px; line-height: 1.55; color: rgb(242 240 234 / .7); }
.rc-cta { display: inline-flex; align-items: center; gap: 12px; height: 54px; margin-top: 28px; padding: 0 26px; border-radius: 999px; background: #F2F0EA; color: var(--prune-encre, #431C43); font-size: 16px; text-decoration: none; }
.rc-cta:hover { background: #fff; }
.agency-scale .xp-page .rc-proof { margin: 0 0 20px; font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -.04em; color: var(--xp-ink); }
.rc-proof span { color: var(--xp-accent); }

/* ---------- Blogue ---------- */
.bl-hero h1 { max-width: 18ch; }
.bl-section { padding-top: 0; }
.bl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.bl-filters button { height: 40px; padding: 0 16px; border: 1px solid #CFC7CA; border-radius: 999px; background: transparent; font: inherit; font-size: 15px; color: #4A3E48; cursor: pointer; }
.bl-filters button:hover { border-color: var(--xp-ink); color: var(--xp-ink); }
.bl-filters button[aria-pressed="true"] { border-color: var(--xp-ink); background: var(--xp-ink); color: #F2F0EA; }
.agency-scale .xp-page .bl-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; font-family: var(--font-mono, monospace); font-size: 12px; line-height: 1.4; color: #6A5D68; }
.bl-meta span:first-child { color: var(--xp-ink); }
.bl-lead { position: relative; isolation: isolate; display: block; overflow: hidden; padding: clamp(28px, 4vw, 64px); margin-bottom: 16px; background: var(--prune-encre, #431C43); color: #F2F0EA; text-decoration: none; }
.bl-lead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--xp-tex) center / cover; opacity: .18; mix-blend-mode: screen; }
.agency-scale .xp-page .bl-lead .bl-meta, .bl-lead .bl-meta span:first-child { color: #B9A3D0; }
.agency-scale .xp-page .bl-lead h2 { max-width: 22ch; margin: 0 0 20px; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.06; letter-spacing: -.03em; font-weight: 400; color: #F2F0EA; }
.agency-scale .xp-page .bl-lead .bl-excerpt { max-width: 60ch; margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: rgb(242 240 234 / .82); }
.bl-read { font-size: 16px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.bl-lead:hover .bl-read { text-decoration-thickness: 2px; }
.bl-list { margin: 0; padding: 0; list-style: none; display: grid; }
@media (min-width: 768px) { .bl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1200px) { .bl-list--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bl-list li { border-top: 1px solid #D7D0C8; }
.bl-list a { display: block; padding: 28px 0 32px; text-decoration: none; }
.agency-scale .xp-page .bl-list h3 { margin: 0 0 10px; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -.015em; font-weight: 400; color: var(--xp-ink); }
.bl-list a:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.agency-scale .xp-page .bl-list .bl-excerpt { margin: 0; font-size: 16px; line-height: 1.55; color: #5E4F5C; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-list--three { margin-bottom: 32px; }
.agency-scale .xp-page .bl-count { margin: 32px 0 0; font-family: var(--font-mono, monospace); font-size: 12px; color: #6A5D68; }
/* Article : en-tête aligné sur la grille du site, couleur et papier de l'expertise */
.bl-crumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-crumbs span:last-child { color: var(--xp-ink); }
.agency-scale .xp-page.bl-article .xp-hero h1 { max-width: 20ch; margin-top: 24px; font-size: clamp(44px, 5.2vw, 84px); line-height: 1.02; }
.agency-scale .xp-page .xp-wrap p.bl-standfirst { margin-top: 28px; max-width: 46ch; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.4; color: var(--xp-ink); }
.agency-scale .xp-page .bl-byline { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--xp-line); max-width: 640px; }
.bl-byline span:first-child { color: var(--xp-ink); }
.bl-paper { filter: drop-shadow(0 10px 16px rgb(42 27 39 / .14)); }
@media (max-width: 899px) { .bl-paper { display: none; } }
.bl-article .bl-section { padding-top: 24px; }
.bl-article-grid { display: grid; gap: 56px; align-items: start; }
@media (min-width: 1100px) { .bl-article-grid { grid-template-columns: minmax(0, 720px) minmax(260px, 340px); justify-content: space-between; } }
.bl-body { min-width: 0; }
.bl-aside { display: grid; gap: 24px; }
@media (min-width: 1100px) { .bl-aside { position: sticky; top: 130px; } }
.bl-expertise { position: relative; display: grid; gap: 10px; padding: 34px 26px 26px; background: var(--xp-card); border-radius: 4px; box-shadow: 0 1px 0 var(--xp-line); overflow: hidden; text-decoration: none; }
.bl-expertise::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--xp-tex) center / cover; }
.bl-expertise-title { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; color: var(--xp-ink); }
.bl-expertise-lead { font-size: 16px; line-height: 1.5; color: var(--xp-text); }
.bl-expertise .xp-more { margin-top: 6px; }
.bl-expertise:hover .bl-expertise-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.bl-endcta { position: relative; isolation: isolate; overflow: hidden; margin-top: 64px; padding: clamp(28px, 4vw, 48px); background: var(--prune-encre, #431C43); color: #F2F0EA; border-radius: 4px; }
.bl-endcta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--xp-tex) center / cover; opacity: .2; mix-blend-mode: screen; }
.agency-scale .xp-page .xp-wrap .bl-endcta p.xp-label { color: var(--xp-accent); }
.agency-scale .xp-page .bl-endcta p.bl-endcta-text { margin: 14px 0 0; max-width: 32ch; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.02em; color: #F2F0EA; }
.bl-endcta .xp-btn { background: #F2F0EA; color: var(--xp-ink); }
.bl-endcta .xp-btn:hover { background: #fff; }
/* Corps d'article : listes et encadrés à la couleur de l'expertise */
.agency-scale .xp-page .bl-body .prose-riyada ol { list-style: none; counter-reset: bl-step; padding-left: 0; }
.agency-scale .xp-page .bl-body .prose-riyada ol > li { position: relative; counter-increment: bl-step; padding: 14px 0 14px 52px; margin: 0; border-top: 1px solid var(--xp-line); }
.agency-scale .xp-page .bl-body .prose-riyada ol > li:last-child { border-bottom: 1px solid var(--xp-line); }
.bl-body .prose-riyada ol > li::before { content: counter(bl-step); position: absolute; left: 0; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--xp-accent); font-family: var(--font-mono, monospace); font-size: 12px; color: var(--xp-ink); }
.agency-scale .xp-page .bl-body .prose-riyada ul { list-style: none; padding-left: 0; }
.agency-scale .xp-page .bl-body .prose-riyada ul > li { position: relative; padding-left: 30px; }
.bl-body .prose-riyada ul > li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 2px; border-radius: 0; background: var(--xp-ink); opacity: .55; }
.agency-scale .xp-page .bl-body .prose-riyada blockquote, .bl-body .prose-riyada .bl-summary { position: relative; margin: 32px 0; padding: 22px 24px 22px 30px; border: 0; background: color-mix(in srgb, var(--xp-accent) 18%, #FFFFFF); border-radius: 3px; overflow: hidden; font-style: normal; }
.bl-body .prose-riyada blockquote::before, .bl-body .prose-riyada .bl-summary::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--xp-tex) center / cover; }
.agency-scale .xp-page .bl-body .prose-riyada blockquote p:last-child, .agency-scale .xp-page .bl-body .prose-riyada .bl-summary p:last-child, .agency-scale .xp-page .bl-body .prose-riyada .bl-summary ul:last-child { margin-bottom: 0; }
.agency-scale .xp-page .bl-body .prose-riyada .bl-summary .bl-summary-label { margin: 0 0 10px; font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--xp-muted); }
.agency-scale .xp-page .bl-body .prose-riyada > p:first-child { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.55; color: var(--xp-ink); }
.agency-scale .xp-page .bl-body .prose-riyada > p:first-child strong { color: inherit; }
.agency-scale .xp-page.bl-article .xp-hero { padding-bottom: 48px; }
.agency-scale .xp-page .prose-riyada { font-size: 19px; line-height: 1.72; color: #2B2129; }
.agency-scale .xp-page .prose-riyada h2 { margin: 56px 0 18px; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 400; color: var(--xp-ink); }
.agency-scale .xp-page .prose-riyada h3 { margin: 36px 0 12px; font-size: 23px; font-weight: 400; color: var(--xp-ink); }
.agency-scale .xp-page .prose-riyada p { margin: 0 0 22px; font-size: 19px; line-height: 1.72; color: #2B2129; max-width: none; }
.agency-scale .xp-page .prose-riyada li { margin-bottom: 10px; font-size: 19px; line-height: 1.65; }
.agency-scale .xp-page .prose-riyada ul, .agency-scale .xp-page .prose-riyada ol { padding-left: 1.2em; margin: 0 0 24px; }
.agency-scale .xp-page .prose-riyada a { color: var(--xp-ink); text-decoration: underline; text-underline-offset: 3px; }
.agency-scale .xp-page .prose-riyada strong { font-weight: 600; }

/* Principes lettrés A, B, C */
.xp-principles { margin: 28px 0 28px; padding: 0; list-style: none; display: grid; gap: 0; }
.xp-principles li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid #D7D0C8; font-size: 19px; line-height: 1.5; color: #2B2129; }
.xp-principles li:last-child { border-bottom: 1px solid #D7D0C8; }
.xp-principles li > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--xp-accent, #B9A3D0); font-family: var(--font-mono, monospace); font-size: 12px; color: var(--xp-ink); transform: translateY(-2px); }
.xp-chips a { color: inherit; text-decoration: none; }

/* ---------- Page Expertises (/expertises) ---------- */
.xh-hero { padding-bottom: 64px; }
.xh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.xh-actions .xp-btn { margin-top: 0; }
.xh-ghost { font-size: 17px; color: var(--xp-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.xh-ghost:hover { text-decoration-thickness: 2px; }
.xh-collage { position: relative; width: clamp(240px, 26vw, 400px); aspect-ratio: 1; margin-inline: auto; }
.xh-paper { position: absolute; width: 52%; height: auto; filter: drop-shadow(0 10px 16px rgb(42 27 39 / .14)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.xh-paper--1 { left: 2%; top: 4%; transform: rotate(-8deg); }
.xh-paper--2 { right: 0; top: 0; transform: rotate(6deg); }
.xh-paper--3 { left: 8%; bottom: 0; transform: rotate(4deg); }
.xh-paper--4 { right: 6%; bottom: 6%; transform: rotate(-5deg); }
.xh-collage:hover .xh-paper--1 { transform: rotate(-12deg) translate(-6px, -6px); }
.xh-collage:hover .xh-paper--2 { transform: rotate(10deg) translate(6px, -6px); }
.xh-collage:hover .xh-paper--3 { transform: rotate(0deg) translate(-6px, 6px); }
.xh-collage:hover .xh-paper--4 { transform: rotate(-1deg) translate(6px, 6px); }
@media (max-width: 899px) { .xh-collage { display: none; } }

/* Sommaire collant */
.xh-index { position: sticky; top: var(--xh-sticky, 72px); z-index: 5; background: color-mix(in srgb, var(--background, #F3F1EC) 92%, transparent); backdrop-filter: blur(8px); border-block: 1px solid var(--xp-line); }
.xh-index ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px 32px; overflow-x: auto; scrollbar-width: none; }
.xh-index ul::-webkit-scrollbar { display: none; }
.xh-index a { display: flex; align-items: baseline; gap: 10px; padding: 16px 0; white-space: nowrap; font-size: 17px; color: var(--xp-ink); text-decoration: none; }
.xh-index a span { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .1em; color: var(--xp-muted); }
.xh-index a:hover, .xh-index a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.xh-index a[aria-current] { text-decoration-thickness: 2px; }

/* Les quatre expertises */
.xh-rows { padding-top: 56px; }
.xh-rows .xp-wrap { display: grid; gap: 28px; }
.xh-row { position: relative; overflow: hidden; scroll-margin-top: 140px; display: grid; gap: 28px; padding: 52px 32px 36px; background: var(--xp-card); border-radius: 4px; box-shadow: 0 1px 0 var(--xp-line); }
.xh-row::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26px; background: var(--xp-tex) center / cover; -webkit-mask: url("/assets/paper-rim-a.svg") left bottom / 1400px 100% repeat-x; mask: url("/assets/paper-rim-a.svg") left bottom / 1400px 100% repeat-x; }
@media (min-width: 1000px) { .xh-row { grid-template-columns: 150px minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; padding: 64px 48px 48px; align-items: start; } }
.xh-row-mark img { width: 96px; height: auto; transform: rotate(-5deg); filter: drop-shadow(0 6px 10px rgb(42 27 39 / .12)); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.xh-row:hover .xh-row-mark img { transform: rotate(3deg) scale(1.04); }
@media (min-width: 1000px) { .xh-row-mark img { width: 130px; } }
.xh-row-mark { display: flex; align-items: center; gap: 18px; }
.xh-row-mark .xp-num { display: block; transform: none; }
@media (max-width: 999px) { .xh-row-mark img { width: 72px; } }
@media (min-width: 1000px) { .xh-row-mark { display: block; } .xh-row-mark .xp-num { margin-top: 18px; } }
.agency-scale .xp-page .xh-row h2 { margin: 0; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; letter-spacing: -.04em; font-weight: 400; color: var(--xp-ink); }
.xh-row h2 a { color: inherit; text-decoration: none; }
.xh-row h2 a:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.agency-scale .xp-page .xp-wrap p.xh-row-lead { margin: 20px 0 0; max-width: 36ch; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.35; color: var(--xp-text); }
.xh-proof { position: relative; display: block; margin-top: 28px; max-width: 46ch; padding: 16px 18px 16px 24px; background: color-mix(in srgb, var(--xp-accent) 16%, #FFFFFF); border-radius: 3px; overflow: hidden; font-size: 17px; line-height: 1.5; color: var(--xp-text); text-decoration: none; transition: background .2s; }
.xh-proof::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--xp-tex) center / cover; }
.xh-proof .xp-label { display: block; margin-bottom: 4px; font-size: 11px; }
.xh-proof:hover { background: color-mix(in srgb, var(--xp-accent) 28%, #FFFFFF); }
.xh-row-side .xp-label { margin-bottom: 14px; }
.xh-row-side .xp-includes { margin-top: 0; }
.xh-row-side .xp-includes li { font-size: 18px; }
.xh-btn { margin-top: 28px; }
.xh-row:focus-within { box-shadow: 0 0 0 2px var(--xp-ink); }

/* Bande : situations */
.xh-signs { display: grid; gap: 16px; }
@media (min-width: 700px) { .xh-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .xh-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.xh-sign { position: relative; display: flex; flex-direction: column; padding: 38px 22px 22px; background: rgb(243 239 231 / .08); border-radius: 3px; color: #F3EFE7; text-decoration: none; transition: background .2s, transform .3s cubic-bezier(.2,.7,.2,1); }
.xh-sign::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--xp-tex) center / cover; -webkit-mask: url("/assets/paper-rim-c.svg") left bottom / 1200px 100% repeat-x; mask: url("/assets/paper-rim-c.svg") left bottom / 1200px 100% repeat-x; }
.xh-sign:hover { background: rgb(243 239 231 / .14); transform: translateY(-3px); }
.xh-sign:focus-visible { outline: 2px solid #F3EFE7; outline-offset: 3px; }
.xh-sign ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; flex: 1; }
.xh-sign li { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.4; letter-spacing: -.01em; }
.xh-sign li + li { padding-top: 14px; border-top: 1px solid rgb(243 239 231 / .16); }
.xh-sign-to { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 2px solid var(--xp-accent); font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #E9DFE6; }
.xh-sign-to span:last-child { font-family: inherit; font-size: 18px; transition: transform .3s; }
.xh-sign:hover .xh-sign-to span:last-child { transform: translateX(6px); }

/* Chaîne d’un mandat */
.agency-scale .xp-page .xp-wrap p.xh-sub { margin: -16px 0 48px; max-width: 46ch; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.35; color: var(--xp-text); }
.xh-chain li { position: relative; }
.xh-chain h3 a { color: inherit; text-decoration: none; }
.xh-chain h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 900px) {
  .xh-chain li:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: clamp(24px, 2.4vw, 40px); font-size: 26px; color: var(--xp-muted); }
}

/* Réalisations */
.xh-cases { display: grid; gap: 20px; }
@media (min-width: 1000px) { .xh-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.xp-case.xh-case { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.xh-case .xp-case-media { min-height: 190px; }
.xh-case .xp-case-logo { left: 18%; width: 64%; }
.xh-case .xp-case-body { display: flex; flex-direction: column; padding: 24px 26px 26px; }
.xh-case .xp-case-link { margin-top: auto; padding-top: 16px; }
.xh-tags { margin-top: 16px; }
.xh-tags li { padding: 6px 12px; font-size: 14px; }

/* ---------- Page Approche (/approche), générée par scripts/generate-approche-page.py ---------- */
.ap-hero-grid { align-items: center; }
@media (min-width: 900px) { .ap-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.ap-hero h1 span { display: block; }
.ap-figure { position: relative; margin: 0; transform: rotate(1.5deg); }
.ap-figure::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; z-index: -1; background: var(--xp-tex) center / cover; transform: rotate(-4deg); border-radius: 3px; }
.ap-figure img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 18px 40px rgb(42 27 39 / .16); }
.ap-page { position: relative; isolation: isolate; }

/* La boucle */
.ap-band { padding-block: 72px 64px; }
.agency-scale .xp-page .xp-wrap p.ap-band-sub { margin: -16px 0 40px; max-width: 46ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; color: #E9DFE6; }
.ap-loop { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 700px) { .ap-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ap-loop { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.ap-loop li { position: relative; display: flex; flex-direction: column; padding: 34px 24px 22px; background: rgb(243 239 231 / .08); border-radius: 3px; }
.ap-loop li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--xp-tex) center / cover; -webkit-mask: url("/assets/paper-rim-c.svg") left bottom / 1200px 100% repeat-x; mask: url("/assets/paper-rim-c.svg") left bottom / 1200px 100% repeat-x; }
@media (min-width: 1100px) { .ap-loop li:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 56px; z-index: 1; font-size: 22px; color: #E9DFE6; } }
.ap-loop .xp-step-n { filter: saturate(1.4) brightness(1.05); }
.ap-loop h3 { margin: 14px 0 0; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; font-weight: 400; color: #F3EFE7; }
.agency-scale .xp-page .xp-wrap .ap-loop p { margin: 10px 0 0; flex: 1; font-size: 18px; line-height: 1.5; color: #E9DFE6; }
.ap-loop-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 2px solid var(--xp-accent); font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #E9DFE6; text-decoration: none; }
.ap-loop-link span:last-child { font-size: 18px; transition: transform .3s; }
.ap-loop-link:hover span:last-child { transform: translateX(6px); }
.ap-loop-link:focus-visible { outline: 2px solid #F3EFE7; outline-offset: 3px; }
.agency-scale .xp-page .xp-wrap p.ap-return { margin: 28px 0 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; letter-spacing: .08em; color: #D9CCD6; }
.ap-return span { display: inline-block; margin-right: 6px; font-size: 18px; }

/* L’IA / l’humain */
.ap-split { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.ap-split li { display: grid; gap: 16px; padding: 24px; background: var(--xp-card); border-radius: 4px; box-shadow: 0 1px 0 var(--xp-line); }
@media (min-width: 900px) { .ap-split li { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 28px; align-items: center; padding: 26px 32px; } }
.ap-split h3 { margin: 0; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 400; }
.ap-split .xp-label { display: block; margin-bottom: 6px; font-size: 11px; }
.agency-scale .xp-page .xp-wrap .ap-split p { margin: 0; font-size: 18px; line-height: 1.5; }
.agency-scale .xp-page .xp-wrap .ap-ai p { color: var(--xp-muted); }
.ap-human { position: relative; overflow: hidden; padding: 14px 16px 14px 22px; background: color-mix(in srgb, var(--xp-accent) 18%, #FFFFFF); border-radius: 3px; }
.ap-human::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--xp-tex) center / cover; }
.agency-scale .xp-page .xp-wrap .ap-human p { color: var(--xp-ink); }

/* Principes */
.agency-scale .xp-page .xp-wrap p.ap-side { margin: -16px 0 0; max-width: 28ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; color: var(--xp-text); }
.ap-principles { margin: 0; padding: 0; list-style: none; }
.ap-principles li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--xp-line); }
.ap-principles li:last-child { border-bottom: 1px solid var(--xp-line); }
.ap-principles li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--xp-ink); font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: #F3EFE7; box-shadow: 3px 3px 0 var(--xp-accent); transform: rotate(-6deg); }
.ap-principles strong { display: block; font-size: clamp(20px, 1.7vw, 25px); font-weight: 400; line-height: 1.3; letter-spacing: -.01em; color: var(--xp-ink); }
.agency-scale .xp-page .xp-wrap .ap-principles p { margin: 6px 0 0; font-size: 17px; line-height: 1.5; color: var(--xp-text); }

/* Manifeste */
.ap-manifesto { scroll-margin-top: 140px; padding-block: 72px 96px; background: var(--secondary, #E9E4DA); }
.ap-stack { position: relative; isolation: isolate; max-width: 860px; margin: 0 auto; }
.ap-stack::before { content: ""; position: absolute; inset: 18px -12px -14px 12px; z-index: -1; background: var(--xp-tex) center / cover; border-radius: 3px; transform: rotate(1.4deg); }
.ap-sheet { position: relative; padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); background: var(--xp-card); border-radius: 3px; box-shadow: 0 18px 40px rgb(42 27 39 / .1); }
.ap-sheet::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 28px; background: var(--xp-tex) center / cover; -webkit-mask: url("/assets/paper-rim-a.svg") left bottom / 1400px 100% repeat-x; mask: url("/assets/paper-rim-a.svg") left bottom / 1400px 100% repeat-x; }
.ap-sheet .xp-label { margin-bottom: 36px; }
.agency-scale .xp-page .xp-wrap p.ap-m-line { margin: 48px 0 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.12; letter-spacing: -.03em; color: var(--xp-ink); }
.agency-scale .xp-page .xp-wrap p.ap-m-line:first-of-type { margin-top: 0; }
.agency-scale .xp-page .xp-wrap p.ap-m-text { margin: 18px 0 0; max-width: 56ch; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.65; color: var(--xp-text); }
.agency-scale .xp-page .xp-wrap p.ap-m-sign { margin: 64px 0 0; padding-top: 28px; border-top: 2px solid var(--xp-ink); font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: -.04em; color: transparent; background: var(--xp-tex) center / 180% auto; -webkit-background-clip: text; background-clip: text; filter: saturate(1.3) brightness(.8); }

/* ---------- Page Contact (/contact), générée par scripts/generate-contact-page.py ---------- */
.ct-hero { padding-bottom: 32px; }
.ct-hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .ct-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; } }
.agency-scale .xp-page .ct-hero h1 { max-width: 16ch; font-size: clamp(48px, 5.6vw, 88px); }
.ct-mail { display: inline-block; margin-top: 28px; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.02em; color: var(--xp-ink); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: var(--xp-accent); transition: text-decoration-color .2s; }
.ct-mail:hover { text-decoration-color: var(--xp-ink); }
.ct-art { max-width: 560px; justify-self: center; width: 100%; }
.ct-drawing { display: block; width: 100%; height: auto; overflow: visible; }
.ct-letter { transform-box: fill-box; transform-origin: center bottom; animation: ct-rise 1.1s cubic-bezier(.2,.7,.2,1) .2s both; }
.ct-node { animation: ct-pop .6s cubic-bezier(.2,.7,.2,1.4) both; }
.ct-node:nth-of-type(2) { animation-delay: .5s; } .ct-node:nth-of-type(3) { animation-delay: .65s; } .ct-node:nth-of-type(4) { animation-delay: .8s; }
.ct-links path { animation: ct-dash 30s linear infinite; }
@keyframes ct-rise { from { transform: translateY(70px); } to { transform: none; } }
@keyframes ct-pop { from { opacity: 0; } to { opacity: 1; } }
@keyframes ct-dash { to { stroke-dashoffset: -400; } }
@media (prefers-reduced-motion: reduce) { .ct-letter, .ct-node, .ct-links path { animation: none; } }

.ct-main { padding-block: 24px 96px; }
.ct-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .ct-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; } }
.ct-card { position: relative; overflow: hidden; padding: 48px 26px 32px; background: var(--xp-card); border-radius: 4px; box-shadow: 0 18px 40px rgb(42 27 39 / .08); }
.ct-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 24px; background: url("/assets/568a50811b.webp") center / cover; -webkit-mask: url("/assets/paper-rim-a.svg") left bottom / 1400px 100% repeat-x; mask: url("/assets/paper-rim-a.svg") left bottom / 1400px 100% repeat-x; }
@media (min-width: 768px) { .ct-card { padding: 60px 48px 44px; } }

/* Sujets en pastilles de papier */
.ct-topics { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.ct-topics legend { margin-bottom: 14px; padding: 0; font-size: 15px; color: var(--xp-text); }
.ct-topics i, .ct-l i { font-style: normal; color: var(--xp-muted); }
.ct-topics > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .ct-topics > div { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ct-form label.ct-chip { display: flex; gap: 8px; }
.ct-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; border-radius: 4px; background: color-mix(in srgb, var(--c) 16%, #FFFFFF); border: 2px solid transparent; text-align: center; font-size: 15px; line-height: 1.25; color: var(--xp-ink); cursor: pointer; transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .2s, background .2s; }
.ct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chip img { display: block; margin-inline: auto; width: 48px; height: 48px; transform: rotate(-5deg); transition: transform .3s; }
.ct-chip:hover { transform: translateY(-2px); }
.ct-chip:hover img { transform: rotate(4deg) scale(1.06); }
.ct-chip:has(input:checked) { border-color: var(--xp-ink); background: color-mix(in srgb, var(--c) 34%, #FFFFFF); }
.ct-chip:has(input:focus-visible) { outline: 2px solid var(--xp-ink); outline-offset: 2px; }

/* Champs */
.ct-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ct-full { grid-column: 1 / -1; } }
.ct-form label { display: grid; gap: 8px; font-size: 15px; color: var(--xp-text); }
.ct-form input[type="text"], .ct-form input[type="email"], .ct-form textarea { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid #D7D0C8; border-radius: 3px; background: #fff; font: inherit; font-size: 17px; color: var(--xp-ink); }
.ct-form textarea { min-height: 140px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.ct-form input:focus, .ct-form textarea:focus { outline: 2px solid var(--xp-ink); outline-offset: 1px; border-color: var(--xp-ink); }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-form label.ct-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; font-size: 14px; line-height: 1.5; }
.ct-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--prune-encre, #431C43); }
.ct-consent a { color: var(--xp-ink); text-decoration: underline; text-underline-offset: 3px; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.ct-actions .xp-btn { margin-top: 0; border: 0; font: inherit; font-size: 17px; cursor: pointer; }
.ct-actions .xp-btn:disabled { opacity: .5; cursor: progress; }
.agency-scale .xp-page .xp-wrap p.ct-status { margin: 0; font-size: 15px; line-height: 1.5; color: var(--xp-text); }
.agency-scale .xp-page .xp-wrap p.ct-status[data-error] { color: #8A2B2B; }
.ct-status a { color: inherit; }
.ct-done { text-align: center; padding-block: 24px; }
.ct-done:focus { outline: none; }
.ct-done img { width: 96px; height: auto; transform: rotate(-6deg); }
.agency-scale .xp-page .xp-wrap .ct-done p { margin: 14px auto 0; max-width: 40ch; font-size: 18px; line-height: 1.55; color: var(--xp-text); }
.agency-scale .xp-page .xp-wrap .ct-done p.ct-done-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; color: var(--xp-ink); }
.ct-done a { color: var(--xp-ink); }

/* Coordonnées */
.ct-side { padding-top: 8px; }
.ct-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 26px; }
.ct-list li { position: relative; padding-left: 34px; }
.ct-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); transform: rotate(-8deg); box-shadow: 2px 2px 0 rgb(42 27 39 / .12); }
.ct-list .xp-label { display: block; margin-bottom: 6px; font-size: 11px; }
.agency-scale .xp-page .xp-wrap .ct-list p { margin: 0; font-size: 19px; line-height: 1.45; color: var(--xp-ink); }
.ct-list a { color: var(--xp-ink); text-underline-offset: 4px; }
.agency-scale .xp-page .xp-wrap p.ct-neq { margin: 28px 0 0; padding-left: 34px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .12em; color: var(--xp-muted); }
.ct-eval { display: inline-block; margin: 36px 0 0 34px; font-size: 16px; color: var(--xp-ink); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Graisses : Book pour les grands titres, Medium pour l'interface ---------- */
.agency-scale .xp-page .xp-hero h1, .agency-scale section.xp-hero h1:not(.creative-title),
.xp-h2, .agency-scale .xp-page .xh-row h2, .agency-scale .xp-page .ev-title, .ev-score-num strong,
.cs-next strong, .agency-scale .xp-page .bl-lead h2, .agency-scale .xp-page .rc-big, .agency-scale .xp-page .rc-proof,
.agency-scale .xp-page .prose-riyada h2 { font-weight: 350; }
.xp-btn, .xp-more, .ev-btn-ghost, .rc-cta, .bl-read, .bl-filters button, .ab-talk,
.agency-scale .xp-page .prose-riyada strong, .cs-table tbody th { font-weight: 500; }

/* ---------- Page Réalisations (/realisations), générée par scripts/generate-realisations-page.py ---------- */
/* Logos clients toujours en blanc */
.rl-piece img, .rl-card-top img { filter: brightness(0) invert(1); }
.rl-hero { padding-bottom: 32px; }
.rl-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .rl-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; } }
.rl-collage { position: relative; width: min(100%, 500px); aspect-ratio: 1.3; justify-self: center; }
.rl-piece { position: absolute; display: grid; place-items: center; width: 50%; aspect-ratio: 4 / 3; padding: 9%; background: var(--t) center / cover; border-radius: 2px; box-shadow: 0 12px 24px rgb(42 27 39 / .18); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.rl-piece img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.rl-piece--1 { left: 0; top: 2%; transform: rotate(-6deg); }
.rl-piece--2 { left: 49%; top: 0; transform: rotate(4deg); }
.rl-piece--3 { left: 3%; top: 49%; transform: rotate(3deg); }
.rl-piece--4 { left: 51%; top: 52%; transform: rotate(-4deg); }
.rl-piece:hover, .rl-piece:focus-visible { z-index: 2; transform: rotate(0) scale(1.06); }
.rl-piece:focus-visible { outline: 2px solid var(--xp-ink); outline-offset: 4px; }
@media (max-width: 899px) { .rl-collage { width: min(100%, 340px); } }

/* Filtres */
.rl-list { padding-top: 24px; }
.rl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.rl-filters[hidden] { display: none; }
.rl-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--xp-line); border-radius: 999px; background: var(--xp-card); font: inherit; font-size: 15px; color: var(--xp-ink); cursor: pointer; transition: background .2s, border-color .2s; }
.rl-filters button[style] { padding-left: 8px; background: color-mix(in srgb, var(--c) 16%, #FFFFFF); border-color: transparent; }
.rl-filters button img { width: 26px; height: 26px; transform: rotate(-6deg); }
.rl-filters button:hover { border-color: var(--xp-ink); }
.rl-filters button[aria-pressed="true"] { background: var(--prune-encre, #431C43); border-color: var(--prune-encre, #431C43); color: #F3EFE7; }
.rl-filters button:focus-visible { outline: 2px solid var(--xp-ink); outline-offset: 2px; }

/* Grille */
.rl-grid { margin: 0; padding: 0; list-style: none; display: grid; gap: 24px; }
@media (min-width: 700px) { .rl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.rl-card { display: flex; flex-direction: column; overflow: hidden; background: var(--xp-card); border-radius: 4px; box-shadow: 0 1px 0 var(--xp-line); scroll-margin-top: 120px; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.rl-card[hidden] { display: none; }
.rl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgb(42 27 39 / .1); }
.rl-card:target { box-shadow: 0 0 0 2px var(--xp-ink); }
.rl-card-top { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 0 16%; background: var(--t) center / cover; }
.rl-card-top img { width: 100%; max-height: 56%; height: auto; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.rl-card:hover .rl-card-top img { transform: scale(1.05) rotate(-1deg); }
/* Citation au survol des cartes Réalisations : déchirure du papier, puis la phrase qui s'écrit */
.rl-card-top { position: relative; overflow: hidden; }
.rl-card-top--quote { cursor: default; outline: none; }
.rl-quote { position: absolute; inset: 0; z-index: 1; margin: 0; background: #45203F url(/assets/85d12b3de3.webp) center / cover; background-blend-mode: multiply; opacity: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2vw, 26px); color: #F6F1EA; pointer-events: none; text-align: left; }
.rl-quote blockquote { margin: 0; }
.rl-quote-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.agency-scale .xp-page .rl-quote .rl-stream, .rl-quote .rl-stream { margin: 0; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.28; letter-spacing: -.015em; font-weight: 350; color: #F6F1EA; text-wrap: balance; }
.rl-stream span { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(4px); transition: opacity .15s, filter .15s, transform .15s; }
.rl-caret { display: none; width: 2px; height: 1em; margin-left: 4px; vertical-align: -.12em; background: #E2A98C; opacity: 0; }
.rl-quote figcaption { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding-top: 10px; border-top: 2px solid #E2A98C; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.rl-quote figcaption strong { font-weight: 500; }
.rl-quote figcaption span { color: #D9CCD6; }
.rl-shards { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rl-shard { position: absolute; inset: 0; opacity: 0; }
.rl-edge, .rl-face { position: absolute; inset: 0; }
.rl-edge { background: #F4EEE4 url(/assets/papier-rabat.webp) center / cover; opacity: 0; }
.rl-face { display: grid; place-items: center; padding: 0 16%; background: var(--t) center / cover; }
.rl-face img { width: 100%; max-height: 56%; height: auto; object-fit: contain; filter: brightness(0) invert(1); }
.rl-card-top--quote:is(:hover, :focus-visible, .is-open, .is-closing) .rl-quote { opacity: 1; transition: opacity 0s; }
.rl-card-top--quote:is(:hover, :focus-visible, .is-open, .is-closing) > img { opacity: 0; transition: opacity 0s; }
.rl-card-top--quote:is(:hover, :focus-visible, .is-open) .rl-shard { animation: rl-erase .55s cubic-bezier(.45, 0, .2, 1) var(--td) both; }
.rl-card-top--quote:is(:hover, :focus-visible, .is-open) .rl-edge { animation: rl-edge .55s ease var(--td) both; }
.rl-card-top--quote.is-closing .rl-shard { animation: rl-erase .7s cubic-bezier(.45, 0, .2, 1) calc(var(--td) * .5) reverse both; }
.rl-card-top--quote.is-closing .rl-edge { animation: rl-edge .7s ease calc(var(--td) * .5) reverse both; }
@keyframes rl-erase {
  0% { opacity: 1; transform: none; filter: drop-shadow(0 0 0 rgb(30 10 25 / 0)) blur(0); }
  22% { opacity: 1; transform: translate(calc(var(--tx) * .3), calc(var(--ty) * .3)) rotate(calc(var(--tr) * .35)) scale(1.02); filter: drop-shadow(0 4px 6px rgb(30 10 25 / .22)) blur(0); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--tr)) scale(1.04); filter: drop-shadow(0 8px 12px rgb(30 10 25 / 0)) blur(4px); }
}
@keyframes rl-edge { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 1; } }
.rl-card-top--quote:is(:hover, :focus-visible, .is-open) .rl-stream span { opacity: 1; filter: none; transform: none; transition: opacity .3s ease .22s, filter .35s ease .22s, transform .35s ease .22s; }
.rl-card-top--quote:is(:hover, :focus-visible, .is-open) .rl-caret { animation: rl-caret .9s steps(1) calc(.28s + var(--n, 12) * 28ms) 4 forwards; }
.rl-card-top--quote:is(:hover, :focus-visible, .is-open) figcaption { opacity: 1; transform: none; transition: opacity .35s ease .3s, transform .4s ease .3s; }
.rl-card-top--quote:is(:hover, :focus-visible, .is-open) .rl-card-top--quote:focus-visible { box-shadow: inset 0 0 0 3px #E2A98C; }
@keyframes rl-caret { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rl-shard, .rl-edge, .rl-stream span, .rl-quote figcaption { transition-duration: .01s !important; transition-delay: 0s !important; animation-duration: .01s !important; animation-delay: 0s !important; } .rl-caret { display: none; } }
.rl-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.rl-card-body .xp-label { font-size: 11px; line-height: 1.5; }
.agency-scale .xp-page .rl-card h2 { margin: 10px 0 0; font-size: clamp(24px, 2vw, 30px); line-height: 1.12; letter-spacing: -.025em; font-weight: 400; color: var(--xp-ink); }
.agency-scale .xp-page .xp-wrap p.rl-text { margin: 12px 0 0; flex: 1; font-size: 17px; line-height: 1.55; color: var(--xp-text); }
.agency-scale .xp-page .xp-wrap p.rl-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 14px 0 0; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; letter-spacing: -.04em; color: var(--xp-ink); }
.rl-fact span:last-child { color: transparent; background: url("/assets/3e012dc073.webp") center / 220% auto; -webkit-background-clip: text; background-clip: text; filter: saturate(1.6) brightness(.72); }
.rl-arrow { font-size: .6em; color: var(--xp-muted); }
.agency-scale .xp-page .xp-wrap p.rl-fact-label { margin: 8px 0 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--xp-muted); }
.rl-tags { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.rl-tags a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: color-mix(in srgb, var(--c) 24%, #FFFFFF); font-size: 14px; color: var(--xp-ink); text-decoration: none; transition: background .2s; }
.rl-tags a:hover { background: color-mix(in srgb, var(--c) 42%, #FFFFFF); }
.rl-tags img { width: 22px; height: 22px; transform: rotate(-6deg); }
.rl-link { align-self: flex-start; margin-top: 20px; font-size: 16px; color: var(--xp-ink); text-decoration: underline; text-underline-offset: 5px; }
.rl-link:hover { text-decoration-thickness: 2px; }

/* Les figures inclinées de l’Approche ne doivent pas créer de défilement horizontal sur mobile */
.ap-page { overflow-x: clip; }

/* ---------- Études de cas, format récit ---------- */
.cs2-hero { padding: clamp(56px, 6vw, 88px) 0 clamp(56px, 6vw, 88px); background: #45203F url(/assets/85d12b3de3.webp) center / cover; background-blend-mode: multiply; color: #F6F1EA; }
.agency-scale .xp-page .xp-wrap .cs2-eyebrow, .cs2-eyebrow { margin: 0 0 28px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #D9CCD6; }
.cs2-eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.agency-scale .xp-page .cs2-hero h1, .cs2-hero h1 { margin: 0; max-width: 32ch; font-size: clamp(32px, 3.5vw, 54px); line-height: 1.1; letter-spacing: -.03em; font-weight: 350; color: #F6F1EA; text-wrap: balance; }
.cs2-grid { display: grid; gap: 40px; margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 960px) { .cs2-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(56px, 7vw, 112px); align-items: start; } }
.agency-scale .xp-page .xp-wrap p.cs2-intro, .cs2-intro { margin: 0; max-width: 54ch; font-size: clamp(18px, 1.3vw, 20px); line-height: 1.5; color: #F6F1EA; }
.cs2-tags { margin-top: 24px; }
.cs2-tags a { padding: 5px 14px 5px 7px; font-size: 15px; background: color-mix(in srgb, var(--c) 55%, #FFFFFF); }
.cs2-figure { margin: 32px 0 0; max-width: 820px; }
.cs2-figure img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 48px rgb(10 2 8 / .35); }
.cs2-figure figcaption { margin-top: 14px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #D9CCD6; }
.cs2-facts { margin: 0; padding: 0; list-style: none; }
.cs2-facts li { padding: 18px 0 20px; border-top: 1px solid rgb(246 241 234 / .28); }
.cs2-facts strong { display: block; font-size: clamp(28px, 2.3vw, 36px); line-height: 1.05; letter-spacing: -.03em; font-weight: 350; color: #F6F1EA; }
.cs2-facts span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: #E4D9E1; }
.cs2-cta { margin-top: 16px; padding: 20px 22px 22px; border: 1px solid rgb(246 241 234 / .35); border-radius: 6px; background: rgb(255 255 255 / .06); }
.agency-scale .xp-page .xp-wrap .cs2-cta p, .cs2-cta p { margin: 0 0 16px; font-size: 15px; line-height: 1.45; color: #E4D9E1; }
.agency-scale .xp-page .xp-wrap .cs2-cta p.cs2-cta-t, .cs2-cta p.cs2-cta-t { margin-bottom: 6px; font-size: 18px; font-weight: 500; color: #F6F1EA; }
.cs2-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #F6F1EA; color: #3B1C37; font-size: 15px; font-weight: 500; text-decoration: none; transition: transform .2s; }
.cs2-btn:hover { transform: translateY(-2px); }
.cs2-btn--ink { background: #45203F; color: #F6F1EA; }
.cs2-body { padding: 0; }
.cs2-chapter { position: relative; padding: clamp(64px, 7vw, 112px) 0; }
.cs2-chapter--tint { background: var(--secondary, #E9E4DA); }
.cs2-grid--chapter { margin-top: 0; }
.agency-scale .xp-page .cs2-chapter h2, .cs2-chapter h2 { margin: 0 0 clamp(24px, 3vw, 36px); max-width: 22ch; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 350; color: var(--xp-ink); text-wrap: balance; }
.cs2-text { padding-left: 22px; border-left: 3px solid var(--c, var(--xp-accent)); }
@media (min-width: 960px) { .cs2-text { margin-left: 10%; padding-left: 32px; } }
.agency-scale .xp-page .xp-wrap .cs2-text p, .cs2-text p { margin: 0 0 22px; max-width: 62ch; font-size: 19px; line-height: 1.65; color: var(--xp-text); }
.agency-scale .xp-page .xp-wrap .cs2-text p.cs2-lead, .cs2-text p.cs2-lead { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.45; color: var(--xp-ink); letter-spacing: -.01em; }
.cs2-text p:last-child { margin-bottom: 0; }
.cs2-meta { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 960px) { .cs2-meta { padding-top: 10px; } }
.agency-scale .xp-page .xp-wrap p.cs2-chip, .cs2-chip { margin: 0; }
.cs2-chip a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 7px; border-radius: 999px; background: color-mix(in srgb, var(--c) 48%, #FFFFFF); font-size: 15px; color: var(--xp-ink); text-decoration: none; }
.cs2-chip img { width: 30px; height: 30px; transform: rotate(-6deg); }
.cs2-side-cta { padding: 20px 22px 22px; border-radius: 6px; background: #45203F url(/assets/85d12b3de3.webp) center / cover; background-blend-mode: multiply; }
.agency-scale .xp-page .xp-wrap .cs2-side-cta p, .cs2-side-cta p { margin: 0 0 16px; font-size: 16px; line-height: 1.45; color: #F6F1EA; }
.cs2-side-cta .cs2-btn--ink { background: #F6F1EA; color: #3B1C37; }
.cs2-wide { margin: clamp(48px, 5vw, 72px) 0 0; }
.cs2-wide img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 30px 60px rgb(42 27 39 / .18); }
.cs2-join-tex { --surface: var(--xp-tex) center / cover fixed; }
.cs2-quote-band { padding: clamp(72px, 8vw, 128px) 0; background: var(--xp-tex) center / cover fixed; }
.cs2-quote { position: relative; margin: 0; max-width: 1000px; padding: clamp(36px, 4.5vw, 64px) clamp(28px, 4.5vw, 72px); background: linear-gradient(rgb(246 240 230 / .5), rgb(246 240 230 / .5)), #DCCFE6 url(/assets/papier-rabat.webp) center / cover; border-radius: 2px; transform: rotate(-1.2deg); box-shadow: 0 2px 3px rgb(42 27 39 / .12), 0 28px 50px rgb(42 27 39 / .22); }
.cs2-quote::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%) rotate(2deg); background: rgb(246 240 230 / .72); box-shadow: 0 1px 2px rgb(42 27 39 / .12); }
.cs2-quote blockquote { margin: 0; }
.agency-scale .xp-page .xp-wrap .cs2-quote p, .cs2-quote p { margin: 0; max-width: 24ch; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.12; letter-spacing: -.035em; font-weight: 350; color: #2E1229; text-wrap: balance; }
.cs2-quote figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 32px; padding-top: 14px; border-top: 4px solid var(--xp-accent); max-width: 420px; }
.cs2-quote figcaption strong { font-weight: 500; font-size: 18px; color: #2E1229; }
.cs2-quote figcaption span { font-size: 16px; color: #3B2A37; }
.cs2-more { padding: clamp(64px, 7vw, 112px) 0 clamp(80px, 8vw, 128px); background: var(--secondary, #E9E4DA); color: var(--xp-ink); }
.agency-scale .xp-page .cs2-more h2, .cs2-more h2 { margin: 0 0 40px; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 350; color: var(--xp-ink); }
.cs2-cards { display: grid; gap: 28px; }
@media (min-width: 900px) { .cs2-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs2-card { display: block; color: var(--xp-ink); text-decoration: none; }
.cs2-card-img { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; box-shadow: 0 14px 30px rgb(42 27 39 / .14); }
.cs2-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cs2-card:hover .cs2-card-img img { transform: scale(1.04); }
.cs2-card-name { display: block; margin-top: 16px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--xp-muted); }
.cs2-card-t { display: block; margin-top: 6px; font-size: 18px; line-height: 1.35; }
.cs2-more .xp-more { display: inline-block; margin-top: 40px; color: var(--xp-ink); }

/* Récit : la boucle Riyada appliquée au projet, chronologie, statut */
.cs2-loop { padding: clamp(64px, 7vw, 104px) 0; background: var(--secondary, #E9E4DA); }
.cs2-loop-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 960px) { .cs2-loop-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 64px; } }
.agency-scale .xp-page .cs2-loop h2, .cs2-loop h2 { margin: 0; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 350; color: var(--xp-ink); }
.agency-scale .xp-page .xp-wrap .cs2-loop-head p, .cs2-loop-head p { margin: 0; max-width: 52ch; font-size: 17px; line-height: 1.55; color: var(--xp-text); }
.cs2-loop-head a { color: var(--xp-ink); text-decoration: underline; text-underline-offset: 4px; }
.cs2-loop-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
@media (min-width: 720px) { .cs2-loop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cs2-loop-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs2-loop-list li { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px 24px; background: #FBF8F2; border-radius: 4px; border-top: 6px solid var(--c); box-shadow: 0 1px 0 var(--xp-line); }
@media (max-width: 1099px) { .cs2-loop-list li::after { display: none; } }
.agency-scale .xp-page .xp-wrap p.cs2-loop-step, .cs2-loop-step { margin: 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--xp-muted); }
.cs2-loop-list .cs2-loop-step { font-size: 24px; font-family: inherit; letter-spacing: -.02em; text-transform: none; color: var(--xp-ink); }
.agency-scale .xp-page .xp-wrap p.cs2-loop-text, .cs2-loop-text { margin: 0; flex: 1; font-size: 16px; line-height: 1.5; color: var(--xp-text); }
.cs2-loop-more { font-size: 14px; color: var(--xp-ink); text-underline-offset: 4px; }
.cs2-chapter { scroll-margin-top: 110px; }
.cs2-timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--c, var(--xp-accent)); }
.cs2-timeline li { position: relative; padding: 0 0 18px 18px; }
.cs2-timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--xp-accent)); box-shadow: 0 0 0 3px #F3EFE7; }
.cs2-chapter--tint .cs2-timeline li::before { box-shadow: 0 0 0 3px var(--secondary, #E9E4DA); }
.cs2-timeline strong { display: block; font-size: 16px; font-weight: 500; color: var(--xp-ink); }
.cs2-timeline span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--xp-text); }
.cs2-status { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 720px) { .cs2-status { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs2-status-col { padding: 18px 18px 16px; border-radius: 4px; background: #FBF8F2; }
.cs2-status--done { outline: 2px solid var(--xp-ink); }
.cs2-status--wip { outline: 2px dashed var(--xp-ink); }
.cs2-status--next { outline: 1px solid var(--xp-line); }
.agency-scale .xp-page .xp-wrap .cs2-status-col p.cs2-status-h, .cs2-status-h { margin: 0 0 10px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--xp-muted); }
.cs2-status-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cs2-status-col li { font-size: 15px; line-height: 1.4; color: var(--xp-ink); }

/* ---------- Page 404 : trois chiffres découpés dans le papier de la marque ---------- */
.nf { padding: clamp(56px, 8vw, 128px) 0 clamp(72px, 9vw, 140px); }
.nf-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .nf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; } }
.agency-scale .xp-page .nf h1, .nf h1 { margin: 14px 0 0; font-size: clamp(40px, 5vw, 76px); line-height: 1.04; letter-spacing: -.035em; font-weight: 400; color: var(--xp-ink); }
.agency-scale .xp-page .xp-wrap p.nf-lead, .nf-lead { margin: 24px 0 0; max-width: 30ch; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.35; color: var(--xp-ink); }
.agency-scale .xp-page .xp-wrap p.nf-intro, .nf-intro { margin: 28px 0 0; font-size: 17px; line-height: 1.55; color: var(--xp-text); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.nf-links a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: color-mix(in srgb, var(--c) 34%, #FFFFFF); color: var(--xp-ink); font-size: 15px; text-decoration: none; transition: transform .2s, background .2s; }
.nf-links a:hover { transform: translateY(-2px) rotate(-1deg); background: color-mix(in srgb, var(--c) 55%, #FFFFFF); }
.nf-home { margin-top: 32px; }
@media (max-width: 959px) { .nf-stage { order: -1; min-height: 0; padding-top: 12px; } }
.nf-stage { --mx: 0; --my: 0; position: relative; display: flex; justify-content: center; align-items: center; gap: .02em; min-height: clamp(220px, 30vw, 460px); font-size: clamp(150px, 22vw, 360px); line-height: .8; }
.nf-digit { display: inline-block; font-weight: 500; letter-spacing: -.06em; color: transparent; background: var(--tex) center / cover; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 2px rgb(42 27 39 / .18)) drop-shadow(0 22px 26px rgb(42 27 39 / .2));
  transform: translate(calc(var(--mx) * var(--depth) * 1px), calc(var(--my) * var(--depth) * 1px)) rotate(var(--r)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); animation: nf-drop .9s cubic-bezier(.2, .9, .25, 1.15) both; }
.nf-digit:nth-child(2) { animation-delay: .12s; } .nf-digit:nth-child(3) { animation-delay: .24s; }
@keyframes nf-drop { from { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) * 3)); } }
.nf-tape { position: absolute; top: 12%; left: 50%; width: clamp(70px, 9vw, 130px); height: clamp(22px, 2.6vw, 36px); background: rgb(246 240 230 / .75); box-shadow: 0 1px 2px rgb(42 27 39 / .14); transform: translateX(-50%) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { .nf-digit { animation: none; transition: none; } }

/* 404 : l'assistant et le réseau dont la page s'est détachée */
.nf-ai { margin-top: 28px; padding: 16px 18px; max-width: 520px; border-radius: 6px; background: #FBF8F2; box-shadow: 0 1px 0 var(--xp-line), 0 10px 24px rgb(42 27 39 / .06); }
.agency-scale .xp-page .xp-wrap p.nf-ai-who, .nf-ai-who { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--xp-muted); }
.nf-ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #B9A3D0; box-shadow: 0 0 0 4px rgb(185 163 208 / .25); animation: nf-pulse 1.6s ease-in-out infinite; }
.agency-scale .xp-page .xp-wrap p.nf-ai-text, .nf-ai-text { margin: 8px 0 0; font-size: 18px; line-height: 1.45; color: var(--xp-ink); animation: nf-in .35s ease both; }
.nf-ai-text a { color: var(--xp-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.nf-ai-wait { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.nf-ai-wait i { width: 5px; height: 5px; border-radius: 50%; background: var(--xp-muted); animation: nf-wait 1s ease-in-out infinite; }
.nf-ai-wait i:nth-child(2) { animation-delay: .15s; } .nf-ai-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes nf-wait { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes nf-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes nf-pulse { 50% { box-shadow: 0 0 0 7px rgb(185 163 208 / .12); } }
.nf-net { position: absolute; inset: -6% -4%; width: 108%; height: 112%; z-index: -1; overflow: visible; }
.nf-lines path { fill: none; stroke: rgb(67 28 67 / .28); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.nf-node { fill: #431C43; opacity: .55; }
.nf-broken { fill: none; stroke: rgb(67 28 67 / .35); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.nf-lost { fill: #B9A3D0; transform-box: fill-box; transform-origin: center; animation: nf-drift 3.2s ease-in-out infinite; }
@keyframes nf-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, 12px); } }
.nf-stage { isolation: isolate; }
@media (prefers-reduced-motion: reduce) { .nf-ai-dot, .nf-ai-wait i, .nf-lost { animation: none; } }

/* ── Page Approche (récit, 2026-11) ── */
.ap2-get { margin-top: 28px; }
.ap2-get .xp-label { display: block; margin-bottom: 6px; font-size: 11px; }
.agency-scale .xp-page .xp-wrap .cs2-text .ap2-get { font-size: 20px; line-height: 1.45; color: var(--xp-ink); }
.ap2-split { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 720px) { .ap2-split { grid-template-columns: 1fr 1fr; gap: 16px; } }
.ap2-split .ap-ai { padding: 14px 16px; border: 1px solid var(--xp-line, rgb(42 27 39 / .14)); border-radius: 3px; }
.ap2-split .xp-label { display: block; margin-bottom: 6px; font-size: 11px; }
.agency-scale .xp-page .xp-wrap .ap2-split p { margin: 0; font-size: 17px; line-height: 1.5; }
.agency-scale .xp-page .xp-wrap .ap2-split .ap-ai p { color: var(--xp-muted); }
.ap2-proof { display: block; padding: 20px 22px 22px; border-radius: 6px; background: var(--xp-card, #FBF8F3); box-shadow: 0 1px 0 var(--xp-line), 0 14px 30px rgb(42 27 39 / .08); border-top: 4px solid var(--c); color: var(--xp-ink); text-decoration: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.ap2-proof:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--xp-line), 0 20px 40px rgb(42 27 39 / .14); }
.ap2-proof .xp-label { display: block; margin-bottom: 10px; font-size: 11px; }
.ap2-proof-t { display: block; font-size: 18px; line-height: 1.45; }
.ap2-proof-more { display: inline-block; margin-top: 14px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.ap2-principles { padding: clamp(64px, 7vw, 112px) 0; }
.ap2-principles-list { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 28px; counter-reset: none; }
@media (min-width: 900px) { .ap2-principles-list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.ap2-principles-list li { padding-top: 22px; border-top: 3px solid var(--primary, #431C43); }
.ap2-principles-list strong { display: block; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 400; color: var(--xp-ink); }
.agency-scale .xp-page .xp-wrap .ap2-principles-list p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--xp-muted); }
.agency-scale .xp-page .xp-wrap .ap2-manifesto { margin: 48px 0 0; font-size: 18px; color: var(--xp-muted); }
.ap2-manifesto a { color: var(--xp-ink); }
/* Assistant de l'article : carte prune, papier de l'expertise */
.bl-chat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--xp-tex) center / cover; opacity: .16; mix-blend-mode: screen; pointer-events: none; }
/* Figures d'article : captures encadrées, légende en mono */
.bl-body .prose-riyada .bl-figure { margin: 36px 0; }
.bl-body .prose-riyada .bl-figure img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 1px 0 var(--xp-line), 0 14px 30px rgb(42 27 39 / .12); }
.bl-body .prose-riyada .bl-figure figcaption { margin-top: 12px; font-family: var(--font-mono, monospace); font-size: 12px; line-height: 1.5; color: var(--xp-muted); }
.bl-body .prose-riyada .bl-figure--narrow { max-width: 420px; }

/* ---------- Article : mise à l'échelle des grands écrans ----------
   Le zoom global (--uw) ne s'applique pas de la même façon partout (zoom du navigateur,
   moteurs). L'article utilise plutôt une unité liée à la largeur d'écran : 1px jusqu'à
   2000 px de large, puis grandit jusqu'à 1,35px (atteint vers 3200 px), comme le reste du site. Toutes les mesures
   clés de l'article en dérivent, donc la colonne et le texte grandissent ensemble. */
.bl-article { --u: clamp(1px, calc(.4px + .03vw), 1.35px); }
@media (min-width: 2000px) { .agency-scale .xp-page.bl-article { zoom: 1; } }
.bl-article .xp-wrap { max-width: calc(var(--u) * 1440); }
@media (min-width: 1440px) { .bl-article .xp-wrap { padding-inline: calc(var(--u) * 86); } }
@media (min-width: 1100px) {
  .bl-article .bl-article-grid { grid-template-columns: minmax(0, calc(var(--u) * 720)) minmax(calc(var(--u) * 260), calc(var(--u) * 340)); gap: calc(var(--u) * 56); }
  .bl-article .bl-aside { top: calc(var(--u) * 130); }
}
.agency-scale .xp-page.bl-article .xp-hero { padding-block: calc(var(--u) * 56) calc(var(--u) * 48); }
.agency-scale .xp-page.bl-article .xp-hero h1 { font-size: clamp(44px, 5.2vw, calc(var(--u) * 84)); }
.agency-scale .xp-page.bl-article .xp-wrap p.xp-label { font-size: calc(var(--u) * 12); }
.agency-scale .xp-page.bl-article .xp-wrap p.bl-standfirst { font-size: clamp(20px, 1.7vw, calc(var(--u) * 25)); }
.agency-scale .xp-page.bl-article .bl-byline { font-size: calc(var(--u) * 12); max-width: calc(var(--u) * 640); }
.bl-article .xp-paper { width: clamp(150px, 17vw, calc(var(--u) * 260)); }
.agency-scale .xp-page.bl-article .prose-riyada, .agency-scale .xp-page.bl-article .prose-riyada p, .agency-scale .xp-page.bl-article .prose-riyada li { font-size: calc(var(--u) * 19); }
.agency-scale .xp-page.bl-article .bl-body .prose-riyada > p:first-child { font-size: clamp(20px, 1.6vw, calc(var(--u) * 23)); }
.agency-scale .xp-page.bl-article .prose-riyada h2 { font-size: clamp(28px, 2.4vw, calc(var(--u) * 36)); margin-top: calc(var(--u) * 56); }
.agency-scale .xp-page.bl-article .prose-riyada h3 { font-size: calc(var(--u) * 23); }
.agency-scale .xp-page.bl-article .bl-body .prose-riyada .bl-figure figcaption, .agency-scale .xp-page.bl-article .bl-meta { font-size: calc(var(--u) * 12); }
.bl-article .bl-body .prose-riyada .bl-figure--narrow { max-width: calc(var(--u) * 420); }
.bl-article .bl-body .prose-riyada ol > li { padding-left: calc(var(--u) * 52); }
.bl-article .bl-body .prose-riyada ol > li::before { width: calc(var(--u) * 30); height: calc(var(--u) * 30); font-size: calc(var(--u) * 12); }
.agency-scale .xp-page.bl-article .bl-endcta p.bl-endcta-text { font-size: clamp(24px, 2.2vw, calc(var(--u) * 32)); }
.bl-article .bl-endcta .xp-btn, .bl-article .xp-more { font-size: calc(var(--u) * 17); }
.bl-article .bl-expertise-title { font-size: calc(var(--u) * 26); }
.bl-article .bl-expertise-lead { font-size: calc(var(--u) * 16); }
.agency-scale .xp-page.bl-article .bl-list h3 { font-size: clamp(22px, 1.9vw, calc(var(--u) * 28)); }
.agency-scale .xp-page.bl-article .xp-h2 { font-size: clamp(32px, 3.2vw, calc(var(--u) * 48)); }
/* L'assistant (classes utilitaires) suit l'échelle par zoom local */
@media (min-width: 2000px) { .bl-article .bl-chat { zoom: 1.1; } }
@media (min-width: 2400px) { .bl-article .bl-chat { zoom: 1.2; } }
@media (min-width: 2800px) { .bl-article .bl-chat { zoom: 1.3; } }
@media (min-width: 3200px) { .bl-article .bl-chat { zoom: 1.35; } }
