/* Portfolio Ombeline Bolloré — feuille de style */
:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --sheet: #f6f3ee;
  --ink: #15140f;
  --ink-2: #2a2821;
  --graphite: #615e54;
  --rule: #d3ccbc;
  --accent: #e4481c;
  --accent-ink: #b53410;
  --brass: #b08d3c;
  --serif: "Fraunces", "Bodoni MT", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* trame de papier millimétré, très discrète */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(21, 20, 15, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 20, 15, .035) 1px, transparent 1px);
  background-size: 32px 32px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--graphite); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; margin: 0; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 em, h2 em, h3 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent); }
p { margin: 0 0 1em; }

/* ───── En-tête ───── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-photo { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px transparent; transition: box-shadow .3s; }
.brand:hover .brand-photo { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--accent); }
.brand-name { font-family: var(--serif); font-size: 1.18rem; letter-spacing: -.01em; }
.brand-name i { color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a { text-decoration: none; font-size: .95rem; line-height: 1.3; position: relative; padding: 8px 0; display: inline-flex; align-items: center; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.cta { border: 1px solid var(--ink); height: 40px; padding: 0 22px; margin-left: 4px; border-radius: 999px; justify-content: center; line-height: 1; white-space: nowrap; transition: background .25s, color .25s; }
.nav a.cta::after { display: none; }
.nav a.cta:hover, .nav a.cta[aria-current="page"] { background: var(--ink); color: var(--paper); }
.burger { display: none; background: none; border: 1px solid var(--ink); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ───── Boutons ───── */
.arr { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 28px; line-height: 1; white-space: nowrap;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); transition: background .25s, color .25s, border-color .25s;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:hover .arr { transform: translateX(4px); }
/* Centrage optique : la boîte du libellé est rognée à la hauteur des capitales,
   et l'interlettrage qui suit la dernière lettre est annulé. */
