/* styles.css — Natacha Fourrageat website */

/* ─── CSS Variables (set by JS based on Tweaks) ─── */
:root {
  --bg: #F5F1EA;
  --bg-2: #E8EEF1;
  --bg-3: #FAF7F1;
  --ink: #1F4659;
  --ink-soft: #3D5C6C;
  --primary: #7DB3D1;
  --primary-soft: #B8D4E3;
  --accent: #B5896A;
  --muted: #8FA5AE;
  --peach: #F4D8C8;
  --peach-soft: #FAEAE0;
  --line: rgba(31,70,89,0.12);

  --font-script: 'Caveat', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Quicksand', ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(31,70,89,0.04), 0 4px 12px rgba(31,70,89,0.05);
  --shadow: 0 2px 4px rgba(31,70,89,0.05), 0 14px 40px rgba(31,70,89,0.08);
  --shadow-lg: 0 8px 24px rgba(31,70,89,0.10), 0 40px 80px rgba(31,70,89,0.10);
}

/* dark mode */
.theme-dark {
  --bg: #1A2024;
  --bg-2: #232A2F;
  --bg-3: #20272B;
  --ink: #F4EFE6;
  --ink-soft: #C9C2B5;
  --peach: #4A332B;
  --peach-soft: #3A2820;
  --line: rgba(244,239,230,0.10);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.25);
  --shadow: 0 2px 4px rgba(0,0,0,0.25), 0 14px 40px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4), 0 40px 80px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─── Typography ─── */
