/* ============================================================
   Infoproduit.com — stylesheet
   Editorial, warm, refined.  Mobile-first, dark-mode-aware.
   No external assets beyond one variable font from Google Fonts.
   ============================================================ */

/* ---------- 1. Reset & tokens ---------- */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Palette — light (default) */
  --paper:      #F6F3EC;
  --paper-2:    #EFEAE0;
  --paper-3:    #E6E0D2;
  --ink:        #14161B;
  --ink-soft:   #3A3E48;
  --ink-muted:  #6B6E78;
  --rule:       #D8D2C3;
  --amber:      #B85C15;
  --amber-deep: #8F4510;
  --amber-soft: #F4E7D6;
  --sage:       #5A6B55;

  /* Type */
  --font-serif: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --wrap: 1200px;
  --wrap-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Radii, shadows, motion */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(20,22,27,.04), 0 2px 8px rgba(20,22,27,.04);
  --shadow-2: 0 2px 6px rgba(20,22,27,.06), 0 12px 32px rgba(20,22,27,.08);
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #14161B;
    --paper-2:    #1B1E25;
    --paper-3:    #22262F;
    --ink:        #F2EFE7;
    --ink-soft:   #C6C2B6;
    --ink-muted:  #8D8A80;
    --rule:       #2C2F38;
    --amber:      #E08948;
    --amber-deep: #F4A366;
    --amber-soft: #2A1F14;
    --sage:       #A5B89D;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.3);
    --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.5);
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "kern";
}

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

a {
  color: var(--ink);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--amber-deep); text-decoration-color: currentColor; }
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--amber); color: var(--paper); }

/* ---------- 2. Layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Typography ---------- */

.display,
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

h1.display {
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 350;
  font-variation-settings: "opsz" 120;
}
h1.display em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 60;
  max-width: 22ch;
}

h3 { font-weight: 500; }

.eyebrow, .section-kicker {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}

.eyebrow .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: .6rem;
  vertical-align: 1px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .55; transform: scale(.85); }
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 1.5rem 0 0;
}

.section-intro {
  font-size: 1.075rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 1rem 0 0;
  line-height: 1.6;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head-center { text-align: center; margin-inline: auto; max-width: 680px; }
.section-head-center .section-title { margin-inline: auto; }
.section-head-center .section-intro { margin-inline: auto; }

/* ---------- 4. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .005em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--amber-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.btn-primary .btn-arrow { transition: transform .25s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

/* ---------- 5. Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .12rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  color: var(--amber);
  font-style: italic;
  font-weight: 600;
  margin-right: .1rem;
  font-variation-settings: "opsz" 80;
}
.brand-word { font-weight: 450; }
.brand-dot  { color: var(--ink-muted); font-weight: 400; }

/* Nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.primary-nav a {
  font-size: .93rem;
  font-weight: 450;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: .25rem 0;
  transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--amber);
  transition: right .25s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { right: 0; }

.primary-nav .nav-cta {
  padding: .5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--amber-deep); color: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 3px auto;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */

.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, color-mix(in srgb, var(--amber) 10%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 95% 90%, color-mix(in srgb, var(--sage) 9%, transparent) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 2.25rem 0 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule);
}
.hero-stats > div {
  padding-right: 1.5rem;
  border-right: 1px solid var(--rule);
}
.hero-stats > div:last-child { border-right: none; }
.hero-stats dt {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .45rem;
}
.hero-stats dd {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  letter-spacing: -.02em;
}

.hero-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 15%, var(--rule) 85%, transparent);
}

/* ---------- 7. Pillars ---------- */

.pillars { padding: var(--section-y) 0; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.pillar {
  padding: 2.25rem 1.75rem 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background .25s var(--ease);
}
.pillar:nth-last-child(-n+1) { border-right: none; }

.pillar:hover { background: var(--paper-2); }
.pillar:hover .pillar-num { color: var(--amber); }

.pillar-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  padding-left: 1.75rem;
  letter-spacing: .05em;
  transition: color .25s var(--ease);
}

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  margin: 0 0 .9rem;
  padding-left: 1.75rem;
  letter-spacing: -.015em;
}
.pillar h3 a { color: var(--ink); text-decoration: none; }
.pillar h3 a:hover { color: var(--amber-deep); }

.pillar p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  padding-left: 1.75rem;
  font-size: .97rem;
  line-height: 1.55;
}

.pillar-link {
  display: inline-block;
  margin-left: 1.75rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--amber-deep);
  text-decoration: none;
}
.pillar-link:hover { color: var(--ink); }

@media (max-width: 780px) {
  .pillar { border-right: none; padding-right: 0; }
  .pillar-num, .pillar h3, .pillar p, .pillar-link { padding-left: 0; }
}

