:root {
  --font-title: 'Belanosima', 'Arial Narrow', sans-serif;
  --font-subtitle: 'Neuton', Georgia, serif;
  --font-body: 'Telex', Arial, sans-serif;
  --ink: #203a31;
  --ink-deep: #152a24;
  --paper: #eadfca;
  --paper-light: #f3ead7;
  --oxide: #9a4938;
  --oxide-dark: #75372c;
  --steel: #747b77;
  --line: rgba(32, 58, 49, .34);
  --shadow: 0 14px 40px rgba(32, 36, 29, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-deep);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
button, a { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--paper-light); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(234, 223, 202, .38), rgba(234, 223, 202, .38)), url('assets/header-paper.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 112px; display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; align-items: center;
  gap: clamp(1rem, 2vw, 3rem); padding: 1.2rem clamp(1.2rem, 4vw, 4.5rem); border-bottom: 1px solid var(--ink); position: relative; z-index: 20;
}
.wordmark { display: block; width: 420px; max-width: 100%; min-width: 0; text-decoration: none; }
.wordmark img { width: 100%; height: auto; }
.wordmark:focus-visible { outline: 2px solid var(--oxide); outline-offset: 4px; }
#navigation { display: flex; gap: 2.4rem; text-transform: uppercase; font: 700 .79rem/1 var(--font-body); letter-spacing: .18em; }
#navigation a { text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent; }
#navigation a:hover, #navigation a:focus-visible { border-color: var(--oxide); }
.header-instagram { padding-left: 1rem; border-left: 1px solid var(--line); font: .7rem/1.6 var(--font-body); text-decoration: none; }
.header-instagram span { display: block; color: var(--oxide); font-family: var(--font-subtitle); font-size: 1rem; }
.header-instagram strong { font-weight: 400; }
.header-instagram:hover strong { text-decoration: underline; }
.menu-toggle { display: none; border: 1px solid var(--ink); background: transparent; padding: .55rem .75rem; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }

.hero { min-height: 680px; position: relative; display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; border-bottom: 1px solid var(--ink); }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), rgba(32,58,49,.08) calc(8.333% - 1px), rgba(32,58,49,.08) 8.333%); pointer-events: none; }
.hero-copy { padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 7vw, 8rem); align-self: center; position: relative; z-index: 1; }
.eyebrow, .section-number, .article-meta, .card-index { margin: 0 0 1.3rem; color: var(--oxide); font: 700 1rem/1.4 var(--font-subtitle); letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, h4 { margin-top: 0; font-family: var(--font-title); font-weight: 600; }
h1 { max-width: 780px; margin-bottom: 1.7rem; font-family: var(--font-title); font-size: clamp(3.7rem, 7.4vw, 8.2rem); line-height: 1; letter-spacing: -.025em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2em, 4vw, 3em); line-height: 1.1; }
.lede { max-width: 660px; font-family: var(--font-subtitle); font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.45; }
.button { display: inline-block; margin-top: 1.7rem; padding: .9rem 1.2rem; background: var(--ink); color: var(--paper-light); text-decoration: none; text-transform: uppercase; font: 700 .77rem var(--font-body); letter-spacing: .14em; box-shadow: 5px 5px 0 var(--oxide); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--oxide); }
.hero-mark { background: var(--ink); position: relative; min-width: 0; overflow: hidden; }
.hero-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-index { position: absolute; left: 1.1rem; bottom: 1.2rem; display: flex; gap: .7rem; align-items: center; writing-mode: vertical-rl; transform: rotate(180deg); font: .62rem var(--font-body); letter-spacing: .2em; }
.hero-index span:first-child { color: var(--oxide); font-size: 1.25rem; }

.band { background: var(--oxide); color: var(--paper-light); display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1rem clamp(1.2rem,4vw,4.5rem); text-transform: uppercase; }
.band p { margin: 0; font-family: var(--font-title); font-size: clamp(1.1rem, 2vw, 1.8rem); letter-spacing: .05em; }
.band span { font: .68rem var(--font-body); letter-spacing: .17em; text-align: right; }

