/* Oryx Marbles — feuille de style unique (site public + pages d'étude privées).
   Générée depuis le design system « Oryx Marbles Design System » (tokens.json + bundle.css).
   Polices auto-hébergées (SIL Open Font License, voir fonts/). Aucun appel tiers. */
@font-face { font-family: "Marcellus"; src: url("fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --limestone: #efe8dc;
  --stone: #d9c7a7;
  --ink: #1f1c19;
  --ink-soft: #48433c;
  --muted: #625b52;
  --line: #d9d0c2;
  --field: #867e72;
  --umber: #75583a;
  --basalt: #2a2622;
  --on-basalt: #f4efe7;
  --on-basalt-soft: #c4baac;
  --sand: #c9ab7f;
  --warn: #6e4608;
  --warn-bg: #f6e5bf;
  --ok: #2c5a3b;
  --ok-bg: #dcebe0;
  --error: #8f2020;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 48px;
  --space-6: 80px;
  --space-7: 128px;
  --radius-0: 0;
  --radius-1: 2px;
}
/* Oryx Marbles. Class names follow src/style.css. Colours, spacing and radii come from tokens.json. */
:root {
  --display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 82rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  --slab: url("pierre-oman.jpg");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--umber); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--ink); text-wrap: balance; margin: 0 0 var(--space-4); }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.04; letter-spacing: -.01em; max-width: 18ch; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); line-height: 1.1; max-width: 22ch; }