/* ---------- 8. Featured articles ---------- */

.featured {
  padding: var(--section-y) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--amber) 6%, transparent), transparent 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--shadow-2);
}
.card:hover::before { opacity: 1; }

.card-lg { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .card-lg { grid-column: span 2; }
  .card-lg h3 { font-size: 2rem; }
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .9rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
  margin-bottom: 1.1rem;
  position: relative;
}
.card-meta .tag {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber-deep);
  text-decoration: none;
  padding: .25rem .6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .7rem;
}
.card-meta .tag:hover { background: var(--amber); color: var(--paper); border-color: var(--amber); }
.card-meta time, .card-meta .read { font-variant-numeric: tabular-nums; }
.card-meta .read::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  background: var(--ink-muted);
  border-radius: 50%;
  margin-right: .6rem;
  vertical-align: 3px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-variation-settings: "opsz" 48;
  font-weight: 450;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .9rem;
  position: relative;
}
.card h3 a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-size: 0 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease);
}
.card:hover h3 a { background-size: 100% 1.5px; }

.card p {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  font-size: .96rem;
  line-height: 1.6;
  position: relative;
  flex: 1;
}

.read-more {
  align-self: flex-start;
  font-size: .88rem;
  font-weight: 500;
  color: var(--amber-deep);
  text-decoration: none;
  position: relative;
}
.read-more:hover { color: var(--ink); }

.section-more {
  text-align: center;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}

/* ---------- 9. Method ---------- */

.method {
  padding: var(--section-y) 0;
}

.method-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
}

.method-text p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 60ch;
}
.method-text p:first-of-type {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.6;
}

.method-links {
  margin-top: 2rem !important;
  font-size: .92rem !important;
  color: var(--ink-muted) !important;
}
.method-links a { color: var(--ink); text-decoration-color: var(--rule); }
.method-links a:hover { text-decoration-color: var(--amber); }
.method-links span { margin: 0 .6rem; color: var(--rule); }

.method-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: sticky;
  top: 100px;
}
.method-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-variation-settings: "opsz" 48;
  font-weight: 500;
  margin: 0 0 1.25rem;
  letter-spacing: -.01em;
}
.method-card ol {
  counter-reset: m;
  list-style: none;
  margin: 0;
  padding: 0;
}
.method-card li {
  counter-increment: m;
  padding: .9rem 0 .9rem 2.25rem;
  border-top: 1px solid var(--rule);
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.5;
  position: relative;
}
.method-card li:first-child { border-top: none; }
.method-card li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.05rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .85rem;
  color: var(--amber);
  font-variation-settings: "opsz" 12;
}
.method-card strong { color: var(--ink); font-weight: 500; }

/* ---------- 10. FAQ ---------- */

.faq {
  padding: var(--section-y) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.faq-wrap { max-width: var(--wrap-narrow); }

.faq-list {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}

.faq-list summary {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  letter-spacing: -.01em;
  color: var(--ink);
  padding: 1.5rem 3rem 1.5rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color .2s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--amber-deep); }

.faq-list summary::after {
  content: "";
  position: absolute;
  right: .25rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-answer {
  padding: 0 3rem 1.75rem 0;
  color: var(--ink-soft);
  animation: faqReveal .35s var(--ease);
}
.faq-answer p {
  margin: 0 0 1rem;
  line-height: 1.7;
}
.faq-answer p:last-child { margin-bottom: 0; }

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 11. Contact strip ---------- */

.contact-strip {
  padding: var(--section-y) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-intro {
  color: var(--ink-soft);
  font-size: 1.075rem;
  line-height: 1.6;
  max-width: 48ch;
  margin: 1rem 0 0;
}

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.contact-channels li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.contact-label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-channels a {
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 36;
  font-size: 1.2rem;
  font-weight: 450;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
  transition: color .2s var(--ease);
  width: fit-content;
}
.contact-channels a:hover { color: var(--amber-deep); }

/* ---------- 12. Footer ---------- */

.site-footer {
  background: var(--paper-3);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  max-width: 38ch;
  line-height: 1.55;
}

.brand-footer { font-size: 1.25rem; }

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--amber-deep); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: .83rem;
  color: var(--ink-muted);
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.footer-note { max-width: 60ch; }
.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--amber-deep); }

/* ---------- 13. Responsive — nav mobile ---------- */

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .primary-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    padding: 2rem var(--gutter) 3rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    visibility: hidden;
    border-top: 1px solid var(--rule);
  }
  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav li {
    border-bottom: 1px solid var(--rule);
  }
  .primary-nav a {
    display: block;
    padding: 1.1rem 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-variation-settings: "opsz" 48;
    color: var(--ink);
    letter-spacing: -.01em;
  }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-cta {
    background: transparent;
    color: var(--amber-deep);
    padding: 1.1rem 0;
    border-radius: 0;
  }
  .primary-nav .nav-cta:hover { background: transparent; color: var(--ink); }

  body.menu-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
  .hero-stats > div {
    border-right: none;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .hero-stats > div:nth-last-child(-n+2) { border-bottom: none; }
}