.section { padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 5vw, 5.5rem); border-bottom: 1px solid var(--ink); }
.section-heading { display: grid; grid-template-columns: 1.7fr 1fr; align-items: end; gap: .8rem 3rem; margin-bottom: 3rem; }
.section-heading > .section-number { grid-column: 1 / -1; margin: 0; }
.section-heading h2, .about h2 { margin-bottom: 0; font-family: var(--font-title); font-size: clamp(2.8rem, 5vw, 5.8rem); line-height: 1.05; text-transform: uppercase; }
.section-heading > p:last-child { margin: 0; max-width: 520px; }
.project-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.project-card { min-height: 420px; background: var(--paper-light); padding: clamp(1.4rem, 3vw, 3rem); display: flex; flex-direction: column; position: relative; }
.project-card.featured { background: var(--ink); color: var(--paper-light); }
.machine-plate { border: 2px solid var(--paper); outline: 1px solid rgba(234,223,202,.5); outline-offset: 7px; padding: 1.2rem; text-align: center; margin: 1rem .5rem 3rem; font-family: var(--font-body); box-shadow: inset 0 0 0 4px var(--ink); }
.machine-plate span, .machine-plate small { display: block; font-size: .62rem; letter-spacing: .3em; }
.machine-plate strong { display: block; font: 700 clamp(2.4rem,5vw,5rem) var(--font-title); letter-spacing: .08em; }
.card-copy { margin-top: auto; }
.project-card h3, .article-main h3, .article-list h3 { font-size: clamp(1.35rem,2vw,2rem); line-height: 1.12; }
.status { font: .68rem var(--font-body); text-transform: uppercase; letter-spacing: .15em; }
.status span { display: inline-block; width: 8px; height: 8px; background: var(--oxide); border-radius: 50%; margin-right: .45rem; }
.card-copy a { color: var(--paper-light); text-transform: uppercase; font: 700 .7rem var(--font-body); letter-spacing: .15em; }
.tag { align-self: flex-start; margin-top: auto; border: 1px solid var(--ink); padding: .35rem .55rem; font: .65rem var(--font-body); text-transform: uppercase; letter-spacing: .12em; }
.line-drawing { height: 155px; margin: 1rem 0 2rem; position: relative; border-bottom: 1px solid var(--ink); }
.pulley::before, .pulley::after { content:''; position:absolute; top: 15px; border: 3px double var(--ink); border-radius:50%; width:84px; height:84px; }
.pulley::before { left:8%; } .pulley::after { right:8%; width:64px; height:64px; top:25px; }
.pulley span { position:absolute; height:2px; background:var(--oxide); left:22%; right:19%; top:56px; transform:rotate(-7deg); }
.wood::before { content:''; position:absolute; left:10%; right:10%; top:30px; height:55px; border:2px solid var(--ink); transform:skewX(-18deg); background:repeating-linear-gradient(0deg, transparent 0 10px, rgba(32,58,49,.15) 11px); }
.wood span { position:absolute; left:30%; width:35%; height:18px; bottom:14px; background:var(--oxide); }

.journal { background: var(--paper-light); }
.section-heading.compact { grid-template-columns: 1fr; }
.journal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.journal-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.journal-card .content-cover { margin: 0; border-bottom: 1px solid var(--line); }
.journal-card .content-cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.journal-card-copy { display: flex; flex-direction: column; flex: 1; padding: clamp(1.4rem, 3vw, 2.5rem); }
.journal-card h3 { margin-bottom: 1rem; font-size: clamp(1.65rem, 2.4vw, 2.4rem); line-height: 1.2; }
.journal-card h3 a { text-decoration: none; }
.journal-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.journal-card .article-meta { margin-bottom: 1rem; line-height: 1.7; letter-spacing: .12em; }
.journal-excerpt { max-width: 55ch; margin: 0 0 1.2rem; line-height: 1.75; }
.journal-card .byline { margin: auto 0 0; padding-top: .6rem; }
.journal-card .button { align-self: flex-start; line-height: 1.5; }
.journal-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; border-top: 1px solid var(--ink); }
.article-main { min-height: 430px; padding: 3rem 4rem 3rem 0; border-right: 1px solid var(--ink); display:flex; flex-direction:column; justify-content:center; }
.article-main h3 { font-size: clamp(2.2rem, 4vw, 4.6rem); }
.article-main > p:not(.article-meta) { max-width: 700px; }
.article-list article { padding: 1.5rem 0 1.5rem 3rem; border-bottom: 1px solid var(--line); }
.article-list time { color: var(--oxide); font: .68rem var(--font-body); text-transform:uppercase; letter-spacing:.15em; }
.article-list h3 { margin: .5rem 0; }
.article-list p { margin: 0 0 .7rem; }
.text-link { padding:0; border:0; border-bottom:1px solid currentColor; background:transparent; color:var(--ink); cursor:pointer; font:700 .7rem var(--font-body); text-transform:uppercase; letter-spacing:.13em; }

