@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,400;1,500&family=Manrope:wght@300;400;500;600;700&family=Caveat:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* =========================================================
   DEMEURE — Magazine d'art de vivre & immobilier
   Design system
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette — warm cream + ink */
  --bg:          #f5f0e8;
  --bg-deep:     #ebe3d5;
  --bg-soft:     #fbf8f3;
  --paper:       #ffffff;
  --ink:         #2a2520;
  --ink-soft:    #4a423a;
  --ink-muted:   #8a8076;
  --rule:        #d9cfbf;
  --clay:        #b89478;
  --clay-deep:   #9a785c;
  --terracotta:  #c47a5a;

  /* Typography */
  --serif: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;
  --script: "Caveat", cursive;
  --mono:  "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Spacing rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 9vw, 140px);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- Utility ---------- */
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.rule { height: 1px; background: var(--rule); border: 0; }
.serif { font-family: var(--serif); font-weight: 400; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 60%, transparent);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}
.nav-left, .nav-right {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  align-items: center;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-right { justify-content: flex-end; }
.nav a { position: relative; padding: 6px 0; transition: color .25s var(--ease); }
.nav a:hover { color: var(--clay-deep); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
}
.logo {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: .32em;
  text-align: center;
  white-space: nowrap;
}
.logo .dot { color: var(--clay-deep); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: all .35s var(--ease);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-clay {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--bg-soft);
}
.btn-clay:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--bg-soft); }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 var(--section);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero-copy { padding-bottom: 24px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 8.4vw, 132px);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 18px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-title em {
  font-style: italic;
  color: var(--clay-deep);
}
.hero-lede {
  max-width: 46ch;
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-meta .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--clay);
  display: inline-block;
}

.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-image:hover img { transform: scale(1.04); }
.hero-image .tag {
  position: absolute;
  left: 24px; bottom: 24px;
  background: var(--bg-soft);
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-image .issue {
  position: absolute;
  right: 24px; top: 24px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--bg-soft);
  background: rgba(42,37,32,.55);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.hero-signature {
  font-family: var(--script);
  font-size: clamp(38px, 4vw, 56px);
  color: var(--clay-deep);
  line-height: 1;
  margin-top: -10px;
}

/* Hero marquee strip */
.marquee {
  margin-top: clamp(48px, 7vw, 96px);
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track .sep {
  width: 6px; height: 6px; border-radius: 50%; background: var(--clay);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section heading ---------- */
.section { padding: var(--section) 0; }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 80px);
  line-height: 1;
  letter-spacing: -.01em;
}
.section-head h2 em { font-style: italic; color: var(--clay-deep); }
.section-head .right {
  text-align: right;
  font-size: 13px;
  color: var(--ink-muted);
}
.section-head .right a {
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

/* ---------- Intro block (sous le hero) ---------- */
.intro {
  background: var(--bg-deep);
  text-align: center;
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}
.intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  max-width: 18ch;
  margin: 18px auto 0;
  letter-spacing: -.01em;
}
.intro p {
  max-width: 60ch;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
}
.intro .signature {
  font-family: var(--script);
  font-size: clamp(38px, 4vw, 52px);
  color: var(--clay-deep);
  margin-top: 24px;
  display: inline-block;
  transform: rotate(-3deg);
}

/* ---------- Articles featured (offset layout) ---------- */
.featured {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}
.featured .card-lg {
  grid-column: 1 / span 7;
  grid-row: span 2;
}
.featured .card-md {
  grid-column: 8 / span 5;
}
.featured .card-md.offset {
  margin-top: -60px;
}

.card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(42,37,32,.18);
}
.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-deep);
}
.card-image.tall { aspect-ratio: 4/5; }
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card-image img { transform: scale(1.05); }
.card-cat {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--bg-soft);
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  z-index: 2;
}
.card-body {
  padding: 28px 30px 32px;
}
.card-body.compact { padding: 22px 24px 26px; }
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--clay); align-self: center; }
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.12;
  letter-spacing: -.005em;
}
.card-body.compact h3 { font-size: clamp(20px, 1.8vw, 26px); }
.card p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  align-self: flex-start;
}
.card-link svg { transition: transform .3s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* Recent articles grid (3-up) */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}