.script-xl, .script-lg, .script-md, .script-sm {
  font-family: var(--font-script);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.script-xl { font-size: clamp(56px, 8vw, 104px); font-weight: 600; }
.script-lg { font-size: clamp(36px, 4.5vw, 60px); font-weight: 600; }
.script-md { font-size: clamp(28px, 3vw, 38px); }
.script-sm { font-size: clamp(22px, 2.4vw, 28px); }

.script-xl em, .script-lg em, .script-md em {
  font-style: italic;
  color: var(--accent);
}

/* serif option toggled via body.font-serif */
body.font-serif .script-xl,
body.font-serif .script-lg,
body.font-serif .script-md,
body.font-serif .script-sm {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
body.font-serif .script-xl { font-size: clamp(48px, 6.5vw, 84px); font-weight: 500; }
body.font-serif .script-lg { font-size: clamp(32px, 4vw, 52px); }

body.font-mix .script-xl,
body.font-mix .script-lg {
  font-family: var(--font-script);
}
body.font-mix .script-md,
body.font-mix .script-sm {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  text-wrap: pretty;
}
p { color: var(--ink-soft); text-wrap: pretty; max-width: 64ch; }
.muted { color: var(--muted); }

/* ─── Buttons ─── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 4px 14px rgba(31,70,89,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(31,70,89,0.28); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink); }

.link-arrow {
  font-size: 13px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0; letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}
.link-arrow span { transition: transform .2s; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span { transform: translateX(4px); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ─── Top Nav ─── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { display: inline-flex; color: var(--primary); }
.brand-name { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.brand-first { font-family: var(--font-script); font-size: 24px; font-weight: 600; }
.brand-last { font-family: var(--font-sans); font-size: 9px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 2px;}

.navlist { display: flex; gap: 4px; justify-self: center; list-style: none; }
.navlink {
  padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: all .2s;
}
.navlink:hover { color: var(--ink); background: var(--bg-2); }
.navlink.active { color: var(--ink); background: var(--bg-2); font-weight: 600; }
.nav-cta {
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  transition: all .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ─── Page ─── */
.page { max-width: none; margin: 0; padding: 0; }
.page-header,
.hero-inner,
.pillar-grid,
.section-header,
.featured-book,
.book-feature,
.accomp-grid,
.next-book,
.about-intro,
.contact-grid,
.timeline,
.values-grid,
.concepts-grid,
.how-grid,
.praise-grid,
.cta-band-inner,
.trust,
.quote-band > blockquote {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}
.page-header {
  text-align: center; padding: clamp(60px, 9vw, 110px) 0 40px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  color: var(--ink);
}
.page-header .eyebrow { color: var(--accent); }
.page-header .lead { margin: 0 auto; }

/* ─── HERO ─── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
}
.hero-deco-tl { position: absolute; top: -40px; left: -40px; color: var(--ink); pointer-events: none; }
.hero-deco-br { position: absolute; bottom: -40px; right: -40px; color: var(--ink); pointer-events: none; }
.hero-blob { position: absolute; inset: 0; pointer-events: none; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.hero-copy h1 { margin: 18px 0 24px; color: var(--ink); }
.hero-copy .eyebrow { display: inline-block; }
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 28px; list-style: none;
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
}

.hero-art { display: flex; justify-content: center; position: relative; }
.portrait-frame {
  position: relative;
  width: min(440px, 100%); aspect-ratio: 4/5;
  border-radius: 50% 50% 48% 52% / 60% 55% 45% 40%;
  overflow: visible;
}
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit;
  box-shadow: var(--shadow-lg);
  filter: contrast(1.02) saturate(0.92);
}

/* ─── PILLARS ─── */
.pillars { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.section-header {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: clamp(40px, 5vw, 70px);
}
.section-header .lead { margin: 0 auto; }

.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pillar-card {
  position: relative;
  padding: 36px 30px 30px;
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: all .3s;
  overflow: hidden;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-card .pillar-sprig {
  position: absolute; top: 16px; right: 16px;
}
.pillar-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}
.pillar-card h3 {
  font-family: var(--font-script); font-size: 32px; font-weight: 600;
  color: var(--ink); line-height: 1.1;
}
body.font-serif .pillar-card h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em;}
.pillar-card p { font-size: 15px; color: var(--ink-soft); flex: 1; }

/* Section style: cards vs fullbleed */
body.style-fullbleed .pillar-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 36px 0;
}
body.style-fullbleed .pillar-card:hover { transform: none; box-shadow: none; }
body.style-fullbleed .pillar-grid { gap: 0; grid-template-columns: 1fr; max-width: 720px; margin: 0 auto;}
body.style-fullbleed .pillar-card .pillar-sprig { display: none;}

/* ─── FEATURED BOOK ─── */
.featured-book {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
}
.fb-art { position: relative; display: flex; justify-content: center; }
.fb-circle {
  width: min(380px, 100%); aspect-ratio: 1;
  background: var(--primary-soft);
  border-radius: 50%; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fb-circle img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fb-copy h2 { margin: 16px 0 18px; }

/* ─── QUOTE BAND ─── */
.quote-band {
  position: relative; overflow: hidden;
  margin: 60px 0;
  padding: clamp(60px, 8vw, 100px) clamp(40px, 6vw, 80px);
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink);
}
.quote-band blockquote {
  font-family: var(--font-script);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500; line-height: 1.3;
  max-width: 24ch; margin: 0 auto;
}
body.font-serif .quote-band blockquote { font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 2.8vw, 36px); }
.quote-band cite {
  display: block; margin-top: 20px;
  font-style: normal; font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.quote-mark { color: var(--accent); font-family: var(--font-serif); }

/* ─── TRUST ─── */
.trust {
  display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 60px);
  padding: clamp(40px, 6vw, 80px) 0;
  flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;}
.trust-item strong { color: var(--ink); }
.trust-item span { font-size: 13px; color: var(--muted); max-width: 16ch; }
.trust-divider { width: 1px; height: 50px; background: var(--line); }

