/* ============================================================
   pillar.css — Direction B v2 "Passion Pop équilibrée"
   Shared styles for pillar + tool pages
   All existing class names preserved; visual completely refaite
   ============================================================ */

/* Inherit tokens from theme-v2.css (loaded separately) */
/* If theme-v2.css is not loaded, fall back to local variables */
:root {
  --bg: #fdf6e8;
  --bg-alt: #f4ead0;
  --paper: #fff9e9;
  --cream: #f8e8a8;
  --ink: #1a1208;
  --ink-soft: #3d2f1a;
  --ink-muted: #6b5a42;
  --line: rgba(26, 18, 8, 0.15);
  --red: #e8242c;
  --red-dark: #b01820;
  --blue: #1b5aa8;
  --yellow: #ffc83d;
  --green: #10a36f;
  --purple: #6c3ab0;

  --font-display: 'Bungee', Impact, sans-serif;
  --font-shout: 'Bangers', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Legacy aliases kept for back-compat with old classes */
  --red-light: var(--red);
  --red-bright: var(--red);
  --dark: var(--bg);
  --dark2: var(--bg-alt);
  --dark3: #fff;
  --dark4: var(--paper);
  --border: var(--line);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --subtle: var(--ink-muted);
  --radius: 0;
  --radius-lg: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: clamp(15px, 1.2vw, 17px);
  -webkit-font-smoothing: antialiased;
  padding-top: 70px; /* space for fixed header */
}

/* ── HERO ───────────────────────────────────────────────── */
.page-hero {
  padding: clamp(40px, 5vw, 60px) 0 clamp(40px, 5vw, 60px);
  text-align: left;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  background-image: radial-gradient(rgba(232,36,44,0.1) 1px, transparent 1.5px);
  background-size: 6px 6px;
}
.page-hero::before { display: none; }
.page-hero > * { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 1100px;
  margin: 0 auto 20px;
}
.page-hero p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 auto 32px;
  line-height: 1.5;
  font-weight: 500;
}

/* Primary button — pop style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-shout);
  font-size: clamp(14px, 1.3vw, 16px);
  letter-spacing: 1.8px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 0;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 48px);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--ink-muted); margin: 0 8px; }

/* ── SHORT ANSWER (featured snippet) ─────────────────────── */
.short-answer {
  max-width: 900px;
  margin: 24px auto 48px;
  padding: 24px 28px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-0.4deg);
  border-radius: 0;
  border-left-width: 3px;
}
.short-answer-label {
  font-family: var(--font-shout);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.short-answer p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
  font-weight: 500;
}
.short-answer p strong { color: var(--ink); font-weight: 700; }

/* ── CONTENT SECTIONS ───────────────────────────────────── */
.content-section {
  padding: clamp(60px, 7vw, 90px) 0;
}
.content-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
}
.content-section.alt {
  background: var(--bg-alt);
  background-image: radial-gradient(rgba(26,18,8,0.05) 1px, transparent 1.5px);
  background-size: 6px 6px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

h2 {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ink);
}
h3 {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.25;
}
p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 500;
}
.section-label {
  display: inline-block;
  padding: 5px 12px;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-shout);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transform: rotate(-1deg);
  margin-bottom: 18px;
}
strong { color: var(--ink); font-weight: 700; }
a { color: var(--red); font-weight: 600; }
a:hover { color: var(--red-dark); text-decoration: underline; }

ul, ol {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 8px 0 16px 22px;
  font-family: var(--font-body);
}
li { margin-bottom: 6px; font-weight: 500; }