/* ---------- Categories / advice pillars ---------- */
.pillars {
  background: var(--bg-soft);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-deep);
}
.pillar img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter 1s var(--ease);
  filter: brightness(.85) saturate(.95);
}
.pillar:hover img { transform: scale(1.06); filter: brightness(.7); }
.pillar-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: var(--bg-soft);
}
.pillar-num {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  opacity: .85;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 8px;
}
.pillar-meta {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .9;
}

/* ---------- Spotlight (cover article) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--paper);
}
.spotlight-media {
  position: relative;
  min-height: 540px;
  background: var(--bg-deep);
  overflow: hidden;
}
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.spotlight-body {
  padding: clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spotlight-body .eyebrow { color: var(--clay-deep); }
.spotlight-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  margin-top: 20px;
  letter-spacing: -.01em;
}
.spotlight-body h3 em { font-style: italic; color: var(--clay-deep); }
.spotlight-body p {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 52ch;
}
.spotlight-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-muted);
}
.spotlight-author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-deep);
  background-size: cover;
  background-position: center;
}
.spotlight-author strong { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }

/* ---------- Stats / assets row ---------- */
.assets {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(64px, 8vw, 120px) 0;
}
.assets-head {
  text-align: center;
  margin-bottom: 56px;
}
.assets-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
}
.assets-head h2 em { font-style: italic; color: var(--clay); }
.assets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.asset {
  text-align: left;
}
.asset .num {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  color: var(--bg);
}
.asset .num sup { font-size: .4em; color: var(--clay); vertical-align: super; margin-left: 4px; }
.asset .label {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.asset p {
  margin-top: 12px;
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  font-size: 14px;
  max-width: 28ch;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--bg-deep);
  padding: clamp(72px, 9vw, 120px) 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.newsletter h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
}
.newsletter h2 em { font-style: italic; color: var(--clay-deep); }
.newsletter p { margin-top: 18px; color: var(--ink-soft); max-width: 44ch; }
.news-form {
  display: flex;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.news-form input {
  flex: 1;
  border: 0;
  padding: 20px 24px;
  background: transparent;
  font-size: 15px;
  outline: none;
}
.news-form button {
  padding: 0 32px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background .3s var(--ease);
}
.news-form button:hover { background: var(--clay-deep); }
.news-meta {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .04em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  padding: clamp(64px, 7vw, 96px) 0 32px;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand .logo { text-align: left; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); max-width: 32ch; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--ink);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--clay-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .04em;
}
.footer-bottom .links a { margin-left: 22px; }

/* =========================================================
   À PROPOS
   ========================================================= */
.page-hero {
  padding: clamp(60px, 7vw, 110px) 0 clamp(40px, 5vw, 72px);
  text-align: center;
}
.page-hero .eyebrow { color: var(--clay-deep); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 10vw, 156px);
  line-height: .9;
  letter-spacing: -.015em;
  margin-top: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.page-hero h1 em { font-style: italic; color: var(--clay-deep); }
.page-hero .lede {
  max-width: 58ch;
  margin: 32px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
}

/* About — story block (offset card over image, à la "Pablo") */
.story {
  position: relative;
  margin-top: 40px;
}
.story-image {
  width: 78%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-deep);
}
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-card {
  position: absolute;
  right: 0;
  top: 18%;
  width: 44%;
  background: var(--paper);
  padding: clamp(36px, 4vw, 56px);
  box-shadow: 0 40px 80px -40px rgba(42,37,32,.18);
}
.story-card .eyebrow { color: var(--clay-deep); }
.story-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.04;
  margin-top: 12px;
  letter-spacing: -.01em;
}
.story-card h3 em { font-style: italic; }
.story-card .sub { color: var(--ink-muted); font-size: 14px; margin-top: 10px; letter-spacing: .04em; }
.story-card p { margin-top: 22px; color: var(--ink-soft); font-size: 15px; }
.story-card .btn-clay { margin-top: 28px; }

