/* ==========================================================================
   nicolasbeffort.com — feuille de style unique
   Palette : papier chaud, encre, bleu-paon (clin d'œil à l'ancien site), argile
   Polices : Fraunces (titres) + Source Sans 3 (texte), hébergées localement
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --paper: #f6f1e9;
  --paper-2: #efe7db;
  --surface: #fffdf9;
  --ink: #1c2427;
  --ink-2: #2e393d;
  --muted: #5b6468;
  --line: #e2d8ca;
  --line-2: #d4c7b5;
  --peacock: #1f6a70;
  --peacock-2: #185459;
  --peacock-soft: #e1eeec;
  --clay: #b0603a;
  --clay-soft: #f6e5da;
  --focus: #1f6a70;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --read: 700px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(28, 36, 39, .05), 0 8px 24px -12px rgba(28, 36, 39, .18);
  --shadow-lg: 0 2px 4px rgba(28, 36, 39, .05), 0 24px 48px -20px rgba(28, 36, 39, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--peacock); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--peacock-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 520; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 233, .9); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; margin-right: auto; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; }
.brand span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--peacock); background: var(--peacock-soft); }
.nav .ext::after { content: "↗"; font-size: .8em; margin-left: 3px; opacity: .6; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; margin-left: 8px; }
.lang a, .lang span { font-size: .8rem; font-weight: 600; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--ink); color: var(--paper); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); background: var(--paper-2); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 420px) { .brand span { display: none; } }
@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 2px; display: none; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.1rem; border-radius: 10px; }
  .lang { align-self: flex-start; margin: 10px 0 0 6px; }
  .nav .lang a, .nav .lang span { padding: 6px 12px; font-size: .85rem; line-height: 1.2; border-radius: 999px; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--sans); padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--peacock); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-sm { padding: 10px 16px; font-size: .95rem; }
.arrow::after { content: "→"; transition: transform .15s; }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }

/* ---------- Sections génériques ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 720px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 10px 0 0; }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--muted); }

/* ---------- Accueil : héros ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -180px; border-radius: 50%; border: 1px solid var(--line-2); opacity: .7; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -100px; top: -60px; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--peacock); font-weight: 460; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 220px 220px var(--r-lg) var(--r-lg); box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; left: -28px; bottom: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); max-width: 250px; font-size: .95rem; line-height: 1.35; }
.hero-badge b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 560; color: var(--peacock); line-height: 1; margin-bottom: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .98rem; color: var(--muted); }
.facts span::before { content: "•"; color: var(--clay); margin-right: 8px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { width: min(340px, 86%); order: -1; }
  .hero-badge { left: auto; right: -12px; bottom: 18px; }
}

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--paper-2); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.28rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 1rem; }
.card-meta { font-size: .85rem; color: var(--muted); letter-spacing: .02em; display: flex; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--peacock-2); background: var(--peacock-soft); border-radius: 999px; padding: 2px 10px; }
.card-foot { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--peacock); font-size: .98rem; }

/* Carte d'activité (accueil) */
.act { padding: 30px; gap: 12px; }
.act .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--peacock-soft); color: var(--peacock); }
.act .ico svg { width: 24px; height: 24px; }
.act.clay .ico { background: var(--clay-soft); color: var(--clay); }
.act h3 { margin: 8px 0 0; }
.act a.stretched { color: var(--ink); text-decoration: none; }
.act a.stretched::after { content: ""; position: absolute; inset: 0; }

