/* impression_ant — une page par atelier :
   accueil et portfolio neutres, impression 3D en sable, découpe laser en graphite
   (les deux couleurs des logos). Les devis sont présentés comme des tickets de fabrication. */
:root {
  /* Couleurs des logos */
  --graphite: #4C4C4C;
  --sand: #C1A88A;
  --taupe: #AFA0A0;
  --mist: #CCC8C8;
  --snow: #FCFCFC;

  /* Thème neutre (accueil, portfolio, mentions) — clair */
  --bg: #ECEAE7;
  --surface: #FFFFFF;
  --surface-2: #F4F2EF;
  --fg: #2A2928;
  --muted: #6E6A66;
  --line: #D8D3CE;
  --accent: #8C7458;
  --hero-bg: #4C4C4C;
  --hero-fg: #FCFCFC;
  --btn-bg: #4C4C4C;
  --btn-fg: #FCFCFC;
  --pick-bg: #4C4C4C;
  --pick-fg: #FCFCFC;
  --warn-bg: #F6E7D4;
  --warn-fg: #6B4A1E;
  --err: #A33A2E;
  --flow-hl: #C1A88A;
  --flow-hl-fg: #2B2620;
  --shadow: 0 1px 2px rgba(40, 32, 24, .06), 0 10px 30px rgba(40, 32, 24, .08);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #222120; --surface: #2D2C2B; --surface-2: #343331; --fg: #EEECE9; --muted: #A9A49F; --line: #3D3B39;
    --accent: #D2BA9C; --hero-bg: #2E2D2C; --btn-bg: #C1A88A; --btn-fg: #1F1E1D; --pick-bg: #C1A88A; --pick-fg: #1F1E1D;
    --warn-bg: #3F3122; --warn-fg: #F0D4AE; --err: #EE8B7E; --shadow: 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #222120; --surface: #2D2C2B; --surface-2: #343331; --fg: #EEECE9; --muted: #A9A49F; --line: #3D3B39;
  --accent: #D2BA9C; --hero-bg: #2E2D2C; --btn-bg: #C1A88A; --btn-fg: #1F1E1D; --pick-bg: #C1A88A; --pick-fg: #1F1E1D;
  --warn-bg: #3F3122; --warn-fg: #F0D4AE; --err: #EE8B7E; --shadow: 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* Atelier impression 3D : univers sable (fixe, clair) */
body.theme-3d {
  --bg: #EDE3D6; --surface: #FFFFFF; --surface-2: #F6EFE6; --fg: #2E2A26; --muted: #6F6457; --line: #DBCDBC;
  --accent: #7A6249; --hero-bg: #C1A88A; --hero-fg: #2B2620; --btn-bg: #4C4C4C; --btn-fg: #FCFCFC;
  --pick-bg: #4C4C4C; --pick-fg: #FCFCFC; --warn-bg: #F6E7D4; --warn-fg: #6B4A1E; --err: #A33A2E;
  --flow-hl: #4C4C4C; --flow-hl-fg: #FCFCFC; --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 10px 30px rgba(60, 40, 20, .10);
  color-scheme: light;
}
/* Atelier découpe laser : univers graphite (fixe, sombre) */
body.theme-laser {
  --bg: #3B3B3B; --surface: #4C4C4C; --surface-2: #555454; --fg: #FCFCFC; --muted: #C9C4C0; --line: #5F5E5D;
  --accent: #D9CFCF; --hero-bg: #4C4C4C; --hero-fg: #FCFCFC; --btn-bg: #FCFCFC; --btn-fg: #3B3B3B;
  --pick-bg: #FCFCFC; --pick-fg: #3B3B3B; --warn-bg: #5A4F44; --warn-fg: #F6E3C9; --err: #F09A8E;
  --flow-hl: #AFA0A0; --flow-hl-fg: #2A2626; --shadow: 0 10px 30px rgba(0,0,0,.30);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-weight: 600; font-size: 1.12rem; }
p { margin: 0; }
a { color: var(--accent); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 0.75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.eyebrow img { border-radius: 50%; }
.lede { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }

/* ---------- Barre du haut ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex: none; }
.brand-coins { display: flex; }
.brand-coins img { width: 32px; height: 32px; border-radius: 50%; }
.brand-coins img + img { margin-left: -10px; }
.brand-name { font: 800 1.05rem/1 var(--f-display); font-stretch: 112%; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 7px 11px; border-radius: 999px; }
.nav a img { width: 18px; height: 18px; border-radius: 50%; }
.nav a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.nav a[aria-current="page"] { background: var(--pick-bg); color: var(--pick-fg); }
@media (max-width: 640px) {
  .brand-name { display: none; }
  .nav { flex-wrap: nowrap; }
  .nav a { padding: 6px 7px; font-size: 0.8rem; gap: 5px; white-space: nowrap; }
  .brand-coins img { width: 28px; height: 28px; }
  .nav a img { display: none; }
}

/* ---------- Accueil : deux ateliers ---------- */
.hero { padding-block: clamp(40px, 7vw, 80px) 0; }
.hero-head { display: grid; gap: 18px; padding-bottom: clamp(28px, 4vw, 44px); }
.hero-head h1 { max-width: 18ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.side { text-decoration: none; display: block; position: relative; transition: filter .2s; }
.side:hover { filter: brightness(1.04); }
.side-3d { background: #C1A88A; color: #2B2620; }
.side-laser { background: #4C4C4C; color: #FCFCFC; clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); margin-left: -6%; }
.side-in { display: flex; gap: 24px; align-items: flex-start; padding-block: clamp(28px, 4vw, 48px); padding-left: max(16px, env(safe-area-inset-left, 0px), calc((100vw - var(--wrap)) / 2 + 16px)); padding-right: clamp(16px, 4vw, 48px); }
.side-laser .side-in { padding-left: calc(6vw + 16px); padding-right: max(16px, env(safe-area-inset-right, 0px), calc((100vw - var(--wrap)) / 2 + 16px)); }
.side-logo { width: clamp(84px, 11vw, 150px); height: auto; flex: none; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.side-text { display: grid; gap: 10px; min-width: 0; }
.side .eyebrow { color: inherit; opacity: .75; }
.side h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.side p { max-width: 40ch; }
.specs { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 0.92rem; }
.specs li:first-child { display: flex; flex-wrap: wrap; gap: 6px; }
.specs li:first-child span { border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; font-size: 0.82rem; font-weight: 500; opacity: .9; }
.cta { margin-top: 6px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.cta span { transition: transform .2s; }
.side:hover .cta span, a:hover > .cta span { transform: translateX(4px); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .side-laser { clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%); margin-left: 0; margin-top: -18px; }
  .side-in, .side-laser .side-in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .side-laser .side-in { padding-top: 44px; }
}
@media (max-width: 460px) { .side-in { flex-direction: column; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 6vw, 80px); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
.section-head > div:not(.chips) { display: grid; gap: 8px; }
.formats { color: var(--muted); font-size: 0.9rem; }
.link-more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; }

/* Bandeau d'en-tête des pages ateliers */
.page-hero { background: var(--hero-bg); color: var(--hero-fg); }
.page-hero-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; padding-block: clamp(32px, 5vw, 56px); }
.page-hero img { width: clamp(88px, 12vw, 140px); height: auto; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.page-hero .eyebrow { color: inherit; opacity: .75; }
.page-hero h1 { margin-top: 10px; }
.page-hero p { margin-top: 12px; max-width: 62ch; opacity: .9; font-size: 1.05rem; }
body.theme-laser .page-hero { border-bottom: 1px solid var(--line); background: #444343; }
@media (max-width: 520px) { .page-hero-in { grid-template-columns: 1fr; } }

/* ---------- Schéma du parcours ---------- */
.flow { --fg-gap: clamp(14px, 3vw, 32px); --lane-c: calc((100% - var(--fg-gap)) / 4); display: grid; gap: 0; justify-items: center; }
.flow-q { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font: 600 1rem/1.3 var(--f-display); font-stretch: 112%; text-align: center; box-shadow: var(--shadow); }
.flow-branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--fg-gap); width: 100%; padding-top: 34px; }
.flow-branches::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 16px; background: var(--muted); transform: translateX(-1px); }
.flow-branches::after { content: ""; position: absolute; top: 16px; left: calc(var(--lane-c) - 1px); right: calc(var(--lane-c) - 1px); height: 2px; background: var(--muted); }
.lane { position: relative; isolation: isolate; display: grid; gap: 10px; align-content: start; min-width: 0; }
.lane::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--muted); transform: translateX(-1px); z-index: -1; }
.lane::before { content: ""; position: absolute; top: -18px; left: 50%; width: 2px; height: 18px; background: var(--muted); transform: translateX(-1px); }
.lane-label { justify-self: center; display: inline-flex; align-items: center; gap: 6px; font: 600 0.78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.step { position: relative; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 12px 50px; min-height: 64px; display: grid; align-content: center; gap: 2px; }
.step::before { counter-increment: none; content: attr(data-n); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 0.8rem/1 var(--f-mono); background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.step strong { font-weight: 600; font-size: 0.96rem; line-height: 1.3; }
.step span { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.lane-steps { display: grid; gap: 10px; }
.lane-hl .lane-label { background: var(--flow-hl); color: var(--flow-hl-fg); border-color: var(--flow-hl); }
.lane-hl .step { border-color: var(--flow-hl); box-shadow: inset 4px 0 0 var(--flow-hl); }
.lane-hl .step::before { background: var(--flow-hl); color: var(--flow-hl-fg); border-color: var(--flow-hl); }
.lane-cta { justify-self: center; margin-top: 4px; }
.flow-join { position: relative; width: 100%; padding-top: 34px; }
.flow-join::before { content: ""; position: absolute; top: 0; left: calc(var(--lane-c) - 1px); right: calc(var(--lane-c) - 1px); height: 18px; border: 2px solid var(--muted); border-top: 0; border-radius: 0 0 10px 10px; }
.flow-join::after { content: ""; position: absolute; top: 18px; left: 50%; width: 2px; height: 16px; background: var(--muted); transform: translateX(-1px); }
.flow-end { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.flow-end .step:not(:last-child) .arrow { position: absolute; right: -19px; top: 50%; transform: translateY(-50%); width: 16px; height: 2px; background: var(--muted); }
.flow-end .step:not(:last-child) .arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow-note { margin-top: 16px; text-align: center; color: var(--muted); font-size: 0.9rem; max-width: 70ch; justify-self: center; }
@media (max-width: 760px) {
  .flow-end { grid-template-columns: 1fr; gap: 12px; }
  .flow-end .step:not(:last-child) .arrow { right: auto; left: 50%; top: auto; bottom: -11px; transform: none; width: 2px; height: 10px; }
  .flow-end .step:not(:last-child) .arrow::after { display: none; }
}
@media (max-width: 520px) {
  .step { padding: 10px 10px 10px 42px; }
  .step::before { left: 9px; width: 24px; height: 24px; }
  .step strong { font-size: 0.88rem; }
  .step span { font-size: 0.8rem; }
  .lane-label { font-size: 0.68rem; padding: 5px 8px; text-align: center; }
}

/* ---------- Devis ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
.quote-main { display: grid; gap: 22px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 0.9rem/1 var(--f-body); color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip.is-on { background: var(--pick-bg); color: var(--pick-fg); border-color: var(--pick-bg); }

.drop { display: grid; place-items: center; gap: 6px; text-align: center; cursor: pointer; min-height: 220px; padding: 24px; border-radius: var(--r); border: 2px dashed color-mix(in srgb, var(--fg) 30%, transparent); background: color-mix(in srgb, var(--surface) 60%, transparent); transition: background .15s, border-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--fg); background: var(--surface); }
.drop-small { min-height: 120px; }
.drop-title { font: 600 1.15rem/1.2 var(--f-display); font-stretch: 112%; }
.drop-sub { color: var(--muted); font-size: 0.92rem; }

.viewer, .preview2d { border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.viewer canvas { display: block; width: 100%; height: 340px; touch-action: none; }
.preview2d-img { height: 300px; display: grid; place-items: center; padding: 16px; background-color: #FCFCFC; background-image: linear-gradient(#e6e3df 1px, transparent 1px), linear-gradient(90deg, #e6e3df 1px, transparent 1px); background-size: 20px 20px; }
.preview2d-img img, .preview2d-img canvas { max-width: 100%; max-height: 100%; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.88rem; background: var(--surface); }
.viewer-bar .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; white-space: nowrap; }

.options { display: grid; gap: 20px; }
.opt { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.opt legend, .opt > label { font-weight: 600; font-size: 0.92rem; padding: 0; margin-bottom: 8px; }
.opt > label { margin-bottom: 0; }
.opt-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.opt-row .opt { flex: 1 1 160px; }
.opt-check { display: flex !important; align-items: center; gap: 10px; flex: 1 1 200px; padding-bottom: 10px; }
.opt-check label { font-weight: 500; }
.hint { color: var(--muted); font-size: 0.88rem; }

select, input[type="number"], input[type="email"], input[type="text"], textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pick-bg); flex: none; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 500 0.95rem/1 var(--f-body); color: var(--fg); cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 11px 16px; }
.seg button[aria-pressed="true"] { background: var(--pick-bg); color: var(--pick-fg); border-color: var(--pick-bg); }
.seg button small { display: block; font: 400 0.75rem/1.3 var(--f-mono); opacity: .75; margin-top: 4px; }

.color-group { display: grid; gap: 8px; margin-bottom: 12px; }
.color-group h4 { margin: 0; font: 500 0.75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 500 0.88rem/1 var(--f-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.swatch[aria-pressed="true"] { border-color: var(--pick-bg); box-shadow: inset 0 0 0 1px var(--pick-bg); }

.howto { font-size: 0.92rem; color: var(--muted); }
.howto summary { cursor: pointer; font-weight: 600; color: var(--fg); }
.howto ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* Ticket de devis */
.ticket { position: sticky; top: 88px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 18px; display: grid; gap: 14px;
  -webkit-mask: radial-gradient(circle 7px at 0 100px, transparent 98%, #000), radial-gradient(circle 7px at 100% 100px, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (max-width: 900px) { .ticket { position: static; } }
.ticket h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.lines { margin: 0; display: grid; gap: 8px; }
.lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.lines > div.sep { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 2px; }
.lines dt { color: var(--muted); }
.lines dd { margin: 0; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px solid var(--fg); padding-top: 12px; }
.total span { font-weight: 600; }
.total strong { font-size: 1.7rem; font-weight: 500; }
.warn { background: var(--warn-bg); color: var(--warn-fg); border-radius: 8px; padding: 10px 12px; font-size: 0.88rem; }
.fine { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: 600 1rem/1 var(--f-body); cursor: pointer; border: 0; border-radius: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 14px 18px; text-decoration: none; }
.ticket .btn, .modal .btn { width: 100%; }
.btn:hover:not(:disabled) { filter: brightness(1.12); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-small { padding: 10px 14px; font-size: 0.92rem; }

.msg { border-radius: 8px; padding: 10px 12px; font-size: 0.92rem; background: var(--surface); color: var(--fg); border-left: 4px solid var(--sand); }
.msg.is-error { border-left-color: var(--err); }

.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stamp { display: grid; justify-items: center; gap: 10px; padding: 18px 10px; cursor: pointer; text-align: center; background: var(--surface); color: var(--fg); border: 2px solid transparent; border-radius: var(--r); font: inherit; }
.stamp[aria-pressed="true"] { border-color: var(--taupe); }
.stamp .disc { border-radius: 50%; border: 2px solid var(--taupe); background: rgba(175,160,160,.15); }
.stamp strong { font-family: var(--f-mono); font-weight: 500; font-size: 1.15rem; }
.stamp span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 460px) { .stamps { gap: 8px; } .stamp { padding: 14px 4px; } }

/* ---------- Portfolio ---------- */
.pf-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.pf-hero h1 { margin-top: 10px; }
.pf-hero .lede { margin-top: 16px; }
.pf-strip { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.pf-strip img { width: 100%; height: 100%; object-fit: cover; }
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
.about img { border-radius: var(--r); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; max-width: 100%; }
.about h3 { margin-bottom: 10px; }
.about p { color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) { .pf-hero { grid-template-columns: 1fr; } .about { grid-template-columns: 1fr; } .about img { max-width: 220px; } }

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pf-card { display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pf-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pf-img { aspect-ratio: 4 / 3; max-width: 100%; background: var(--mist); position: relative; overflow: hidden; }
.pf-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-count { position: absolute; right: 10px; bottom: 10px; font: 500 0.72rem/1 var(--f-mono); background: rgba(30,30,30,.7); color: #FCFCFC; padding: 5px 8px; border-radius: 999px; }
.pf-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.pf-body p { color: var(--muted); font-size: 0.92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { font: 400 0.75rem/1 var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; }
.empty { color: var(--muted); grid-column: 1 / -1; }

.teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.teaser a { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; max-width: 100%; background: var(--mist); }
.teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.teaser a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Visionneuse */
.lightbox { border: 0; padding: 0; width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--fg); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(20, 20, 20, .75); }
.lb-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.lb-media { background: #1E1E1E; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 320px; }
.lb-main { display: grid; place-items: center; max-height: 72dvh; }
.lb-main img { max-height: 72dvh; width: auto; max-width: 100%; object-fit: contain; }
.lb-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.lb-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; width: 64px; height: 48px; flex: none; cursor: pointer; background: none; }
.lb-thumbs button[aria-pressed="true"] { border-color: var(--sand); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-text { padding: 22px; display: grid; gap: 12px; align-content: start; overflow: auto; max-height: calc(100dvh - 24px); }
.lb-text p { color: var(--muted); }
.lb-close { justify-self: end; }
@media (max-width: 760px) { .lb-in { grid-template-columns: 1fr; } .lb-text { max-height: none; } }

/* ---------- Mentions légales ---------- */
.legal h3 { font-size: 1rem; margin: 22px 0 6px; }
.legal p { color: var(--muted); max-width: 70ch; }

.footer { border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-block: 22px; font-size: 0.88rem; color: var(--muted); }
.footer-in span:first-child { font: 800 1rem/1.4 var(--f-display); font-stretch: 112%; color: var(--fg); }
.footer-in nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-in a { color: var(--muted); }

/* ---------- Fenêtre de demande ---------- */
.modal { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--fg); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(30, 28, 26, .55); backdrop-filter: blur(3px); }
.modal form, .sent { display: grid; gap: 16px; padding: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2, .sent h2 { font-size: 1.35rem; }
.icon-btn { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.summary { background: var(--surface-2); border-radius: 8px; padding: 12px 14px; font: 400 0.85rem/1.55 var(--f-mono); white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow: auto; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input[type="file"] { font: inherit; font-size: 0.9rem; color: var(--muted); }
.opt-label { font-weight: 400; color: var(--muted); }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.field-check input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }
.sent p { color: var(--muted); }
.sent textarea { font: 400 0.82rem/1.5 var(--f-mono); resize: vertical; }