/* ─── BOOKS PAGE ─── */
.book-feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  padding: 40px 0 clamp(60px, 8vw, 100px);
  align-items: center;
}
.book-cover-wrap { position: relative; }
.book-cover-shadow {
  position: absolute; inset: 30px 30px -30px -30px;
  background: var(--primary); opacity: 0.25;
  border-radius: var(--radius);
  filter: blur(40px);
}
.book-cover {
  width: 100%; max-width: 440px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  position: relative;
}
.book-badge {
  position: absolute; top: 16px; right: -10px;
  background: var(--accent); color: white;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.book-detail h2 { margin: 14px 0 12px; }
.book-subtitle { font-style: italic; color: var(--ink); margin-bottom: 18px; font-size: 17px; }
.book-meta {
  list-style: none; margin: 28px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
  padding: 24px; background: var(--bg-3); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.book-meta li { display: flex; flex-direction: column; gap: 2px; }
.book-meta span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.book-meta strong { color: var(--ink); font-weight: 600; font-size: 15px; }

/* concepts */
.concepts { padding: clamp(60px, 8vw, 100px) 0; }
.concept-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.concept-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.concept-card .concept-sprig {
  position: absolute; top: 18px; right: 18px;
}
.concept-card h3 { margin-bottom: 12px; color: var(--ink); }
.concept-card p { font-size: 15px; }

/* praise */
.praise {
  position: relative; overflow: hidden;
  padding: clamp(60px, 8vw, 100px) clamp(30px, 5vw, 60px);
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  margin: 40px 0;
}
.praise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative; z-index: 2;
}
.testi {
  background: var(--bg-3); padding: 30px 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  position: relative;
}
.testi-mark {
  font-family: var(--font-serif);
  font-size: 80px; color: var(--accent); opacity: 0.4;
  position: absolute; top: -10px; left: 14px;
  line-height: 1;
}
.testi blockquote {
  font-size: 15px; font-style: italic; line-height: 1.55;
  color: var(--ink); margin-bottom: 14px;
  position: relative; z-index: 2;
}
.testi figcaption { font-size: 13px; color: var(--accent); font-weight: 600; }

/* next book */
.next-book {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 60px);
  align-items: center;
  padding: clamp(50px, 7vw, 90px) 0;
}
.nb-art { display: flex; justify-content: center; }
.nb-placeholder {
  width: 280px; aspect-ratio: 1;
  background: var(--bg-2);
  border-radius: 50%;
  border: 2px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--ink);
}

/* ─── ACCOMPAGNEMENT ─── */
.tabs {
  display: flex; gap: 6px; justify-content: center;
  margin: 40px auto;
  padding: 6px; background: var(--bg-2);
  border-radius: 999px; width: fit-content;
  border: 1px solid var(--line);
}
.tab {
  padding: 12px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: all .25s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--bg-3); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

