/**
 * conversion.css — Couche conversion (template V2)
 * Chargé DYNAMIQUEMENT via useEffect uniquement sur les pages conversion.
 * Réutilise les variables du thème (--accent, --bg-alt, --font-body...).
 * Classes préfixées `conv-` pour ne jamais entrer en collision avec le V1.
 */

:root { --conv-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

/* ===== HERO ===== */
.conv-hero { background: var(--bg-alt); padding: 104px 24px 60px; position: relative; overflow: hidden; }
.conv-hero::before { content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 120%; height: 160%; background: radial-gradient(ellipse at 50% 25%, var(--accent-alpha-10) 0%, transparent 60%); pointer-events: none; z-index: 0; }
.conv-hero-inner { max-width: var(--max-layout, 1200px); margin: 0 auto; position: relative; z-index: 1; }
.conv-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center; }
.conv-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--accent-light); color: var(--accent); font-family: var(--conv-sans); font-weight: 600; font-size: 13px; padding: 6px 15px; border-radius: var(--radius-pill, 9999px); margin-bottom: 20px; }
.conv-badge svg { width: 14px; height: 14px; stroke: var(--accent); stroke-width: 2.5; fill: none; }
.conv-h1 { font-family: var(--font-title, var(--font-body)); font-size: clamp(2.3rem, 3.6vw, 3.2rem); font-weight: 400; line-height: 1.08; letter-spacing: -2px; color: var(--text); margin-bottom: 20px; }
.conv-h1 em { font-style: italic; color: var(--accent); }
.conv-subtitle { font-size: 1.12rem; line-height: 1.5; color: var(--text); max-width: 52ch; margin-bottom: 24px; }
.conv-trust-row { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-bottom: 28px; font-family: var(--conv-sans); font-size: 13px; color: var(--muted); }
.conv-trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.conv-trust-row svg { width: 14px; height: 14px; stroke: var(--green); stroke-width: 2.5; fill: none; }
.conv-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--accent); color: #fff; font-family: var(--conv-sans); font-weight: 700; font-size: 16px; padding: 16px 32px; border-radius: var(--radius-pill, 9999px); text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 6px 20px var(--accent-alpha-25); }
.conv-cta, .conv-cta:link, .conv-cta:visited { color: #fff !important; }
.conv-cta * { color: #fff !important; }
.conv-cta:hover { background: var(--accent-hover); transform: translateY(-2px); color: #fff !important; }
.conv-cta svg { width: 17px; height: 17px; stroke: #fff; stroke-width: 2.5; fill: none; }
.conv-cta-sub { font-family: var(--conv-sans); font-size: 13px; color: var(--muted); margin-top: 14px; }
.conv-cta-sub a { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-alpha-25); }
.conv-price-card { background: var(--card); border: 2px solid var(--border); border-radius: 24px; padding: 28px 26px; position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
.conv-price-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-dark), var(--accent)); }
.conv-pc-label { font-family: var(--font-handwritten); font-size: 21px; color: var(--muted); margin-bottom: 2px; }
.conv-pc-sublabel { font-family: var(--conv-sans); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted-light); font-weight: 700; margin-bottom: 16px; }
.conv-cost-row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--border); }
.conv-cost-row .conv-name { font-size: .98rem; color: var(--text); }
.conv-cost-row .conv-amount { font-family: var(--conv-sans); font-weight: 800; font-size: 1rem; color: var(--red); white-space: nowrap; }
.conv-relief { margin-top: 20px; padding: 18px; background: var(--accent-light); border-radius: 16px; text-align: center; }
.conv-relief .conv-lbl { font-family: var(--conv-sans); font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.conv-relief .conv-big { font-family: var(--font-title, var(--font-body)); font-size: 2.4rem; font-weight: 600; color: var(--accent); line-height: 1; }
.conv-relief .conv-big small { font-size: 1rem; font-weight: 500; }
.conv-pc-hw { font-family: var(--font-handwritten); font-size: 19px; color: var(--accent); text-align: center; margin-top: 14px; }

/* ===== RÉASSURANCE ===== */
.conv-reassurance { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.conv-reassurance-inner { max-width: var(--max-layout, 1200px); margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.conv-trust-item { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 210px; }
.conv-trust-item svg { width: 20px; height: 20px; stroke: var(--accent); stroke-width: 1.8; fill: none; flex-shrink: 0; }
.conv-ti-title { font-family: var(--conv-sans); font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.conv-ti-sub { font-family: var(--conv-sans); font-size: 12px; color: var(--muted-light); line-height: 1.3; }

/* ===== ANCRAGE PRIX ===== */
.conv-price-anchor { max-width: var(--max-content, 820px); margin: 8px auto 0; padding: 0 24px; }
.conv-table-wrap { margin: 24px 0; overflow-x: auto; border-radius: var(--radius-card, 20px); border: 2px solid var(--border); background: var(--card); box-shadow: var(--shadow-card); }
.conv-table { width: 100%; border-collapse: collapse; font-family: var(--conv-sans); font-size: 14.5px; }
.conv-table thead { background: var(--bg-alt); }
.conv-table th { padding: 14px 18px; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); text-align: left; border-bottom: 2px solid var(--border); }
.conv-table th.conv-num, .conv-table td.conv-num { text-align: right; white-space: nowrap; }
.conv-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--muted); }
.conv-table td.conv-situation { color: var(--text); font-weight: 600; }
.conv-table tr:last-child td { border-bottom: none; }
.conv-table tbody tr { transition: background 0.2s; }
.conv-table tbody tr:hover { background: var(--accent-light); }
.conv-c-red { font-weight: 800; color: var(--red); }
.conv-c-you { font-weight: 800; color: var(--text); }
.conv-c-save { font-weight: 800; color: var(--green); }
.conv-verdict { margin-top: 22px; background: var(--green-light); border: 2px solid rgba(45,139,85,.2); border-radius: var(--radius-card, 20px); padding: 22px 26px; }
.conv-verdict .conv-v-big { font-family: var(--font-body); font-size: 1.4rem; font-weight: 600; color: var(--text); line-height: 1.25; margin-bottom: 2px; }
.conv-verdict .conv-v-big em { font-style: italic; color: var(--green); }
.conv-verdict .conv-v-sub { font-family: var(--conv-sans); font-size: 13px; color: var(--muted); }
.conv-after-cta { text-align: center; margin-top: 28px; }
.conv-after-cta .conv-micro { font-family: var(--conv-sans); font-size: 12.5px; color: var(--muted-light); margin-top: 9px; }

/* ===== CTA CONTEXTUEL ===== */
.conv-contact { max-width: var(--max-content, 820px); margin: 44px auto; padding: 0 24px; }
.conv-contact-box { background: var(--card); border: 2px solid var(--border); border-radius: 20px; padding: 26px 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow-card); }
.conv-cc-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.conv-cc-avatar svg { width: 28px; height: 28px; stroke: var(--accent); stroke-width: 1.8; fill: none; }
.conv-cc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conv-cc-text { flex: 1; min-width: 230px; }
.conv-cc-t { font-family: var(--font-body); font-size: 1.3rem; font-weight: 600; color: var(--text); line-height: 1.2; margin-bottom: 3px; }
.conv-cc-t em { font-style: italic; color: var(--accent); }
.conv-cc-sub { font-family: var(--conv-sans); font-size: 13.5px; color: var(--muted); }
.conv-cc-btn { font-family: var(--conv-sans); font-size: 14.5px; font-weight: 700; color: var(--accent); background: transparent; border: 2px solid var(--accent); border-radius: var(--radius-pill, 9999px); padding: 11px 24px; text-decoration: none; white-space: nowrap; transition: all 0.2s; cursor: pointer; }
.conv-cc-btn:hover { background: var(--accent); color: #fff; }

/* ===== CTA FINAL ===== */
.conv-final { max-width: var(--max-content, 820px); margin: 0 auto; padding: 56px 24px 0; }
.conv-urgency { display: flex; align-items: center; gap: 12px; justify-content: center; font-family: var(--conv-sans); font-size: 14px; color: var(--muted); margin: 0 auto 26px; padding: 11px 20px; background: var(--bg-alt); border-radius: var(--radius-pill, 9999px); border: 1px solid var(--border); max-width: 560px; }
.conv-urgency svg { width: 17px; height: 17px; stroke: var(--accent); stroke-width: 2; fill: none; flex-shrink: 0; }
.conv-urgency b { color: var(--text); font-weight: 700; }
.conv-final-box { background: var(--accent-light); border: 2px solid var(--border); border-radius: 24px; padding: 48px 44px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
.conv-final-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-dark), var(--accent)); }
.conv-final-box::after { content: ''; position: absolute; inset: -2px; border-radius: 24px; pointer-events: none; border: 1px solid var(--accent-alpha-25); }
.conv-fc-icon svg { width: 52px; height: 52px; stroke: var(--accent); stroke-width: 1.6; fill: none; margin-bottom: 18px; }
.conv-final-box h2 { font-family: var(--font-body); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; color: var(--text); line-height: 1.15; margin-bottom: 14px; letter-spacing: -.5px; }
.conv-final-box h2 em { font-style: italic; color: var(--accent); }
.conv-final-box .conv-lead { font-size: 1.1rem; color: var(--muted); max-width: 50ch; margin: 0 auto 8px; }
.conv-final-box .conv-lead strong { color: var(--text); font-weight: 600; }
.conv-fc-hw { font-family: var(--font-handwritten); font-size: 22px; color: var(--accent); margin: 16px 0 26px; }
.conv-fc-reassure { display: flex; align-items: center; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 20px; font-family: var(--conv-sans); font-size: 12.5px; color: var(--muted-light); }
.conv-fc-reassure span { display: inline-flex; align-items: center; gap: 6px; }
.conv-fc-reassure svg { width: 13px; height: 13px; stroke: var(--green); stroke-width: 2.5; fill: none; }