/* ---------- 14. Print ---------- */

@media print {
  .site-header, .nav-toggle, .hero-ctas, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   15. Shared content-page components
   Used across all inner pages (hubs, guides, articles, legal).
   ============================================================ */

/* ---- breadcrumbs ---- */
.breadcrumbs {
  padding: 1.5rem 0 0;
  font-size: .85rem;
  color: var(--ink-muted);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: .55rem; }
.breadcrumbs li + li::before {
  content: "›";
  color: var(--rule);
  font-weight: 500;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber-deep); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---- page hero (inner pages) ---- */
.page-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.022em;
  font-weight: 350;
  font-variation-settings: "opsz" 96;
  max-width: 22ch;
  margin: .75rem 0 0;
}
.page-hero h1 em { font-style: italic; color: var(--amber); font-weight: 400; }
.page-hero .lede { margin-top: 1.5rem; max-width: 62ch; }
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1.75rem;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.page-hero-meta time { font-variant-numeric: tabular-nums; }

/* ---- affiliate disclosure banner ---- */
.disclosure {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
  border-radius: var(--r-md);
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 72ch;
}
.disclosure strong { color: var(--ink); font-weight: 500; }

/* ---- main prose ---- */
.prose {
  max-width: var(--wrap-narrow);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.prose > * { max-width: 68ch; }
.prose > h2,
.prose > h3,
.prose > h4 { color: var(--ink); }
.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1.15;
  margin: 3rem 0 1.25rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-variation-settings: "opsz" 48;
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.25;
  margin: 2.25rem 0 .85rem;
}
.prose h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ink);
  margin: 1.75rem 0 .5rem;
}
.prose p { margin: 0 0 1.1rem; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.35rem; margin: .5rem 0 1.5rem; }
.prose li { margin: .35rem 0; line-height: 1.7; }
.prose li > ul, .prose li > ol { margin: .4rem 0; }
.prose blockquote {
  margin: 1.75rem 0;
  padding: .25rem 0 .25rem 1.5rem;
  border-left: 3px solid var(--amber);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-variation-settings: "opsz" 36;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
  max-width: 100%;
}
.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  background: var(--paper-2);
  padding: .12em .4em;
  border-radius: 4px;
}
.prose pre {
  font-family: var(--font-mono);
  font-size: .88rem;
  line-height: 1.55;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  max-width: 100%;
  color: var(--ink);
  white-space: pre;
}
.prose pre code { background: transparent; padding: 0; }
.prose figure { margin: 1.75rem 0; max-width: 100%; }
.prose figcaption {
  font-size: .85rem;
  color: var(--ink-muted);
  margin-top: .5rem;
  text-align: center;
}

/* ---- tables ---- */
.prose .table-wrap,
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0 2rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  max-width: 100%;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
}
table.data th,
table.data td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.data thead th {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
table.data tbody tr:last-child th,
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--paper-2); }
table.data td strong { color: var(--ink); font-weight: 500; }

/* ---- callouts / aside boxes ---- */
.callout {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
  max-width: 68ch;
}
.callout h3,
.callout > strong:first-child {
  display: block;
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 .6rem;
  font-weight: 500;
}
.callout p { margin: 0 0 .75rem; color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout.callout-warn { border-left-color: var(--amber-deep); background: var(--amber-soft); }
.callout.callout-quiet { border-left-color: var(--ink-muted); }

/* ---- guide / hub card grid ---- */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 1.5rem 0 2.5rem;
  list-style: none;
  padding: 0;
}
.list-grid > li { margin: 0; }
.list-card {
  display: block;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  height: 100%;
}
.list-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  color: var(--ink);
}
.list-card .tag-inline {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 500;
}
.list-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-variation-settings: "opsz" 36;
  font-weight: 450;
  letter-spacing: -.012em;
  line-height: 1.25;
  margin: .5rem 0 .6rem;
  color: var(--ink);
}
.list-card p {
  font-size: .93rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.list-card time {
  display: block;
  margin-top: .75rem;
  font-size: .78rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* ---- hub category block ---- */
.hub-category {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}
.hub-category:first-of-type { border-top: none; }
.hub-category-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  margin-bottom: 1.5rem;
}
@media (max-width: 780px) {
  .hub-category-head { grid-template-columns: 1fr; }
}
.hub-category-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  letter-spacing: -.015em;
  margin: 0;
}
.hub-category-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---- simple linked list (sitemap, plan) ---- */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.link-list > li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
}
.link-list > li:first-child { border-top: 1px solid var(--rule); }
.link-list a {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-variation-settings: "opsz" 36;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}
.link-list a:hover { color: var(--amber-deep); }
.link-list small {
  display: block;
  font-family: var(--font-sans);
  font-size: .88rem;
  color: var(--ink-muted);
  margin-top: .2rem;
  line-height: 1.5;
}
.link-list ul {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0 0 0 1.25rem;
  border-left: 1px solid var(--rule);
}
.link-list ul li {
  padding: .5rem 0;
  border-bottom: none;
}
.link-list ul li a {
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--ink-soft);
}
.link-list ul li a:hover { color: var(--amber-deep); }