.accomp-section { padding: 40px 0 80px; }
.accomp-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px);
  align-items: center; margin-bottom: 60px;
}
.accomp-copy h2 { margin: 14px 0 20px; }
.accomp-copy p + p { margin-top: 14px; }
.bullets { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.bullets li { font-size: 15px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.bullets li::before {
  content: "✿"; position: absolute; left: 0; top: 0;
  color: var(--accent); opacity: 0.7;
}

.art-stack { position: relative; display: flex; justify-content: center; }
.art-img {
  width: min(380px, 100%); aspect-ratio: 4/5;
  border-radius: 50% 50% 48% 52% / 60% 55% 45% 40%;
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--bg-2);
  position: relative; z-index: 2;
}
.art-img img { width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(0deg) saturate(0.9); }
.placeholder-art {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: var(--ink);
}
.placeholder-label { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

.pricing-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 40px;
}
.price-card {
  padding: 32px 28px; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  position: relative; text-align: center;
  transition: all .25s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.featured {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.price-card.featured .price-tag,
.price-card.featured .price-value,
.price-card.featured p { color: var(--bg); }
.price-card.featured .price-value em { color: var(--primary-soft); }
.featured-mark {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  padding: 5px 14px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.price-tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price-value { margin: 14px 0 8px; color: var(--ink); }
.price-card p { font-size: 13px; }

/* how works */
.how-works { padding: 80px 0; }
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.steps li {
  padding: 30px;
  border-left: 2px solid var(--line);
  position: relative;
}
.step-num {
  font-family: var(--font-script); font-size: 56px; font-weight: 600;
  color: var(--primary); line-height: 1; display: block; margin-bottom: 10px;
}
.steps h4 { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.steps p { font-size: 14px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(60px, 8vw, 100px) clamp(40px, 6vw, 60px);
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 60px 0;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { margin-top: 20px; }

/* ─── ABOUT ─── */
.about-intro {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: 40px 0 80px;
}
.about-portrait {
  position: relative;
  width: min(400px, 100%); aspect-ratio: 4/5;
  margin: 0 auto;
}
.about-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50% 50% 48% 52% / 60% 55% 45% 40%;
  box-shadow: var(--shadow-lg);
}
.about-text .lead { margin-bottom: 20px; }
.about-text p + p { margin-top: 14px; }

/* timeline */
.timeline { padding: 60px 0; }
.tl-list { list-style: none; max-width: 760px; margin: 0 auto; }
.tl-item {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 30px; padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.tl-item:last-child { border-bottom: none; }
.tl-year { color: var(--accent); text-align: right; padding-top: 4px; }
.tl-body h4 { color: var(--ink); margin-bottom: 6px; font-size: 18px; }
.tl-body p { font-size: 14px; }

/* values */
.values { padding: 60px 0 100px; }
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.value-card {
  padding: 28px 24px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.value-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.value-card h4 { margin-bottom: 8px; }
.value-card p { font-size: 14px; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 60px);
  padding: 40px 0 100px;
  align-items: start;
}
.contact-info {
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.ci-card {
  padding: 22px 24px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ci-card h4 { color: var(--ink); margin-bottom: 6px; }
.ci-card p { font-size: 15px; }
.ci-card p + p { margin-top: 8px; }

.contact-form {
  position: relative;
  padding: 40px clamp(28px, 4vw, 44px) 36px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact-form h3 { margin-bottom: 20px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
}
.contact-form label > span {
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.contact-form textarea { resize: vertical; font-family: var(--font-sans); }
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 8px;}
.form-note { font-size: 12px; margin-top: 14px; text-align: center; }
.form-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FBE4E0;
  color: #8A2D20;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}
.btn-primary:disabled { opacity: .6; cursor: wait; }
.sent-msg {
  text-align: center; padding: 40px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.sent-msg h3 { color: var(--ink); }

/* ─── FOOTER ─── */
.site-footer {
  margin-top: 80px;
  padding: 0 clamp(20px, 4vw, 56px) 30px;
  background: var(--bg-2);
  position: relative;
}
.footer-divider {
  width: 100%; max-width: 600px;
  margin: 0 auto;
  display: block;
  height: 60px;
  color: var(--ink);
  opacity: 0.4;
  transform: translateY(-30px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
  max-width: 1280px; margin: 0 auto;
  padding: 20px 0 50px;
}
.footer-col h4 { margin-bottom: 12px; color: var(--ink); }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.footer-col p { font-size: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li, .footer-col ul button {
  font-size: 14px; color: var(--ink-soft);
  text-align: left; transition: color .2s;
}
.footer-col ul button:hover { color: var(--ink); }

.newsletter { display: flex; gap: 6px; margin-top: 12px; }
.newsletter input {
  flex: 1; padding: 10px 14px;
  font-family: inherit; font-size: 13px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.newsletter input:focus { outline: none; border-color: var(--primary); }
.newsletter button {
  padding: 10px 18px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 12px; color: var(--muted);
  flex-wrap: wrap;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero-inner, .featured-book, .book-feature, .accomp-grid, .next-book, .about-intro, .contact-grid {
    grid-template-columns: 1fr;
  }
  .pillar-grid, .concept-grid, .praise-grid, .pricing-row, .steps, .values-grid {
    grid-template-columns: 1fr;
  }
  .navlist { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .topnav { grid-template-columns: auto 1fr auto auto; }
}

/* ─── Burger button (visible <=768px) ─── */
.burger-btn { display: none; }
.mobile-menu, .mobile-floating-cta { display: none; }

@media (max-width: 768px) {
  /* Burger replaces the nav-cta on mobile */
  .nav-cta { display: none; }
  .topnav { grid-template-columns: auto 1fr auto; padding: 14px 18px; gap: 10px; }
  .topnav.is-scrolled {
    box-shadow: 0 2px 14px rgba(31,70,89,0.08);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
  }
  .topnav { transition: box-shadow .3s ease, background .3s ease; }

  .burger-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: none; background: transparent; cursor: pointer;
    margin-left: auto;
  }
  .burger-btn span {
    display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
  }
  .burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger-btn.is-open span:nth-child(2) { opacity: 0; }
  .burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: flex;
    position: fixed; inset: 0; z-index: 9000;
    background: color-mix(in srgb, var(--peach-soft) 96%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 60px 24px 32px;
    animation: mm-fade .35s ease;
  }
  .mobile-menu .menu-close {
    position: absolute; top: 16px; right: 16px;
    width: 44px; height: 44px; padding: 10px;
    background: transparent; border: none; color: var(--ink); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
  }
  .mobile-menu .menu-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .mobile-menu .mobile-nav {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
  .mobile-menu-link {
    font-family: var(--font-script); font-weight: 600;
    font-size: 34px; color: var(--ink); line-height: 1.2;
    padding: 10px 24px; border: none; background: transparent; cursor: pointer;
    transition: color .25s ease, transform .25s ease;
  }
  .mobile-menu-link:hover, .mobile-menu-link:active { color: var(--accent); transform: scale(1.04); }
  .mobile-menu-link.active { color: var(--accent); }
  .mobile-menu-cta { margin-top: 28px; min-width: 220px; }

  /* Floating CTA at the bottom of every page (except contact) */
  .mobile-floating-cta {
    display: block;
    position: fixed; left: 16px; right: 16px; bottom: 14px;
    z-index: 80;
    padding: 14px 22px;
    background: var(--ink); color: var(--bg);
    border: none; border-radius: 999px;
    font-family: var(--font-sans); font-size: 15px; font-weight: 600;
    box-shadow: 0 6px 22px rgba(31,70,89,0.22);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .mobile-floating-cta:active { transform: scale(0.98); }

  /* Add breathing room above the floating CTA so it doesn't overlap content */
  body { padding-bottom: 72px; }

  /* ─── Typographie & lisibilité ─── */
  body { font-size: 16px; line-height: 1.7; }
  p { font-size: 16px; line-height: 1.7; }
  .lead { font-size: 17px; line-height: 1.6; }
  .script-xl { font-size: 44px; }
  .script-lg { font-size: 30px; }
  .script-md { font-size: 22px; }
  .script-sm { font-size: 19px; }
  .muted, .ink-soft { color: var(--ink); opacity: 0.78; }
  input, textarea, select { font-size: 16px; }

  /* ─── Centrage global mobile ─── */
  .hero-copy, .hero-tags,
  .fb-copy, .book-detail,
  .pillar-card, .concept-card, .value-card,
  .about-intro, .about-text,
  .contact-info, .ci-card,
  .next-book, .accomp-section,
  .timeline-item, .praise-item,
  .footer-col {
    text-align: center;
  }
  .hero-copy .eyebrow, .fb-copy .eyebrow, .about-intro .eyebrow { display: block; }
  .hero-tags { padding-left: 0; list-style: none; justify-content: center; align-items: center; flex-direction: column; gap: 8px; }
  .book-detail ul { list-style: none; padding-left: 0; }
  .cta-row { flex-direction: column; align-items: center; gap: 12px; }
  .cta-row .btn-primary, .cta-row .btn-ghost { min-width: 220px; text-align: center; }
  .pillar-card ul, .concept-card ul, .value-card ul { list-style: none; padding-left: 0; }
  .footer-col ul { list-style: none; padding-left: 0; }
  .footer-col ul button { text-align: center; width: 100%; }
  .footer-grid { text-align: center; }

  /* ─── Espacements ─── */
  .hero { padding: 70px 0 80px; }
  .pillars, .featured-book, .quote-band, .trust,
  .book-feature, .accomp-section, .concepts, .praise,
  .next-book, .about-intro, .timeline, .values, .cta-band, .how-works,
  .contact-grid {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .page-header { padding: 70px 20px 32px; }
  .section-header { margin-bottom: 28px; }
  .pillar-grid, .concept-grid, .values-grid, .praise-grid { gap: 28px; }
  .accomp-grid, .about-intro, .contact-grid, .featured-book, .book-feature { gap: 36px; }

  /* ─── Peach blobs scaling ─── */
  .peach-blob.organic {
    max-width: 70vw !important;
    max-height: 70vw !important;
  }
}

@keyframes mm-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { animation: none; }
  .burger-btn span { transition: none; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topnav { padding: 12px 14px; gap: 8px; }
  .trust { flex-direction: column; gap: 20px; }
  .trust-divider { display: none; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}

/* page transition */
.page-fade-enter { opacity: 1; animation: fadein .35s ease forwards; }
@keyframes fadein {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-fade-enter { animation: none; }
}

/* ─── Peach blobs in background ─── */
.peach-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--peach);
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
}
.peach-blob.organic {
  border-radius: 60% 40% 55% 45% / 55% 50% 50% 45%;
}

/* sparkles wrapping */
.sparkle-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

/* Hero deco enhancements */
.hero-sparkle { color: var(--primary); }
.hero-daisy {
  position: absolute; pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(31,70,89,0.08));
}

/* Decorative blob behind a section */
.section-blob-bg {
  position: absolute;
  background: var(--peach);
  z-index: 0;
  pointer-events: none;
}
.section-blob-bg.left {
  left: -10%; top: 10%;
  width: 60%; height: 70%;
  border-radius: 0 50% 50% 0 / 0 60% 40% 0;
  opacity: 0.7;
}
.section-blob-bg.right {
  right: -10%; bottom: 5%;
  width: 50%; height: 60%;
  border-radius: 50% 0 0 50% / 50% 0 0 50%;
  opacity: 0.5;
}

/* Quote band — softer with peach */
.quote-band {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--peach-soft) 100%);
}

/* Hero gets a soft peach swoosh */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--peach-soft) 50%, var(--bg) 100%);
}

/* Pillar card daisy decoration corner */
.pillar-daisy {
  position: absolute;
  bottom: -10px; left: -10px;
  pointer-events: none;
}

/* Floating sparkles in featured book */
.fb-art { position: relative; }
.fb-sparkle-1 { position: absolute; top: -10px; left: 30%; color: var(--primary); }
.fb-sparkle-2 { position: absolute; top: 30%; right: 0; color: var(--accent); }
.fb-sparkle-3 { position: absolute; bottom: 8%; left: 0; color: var(--primary); }
.fb-daisy { position: absolute; bottom: -16px; right: -20px; }

/* Eucalyptus branches as section decorations */
.deco-eucalyptus {
  position: absolute;
  color: var(--ink);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

/* Fern decorations */
.deco-fern {
  position: absolute;
  color: var(--primary);
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}

/* Sparkle ensure stacking above blobs */
.hero-inner, .pillar-grid, .featured-book .fb-copy, .pillar-card, .concept-card, .page-header {
  position: relative; z-index: 2;
}

/* Page-header sparkles */
.page-header { overflow: visible; }
.page-header .sparkle-cluster {
  position: absolute;
  pointer-events: none;
  color: var(--primary);
}

/* ─── Dynamic effects (desktop only) ─── */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  @keyframes fx-twinkle { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
  @keyframes fx-spin-slow { to { transform: rotate(360deg); } }

  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
  }
  .reveal.reveal-in { opacity: 1; transform: none; }

  .fx-sparkle {
    transform-origin: center;
    animation: fx-twinkle 2.8s ease-in-out infinite;
  }
  .fx-sparkle:nth-of-type(2n) { animation-delay: .6s; animation-duration: 3.2s; }
  .fx-sparkle:nth-of-type(3n) { animation-delay: 1.2s; animation-duration: 2.4s; }
  .fx-sparkle:nth-of-type(5n) { animation-delay: 1.8s; animation-duration: 3.6s; }

  .fx-daisy {
    transform-origin: center;
    animation: fx-spin-slow 38s linear infinite;
  }
  .fx-daisy:nth-of-type(2n) { animation-duration: 52s; animation-direction: reverse; }
  .fx-daisy:nth-of-type(3n) { animation-duration: 64s; }

  .peach-blob.organic {
    transition: transform .2s linear;
    will-change: transform;
  }

  .pillar-card,
  .concept-card,
  .value-card,
  .price-card,
  .portrait-frame,
  .fb-circle,
  .book-cover-wrap {
    transition:
      transform .55s cubic-bezier(.2,.7,.2,1),
      box-shadow .55s ease,
      filter .55s ease;
    will-change: transform;
  }
  .pillar-card:hover,
  .concept-card:hover,
  .value-card:hover,
  .price-card:hover {
    transform: translateY(-6px) rotate(-.4deg);
    box-shadow: var(--shadow-lg);
  }
  .portrait-frame:hover,
  .fb-circle:hover,
  .book-cover-wrap:hover {
    transform: translateY(-4px) scale(1.015);
    filter: drop-shadow(0 18px 36px rgba(31,70,89,0.18));
  }

  .btn-primary, .btn-ghost {
    transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, background .3s ease, color .3s ease;
  }
  .btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow); }
  .btn-ghost:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fx-sparkle, .fx-daisy { animation: none !important; }
  .peach-blob.organic { transform: none !important; transition: none !important; }
  .pillar-card, .concept-card, .value-card, .price-card,
  .portrait-frame, .fb-circle, .book-cover-wrap,
  .btn-primary, .btn-ghost { transition: none !important; }
}