.btn > span, .filter > span, .nav a.cta > span, .social a > span, .lightbox button > span { text-box: trim-both cap alphabetic; }
.btn > span, .filter > span:first-child, .lightbox button > span { margin-right: -.08em; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ───── Hero accueil ───── */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--graphite); margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(3.3rem, 9.4vw, 8.6rem); line-height: .9; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero-lead { max-width: 33em; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-2); margin: 30px 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.about .hero-actions { margin-top: 38px; }
.hero-figure { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: end; }
.hero-figure svg { width: 100%; height: 100%; overflow: visible; }
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 2.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
.fade-in { opacity: 0; animation: fade .9s ease forwards; animation-delay: var(--d, 1.4s); }
.spin { transform-origin: 300px 300px; animation: spin 60s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.stat { padding: 26px var(--gutter); border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; }
.stat span { color: var(--graphite); }

/* ───── Sections ───── */
.section { padding: clamp(60px, 9vw, 130px) 0; }
.section.tight { padding: clamp(40px, 6vw, 80px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: clamp(30px, 4vw, 56px); padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.section-head h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
.section-head .mono { color: var(--graphite); }
.link-arrow { font-family: var(--mono); font-size: .74rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; justify-self: start; border-bottom: 1px solid var(--ink); padding: 0 0 9px; margin-bottom: clamp(4px, .8vw, 12px); }
.link-arrow .arr { transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover .arr { transform: translateX(4px); }
.dark .link-arrow { border-color: var(--paper); }

/* ───── Cartes projets ───── */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.card { grid-column: span 4; text-decoration: none; display: flex; flex-direction: column; position: relative; }
.card.wide { grid-column: span 6; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--sheet); border: 1px solid var(--rule); overflow: hidden; }
.card.wide .card-media { aspect-ratio: 16 / 10; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .9s var(--ease); }
.card-media img.cover { object-fit: cover; padding: 0; }
.card:hover .card-media img { transform: scale(1.045); }
/* repères de coupe aux quatre coins */
.card-media::before, .card-media::after, .marks::before, .marks::after {
  content: ""; position: absolute; width: 12px; height: 12px; z-index: 2; pointer-events: none;
  border: 0 solid var(--ink); transition: border-color .3s, width .3s var(--ease), height .3s var(--ease);
}
.card-media::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.card-media::after { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.card:hover .card-media::before, .card:hover .card-media::after { border-color: var(--accent); width: 22px; height: 22px; }
.card-num { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; align-items: center; height: 24px; padding: 0 calc(10px - .08em) 0 10px; line-height: 1; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; }
.card-body { padding: 16px 2px 0; display: grid; gap: 6px; }
.card-cat { color: var(--accent-ink); }
.card h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; transition: color .25s; }
.card:hover h3 { color: var(--accent-ink); }
.card p { color: var(--graphite); font-size: .95rem; margin: 2px 0 0; }
.card[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 20px; line-height: 1; white-space: nowrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: transparent; border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter .n { font-size: .64rem; letter-spacing: 0; opacity: .55; }

/* ───── Bandeau sombre (démarche) ───── */
.dark { background: var(--ink); color: var(--paper); position: relative; }
.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(244, 240, 232, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(244, 240, 232, .05) 1px, transparent 1px); background-size: 32px 32px; }
.dark .wrap { position: relative; }
.dark .section-head { border-color: rgba(244, 240, 232, .35); }
.dark .muted, .dark .section-head .mono { color: #a9a493; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 28px 26px 30px 0; border-top: 1px solid rgba(244, 240, 232, .25); position: relative; counter-increment: step; }
.step + .step { padding-left: 26px; border-left: 1px solid rgba(244, 240, 232, .14); }
.step::before { content: "0" counter(step); font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 1.6rem; margin: 14px 0 10px; }
.step p { color: #c9c4b4; font-size: .96rem; margin: 0; }

/* ───── Titre de page ───── */
.page-head { padding: clamp(46px, 7vw, 96px) 0 clamp(30px, 4vw, 54px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.8rem, 7.6vw, 6.6rem); letter-spacing: -.04em; max-width: 14ch; }
.page-head .lead { max-width: 40em; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); margin: 26px 0 0; }
.crumbs { display: flex; gap: 10px; color: var(--graphite); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ───── Page projet ───── */
.project-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: end; }
.project-hero h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); max-width: none; }
.project-cover { position: relative; background: var(--sheet); border: 1px solid var(--rule); aspect-ratio: 4 / 3; }
.project-cover img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.project-cover img.cover { object-fit: cover; padding: 0; }
.marks::before { top: -7px; left: -7px; border-top-width: 1.5px; border-left-width: 1.5px; border-color: var(--accent); }
.marks::after { bottom: -7px; right: -7px; border-bottom-width: 1.5px; border-right-width: 1.5px; border-color: var(--accent); }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); margin-top: clamp(30px, 4vw, 50px); }
.spec div { padding: 16px 18px; border-right: 1px solid var(--ink); }
.spec div:last-child { border-right: 0; }
.spec dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); margin-bottom: 6px; }
.spec dd { margin: 0; font-size: .98rem; line-height: 1.4; }
.spec { margin-bottom: 0; }