.about { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem,8vw,9rem); background: var(--ink); color: var(--paper-light); }
.portrait-placeholder { min-width: 0; align-self: center; border: 1px solid rgba(234,223,202,.45); background: var(--paper-light); }
.portrait-placeholder img { width: 100%; height: auto; }
.about-copy { align-self:center; max-width:760px; }
.about .section-number { color: #d77a62; }
.about .intro { font-family: var(--font-subtitle); font-size:clamp(1.4rem,2.2vw,2rem); line-height:1.35; }
.facts { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(234,223,202,.35); margin-top:2.8rem; }
.facts div { background:var(--ink); padding:1rem; }
.facts dt { color:#d77a62; font:.62rem var(--font-body); text-transform:uppercase; letter-spacing:.15em; }
.facts dd { margin:.2rem 0 0; }

.site-footer { background: var(--oxide); color: var(--paper-light); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem clamp(1.2rem,4vw,4.5rem); }
.footer-brand { display: flex; align-items: flex-start; gap: 1.2rem; }
.footer-brand > a { flex: 0 0 72px; }
.footer-brand img { width: 72px; height: auto; }
.footer-brand p { margin: 0; font-size: .9rem; }
.footer-brand strong { display: inline-block; font: 600 1.25rem/1.2 var(--font-title); margin-bottom: .7rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; min-width: 0; font-size: .9rem; }
.footer-links h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.footer-links a { text-underline-offset: .2em; overflow-wrap: anywhere; }
.footer-bottom { background: var(--ink-deep); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding: 1.2rem clamp(1.2rem,4vw,4.5rem); font-size: .78rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; }

dialog { width:min(720px,calc(100% - 2rem)); max-height:85vh; overflow:auto; padding:clamp(2rem,5vw,4rem); color:var(--ink-deep); background:var(--paper-light); border:2px solid var(--ink); box-shadow:var(--shadow); }
dialog::backdrop { background:rgba(21,42,36,.8); backdrop-filter:blur(3px); }
dialog h2 { font:700 clamp(2rem,5vw,4rem)/1.1 var(--font-title); text-transform:uppercase; }
.dialog-close { position:absolute; top:1rem; right:1rem; width:42px; height:42px; border:1px solid var(--ink); background:transparent; color:var(--ink); font-size:1.8rem; line-height:1; cursor:pointer; }

@media (max-width: 900px) {
  .site-header { grid-template-columns:minmax(0,1fr) auto; min-height:92px; gap:1rem; }
  .header-instagram { grid-column: 1 / -1; padding: .4rem 0 0; border-left: 0; border-top: 1px solid var(--line); text-align: center; }
  .header-instagram span { display: inline; margin-right: .6rem; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .menu-ready .menu-toggle { display:block; }
  .menu-ready #navigation { display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; gap:0; padding:1rem 1.2rem; background:var(--paper-light); border-bottom:1px solid var(--ink); }
  .menu-ready #navigation.open { display:flex; }
  #navigation a { padding:1rem 0; border-bottom:1px solid var(--line); }
  html:not(.menu-ready) #navigation { grid-column:1/-1; flex-wrap:wrap; gap:1rem; }
  .hero { grid-template-columns:1fr; }
  .hero-copy { padding-top:5rem; padding-bottom:5rem; }
  .hero-mark { aspect-ratio: 3 / 2; }
  .band { align-items:flex-start; flex-direction:column; gap:.2rem; }
  .band span { text-align:left; }
  .section-heading, .section-heading.compact { grid-template-columns:1fr; gap:.8rem; }
  .project-grid { grid-template-columns:1fr; }
  .project-card { min-height:380px; }
  .journal-layout { grid-template-columns:1fr; }
  .journal-cards { grid-template-columns: 1fr; }
  .article-main { border-right:0; border-bottom:1px solid var(--ink); padding:2.5rem 0; }
  .article-list article { padding-left:0; }
  .about { grid-template-columns:1fr; }
}

@media (max-width: 560px) {
  body { font-size:16px; }
  h1 { font-size:3.35rem; }
  .hero-copy { padding-left:1.4rem; padding-right:1.4rem; }
  .hero-index { display:none; }
  .facts { grid-template-columns:1fr; }
  .footer-main { grid-template-columns: 1fr; }
}

.notebook-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.project-card, .hero-copy, .article-main, .article-list { min-width: 0; }
h1, h2, h3, .reading-page, .project-card { overflow-wrap: anywhere; }
.project-card h3 a, .article-main h3 a, .article-list h3 a { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.entry-count { margin-top: auto; font-style: italic; }
.project-card > .button { align-self: flex-start; margin-top: .5rem; line-height: 1.5; }
.project-card.featured > .button { background: var(--paper-light); color: var(--ink); }
.content-cover { margin: 1.5rem 0 2rem; }
.content-cover img { width: 100%; max-height: 520px; object-fit: contain; }
.project-card .content-cover img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.content-cover figcaption { font-size: .85rem; margin-top: .7rem; }
.reading-page { max-width: 1000px; margin-inline: auto; min-height: 60vh; }
.reading-page h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1; }
.reading-page h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; margin-top: 2.5rem; }
.reading-page h3 { font-size: 1.45rem; line-height: 1.25; }
.byline, .breadcrumb { font-size: .9rem; }
.breadcrumb { margin: 0 0 1rem; }
.prose-text { white-space: pre-line; }
.article-body { font-size: 1.1rem; }
.article-body blockquote { margin-inline: 0; border-left: 3px solid var(--oxide); padding-left: 1.4rem; font-style: italic; }
.article-body pre { overflow-x: auto; padding: 1rem; background: var(--paper-light); }
.notebook-entries { padding-left: 1.5rem; }
.notebook-entries li { padding: 1.5rem 0 1rem .5rem; border-bottom: 1px solid var(--line); }
.reading-navigation { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.reading-navigation a { flex: 1 1 240px; }
.article-navigation { gap: 1.5rem; }
.article-navigation .button { margin-top: 0; padding: 1.2rem 1.4rem; min-width: 0; }
.article-navigation strong { display: block; margin-top: .6rem; font: 400 1.3rem/1.35 var(--font-subtitle); text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
.article-next { text-align: right; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.information-page h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.contact-form { margin-top: 2rem; }
.comments { margin-top: 4rem; border-top: 4px double var(--oxide); padding-top: 2rem; }
.comments > h2 { margin-top: 0; }
.comment-list { list-style: none; padding: 0; display: grid; gap: 1.4rem; margin: 2rem 0; }
.comment-list > li { border: 1px solid var(--line); border-left: 4px solid var(--ink); padding: clamp(1rem, 3vw, 1.8rem); background: var(--paper-light) url('assets/paper-grain.svg'); box-shadow: 4px 4px 0 rgba(32,58,49,.07); min-width: 0; }
.comment-list .comment-byline { margin-top: 0; padding-bottom: .8rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.comment-list .comment-text { margin-bottom: 0; }
.comment-byline { font-size: .9rem; }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { max-width: 720px; }
.form-field { margin: 1.5rem 0; }
.form-field label { display: block; margin-bottom: .5rem; font: 700 1.2rem var(--font-subtitle); }
.form-field input, .form-field textarea { display: block; width: 100%; padding: .85rem 1rem; border: 1px solid var(--ink); border-radius: 0; background: var(--paper-light); color: var(--ink-deep); font: inherit; }
.form-field textarea { resize: vertical; min-height: 12rem; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; }
.form-field [aria-invalid="true"] { border: 2px solid var(--oxide); }
.form-help, .field-error { font-size: .85rem; line-height: 1.6; }
.field-error { color: var(--oxide-dark); }
.form-notice, .form-errors { padding: 1rem 1.3rem; border: 2px solid var(--ink); background: var(--paper-light); margin: 1.5rem 0; }
.form-errors { border-color: var(--oxide); }
.form-errors p { margin-top: 0; }
.form-errors ul { margin-bottom: 0; padding-left: 1.2rem; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-form .button { border: 0; cursor: pointer; line-height: 1.5; }
/* Patine statique des fonds papier : le contenu reste au-dessus de la texture. */
body, .journal, .journal-card, .project-card:not(.featured), dialog {
  background-image:
    url('assets/paper-grain.svg'),
    radial-gradient(ellipse at 0% 15%, rgba(154, 73, 56, .035), transparent 65%),
    radial-gradient(ellipse at 90% 85%, rgba(117, 91, 47, .04), transparent 60%);
  background-size: 180px 180px, 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
}
@media print {
  .site-header { background-image: none; }
  body, .journal, .journal-card, .project-card:not(.featured), dialog { background-image: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } * { transition:none !important; } }