.story.reverse .story-image { margin-left: auto; }
.story.reverse .story-card  { right: auto; left: 0; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.value {
  padding: 48px 36px;
  border-right: 1px solid var(--rule);
}
.value:last-child { border-right: 0; }
.value .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--clay-deep);
  font-size: 22px;
}
.value h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin-top: 18px;
  line-height: 1.15;
}
.value p { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member {
  display: flex;
  flex-direction: column;
}
.member-photo {
  aspect-ratio: 3/4;
  background: var(--bg-deep);
  overflow: hidden;
  margin-bottom: 18px;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: filter .6s var(--ease), transform 1s var(--ease); }
.member:hover .member-photo img { filter: grayscale(0); transform: scale(1.04); }
.member h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}
.member .role {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* Author feature (autrice unique, page à propos) */
.author-feature {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.35fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
  margin-top: 48px;
}
.author-feature-photo {
  aspect-ratio: 4/5;
  background: var(--bg-deep);
  overflow: hidden;
}
.author-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.12);
  transition: filter .6s var(--ease), transform 1s var(--ease);
}
.author-feature:hover .author-feature-photo img { filter: grayscale(0); transform: scale(1.03); }
.author-feature-copy h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 18px 0 22px;
}
.author-feature-copy h3 em {
  font-style: italic;
  color: var(--clay-deep);
}
.author-feature-copy .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 44ch;
}
.author-feature-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 56ch;
}
.author-feature-copy .btn-clay { margin-top: 24px; }