.prose-grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(20px, 4vw, 70px); padding: clamp(34px, 5vw, 64px) 0; border-bottom: 1px solid var(--rule); }
.prose-grid > .mono { color: var(--accent-ink); padding-top: 8px; position: sticky; top: 92px; align-self: start; }
.prose { max-width: 44em; font-size: 1.08rem; }
.prose .big { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.22; letter-spacing: -.015em; margin-bottom: .7em; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.prose li { padding-left: 34px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 20px; height: 1.5px; background: var(--accent); }
.prose ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0; }
.prose ol li { counter-increment: s; padding: 18px 0 18px 58px; border-top: 1px solid var(--rule); }
.prose ol li:last-child { border-bottom: 1px solid var(--rule); }
.prose ol li::before { content: "0" counter(s); background: none; width: auto; height: auto; top: 20px; font-family: var(--mono); font-size: .74rem; color: var(--accent-ink); letter-spacing: .08em; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(14px, 2vw, 26px); }
.shot { margin: 0; background: var(--sheet); border: 1px solid var(--rule); }
.shot button { all: unset; display: block; width: 100%; cursor: zoom-in; aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.shot img.cover { object-fit: cover; padding: 0; }
.shot figcaption { display: flex; align-items: center; min-height: 38px; padding: 8px 14px; line-height: 1.35; border-top: 1px solid var(--rule); color: var(--graphite); }

.planches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.planche { margin: 0; position: relative; border: 1px solid var(--ink); background: var(--sheet); box-shadow: 6px 6px 0 var(--paper-2); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.planche:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--accent); }
.planche button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.planche img { width: 100%; aspect-ratio: 16 / 9; }
.planche figcaption { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 0 14px; line-height: 1; border-top: 1px solid var(--ink); }
.planche figcaption span { display: inline-flex; align-items: center; gap: 8px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pager a { padding: clamp(24px, 4vw, 48px) var(--gutter); text-decoration: none; display: grid; gap: 8px; transition: background .3s, color .3s; }
.pager a + a { border-left: 1px solid var(--ink); text-align: right; justify-items: end; }
.pager a:hover { background: var(--ink); color: var(--paper); }
.pager a:hover .mono { color: var(--accent); }
.pager .mono { color: var(--graphite); display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.pager strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.1; }

/* ───── Idées ───── */
.idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(44px, 7vw, 96px) 0; border-bottom: 1px solid var(--rule); }
.idea:nth-of-type(even) .idea-media { order: 2; }
.idea-media { position: relative; background: var(--sheet); border: 1px solid var(--rule); aspect-ratio: 5 / 4; }
.idea-media img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.idea-media img.cover { object-fit: cover; padding: 0; }
.idea-num { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 6vw, 5rem); color: var(--accent); line-height: 1; font-variation-settings: "SOFT" 100, "WONK" 1; }
.idea h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); margin: 10px 0 18px; }
.idea .prose { font-size: 1rem; }
.idea h3 { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); margin: 22px 0 12px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.duo > div { border: 1px solid var(--ink); padding: 18px; }
.duo .tag { display: inline-flex; align-items: center; height: 24px; padding: 0 calc(10px - .08em) 0 10px; line-height: 1; background: var(--accent); color: #fff; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; margin-bottom: 12px; }
.duo h4 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 0 0 10px; line-height: 1.15; }
.duo ul { gap: 8px; font-size: .92rem; }
.duo li { padding-left: 20px; }
.duo li::before { width: 10px; }
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.mini { border: 1px solid var(--rule); background: var(--sheet); display: flex; flex-direction: column; }
.mini .m { aspect-ratio: 4 / 3; }
.mini img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.mini div:last-child { padding: 14px 16px 18px; border-top: 1px solid var(--rule); }
.mini h3 { font-size: 1.25rem; line-height: 1.15; margin-bottom: 6px; }
.mini p { font-size: .9rem; color: var(--graphite); margin: 0; }

/* ───── À propos ───── */
.about { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.portrait { position: relative; background: var(--sheet); border: 1px solid var(--ink); }
.portrait img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 60% 30%; filter: grayscale(1) contrast(1.05); }
.portrait figcaption { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--ink); }
figure { margin: 0; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.skill { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 24px 22px 28px; }
.skill h3 { font-size: 1.5rem; margin: 12px 0 12px; }
.skill ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; color: var(--ink-2); font-size: .95rem; }
.skill li::before { content: "＋ "; color: var(--accent); font-family: var(--mono); }
.quote { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -.02em; max-width: 22em; }
.quote em { color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ───── Contact ───── */
.contact-list { border-top: 1px solid var(--ink); }
.contact-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: clamp(22px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--ink); text-decoration: none; transition: padding .4s var(--ease), color .25s; }
.contact-row:hover { padding-left: 18px; color: var(--accent-ink); }
.contact-row .mono { color: var(--graphite); }
.contact-row strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 4vw, 3.2rem); letter-spacing: -.025em; line-height: 1.05; overflow-wrap: anywhere; }
.contact-row .arr { width: clamp(22px, 2.8vw, 36px); height: clamp(22px, 2.8vw, 36px); stroke-width: 1; transition: transform .4s var(--ease); }
.contact-row:hover .arr { transform: translate(6px, -6px); }