/* ===== MAILLAGE ===== */
.conv-maillage { max-width: var(--max-content, 820px); margin: 0 auto; padding: 48px 24px 0; }
.conv-maillage h2 { font-family: var(--font-body); font-size: 1.6rem; font-weight: 600; color: var(--text); letter-spacing: -.3px; }
.conv-maillage h2::before { content: ''; display: block; width: 28px; height: 2.5px; background: var(--accent); border-radius: 2px; margin-bottom: 12px; }
.conv-maillage .conv-sub { font-family: var(--conv-sans); font-size: 13.5px; color: var(--muted-light); margin: 4px 0 22px; }
.conv-breed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.conv-breed-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 15px 20px; text-decoration: none; transition: all 0.2s; }
.conv-breed-link:hover { border-color: var(--accent); transform: translateX(2px); }
.conv-bl-name { font-family: var(--conv-sans); font-size: 14.5px; font-weight: 600; color: var(--text); }
.conv-bl-hint { font-family: var(--conv-sans); font-size: 12px; color: var(--muted-light); margin-top: 2px; }
.conv-bl-arrow svg { width: 16px; height: 16px; stroke: var(--accent); stroke-width: 2.5; fill: none; opacity: 0; transition: all 0.2s; }
.conv-breed-link:hover .conv-bl-arrow svg { opacity: 1; }
.conv-hub-link { margin-top: 20px; text-align: center; }
.conv-hub-link a { font-family: var(--conv-sans); font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1.5px solid var(--accent-alpha-25); padding-bottom: 2px; }

