/* O fil du Soi : feuille de style unique, sans framework, polices système */
:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --surface-2: #eee7da;
  --text: #2b2a26;
  --muted: #5d5a52;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: #dfe9e3;
  --terra: #9a4f33;
  --line: #d9cfbf;
  --focus: #b5552f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 42, 38, .06), 0 8px 24px rgba(43, 42, 38, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a18;
    --surface: #1f2421;
    --surface-2: #28302b;
    --text: #ece8df;
    --muted: #b9b4a8;
    --accent: #8cc2ac;
    --accent-ink: #10201a;
    --accent-soft: #24352d;
    --terra: #e3a27f;
    --line: #3a443e;
    --focus: #f0a77e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.7 var(--sans);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--text); margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem); margin: 0 0 .3em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.95rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .2em 0; }
blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--terra); font-family: var(--serif); font-size: 1.15rem; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: .6em 1em; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--accent); }
.brand-sub { font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .2rem; }
.site-nav a { display: block; padding: .35em .6em; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { background: var(--accent-soft); }
.site-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 860px) {
  .site-nav { width: 100%; }
  .site-nav a { font-size: .9rem; padding: .3em .55em; }
}

/* Bandeau de page */
.page-hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); padding: 2.4rem 0 1.6rem; }
.eyebrow { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin: 0 0 .5rem; font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }

/* Contenu */
main { display: block; }
.content { padding: 1.5rem 0 3rem; }
.content > .wrap > :first-child { margin-top: 0; }
.prose { max-width: 46em; }
.prose h2 { padding-top: .2em; }
.prose h2::after { content: ""; display: block; width: 48px; height: 2px; background: var(--terra); margin-top: .45em; opacity: .7; }
.figure { margin: 1.5em 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.figure.small img { max-width: 320px; }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: .4em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin: 1.5em 0; }
.gallery .figure { margin: 0; }
.placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 420px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .95rem; margin: 1.5em 0; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5em 0; }
.btn { display: inline-block; padding: .7em 1.3em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); margin: 1.5em 0; }
.card > :last-child { margin-bottom: 0; }
.note { font-size: .92rem; color: var(--muted); }
table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; }
th, td { text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Blog */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card .ph { aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.post-card-body { padding: 1rem 1.1rem 1.2rem; }
.post-card h2 { font-size: 1.25rem; margin: .1em 0 .4em; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.post-card p { margin: 0 0 .5em; color: var(--muted); font-size: .95rem; }
.meta { font-size: .9rem; color: var(--muted); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1em 0; }
.tags a { display: inline-block; padding: .2em .8em; border-radius: 999px; background: var(--accent-soft); text-decoration: none; font-size: .9rem; }
.post-cover { margin: 0 0 1.8em; }
.post-cover img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 520px; object-fit: cover; }

/* Pied de page */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 2.2rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h2 { font-size: 1.1rem; margin: 0 0 .5em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-nav, .skip-link, .cta { display: none; } body { background: #fff; color: #000; } }
.figure.portrait img { max-width: min(100%, 420px); }
.gallery .figure img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery .figure.portrait img { max-width: 100%; }
.h-card { margin-top: 0; font-size: 1.25rem; }
.h-card::after { display: none !important; }
.price-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem .4rem; margin: 0 0 1.5rem; box-shadow: var(--shadow); }
.price-block > h2:first-child { margin-top: 0; }
.prices { margin: .6em 0 1.2em; padding: 0; }
.prices > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .5em 0; border-bottom: 1px dashed var(--line); }
.prices dt { font-weight: 600; }
.prices dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--terra); white-space: nowrap; }
.figure img[src$=".png"] { background: #fff; }