.cta-band { text-align: center; padding: clamp(70px, 11vw, 150px) 0; }
.cta-band h2 { font-size: clamp(2.6rem, 8vw, 7rem); letter-spacing: -.04em; margin-bottom: clamp(32px, 4vw, 48px); }

/* ───── Pied de page : cartouche de plan ───── */
.footer { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 80px) 0 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 30px; margin-bottom: clamp(34px, 5vw, 60px); }
.footer-top h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 12ch; }
.footer h3 { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #a9a493; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.social a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 20px 0 17px; line-height: 1; white-space: nowrap; border: 1px solid rgba(244, 240, 232, .4); border-radius: 999px; font-size: .9rem; transition: background .25s, color .25s, border-color .25s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.cartouche { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr .8fr; border: 1px solid rgba(244, 240, 232, .55); }
.cartouche div { padding: 10px 14px 12px; border-right: 1px solid rgba(244, 240, 232, .55); min-width: 0; }
.cartouche div:last-child { border-right: 0; }
.cartouche dt { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: #a9a493; }
.cartouche dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legal { margin-top: 18px; color: #8d8878; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ───── Visionneuse ───── */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(21, 20, 15, .9); }
.lightbox img { max-width: 96vw; max-height: 86vh; background: var(--sheet); }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; color: var(--paper); padding: 12px 0 0; gap: 12px; }
.lightbox .bar > div { display: flex; gap: 8px; }
.lightbox [data-cap] { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; line-height: 1; white-space: nowrap; background: none; border: 1px solid rgba(244, 240, 232, .5); color: var(--paper); border-radius: 999px; cursor: pointer; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, border-color .2s; }
.lightbox button:hover { background: var(--accent); border-color: var(--accent); }

/* ───── Apparition au défilement ───── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ───── Adaptatif ───── */
@media (max-width: 1000px) {
  .card, .card.wide { grid-column: span 6; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .minis { grid-template-columns: 1fr 1fr; }
  .skills { grid-template-columns: 1fr; }
  .cartouche { grid-template-columns: 1fr 1fr; }
  .cartouche div { border-bottom: 1px solid rgba(244, 240, 232, .55); }
  .cartouche div:nth-child(2n) { border-right: 0; }
  .cartouche div:last-child { border-bottom: 0; grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; transform: translateY(-120%); transition: transform .45s var(--ease); z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.6rem; }
  .nav a::after { display: none; }
  .nav a.cta { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; height: auto; margin: 0; padding: 16px 0; justify-content: flex-start; line-height: 1.3; color: var(--accent-ink); }
  .nav a.cta > span { text-box: normal; }
  .nav a.cta:hover, .nav a.cta[aria-current="page"] { background: none; color: var(--accent-ink); }
  .hero-grid, .project-hero, .about, .idea { grid-template-columns: 1fr; }
  .hero-figure { justify-self: center; max-width: 380px; order: -1; margin-bottom: -10px; }
  .idea:nth-of-type(even) .idea-media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .section-head { grid-template-columns: 1fr; }
  .prose-grid { grid-template-columns: 1fr; gap: 14px; }
  .prose-grid > .mono { position: static; }
  .spec { grid-template-columns: 1fr; }
  .spec div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .spec div:last-child { border-bottom: 0; }
  .planches { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr auto; }
  .contact-row .mono { grid-column: 1 / -1; }
  .about .portrait { max-width: 340px; }
}
@media (max-width: 560px) {
  .card, .card.wide { grid-column: 1 / -1; }
  .steps, .duo, .pager { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-band .btn { flex: 1 1 100%; width: 100%; }
  .pager a + a { justify-items: start; }
  .lightbox button > span { display: none; }
  .lightbox button { width: 38px; padding: 0; }
  .step + .step { padding-left: 0; border-left: 0; }
  .pager a + a { border-left: 0; border-top: 1px solid var(--ink); text-align: left; }
  .minis { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw { stroke-dashoffset: 0; }
  .fade-in { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