/* ── TWO COLUMNS ─────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── FEATURE GRID ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 0;
  padding: 24px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.feature-card::before { display: none; }
.feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  transform: rotate(-4deg);
  flex-shrink: 0;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.1;
  text-transform: uppercase;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0;
  font-weight: 500;
}

/* ── PROBLEM CARDS ───────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.problem-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 28px;
}
.problem-card .icon { font-size: 36px; margin-bottom: 14px; }
.problem-card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.15;
}

/* ── STEPS ──────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 0;
}
.step-num {
  width: 70px;
  height: 70px;
  background: var(--ink);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  transform: rotate(-3deg);
  flex-shrink: 0;
  margin-top: 0;
  line-height: 1;
}
.step:first-child .step-num { background: var(--red); }
.step:last-child .step-num { background: var(--yellow); color: var(--ink); }
.step-content h3 {
  margin-bottom: 6px;
  font-size: clamp(18px, 2vw, 22px);
  font-family: var(--font-body);
  font-weight: 600;
}
.step-content p { margin-bottom: 0; font-size: 15px; line-height: 1.6; }

/* ── COMPARISON TABLE ───────────────────────────────────── */
.compare-table {
  width: 100%;
  max-width: 1100px;
  margin: 32px auto;
  border-collapse: collapse;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  border-radius: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 2px solid var(--ink);
  color: var(--ink-soft);
}
.compare-table tr:nth-child(even) td { background: var(--paper); }
.compare-table th {
  background: var(--ink);
  font-family: var(--font-shout);
  font-weight: 400;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 3px solid var(--ink);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.yes { color: var(--green); font-weight: 700; }
.compare-table td.no { color: var(--red); font-weight: 600; }
.compare-table td.partial { color: var(--ink-muted); font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 280ms ease-out, background 280ms ease-out;
}
.faq-item.open {
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-q::after {
  content: '+';
  font-family: var(--font-shout);
  font-size: 22px;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--ink);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms ease-out;
}
.faq-item.open .faq-q::after {
  content: '+';
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 22px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 500;
}
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--red-dark); font-weight: 700; text-decoration: underline; }

/* ── CTA BLOCK ──────────────────────────────────────────── */
.cta-block {
  background: var(--red);
  color: #fff;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1.5px);
  background-size: 6px 6px;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  border-radius: 0;
  padding: clamp(40px, 5vw, 56px) clamp(20px, 3vw, 32px);
  text-align: center;
  margin: 64px auto 0;
  max-width: 1100px;
  position: relative;
}
.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  text-shadow: 4px 4px 0 var(--ink);
  font-weight: 400;
}
.cta-block p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.cta-block .btn-primary:hover {
  box-shadow: 7px 7px 0 var(--ink);
}
.cta-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 16px;
  font-weight: 600;
}

/* ── PILLAR LINKS ───────────────────────────────────────── */
.pillar-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.pillar-link {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 0;
  padding: 20px;
  text-decoration: none;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
  display: block;
  color: inherit;
}
.pillar-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--cream);
}
.pillar-link h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.pillar-link p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 0;
  font-weight: 500;
}

/* ── TOOL / CALCULATOR ──────────────────────────────────── */
.tool-box {
  max-width: 760px;
  margin: 32px auto 64px;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  border-radius: 0;
  padding: clamp(24px, 3vw, 36px);
  position: relative;
}
.tool-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.tool-row label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tool-row input,
.tool-row select {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}
.tool-row input:focus,
.tool-row select:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--red);
}
.tool-btn {
  width: 100%;
  padding: 16px 20px;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  border-radius: 0;
  font-family: var(--font-shout);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1.8px;
  cursor: pointer;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}
.tool-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.tool-result {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 0;
  border-left-width: 3px;
  display: none;
  transform: rotate(-0.4deg);
}
.tool-result.show { display: block; }
.tool-result .result-label {
  font-family: var(--font-shout);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red-dark);
  font-weight: 400;
  margin-bottom: 6px;
}
.tool-result .result-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.5px;
}
.tool-result .result-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  margin-top: 8px;
  font-weight: 500;
  line-height: 1.5;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col-3 { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .pillar-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .two-col-3 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .pillar-links { grid-template-columns: 1fr; }
  .page-hero { padding: 32px 0; }
  .content-section { padding: 40px 0; }
  .step { grid-template-columns: 60px 1fr; gap: 16px; padding: 18px; }
  .step-num { width: 50px; height: 50px; font-size: 24px; }
  .compare-table { font-size: 12.5px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .short-answer { margin: 20px auto 32px; padding: 18px 20px; transform: rotate(0); }
  .tool-box { padding: 20px; }
  body { padding-top: 64px; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .short-answer, .tool-result, .step-num, .feature-icon,
  .section-label { transform: none !important; }
  * { transition: none !important; animation: none !important; }
}

/* ── FOCUS VISIBLE ──────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
