/* Diederickx J-F. SA — feuille de style du site (2026) */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
}

:root {
  --paper: #f6f1e7;
  --paper-deep: #ebe2d0;
  --card: #fbf8f2;
  --ink: #221c16;
  --ink-soft: #5d5247;
  --wood: #9b6a3c;
  --wood-deep: #6f4a27;
  --bark: #2b221a;
  --red: #c4261d;
  --red-deep: #a01c15;
  --line: rgba(34, 28, 22, 0.14);
  --line-light: rgba(246, 241, 231, 0.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--wood); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--wood); color: var(--paper); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-variation-settings: "opsz" 96; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; font-variation-settings: "opsz" 36; }
h1 em, h2 em { font-style: italic; color: var(--wood-deep); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--deep { background: var(--paper-deep); }
.section--bark { background: var(--bark); color: var(--paper); }
.section--bark h2 em { color: #d9a871; }
.section--bark a:hover { color: #f0b9a0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--wood-deep); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section--bark .eyebrow { color: #d9a871; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.section--bark .lead { color: rgba(246, 241, 231, 0.78); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--bark .btn--ghost { border-color: var(--paper); color: var(--paper); }
.section--bark .btn--ghost:hover { background: var(--paper); color: var(--bark); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--wood); padding-bottom: 3px; }
.link-arrow:hover { border-color: var(--red); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand { gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-bars { width: 38px; height: 35px; fill: var(--red); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.625rem; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }
.brand-sub { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.975rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-color: var(--wood); }
.nav a[aria-current="page"] { border-color: var(--red); }
.nav .btn { padding: 11px 18px; border-bottom: 1px solid transparent; color: #fff; }
.nav .btn:hover { color: #fff; border-color: transparent; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav .btn { margin-top: 18px; justify-content: center; padding: 14px 18px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Héros */
.hero { padding-block: clamp(56px, 8vw, 112px) clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.75rem); }
.hero .lead { margin-top: 28px; }
.hero-mark { position: relative; aspect-ratio: 4 / 5; background: var(--bark); color: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 3vw, 36px); }
.hero-mark .bars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-mark .year { position: relative; font-family: var(--serif); font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.9; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.hero-mark .caption { position: relative; margin-top: 14px; font-size: 0.9375rem; color: rgba(246, 241, 231, 0.75); max-width: 24ch; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { aspect-ratio: 16 / 9; }
}
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); max-width: 16ch; }
.page-hero .lead { margin-top: 26px; }

/* Repères chiffrés */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; color: var(--wood-deep); }
.fact span { display: block; margin-top: 12px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-soft); max-width: 22ch; }
@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* En-tête de section */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { max-width: 16ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* Métiers */
.trades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trade { background: var(--card); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; transition: background-color 0.25s; }
.trade:hover { background: #fff; }
.trade .num { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--wood); }
.trade p { color: var(--ink-soft); font-size: 1rem; }
.trade--wide { grid-column: 1 / -1; }
@media (max-width: 680px) { .trades { grid-template-columns: 1fr; } }

/* Détail d'un métier (page Activités) */
.craft { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.craft:last-child { border-bottom: 1px solid var(--line); }
.craft .num { font-family: var(--serif); font-style: italic; color: var(--wood); font-size: 1.125rem; display: block; margin-bottom: 10px; }
.craft h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.craft-body p { color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 820px) { .craft { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 2px; background: var(--red); transform: rotate(-58deg); transform-origin: center; }

/* Clients / secteurs */
.sectors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.sectors li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.sectors .num { font-family: var(--serif); font-style: italic; color: #d9a871; }
.sectors h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.sectors p { color: rgba(246, 241, 231, 0.72); font-size: 1rem; }
.section:not(.section--bark) .sectors { border-color: var(--line); }
.section:not(.section--bark) .sectors li { border-color: var(--line); }
.section:not(.section--bark) .sectors .num { color: var(--wood); }
.section:not(.section--bark) .sectors p { color: var(--ink-soft); }
@media (max-width: 820px) { .sectors li { grid-template-columns: 40px minmax(0, 1fr); } .sectors p { grid-column: 2; } }

/* Bloc texte + citation */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split h2 { max-width: 14ch; }
.split .prose p { color: var(--ink-soft); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 64ch; }
.prose h2 { margin: 1.6em 0 0.6em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* Ligne du temps */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: minmax(96px, 200px) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding: clamp(22px, 3vw, 34px) 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; color: var(--wood-deep); font-variation-settings: "opsz" 144; }
.timeline .when small { display: block; font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 10px; } }

/* Références */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button { font: 500 0.9375rem/1 var(--sans); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project figure { margin: 0; aspect-ratio: 4 / 3; background: var(--paper-deep); overflow: hidden; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.project:hover img { transform: scale(1.03); }
.project .placeholder { width: 100%; height: 100%; }
.project-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.project .meta { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wood-deep); }
.project p { color: var(--ink-soft); font-size: 1rem; }
.project .scope { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.project .scope li { font-size: 0.8125rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.feature figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.feature img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* Clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.client { background: var(--card); padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; gap: 8px; transition: background-color 0.25s; }
.client:hover { background: #fff; }
.client .meta { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wood-deep); }
.client h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.client p { color: var(--ink-soft); font-size: 1rem; }
.client-link { margin-top: 10px; align-self: flex-start; font-weight: 600; font-size: 0.9375rem; text-decoration: none; border-bottom: 1px solid var(--wood); padding-bottom: 2px; }
.client-link:hover { border-color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 680px) { .clients { grid-template-columns: 1fr; } }

/* Bandeau d'appel */
.cta { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end; }
.cta h2 { max-width: 18ch; }
.cta .btn-row { margin-top: 0; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.coords { list-style: none; margin: 0; padding: 0; }
.coords li { padding: 20px 0; border-top: 1px solid var(--line); }
.coords li:last-child { border-bottom: 1px solid var(--line); }
.coords .label { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wood-deep); margin-bottom: 4px; }
.coords a, .coords span.value { font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; text-decoration: none; }
.coords a:hover { text-decoration: underline; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.form .hint { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid rgba(34, 28, 22, 0.28); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--wood); outline-offset: 1px; border-color: var(--wood); }
.field .is-invalid { border-color: var(--red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 16px 0 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #2f6b34; }
.form-status.err { color: var(--red-deep); }
.form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form .legal { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 16px; }
.map { margin-top: var(--section); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep); }
.map iframe { display: block; width: 100%; height: clamp(320px, 45vw, 480px); border: 0; filter: grayscale(0.35) sepia(0.12); }

/* Pied de page */
.site-footer { background: var(--bark); color: rgba(246, 241, 231, 0.78); padding-block: clamp(48px, 6vw, 80px) 28px; font-size: 0.975rem; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.footer-name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; color: var(--paper); margin-bottom: 14px; }
.site-footer h2 { font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #d9a871; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 0.875rem; color: rgba(246, 241, 231, 0.55); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 56vh; display: grid; align-content: center; }
.notfound .code { font-family: var(--serif); font-size: clamp(5rem, 16vw, 11rem); line-height: 0.9; color: var(--wood-deep); letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow, .project img { transition: none; }
}
@media print {
  .site-header, .site-footer, .btn-row, .map, .form { display: none; }
  body { background: #fff; }
}