/* ---- stack / pricing compare boxes ---- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.stack-card {
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.stack-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-variation-settings: "opsz" 36;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0 0 .25rem;
}
.stack-card .stack-price {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: .85rem;
}
.stack-card ul { list-style: none; padding: 0; margin: 0; }
.stack-card li {
  padding: .45rem 0;
  font-size: .92rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--rule);
  line-height: 1.45;
}
.stack-card li:last-child { border-bottom: none; }

/* ---- TOC ---- */
.toc {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  max-width: 68ch;
}
.toc-title {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .75rem;
  font-weight: 500;
}
.toc ol {
  margin: 0;
  padding: 0 0 0 1.5rem;
  counter-reset: t;
  list-style: none;
}
.toc li {
  counter-increment: t;
  padding: .25rem 0;
  font-size: .95rem;
  position: relative;
}
.toc li::before {
  content: counter(t, decimal-leading-zero) ".";
  position: absolute;
  left: -1.5rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
}
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--amber-deep); }

/* ---- wireframe / ascii-style box ---- */
.wireframe {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.55;
  background: var(--paper-2);
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--ink-soft);
  white-space: pre;
  overflow-x: auto;
}

/* ---- inline email panel ---- */
.email-panel {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  max-width: 68ch;
}
.email-panel h3 {
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .25rem;
  font-weight: 500;
}
.email-panel a {
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 36;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.email-panel p { margin: .5rem 0 0; font-size: .92rem; color: var(--ink-soft); }

/* ---- category filters (blog) ---- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 2.5rem;
  padding: 0;
  list-style: none;
}
.filters li a {
  display: inline-block;
  padding: .4rem .9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--paper);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.filters li a:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.filters li a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---- profile / persona path blocks ---- */
.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
  list-style: none;
  padding: 0;
  counter-reset: path;
}
.paths > li {
  counter-increment: path;
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  position: relative;
}
.paths > li::before {
  content: "Parcours " counter(path);
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: .5rem;
  font-weight: 500;
}
.paths h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-variation-settings: "opsz" 36;
  font-weight: 500;
  letter-spacing: -.012em;
  margin: 0 0 .5rem;
}
.paths p { margin: 0 0 .85rem; font-size: .93rem; color: var(--ink-soft); line-height: 1.55; }
.paths ol { margin: 0 0 0 1.1rem; padding: 0; font-size: .9rem; color: var(--ink-soft); }
.paths ol li { padding: .2rem 0; }

/* ---- step / howto list ---- */
.steps {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  padding: 1.25rem 0 1.75rem 3.5rem;
  border-top: 1px solid var(--rule);
  position: relative;
  max-width: none;
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-variation-settings: "opsz" 36;
  font-size: 1.25rem;
  color: var(--amber);
  letter-spacing: -.02em;
}
.steps h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-variation-settings: "opsz" 48;
  font-weight: 500;
  letter-spacing: -.012em;
  margin: 0 0 .5rem;
  color: var(--ink);
}
.steps p { margin: 0 0 .75rem; color: var(--ink-soft); line-height: 1.7; }
.steps p:last-child { margin-bottom: 0; }

/* ---- verdict grid (comparison) ---- */
.verdict {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}
.verdict li {
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.verdict dt {
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .35rem;
  font-weight: 500;
}
.verdict dd {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-variation-settings: "opsz" 36;
  font-weight: 450;
  letter-spacing: -.012em;
  margin: 0;
  color: var(--ink);
}
.verdict dd small {
  display: block;
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--ink-soft);
  margin-top: .35rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: normal;
}

/* ---- key figure / big number ---- */
.bignums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}
.bignums > li {
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.bignums strong {
  display: block;
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .25rem;
}
.bignums span {
  display: block;
  font-size: .88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ---- footer of page: next-read / related ---- */
.related {
  margin: 3rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--rule);
}
.related h2 {
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 1rem;
}
.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
}
.related li a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-variation-settings: "opsz" 36;
  line-height: 1.35;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.related li a:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
