/*
Theme Name: Visual Déco GP Child
Theme URI: https://visualdeco.fr/
Description: Thème éditorial léger de Visual Déco, enfant de GeneratePress.
Author: Visual Déco
Template: generatepress
Version: 1.0.0
Text Domain: visualdeco-gp-child
*/

:root {
  --vd-bg: #f7f4ee;
  --vd-surface: #fffdf9;
  --vd-ink: #28251f;
  --vd-muted: #6f695f;
  --vd-accent: #a95f3c;
  --vd-accent-dark: #75402a;
  --vd-line: #ded7ca;
  --vd-radius: 18px;
  --vd-shadow: 0 18px 50px rgba(68, 54, 40, .09);
  --vd-wrap: 1160px;
  --vd-reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vd-bg);
  color: var(--vd-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
a { color: var(--vd-accent-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover, a:focus { color: var(--vd-accent); }
img { max-width: 100%; height: auto; }
.vd-wrap { width: min(calc(100% - 40px), var(--vd-wrap)); margin-inline: auto; }
.vd-skip { position: fixed; left: 12px; top: -100px; z-index: 9999; padding: 10px 14px; background: var(--vd-ink); color: #fff; }
.vd-skip:focus { top: 12px; }

.vd-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(222,215,202,.85); background: rgba(247,244,238,.95); backdrop-filter: blur(12px); }
.vd-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.vd-brand { color: var(--vd-ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.vd-nav { display: flex; align-items: center; gap: 28px; }
.vd-nav a { color: var(--vd-ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
.vd-menu-toggle { display: none; border: 1px solid var(--vd-line); border-radius: 999px; background: var(--vd-surface); color: var(--vd-ink); padding: 9px 14px; font: inherit; font-size: .86rem; }

.vd-hero { padding: clamp(64px, 9vw, 118px) 0 50px; }
.vd-eyebrow { margin: 0 0 14px; color: var(--vd-accent-dark); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.vd-hero h1 { max-width: 880px; margin: 0; font-size: clamp(2.25rem, 6vw, 5.2rem); line-height: .99; letter-spacing: -.065em; }
.vd-hero__lead { max-width: 670px; margin: 28px 0 0; color: var(--vd-muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }

.vd-section { padding: 34px 0 100px; }
.vd-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.vd-section h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.vd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vd-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); background: var(--vd-surface); box-shadow: var(--vd-shadow); }
.vd-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8e2d7; }
.vd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vd-card:hover .vd-card__media img { transform: scale(1.025); }
.vd-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.vd-card time { color: var(--vd-muted); font-size: .78rem; }
.vd-card h3 { margin: 10px 0 14px; font-size: 1.35rem; line-height: 1.18; letter-spacing: -.035em; }
.vd-card h3 a { color: var(--vd-ink); text-decoration: none; }
.vd-card p { margin: 0 0 22px; color: var(--vd-muted); font-size: .92rem; line-height: 1.55; }
.vd-card__link { margin-top: auto; font-size: .88rem; font-weight: 800; }

.vd-main { min-height: 60vh; }
.vd-article { width: min(calc(100% - 40px), var(--vd-reading)); margin: 0 auto; padding: clamp(58px, 8vw, 104px) 0 92px; }
.vd-article__header { margin-bottom: 34px; }
.vd-article__back { display: inline-block; margin-bottom: 28px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.vd-article h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.03; letter-spacing: -.06em; }
.vd-article__meta { margin: 20px 0 0; color: var(--vd-muted); font-size: .85rem; }
.vd-article__image { width: min(calc(100% - 40px), 1040px); margin: 0 auto 58px; }
.vd-article__image img { display: block; width: 100%; max-height: 660px; object-fit: cover; border-radius: var(--vd-radius); box-shadow: var(--vd-shadow); }
.vd-content { font-size: 1.03rem; }
.vd-content > * { max-width: 100%; }
.vd-content > * + * { margin-top: 1.25em; }
.vd-content h2, .vd-content h3 { line-height: 1.15; letter-spacing: -.035em; }
.vd-content h2 { margin-top: 2.2em; font-size: clamp(1.65rem, 4vw, 2.3rem); }
.vd-content h3 { margin-top: 1.8em; font-size: 1.25rem; }
.vd-content blockquote { margin-inline: 0; padding: 18px 22px; border-left: 4px solid var(--vd-accent); background: var(--vd-surface); }
.vd-content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vd-content th, .vd-content td { padding: 11px 12px; border-bottom: 1px solid var(--vd-line); text-align: left; vertical-align: top; }
.vd-content ul, .vd-content ol { padding-left: 1.4em; }
.vd-post-nav { display: flex; justify-content: space-between; gap: 20px; width: min(calc(100% - 40px), var(--vd-reading)); margin: 0 auto 88px; padding-top: 30px; border-top: 1px solid var(--vd-line); }
.vd-post-nav a { max-width: 48%; font-weight: 700; }

.vd-standard { width: min(calc(100% - 40px), 900px); margin-inline: auto; padding: clamp(58px, 8vw, 100px) 0; }
.vd-standard h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -.055em; }
.vd-empty { padding: 30px; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); background: var(--vd-surface); }

.vd-footer { padding: 48px 0; border-top: 1px solid var(--vd-line); background: var(--vd-surface); }
.vd-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.vd-footer p { margin: 0; color: var(--vd-muted); font-size: .85rem; }
.vd-footer a { font-size: .85rem; font-weight: 700; }

@media (max-width: 880px) {
  .vd-grid { grid-template-columns: 1fr; }
  .vd-card { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; }
  .vd-card__media { aspect-ratio: auto; min-height: 250px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .vd-wrap, .vd-article, .vd-article__image, .vd-post-nav, .vd-standard { width: min(calc(100% - 30px), var(--vd-wrap)); }
  .vd-header__inner { min-height: 66px; }
  .vd-menu-toggle { display: inline-flex; }
  .vd-nav { position: absolute; inset: 66px 15px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--vd-line); border-radius: 14px; background: var(--vd-surface); box-shadow: var(--vd-shadow); }
  .vd-nav.is-open { display: flex; }
  .vd-nav a { padding: 12px; }
  .vd-hero { padding-top: 62px; }
  .vd-section { padding-bottom: 72px; }
  .vd-card { display: flex; }
  .vd-card__media { aspect-ratio: 16 / 10; min-height: 0; }
  .vd-article { padding-bottom: 56px; }
  .vd-article__image { margin-bottom: 38px; }
  .vd-article__image img { border-radius: 12px; }
  .vd-content table { display: block; border: 0; white-space: normal; }
  .vd-content thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .vd-content tbody, .vd-content tr, .vd-content td { display: block; width: 100%; }
  .vd-content tr { margin-bottom: 14px; border: 1px solid var(--vd-line); border-radius: 12px; overflow: hidden; }
  .vd-content td { border: 0; padding: 11px 13px; }
  .vd-content td:first-child { background: var(--vd-surface); color: var(--vd-accent-dark); font-weight: 750; }
  .vd-content td + td { border-top: 1px solid var(--vd-line); }
  .vd-post-nav { flex-direction: column; }
  .vd-post-nav a { max-width: 100%; }
  .vd-footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vd-card__media img { transition: none; }
}