h3 { font-size: 1.19rem; line-height: 1.35; font-weight: 600; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-3); max-width: 64ch; }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink-soft); max-width: 50ch; }
.eyebrow { display: flex; align-items: center; gap: .9rem; font-size: .875rem; font-weight: 600; letter-spacing: .04em; color: var(--umber); margin: 0 0 var(--space-4); }
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 6rem; flex-wrap: wrap; }
.brand { display: inline-grid; justify-items: center; line-height: 1; text-decoration: none; color: var(--ink); }
.brand .b1 { font-family: var(--display); font-size: 1.7rem; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; }
.brand .b2 { font-size: .62rem; font-weight: 600; letter-spacing: .62em; margin-right: -.62em; text-transform: uppercase; margin-top: .45rem; color: var(--muted); }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 2rem; align-items: center; font-size: .94rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav a.cta { border: 1px solid var(--ink); color: var(--ink); padding: .7rem 1.2rem; }
.nav a.cta:hover, .nav a.cta[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .lang { font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.menu-check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-btn { display: none; }

/* Buttons */
.btns { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.btn { display: inline-flex; align-items: center; min-height: 3.4rem; padding: 0 1.75rem; border: 1px solid var(--ink); border-radius: 0; font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--umber); border-color: var(--umber); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Home hero: text beside a photograph of the stone */
.hero { position: relative; }
.hero.slab-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(50rem, 86vh); border-bottom: 1px solid var(--line); }
.hero.slab-hero .wrap { max-width: none; margin: 0; align-self: center; padding: var(--space-6) clamp(2rem, 5vw, 5rem) var(--space-6) var(--edge); }
.hero-slab { position: relative; margin: 0; background: var(--slab) center / cover; min-height: 22rem; }
.hero-slab figcaption { position: absolute; right: var(--space-4); bottom: var(--space-4); margin: 0; font-size: .8rem; color: var(--ink-soft); background: rgb(251 250 247 / .85); padding: .2rem .6rem; }

/* Key figures */
.figures { border-bottom: 1px solid var(--line); }
.figures dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.figures dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: var(--space-5) var(--space-4) var(--space-5) 0; }
.figures dl > div + div { border-left: 1px solid var(--line); padding-left: var(--space-4); }
.figures dd { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.05; white-space: nowrap; }
.figures dt { font-size: .9rem; color: var(--muted); margin-top: var(--space-3); max-width: 20ch; }

/* Sections */
section.block { padding: clamp(var(--space-6), 9vw, var(--space-7)) 0; }
section.block + section.block { border-top: 1px solid var(--line); }
section.tint { background: var(--limestone); border-top: 0 !important; }
section.tint + section.block { border-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: end; margin-bottom: var(--space-5); }
.section-head h2, .section-head p { margin-bottom: 0; }

/* Inner page head with a slab plinth */
.page-head { padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head p:last-child { margin-bottom: 0; }
.slab-strip { height: clamp(7rem, 14vw, 12rem); background: var(--slab) center 38% / cover; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.slab-strip + section.block { border-top: 0; }

.grid { display: grid; gap: var(--space-5) var(--space-5); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.card { border-top: 1px solid var(--ink); padding-top: var(--space-4); }
.card p:last-child { margin-bottom: 0; }
.card .num { display: none; }
.card > .placeholder { margin: 0 0 var(--space-4); aspect-ratio: 4 / 5; }
.card > .placeholder + h3 { margin-top: 0 !important; font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.card:has(> .placeholder) { border-top: 0; padding-top: 0; }

/* Steps: a real sequence, numbered in Roman numerals */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: var(--space-4); }
.steps li::before { content: counter(step, upper-roman); display: block; font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--umber); margin-bottom: var(--space-5); }
.steps p { margin: 0; font-size: 1rem; }

/* Dark band */
.band { background: var(--basalt); color: var(--on-basalt); padding: clamp(var(--space-6), 9vw, var(--space-7)) 0; }
.band h2, .band h3 { color: var(--on-basalt); }
.band p { color: var(--on-basalt-soft); }
.band .eyebrow { color: var(--sand); }
.band .btn-ghost { color: var(--on-basalt); border-color: var(--on-basalt-soft); }
.band .btn-ghost:hover { background: var(--on-basalt); color: var(--basalt); }
.band :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .private-banner :focus-visible, .study-hero :focus-visible { outline-color: var(--on-basalt); }

/* Closing call to action */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--basalt); color: var(--on-basalt); }
.cta-band .wrap { max-width: none; margin: 0; padding: var(--space-6) clamp(2rem, 5vw, 5rem) var(--space-6) var(--edge); }
.cta-band h2 { color: var(--on-basalt); }
.cta-band .lead { color: var(--on-basalt-soft); }
.cta-band .btn-primary { background: var(--on-basalt); border-color: var(--on-basalt); color: var(--basalt); }
.cta-band .btn-primary:hover { background: var(--sand); border-color: var(--sand); }
.cta-band::after { content: ""; background: var(--slab) 70% center / cover; min-height: 16rem; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums lining-nums; }
th, td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); border-bottom-color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 1px solid var(--ink); background: var(--limestone); }
tr.sub td { font-weight: 600; }
caption { caption-side: bottom; text-align: left; padding: .9rem 1.1rem; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Content still to supply: stone texture, faded, under a dashed frame and a label */
/* Placeholders stay plainly placeholders: a neutral hatch, never the stone photo (it would read as a product photo). */
.placeholder { position: relative; display: grid; place-items: center; text-align: center; min-height: 12rem; padding: var(--space-4); color: var(--ink-soft); font-size: .85rem; line-height: 1.45;
  background: repeating-linear-gradient(135deg, var(--limestone) 0 14px, var(--paper) 14px 28px); }
.placeholder::before { content: ""; position: absolute; inset: .75rem; border: 1px dashed var(--field); pointer-events: none; }
.placeholder .ph-label { position: relative; background: var(--paper); padding: .45rem .75rem; max-width: 30ch; }
.placeholder.wide { aspect-ratio: 16 / 9; min-height: 0; }
.band .placeholder { background: repeating-linear-gradient(135deg, rgb(251 250 247 / .07) 0 14px, transparent 14px 28px); }
.band .placeholder::before { border-color: rgb(251 250 247 / .45); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; line-height: 1.5; letter-spacing: .02em; padding: .12rem .55rem; border-radius: var(--radius-1); white-space: nowrap; }
.tag-todo { background: var(--warn-bg); color: var(--warn); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
figure { margin: 0; }
figure img { border: 1px solid var(--line); background: var(--surface); }
figcaption { font-size: .875rem; color: var(--muted); margin-top: var(--space-3); max-width: 70ch; }
.note { border-left: 1px solid var(--umber); padding: .25rem 0 .25rem var(--space-4); font-size: .95rem; color: var(--ink-soft); max-width: 46rem; }
.note p:last-child { margin-bottom: 0; }

/* Form */
form.contact { display: grid; gap: var(--space-4); max-width: 46rem; }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label { font-size: .875rem; font-weight: 600; letter-spacing: .02em; }
.field input, .field select, .field textarea { font: inherit; width: 100%; min-height: 3.25rem; padding: .7rem .85rem; border: 1px solid var(--field); background: var(--surface); border-radius: var(--radius-1); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 9.5rem; resize: vertical; }
.row-2 { display: grid; gap: var(--space-4) var(--space-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--ink); flex: none; }
.form-msg { font-size: .92rem; margin: 0; }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--error); font-weight: 600; }