/* Projets vedettes */
.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature + .feature { margin-top: 24px; }
.feature.flip .feature-media { order: 2; }
.feature-media { position: relative; min-height: 300px; background: #111; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media.contain { background: #14161d; }
.feature-media.contain img { object-fit: contain; }
.feature-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feature-body .logo { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 6px; margin-bottom: 18px; }
.feature-body h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.feature-body ul { margin: 4px 0 22px; padding-left: 20px; color: var(--ink-2); }
.feature-body li { margin-bottom: 4px; }
.feature-body li::marker { color: var(--clay); }
.feature-assos { margin: 0 0 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.feature-assos span { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.feature-assos div { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.feature-assos a { display: block; line-height: 0; }
.feature-assos img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.feature-assos a:hover img { opacity: .8; }
.feature-assos img.blason { height: 56px; }
.feature > * { min-width: 0; }
.feature-body .btn { white-space: normal; max-width: 100%; line-height: 1.25; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } .feature-media { min-height: 220px; aspect-ratio: 16/9; } }

/* Grille de projets */
.proj { flex-direction: row; align-items: flex-start; gap: 18px; padding: 22px; }
.proj img, .proj .mono { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; flex-shrink: 0; background: #fff; border: 1px solid var(--line); padding: 6px; }
.proj img.plein, .feature-body .logo.plein { padding: 0; object-fit: cover; border-color: transparent; }
.proj .mono { display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--peacock); background: var(--peacock-soft); border-color: transparent; padding: 0; }
.proj div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proj h3 { font-size: 1.15rem; margin: 0; }
.proj h3 a { color: var(--ink); text-decoration: none; }
.proj h3 a::after { content: ""; position: absolute; inset: 0; }
.proj p { margin: 0; font-size: .98rem; color: var(--muted); }
.proj .url { font-size: .88rem; color: var(--peacock); font-weight: 600; }

/* Livres */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .books { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .books { grid-template-columns: 1fr; } }
.book { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.book img { border-radius: var(--r); border: 1px solid var(--line); aspect-ratio: 1958 / 1642; object-fit: cover; transition: transform .2s, box-shadow .2s; }
.book:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.book b { font-family: var(--serif); font-weight: 560; font-size: 1.15rem; line-height: 1.25; }
.book span { font-size: .92rem; color: var(--muted); }

/* ---------- Pages internes ---------- */
.page-head { padding: clamp(44px, 6vw, 84px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { max-width: 860px; }
.page-head .lead { max-width: 720px; color: var(--muted); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* Article */
.article-head { padding: clamp(40px, 6vw, 72px) 0 28px; }
.article-head .wrap, .prose-wrap { max-width: calc(var(--read) + 48px); }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: .95rem; }
.article-cover { max-width: 1000px; margin: 12px auto 0; padding: 0 24px; }
.article-cover img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }
.prose { font-size: 1.12rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.75rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--clay); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--clay); font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.prose figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .wide { margin-left: -40px; margin-right: -40px; }
@media (max-width: 800px) { .prose .wide { margin-left: 0; margin-right: 0; } }
.prose .signature { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.prose .note { font-size: 1rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1em; margin-top: 2em; }
.prose > :first-child { margin-top: 0; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 1.8em 0; font-size: 1.02rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.update { background: var(--clay-soft); border-color: #ecd3c2; }
.linkbox { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--peacock-soft); border-radius: var(--r); padding: 18px 22px; margin: 1.8em 0; }
.linkbox p { margin: 0; color: var(--ink); font-weight: 500; }

/* Encadré EnneaTest */
.cta-ennea { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; background: #14161d; color: #eef0f5; border-radius: var(--r-lg); padding: 26px 28px; margin: 2.2em 0; }
.cta-ennea img { width: 96px; height: 96px; }
.cta-ennea h3 { color: #fff; margin: 0 0 6px; font-size: 1.4rem; }
.cta-ennea p { margin: 0 0 14px; color: #c4c8d4; font-size: 1rem; line-height: 1.55; }
.cta-ennea .btn { background: #f1c75b; color: #14161d; }
.cta-ennea .btn:hover { background: #fff; color: #14161d; }
.cta-ennea small { display: inline-block; margin-left: 12px; color: #9aa0b0; font-size: .88rem; }
@media (max-width: 560px) { .cta-ennea { grid-template-columns: 1fr; } .cta-ennea img { width: 72px; height: 72px; } }

/* Carte livre dans un article */
.book-inline { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin: 2.2em 0; text-decoration: none; color: var(--ink); }
.book-inline img { border-radius: var(--r-sm); }
.book-inline b { font-family: var(--serif); font-size: 1.35rem; font-weight: 560; display: block; margin-bottom: 4px; }
.book-inline span { color: var(--muted); font-size: 1rem; display: block; }
.book-inline em { font-style: normal; color: var(--peacock); font-weight: 600; display: block; margin-top: 10px; }
@media (max-width: 560px) { .book-inline { grid-template-columns: 1fr; } }

/* Vidéo à la demande (aucun témoin avant le clic) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #0f1416; margin: 2em 0; }
.video button { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 45%, #25373b 0%, #0f1416 70%); }
.video button:focus-visible { outline: 3px solid #f1c75b; outline-offset: -6px; }
.video .play { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background .2s, transform .2s; }
.video button:hover .play { background: var(--clay); transform: scale(1.05); }
.video .play svg { width: 28px; height: 28px; margin-left: 4px; }
.video .vt { font-family: var(--serif); font-size: 1.2rem; max-width: 520px; line-height: 1.3; }
.video small { font-size: .82rem; color: #b9c3c6; max-width: 460px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Navigation entre articles */
.article-foot { border-top: 1px solid var(--line); margin-top: 3em; padding-top: 1.6em; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 1rem; }

/* À propos */
.about-intro { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-intro .portrait img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.about-intro .portrait figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } .about-intro .portrait { max-width: 320px; } }
.toc-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.toc-inline a { font-size: .95rem; text-decoration: none; border: 1px solid var(--line-2); color: var(--ink-2); padding: 6px 14px; border-radius: 999px; }
.toc-inline a:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.roles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.roles li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.02rem; }
.roles li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--peacock); }
@media (max-width: 700px) { .roles { grid-template-columns: 1fr; } }
.service { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service img { border-radius: var(--r); aspect-ratio: 3/2; object-fit: cover; }
.service h3 { font-size: 1.6rem; }
.service .prose { font-size: 1.05rem; }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; } .service img { max-width: 420px; } }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.logos li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 14px; }
.logos img { max-height: 72px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .82; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
.logos { padding: 0; margin: 0; }

/* Page livre */
.book-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.book-page .cover img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.book-page dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .98rem; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-page dt { color: var(--muted); }
.book-page dd { margin: 0; }
.buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
@media (max-width: 860px) { .book-page { grid-template-columns: 1fr; } }
.lang-note { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; background: var(--clay-soft); color: #7a3f22; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; font-weight: 600; }

/* Liste d'articles */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 600 .92rem var(--sans); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card[hidden] { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .98rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peacock); background: #fff; box-shadow: 0 0 0 3px rgba(31, 106, 112, .18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); margin: 6px 0 20px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--peacock); }
.notice { border-radius: var(--r); padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.notice.ok { background: var(--peacock-soft); color: var(--peacock-2); }
.notice.err { background: #f9e1dc; color: #8c2f1d; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--peacock); flex-shrink: 0; margin-top: 3px; }

/* Légal */
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #c9d1d3; max-width: 560px; }
.cta-band .btn-primary { background: var(--paper); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 96px); background: var(--ink); color: #c9d1d3; padding: 56px 0 28px; font-size: .98rem; }
.site-footer a { color: #e8ecec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #8e999c; margin: 0 0 14px; font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-brand b { font-family: var(--serif); font-size: 1.5rem; color: #fff; font-weight: 560; display: block; margin-bottom: 8px; }
.foot-brand p { max-width: 340px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3c494c; display: grid; place-items: center; }
.social a:hover { background: #2a3538; text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom { border-top: 1px solid #2f3a3d; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: #8e999c; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* 404 / choix de langue */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.center-page .choices { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .video, .cta-ennea, .cta-band { display: none !important; } body { background: #fff; } }