/* ===== STICKY BAR ===== */
.conv-sticky { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--card); border-top: 2px solid var(--accent); box-shadow: 0 -8px 32px rgba(0,0,0,0.10); transform: translateY(110%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.conv-sticky.conv-visible { transform: translateY(0); }
.conv-sticky-inner { max-width: var(--max-layout, 1200px); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.conv-sticky-context { display: flex; align-items: center; gap: 12px; }
.conv-sticky-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.conv-sticky-icon svg { width: 20px; height: 20px; stroke: var(--accent); stroke-width: 2; fill: none; }
.conv-st-t { font-family: var(--conv-sans); font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.conv-st-p { font-family: var(--conv-sans); font-size: 12.5px; color: var(--muted); }
.conv-st-p b { color: var(--accent); font-weight: 800; }
.conv-sticky .conv-cta { font-size: 15px; padding: 12px 26px; white-space: nowrap; }
.conv-sticky-close { background: none; border: none; cursor: pointer; color: var(--muted-light); font-size: 20px; line-height: 1; padding: 6px; flex-shrink: 0; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .conv-hero { padding: 20px 16px 26px; }
  .conv-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .conv-h1 { font-size: 1.75rem; letter-spacing: -.8px; }
  .conv-subtitle { font-size: 1.05rem; }
  .conv-cta { width: 100%; }
  .conv-cta-sub { text-align: center; }
  .conv-price-card { padding: 18px; border-radius: 18px; }
  .conv-relief .conv-big { font-size: 2rem; }
  .conv-reassurance-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }
  .conv-trust-item { min-width: 0; }
  .conv-price-anchor, .conv-contact, .conv-final, .conv-maillage { padding-left: 16px; padding-right: 16px; }
  .conv-table-wrap { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: none; border-right: none; }
  .conv-table th, .conv-table td { padding: 12px 14px; font-size: 13px; }
  .conv-contact-box { padding: 20px 16px; }
  .conv-cc-btn { width: 100%; text-align: center; }
  .conv-final-box { padding: 32px 20px; }
  .conv-breed-grid { grid-template-columns: 1fr; }
  .conv-sticky-inner { padding: 11px 16px; gap: 12px; }
  .conv-st-t { font-size: 12.5px; }
  .conv-st-p { font-size: 11.5px; }
  .conv-sticky .conv-cta { padding: 12px 20px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .conv-cta, .conv-breed-link, .conv-sticky { transition: none; }
}

/* Breadcrumb du hero conversion */
.conv-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--conv-sans); font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.conv-breadcrumb a { color: var(--muted); text-decoration: none; }
.conv-breadcrumb a:hover { color: var(--accent); }
.conv-breadcrumb .conv-sep { opacity: 0.4; }
.conv-breadcrumb .conv-current { color: var(--text); font-weight: 600; }