/* Footer */
.site-footer { background: var(--basalt); color: var(--on-basalt-soft); padding: var(--space-6) 0 var(--space-5); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-5); }
.site-footer .brand { color: var(--on-basalt); justify-items: start; margin-bottom: var(--space-4); }
.site-footer .brand .b2 { color: var(--on-basalt-soft); }
.site-footer nav, .site-footer .col { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.site-footer a { color: var(--on-basalt); text-decoration: none; }
.site-footer a:hover { color: var(--sand); text-decoration: underline; }
.site-footer .col div { max-width: 34ch; }

/* Private study pages */
.private-banner { background: var(--basalt); color: var(--on-basalt-soft); font-size: .85rem; letter-spacing: .02em; border-bottom: 1px solid rgb(255 255 255 / .1); }
.private-banner .wrap { padding-top: .6rem; padding-bottom: .6rem; }
.study-hero { background: var(--basalt); color: var(--on-basalt); }
.study-hero .wrap { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.study-hero h1 { color: var(--on-basalt); max-width: 16ch; }
.study-hero .lead { color: var(--on-basalt-soft); }
.study-hero .eyebrow { color: var(--sand); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-5); border-top: 1px solid rgb(255 255 255 / .18); }
.kpis div { padding: var(--space-4) var(--space-4) 0 0; }
.kpis div + div { border-left: 1px solid rgb(255 255 255 / .18); padding-left: var(--space-4); }
.kpis strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.15; color: var(--on-basalt); white-space: nowrap; }
.kpis span { font-size: .875rem; color: var(--on-basalt-soft); }
.ar-box { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.ar-box img { width: 9rem; border: 1px solid var(--line); }

@media (max-width: 1100px) { .nav { gap: 1.2rem; font-size: .9rem; } }
@media (max-width: 960px) {
  .hero.slab-hero, .cta-band { grid-template-columns: 1fr; min-height: 0; }
  .hero.slab-hero .wrap, .cta-band .wrap { padding: var(--space-6) var(--gutter); }
  .hero-slab { min-height: 0; aspect-ratio: 16 / 10; }
  .cta-band::after { min-height: 10rem; }
  .figures dl, .kpis { grid-template-columns: 1fr 1fr; }
  .figures dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .kpis div:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: var(--space-3); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .site-header .wrap { min-height: 4.75rem; }
  .site-header .wrap { padding-top: .75rem; padding-bottom: .75rem; }
  .brand .b1 { font-size: 1.35rem; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid var(--ink); font-size: .9rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
  .menu-check:focus-visible + .menu-btn { outline: 2px solid var(--ink); outline-offset: 3px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: var(--space-4); font-size: 1.05rem; }
  .menu-check:checked ~ .nav { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--line); }
  .nav a.cta { margin-top: var(--space-4); text-align: center; justify-content: center; display: flex; }
  .nav .lang { border: 0; align-self: flex-start; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack caption { display: block; width: 100%; }
  table.stack tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  table.stack tr.total { background: var(--limestone); }
  table.stack td { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--space-3); text-align: left; border: 0 !important; padding: .2rem 1.1rem; white-space: normal; background: none; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-weight: 400; font-size: .85rem; }
  table.stack td[data-label=""] { display: block; font-weight: 700; }
  table.stack td:empty { display: none; }
}
@media (max-width: 560px) {
  .steps, .site-footer .wrap { grid-template-columns: 1fr; }
  .steps li::before { margin-bottom: var(--space-3); }
  .btns .btn { width: 100%; justify-content: center; }
  .figures dd { font-size: 1.75rem; }
  .kpis strong { font-size: 1.45rem; }
  .card > .placeholder { aspect-ratio: 4 / 3; }
}
@media print {
  .site-header nav, .menu-btn, .btns, .site-footer nav, .private-banner, .cta-band { display: none; }
  body { background: #fff; }
}