@media (max-width: 820px) {
  .author-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.timeline-left {
  padding-right: clamp(24px, 4vw, 64px);
  border-right: 1px solid var(--rule);
}
.timeline-left h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.01em;
}
.timeline-left h2 em { font-style: italic; color: var(--clay-deep); }
.timeline-left p { margin-top: 24px; color: var(--ink-soft); max-width: 36ch; }
.timeline-right { padding-left: clamp(24px, 4vw, 64px); }
.t-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: baseline;
}
.t-item:last-child { border-bottom: 0; }
.t-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--clay-deep);
}
.t-item h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}
.t-item p { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-form {
  background: var(--paper);
  padding: clamp(36px, 4vw, 64px);
}
.field {
  margin-bottom: 24px;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  font-family: var(--sans);
  outline: none;
  transition: border-color .3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  padding: 10px 18px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.contact-info {
  position: sticky;
  top: 100px;
}
.contact-info h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.01em;
}
.contact-info h2 em { font-style: italic; color: var(--clay-deep); }
.contact-info .lede { color: var(--ink-soft); margin-top: 22px; font-size: 17px; max-width: 38ch; }
.info-block {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.info-block .label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.info-block .value {
  font-family: var(--serif);
  font-size: 26px;
  margin-top: 8px;
  line-height: 1.3;
}
.info-block .value a { border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.info-block .value a:hover { border-bottom-color: var(--ink); }
.info-block p { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

/* Hours */
.hours { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; }
.hours-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.hours-row span:first-child { color: var(--ink-soft); }
.hours-row span:last-child { color: var(--ink); font-weight: 500; }
.hours-row.closed span:last-child { color: var(--ink-muted); }

/* Map / address card */
.address-card {
  margin-top: 64px;
  background: var(--bg-deep);
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.address-card .map {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg) 50%, var(--bg-deep) 100%);
}
.address-card .pin {
  position: absolute; left: 52%; top: 48%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--clay-deep);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--clay-deep) 20%, transparent),
              0 0 0 14px color-mix(in oklab, var(--clay-deep) 10%, transparent);
}
.address-card .pin::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--bg-soft);
}
.address-card svg.grid {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq-q h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
}
.faq-toggle {
  width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .35s var(--ease);
}
.faq-item.open .faq-toggle { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), margin-top .45s var(--ease);
}
.faq-item.open .faq-a { max-height: 240px; margin-top: 16px; }
.faq-a p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 70ch;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: inline-flex; justify-self: end; grid-column: 3; }
  .logo { text-align: left; grid-column: 1 / 2; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-image { aspect-ratio: 4/3; }

  .featured { grid-template-columns: 1fr; }
  .featured .card-lg, .featured .card-md { grid-column: 1 / -1; }
  .featured .card-md.offset { margin-top: 0; }

  .recent-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; }
  .assets-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .story-image { width: 100%; }
  .story-card { position: relative; width: 92%; margin: -40px auto 0; right: auto; top: auto; }
  .story.reverse .story-card { left: auto; }

  .values-grid { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--rule); }
  .value:last-child { border-bottom: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .timeline-left { padding-right: 0; border-right: 0; padding-bottom: 32px; }
  .timeline-right { padding-left: 0; padding-top: 32px; border-top: 1px solid var(--rule); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }

  .section-head { grid-template-columns: 1fr; }
  .section-head .right { text-align: left; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 32px var(--gutter);
}
.mobile-menu.open { display: flex; }
.mobile-menu-top {
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu-close {
  font-size: 32px; color: var(--ink); width: 36px; height: 36px;
}
.mobile-menu nav {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 56px;
}
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: 44px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

/* ============================================================
   LAZARRE — intégration moteur (habillage « Le Grain » / theme-11)
   Classes générées par le moteur (/blog, archives, article, auteur) — à conserver.
   ============================================================ */

/* utilitaire SEO (H1 réel hors composition décorative du hero) */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* dropdown catégories (nav) */
.nav-cat-dd{ position:relative; display:inline-flex; align-items:center; }
.nav-cat-menu{
  position:absolute; top:100%; left:0; min-width:210px;
  display:none; flex-direction:column;
  background:var(--paper); border:1px solid var(--rule);
  padding:10px 0; margin-top:12px; z-index:60;
  box-shadow:0 30px 60px -30px rgba(42,37,32,.22);
}
.nav-cat-dd:hover > .nav-cat-menu{ display:flex; }
.nav-cat-menu a{ display:block; padding:9px 22px; white-space:nowrap; font-family:var(--sans); font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:500; color:var(--ink-soft); }
.nav-cat-menu a::after{ display:none; }
.nav-cat-menu a:hover{ color:var(--clay-deep); }

/* pont transparent : comble le gap visuel sous "Blog" pour atteindre le menu */
.nav-cat-dd{ position:relative; }
.nav-cat-dd::after{ content:""; position:absolute; left:0; right:0; top:100%; height:22px; }

/* liens catégories mobile : cachés au desktop, affichés indentés dans le menu mobile ouvert */
.nav-mobile-cat{ display:none; }
.mobile-menu.open nav a.nav-mobile-cat{
  display:block;
  font-size:24px;
  padding:8px 0 8px 24px;
  color:var(--ink-soft);
  border-bottom:1px solid color-mix(in oklab, var(--rule) 60%, transparent);
}

/* listing blog + archives */
.blog-listing{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:8px; }
.blog-card{
  position:relative; display:flex; flex-direction:column; justify-content:flex-end;
  min-height:440px; padding:26px; overflow:hidden;
  background:var(--bg-deep) center/cover no-repeat; color:var(--bg-soft);
  box-shadow:0 30px 60px -30px rgba(42,37,32,.28);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.blog-card::before{ content:""; position:absolute; inset:0; z-index:0; background:linear-gradient(180deg, rgba(42,37,32,0) 30%, rgba(42,37,32,.86)); }
.blog-card:hover{ transform:translateY(-6px); box-shadow:0 40px 70px -30px rgba(42,37,32,.4); }
.blog-card > *{ position:relative; z-index:2; }
.blog-card-cover{ position:absolute; inset:0; z-index:3; }
.blog-card-category{ position:absolute; top:18px; left:18px; z-index:4; font-family:var(--sans); font-size:10px; letter-spacing:.22em; text-transform:uppercase; font-weight:600; color:var(--ink); background:var(--bg-soft); padding:8px 14px; }
.blog-card-date{ font-family:var(--sans); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:color-mix(in oklab, var(--bg-soft) 78%, transparent); margin-bottom:12px; }
.blog-card-title{ font-family:var(--serif); font-weight:400; font-size:clamp(24px,2vw,30px); line-height:1.08; letter-spacing:-.005em; color:var(--bg-soft); }
.blog-card-title em{ font-style:italic; color:var(--clay); }
.blog-card-excerpt{ margin-top:12px; font-size:14px; line-height:1.55; color:color-mix(in oklab, var(--bg-soft) 80%, transparent); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.blog-empty{ grid-column:1 / -1; font-family:var(--serif); font-style:italic; font-size:1.6rem; color:var(--ink-muted); text-align:center; padding:80px 0; }
@media (max-width:1080px){ .blog-listing{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .blog-listing{ grid-template-columns:1fr; } }

/* pages génériques / légales / archives */
.page{ max-width:880px; margin:0 auto; padding:clamp(64px,8vw,120px) var(--gutter); }
.page > h1{ font-family:var(--serif); font-weight:400; font-size:clamp(46px,7vw,96px); line-height:.94; letter-spacing:-.015em; color:var(--ink); margin:0 0 28px; }
.page > h1 em{ font-style:italic; color:var(--clay-deep); }
.page .intro{ font-family:var(--serif); font-style:italic; font-size:clamp(18px,1.6vw,24px); line-height:1.5; color:var(--ink-muted); margin:0 0 36px; max-width:60ch; }
.page .content{ font-family:var(--serif); font-size:1.18rem; line-height:1.78; color:var(--ink-soft); }
.page .content > * + *{ margin-top:1.1em; }
.page .content h2{ font-family:var(--serif); font-weight:400; font-size:2rem; color:var(--ink); margin:1.6em 0 .4em; }
.page .content h3{ font-family:var(--serif); font-weight:400; font-size:1.5rem; color:var(--ink); margin:1.4em 0 .3em; }
.page .content a{ color:var(--clay-deep); text-decoration:underline; }
.archive-desc{ font-family:var(--serif); font-style:italic; font-size:1.3rem; color:var(--ink-muted); max-width:60ch; margin:0 0 8px; }

/* article (.post) */
.post{ max-width:760px; margin:0 auto; padding:clamp(56px,7vw,100px) var(--gutter); }
.post > header{ margin-bottom:40px; }
.post > header img{ width:100%; aspect-ratio:16/10; object-fit:cover; margin-bottom:32px; background:var(--bg-deep); }
.post > header h1{ font-family:var(--serif); font-weight:400; font-size:clamp(36px,5.5vw,68px); line-height:.98; letter-spacing:-.015em; color:var(--ink); margin:0 0 20px; text-wrap:balance; }
.post .content{ font-family:var(--serif); font-size:1.2rem; line-height:1.8; color:var(--ink-soft); }
.post .content > * + *{ margin-top:1.15em; }
.post .content .lede{ font-style:italic; color:var(--ink-muted); font-size:1.4rem; line-height:1.5; }
.post .content h2{ font-family:var(--serif); font-weight:400; font-size:1.9rem; color:var(--ink); margin:1.7em 0 .4em; }
.post .content h3{ font-family:var(--serif); font-weight:400; font-size:1.45rem; color:var(--ink); margin:1.5em 0 .3em; }
.post .content img{ width:100%; margin:1.5em 0; }
.post .content a{ color:var(--clay-deep); text-decoration:underline; }
.post .content blockquote{ margin:1.5em 0; padding:6px 0 6px 28px; border-left:2px solid var(--terracotta); font-family:var(--serif); font-style:italic; font-size:1.6rem; line-height:1.2; color:var(--ink); }

/* méta article : date · auteur · catégorie */
.article-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-family:var(--sans); font-size:.7rem; letter-spacing:.18em; text-transform:uppercase; font-weight:600; color:var(--ink-muted); margin:0; }
.article-meta-sep{ color:var(--rule); }
.article-meta-author, .article-meta-category{ color:var(--clay-deep); }
.article-meta-author:hover, .article-meta-category:hover{ color:var(--terracotta); }

/* box auteur sous l'article */
.author-box{ display:flex; gap:22px; align-items:center; margin-top:52px; padding:28px; background:var(--bg-soft); border:1px solid var(--rule); }
.author-box-photo img{ width:84px; height:84px; border-radius:50%; object-fit:cover; background:var(--bg-deep); }
.author-box-name{ font-family:var(--serif); font-size:1.5rem; color:var(--ink); display:inline-block; margin-bottom:6px; }
a.author-box-name:hover{ color:var(--clay-deep); }
.author-box-bio{ margin:0; color:var(--ink-soft); font-size:1rem; line-height:1.55; }

/* page auteur (overrides légers sur les styles inline du moteur) */
.author-page-bio{ color:var(--ink-soft) !important; }
.author-page-bio-long .content{ color:var(--ink-soft) !important; font-family:var(--serif); }

/* grille auteurs — section "norme" de l'À propos */
.authors-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:48px 32px; }
.author-card{ display:flex; flex-direction:column; }
.author-card-photo{ width:100%; aspect-ratio:4/5; overflow:hidden; background:var(--bg-deep); margin-bottom:20px; }
.author-card-photo img{ width:100%; height:100%; object-fit:cover; filter:grayscale(.12); transition:filter .6s var(--ease), transform 1s var(--ease); }
.author-card:hover .author-card-photo img{ filter:grayscale(0); transform:scale(1.04); }
.author-card .eyebrow{ color:var(--clay-deep); }
.author-card-name{ font-family:var(--serif); font-weight:400; font-size:clamp(30px,3vw,42px); line-height:1; letter-spacing:-.01em; color:var(--ink); margin:10px 0 16px; }
.author-card-name a:hover{ color:var(--clay-deep); }
.author-card-bio{ font-size:15px; line-height:1.7; color:var(--ink-soft); margin:0 0 22px; max-width:44ch; }
.author-card-cta{ align-self:flex-start; margin-top:auto; }

/* alertes du formulaire contact (handler PHP) */
.cf-alert{ padding:16px 20px; margin-bottom:22px; font-family:var(--sans); font-size:.95rem; line-height:1.5; }
.cf-alert-success{ background:color-mix(in oklab, var(--clay) 18%, var(--paper)); border:1px solid var(--clay); color:var(--clay-deep); }
.cf-alert-error{ background:color-mix(in oklab, var(--terracotta) 14%, var(--paper)); border:1px solid var(--terracotta); color:var(--clay-deep); }
.cf-alert ul{ margin:8px 0 0; padding-left:18px; }

/* ============================================================
   Garde-fou anti-débordement horizontal (jusqu'à 330px)
   ============================================================ */
img, video, iframe, svg { max-width: 100%; }

@media (max-width: 480px) {
  /* la signature scriptée ne doit pas pousser la largeur */
  .hero-signature { overflow-wrap: break-word; word-break: break-word; }
  .hero-signature[style] { padding-right: 0 !important; }

  /* gros titres display : autoriser la coupe pour ne jamais dépasser */
  .section-head h2,
  .assets-head h2,
  .author-feature-copy h3,
  .spotlight-body h3,
  .newsletter h2,
  .contact-info h2,
  .timeline-left h2,
  .story-card h3,
  .page > h1,
  .post > header h1 { overflow-wrap: break-word; word-break: break-word; }

  /* la piste marquee reste contenue (le parent a overflow:hidden) */
  .marquee-track { font-size: 18px; gap: 32px; }
  .marquee-track span { gap: 32px; }
}

@media (max-width: 360px) {
  /* repli pleine largeur pour éviter tout dépassement extrême */
  .footer-grid { grid-template-columns: 1fr; }
  .pillars-grid,
  .assets-grid,
  .team-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom .links a { margin-left: 0; }
  .mobile-menu nav a { font-size: 36px; }
  .mobile-menu.open nav a.nav-mobile-cat { font-size: 20px; }
}
