/*
Theme Name: KitForge
Theme URI: https://kitforge.fr
Description: Thème KitForge — vente de kits de prompts IA pour professionnels e-commerce
Author: KitForge
Author URI: https://kitforge.fr
Version: 1.0.0
Text Domain: kitforge
Requires at least: 6.0
Tested up to: 6.7
*/

/* ============================================================
   POLICES — auto-hébergées (variables, sous-ensemble latin, licence OFL)
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/space-grotesk-latin.woff2) format('woff2');
}

/* ============================================================
   TOKENS — KitForge Design System
   ============================================================ */
:root {
  --bg:            #18181b;
  --surface:       #27272a;
  --surface-2:     #3f3f46;
  --border:        #3f3f46;
  --accent:        #f97316;
  --accent-deep:   #c2410c;
  --accent-glow:   rgba(249,115,22,.12);
  --fg:            #fafafa;
  --fg-muted:      #a1a1aa;
  --fg-subtle:     #71717a;

  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --radius:        8px;
  --radius-lg:     12px;
  --max-w:         1100px;
  --max-w-text:    700px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  text-wrap: balance;
  margin: 0 0 .75em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; color: var(--fg-muted); }
p:last-child { margin-bottom: 0; }

ul,ol { padding-left: 1.5em; color: var(--fg-muted); }
li { margin-bottom: .4em; }

/* ============================================================
   LAYOUT UTILS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--text {
  max-width: var(--max-w-text);
}

.section {
  padding-block: 80px;
}

.section--alt {
  background: var(--surface);
}

/* Sections en biais : bords haut et bas parallèles, inclinés de --slant. */
.section--alt,
.cta-band {
  --slant: 48px;
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.section--alt { padding-block: calc(80px + var(--slant)); }
@media (max-width: 768px) {
  .section--alt, .cta-band { --slant: 24px; }
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  margin-bottom: 8px;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin-bottom: 48px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  line-height: 1;
}
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost { background: transparent; color: var(--accent); padding-inline: 0; }
.btn--lg { font-size: 15px; padding: 14px 28px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge--fire    { background: var(--accent-glow); color: var(--accent); }
.badge--neutral { background: var(--surface-2); color: var(--fg-muted); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24,24,27,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__mark { width: 32px; height: 32px; }

.site-logo__wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.site-logo__wordmark .kit   { color: var(--fg); }
.site-logo__wordmark .forge { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color .15s;
}
.site-nav a:hover { color: var(--fg); }

.site-nav__cta { margin-left: 8px; }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--fg);
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-block: 10px; font-size: 15px; width: 100%; color: var(--fg-muted); }
  .site-nav__cta { margin-left: 0; margin-top: 8px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: 100px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(249,115,22,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Décor animé du hero (SVG inline dans front-page.php) */
.hero .container { position: relative; z-index: 1; }
.hero__art {
  position: absolute;
  top: 50%;
  right: max(0px, calc(50% - 550px));
  width: min(500px, 42vw);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero__art * { transform-box: fill-box; transform-origin: center; }

.ha-glow { animation: ha-breathe 5s ease-in-out infinite; }
.ha-diamond { animation: ha-float 6s ease-in-out infinite; }
.ha-line { transform-origin: left; animation: ha-type 6s ease-out infinite both; }
.ha-line--2 { animation-delay: .5s; }
.ha-line--3 { animation-delay: 1s; }
.ha-cursor { animation: ha-blink 1s steps(1) infinite; }
.ha-embers circle { opacity: 0; animation: ha-rise 4s ease-in infinite both; animation-delay: var(--d); }
.ha-chart { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ha-draw 6s ease-out infinite; }
.ha-dot { animation: ha-pop 6s ease-out infinite both; }

@keyframes ha-breathe { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes ha-float   { 50% { transform: translateY(-10px); } }
@keyframes ha-type    { 0% { transform: scaleX(0); } 15%, 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes ha-blink   { 50% { opacity: 0; } }
@keyframes ha-rise    { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--x), -190px); opacity: 0; } }
@keyframes ha-draw    { 0% { stroke-dashoffset: 1; } 40%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ha-pop     { 0%, 35% { transform: scale(0); } 45% { transform: scale(1.4); } 55%, 85% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero__art { width: 90vw; right: -25vw; opacity: .22; } /* simple texture derrière le texte */
}
@media (prefers-reduced-motion: reduce) {
  .hero__art * { animation: none !important; }
  .ha-chart { stroke-dashoffset: 0; }
  .ha-embers circle { opacity: .6; }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 14ch;
}

.hero__title .accent { color: var(--accent); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  font-size: 12px;
  color: var(--fg-subtle);
  font-family: var(--font-display);
}

.hero__trust span { color: var(--fg-muted); }

/* ============================================================
   KIT CARDS — Homepage
   ============================================================ */
.kits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) { .kits-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .kits-grid { grid-template-columns: 1fr; } }

.kit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.kit-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.kit-card--featured {
  border-color: var(--accent);
  position: relative;
}

.kit-card__badge {
  position: absolute;
  top: -1px; right: 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 6px 6px;
}

.kit-card__header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.kit-card__stripe {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}

.kit-card__tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.kit-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 1.3;
}

.kit-card__desc {
  font-size: 12px;
  color: var(--fg-subtle);
  line-height: 1.5;
}

.kit-card__body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kit-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kit-card__features li {
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.kit-card__features li::before {
  content: '✓';
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.kit-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.kit-card__price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.kit-card__price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-muted);
}

.kit-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 11px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}
.kit-card__cta:hover { opacity: .88; text-decoration: none; color: #fff; }

.kit-card__cta--secondary {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.kit-card__cta--secondary:hover { color: var(--fg); border-color: var(--fg-muted); }

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.why-card__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.why-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.why-card__text {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--accent);
  padding-block: calc(64px + var(--slant));
}

.cta-band .section-label { color: rgba(255,255,255,.7); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); }

.cta-band .btn--primary {
  background: #fff;
  color: var(--accent-deep);
}

.cta-band .btn--secondary {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

/* ============================================================
   BLOG PREVIEW — Homepage
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s;
}
.post-card:hover { border-color: var(--accent); }

.post-card__meta {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--fg-subtle);
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 10px;
  text-wrap: balance;
}

.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.post-card__read-more {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}
.post-card__read-more:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  --slant: 48px;
  background: var(--surface);
  padding-block: calc(48px + var(--slant)) 32px;
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); /* haut en biais, comme les sections */
}
@media (max-width: 768px) {
  .site-footer { --slant: 24px; }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.footer-brand__desc {
  font-size: 13px;
  color: var(--fg-subtle);
  margin-top: 12px;
  max-width: 260px;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col li { margin: 0; }
.footer-col a {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--fg); }

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__copy {
  font-size: 12px;
  color: var(--fg-subtle);
  margin: 0;
}

/* ============================================================
   BLOG ARCHIVE PAGE
   ============================================================ */
.page-hero {
  padding-block: 64px 48px;
  border-bottom: 1px solid var(--border);
}

.page-hero__title { margin-bottom: 8px; }
.page-hero__desc {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 480px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-block: 48px;
}
@media (max-width: 640px) { .archive-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SINGLE POST
   ============================================================ */
.article-header {
  padding-block: 64px 0;
  max-width: var(--max-w-text);
  margin-inline: auto;
}

.article-meta {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: .05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-meta .sep { color: var(--border); }

.article-content {
  max-width: var(--max-w-text);
  margin-inline: auto;
  padding-block: 48px;
}

.article-content h2 { margin-top: 2em; }
.article-content h3 { margin-top: 1.5em; }
.article-content hr { margin-block: 2em; }
.article-content hr + h2 { margin-top: 0; }
.article-content p { color: var(--fg-muted); }

.article-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.article-content code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .875em;
  color: var(--fg-muted);
}

.article-content pre code { background: none; border: none; padding: 0; }

.article-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content blockquote p { color: var(--fg-muted); font-style: italic; }

.article-content a { color: var(--accent); }
.article-content strong { font-weight: 600; color: var(--fg); }

.article-content ul, .article-content ol { color: var(--fg-muted); }

/* Post nav */
.post-nav {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max-w-text);
  margin-inline: auto;
}

.post-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
}
.post-nav a:hover { color: var(--accent); }

/* ============================================================
   STATIC PAGE
   ============================================================ */
.page-content {
  max-width: var(--max-w-text);
  margin-inline: auto;
  padding-block: 64px;
}
.page-content .entry-title { margin-bottom: 32px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding-block: 80px;
}

.not-found__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -.05em;
  color: var(--surface-2);
  line-height: 1;
  margin-bottom: 16px;
}

.not-found__title { margin-bottom: 12px; }
.not-found__text { max-width: 360px; margin-bottom: 32px; }

/* ============================================================
   EDD — Easy Digital Downloads
   ============================================================ */

/* Checkout (bloc EDD) */
.edd-checkout .site-nav,
.edd-checkout .menu-toggle { display: none; } /* pas de sortie pendant le paiement */

#edd_checkout_form_wrap {
  max-width: 640px;
  font-family: var(--font-body);
  color: var(--fg);
}

/* Desktop : formulaire à gauche, récapitulatif du panier à droite (façon Shopify) */
@media (min-width: 900px) {
  .edd-checkout .page-content,
  .edd-checkout .article-content { max-width: none; }
  #edd_checkout_form_wrap {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 380px;
    column-gap: 48px;
    align-items: start;
  }
  #edd_checkout_form_wrap .edd-blocks__purchase-form { grid-column: 1; grid-row: 1; }
  #edd_checkout_form_wrap .edd-blocks__cart {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 88px; /* sous l'en-tête fixe */
  }
}

#edd_checkout_form_wrap #edd_checkout_cart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
#edd_checkout_form_wrap .edd-blocks-cart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--border);
}
#edd_checkout_form_wrap .edd-blocks-cart__row:last-child { border-bottom: 0; }
#edd_checkout_form_wrap #edd_checkout_cart .edd-blocks-cart__items { border-bottom: 1px solid var(--border); }
#edd_checkout_form_wrap .edd-blocks-cart__row-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg-subtle);
}
#edd_checkout_form_wrap .edd_checkout_cart_item_title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
}
#edd_checkout_form_wrap .edd_cart_item_image img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}
#edd_checkout_form_wrap .edd-blocks-cart__row-item .edd_cart_item_price {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}
#edd_checkout_form_wrap .edd-blocks-cart__row-header { display: none; }
#edd_checkout_form_wrap .edd-blocks-cart__row-item { flex-wrap: nowrap; }
#edd_checkout_form_wrap .edd-blocks-cart__row-item .edd_cart_item_name { flex: 1; min-width: 0; }
#edd_checkout_form_wrap .edd-blocks-cart__row-item .edd_cart_item_price { flex: none; }
#edd_checkout_form_wrap .edd_cart_tax { color: var(--fg-muted); font-size: 14px; }
#edd_checkout_form_wrap .edd_cart_total {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-left: auto;
}
#edd_checkout_form_wrap .edd_cart_amount { color: var(--accent); }

/* Code promo : simple lien, le champ s'ouvre au clic */
#edd_checkout_form_wrap .edd-blocks-cart__row-footer:has(#edd_discount_code) { flex-wrap: wrap; }
#edd_checkout_form_wrap #edd_discount_code { order: 2; flex-basis: 100%; } /* sous le total */
#edd_checkout_form_wrap .edd_discount_link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg-muted);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
#edd_checkout_form_wrap #edd_discount_code .edd-discount-code-field-wrap { display: flex; flex-wrap: nowrap; gap: 8px; }
#edd_checkout_form_wrap #edd_discount_code .edd-discount-code-field-wrap input[type="text"] { flex: 1 1 0; min-width: 0; width: 0; } /* width 0 : sinon la largeur native du champ élargit le panier */
#edd_checkout_form_wrap #edd_discount_code .edd-apply-discount { align-self: stretch; height: auto; margin: 0; padding: 0 18px; }
#edd_checkout_form_wrap .edd-apply-discount {
  background: var(--border);
  color: var(--fg);
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  cursor: pointer;
}

/* Réassurance (sous le panier) */
.kf-trust {
  list-style: none;
  margin: 0 0 28px;
  padding: 4px 20px;
  display: grid;
}
.kf-trust li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
}
.kf-trust svg { flex: none; width: 24px; height: 24px; color: var(--fg-muted); margin-top: 2px; }
.kf-trust strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--fg); }
.kf-trust span { display: block; font-size: 13px; line-height: 1.45; color: var(--fg-subtle); margin-top: 2px; }

/* Formulaire */
/* « Vous êtes connecté en tant que… » : discret, en tête du formulaire */
#edd_checkout_form_wrap .edd-blocks__logged-in {
  order: -20;
  grid-column: 1 / -1;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--fg-subtle);
}
#edd_checkout_form_wrap .edd-blocks__logged-in strong { font-weight: 500; color: var(--fg-muted); }
#edd_checkout_form_wrap .edd-blocks__logged-in a { color: var(--fg-muted); text-decoration: underline; }
#edd_checkout_form_wrap .edd-blocks__logged-in a:hover { color: var(--fg); }
#edd_checkout_form_wrap fieldset,
#edd_checkout_form_wrap #edd_purchase_form .edd-blocks-form {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
#edd_checkout_form_wrap legend {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 0;
}
#edd_checkout_form_wrap .edd-blocks-form__group { margin-bottom: 16px; }
#edd_checkout_form_wrap .edd-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
#edd_checkout_form_wrap .edd-required-indicator { color: var(--accent); margin-left: 2px; }
#edd_checkout_form_wrap .edd-description { font-size: 13px; color: var(--fg-subtle); margin: 6px 0 0; }
#edd-first-description,
#edd-last-description { display: none; }

@media (min-width: 640px) {
  #edd_checkout_form_wrap #edd_checkout_user_info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
  #edd_checkout_user_info legend,
  #edd-email-wrap { grid-column: 1 / -1; }
  /* Pays, adresse, Code postal | Ville, puis Entreprise | N° TVA (Région masquée si activée seule : span 1) */
  #edd_checkout_form_wrap #edd_cc_address #edd-card-country-wrap { order: -2; grid-column: 1 / -1; }
  #edd_checkout_form_wrap #edd_cc_address #edd-card-state-wrap { order: -1; grid-column: span 1; }
  #edd_checkout_form_wrap #edd_cc_address #edd-card-zip-wrap { order: 1; grid-column: span 1; }
  #edd_checkout_form_wrap #edd_cc_address #edd-card-city-wrap { order: 2; grid-column: span 1; }
  #edd_checkout_form_wrap #edd_cc_address #edd-card-company-wrap,
  #edd_checkout_form_wrap #edd_cc_address #edd-card-vat-wrap { grid-column: span 1; }
}
/* Entreprise + N° TVA toujours en fin de bloc, ensemble (EDD sort Entreprise juste après le pays) */
#edd_checkout_form_wrap #edd_cc_address #edd-card-company-wrap,
#edd_checkout_form_wrap #edd_cc_address #edd-card-vat-wrap { order: 3; }

/* #edd_purchase_form : doit battre .wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input (padding 4px 6px) */
#edd_checkout_form_wrap input[type="text"],
#edd_checkout_form_wrap input[type="email"],
#edd_checkout_form_wrap #edd_purchase_form input[type="text"],
#edd_checkout_form_wrap #edd_purchase_form input[type="email"],
#edd_checkout_form_wrap #edd_purchase_form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px; /* 16px : pas de zoom auto sur iOS */
}
#edd_checkout_form_wrap input:focus,
#edd_checkout_form_wrap select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .2);
}

#edd_checkout_form_wrap .edd-alert-error,
#edd_checkout_form_wrap .edd_errors {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .4);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 14px;
}

#edd_checkout_form_wrap #edd-privacy-policy-agreement { font-size: 13px; color: var(--fg-muted); }
#edd_checkout_form_wrap #edd-privacy-policy-agreement a { color: var(--fg-muted); }

#edd_checkout_form_wrap #edd_purchase_submit .edd-submit,
#edd_checkout_form_wrap #edd-purchase-button {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
#edd_checkout_form_wrap #edd_purchase_submit .edd-submit:hover,
#edd_checkout_form_wrap #edd-purchase-button:hover { background: var(--accent-deep); }

/* Reçu, confirmation et formulaires des blocs EDD (connexion…) */
body { --edd-blocks-light-grey: var(--border); } /* bordures EDD en gris du thème, pas en blanc */

.edd-blocks-receipt__totals,
.edd-blocks-receipt__items {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 8px 20px;
}
.edd-blocks__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}
.edd-blocks__row-label { color: var(--fg-muted); font-weight: 500; }
.edd-blocks__row-value { color: var(--fg); text-align: right; }
.edd-blocks-receipt__row-item { padding: 12px 0; }
.edd-blocks-receipt__row-header { padding: 14px 0; font-family: var(--font-display); }
.edd-blocks-receipt__row-header .edd-blocks__row-label,
.edd-blocks-receipt__row-header .edd-blocks__row-value { color: var(--fg); }
.edd-blocks-receipt__totals .edd-blocks__row:last-child .edd-blocks__row-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}
.edd_receipt_payment_status.complete { color: #4ade80; }

/* Liens de téléchargement des PDF : boutons */
.edd_purchase_receipt_files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.edd_download_file_link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}
.edd_download_file_link:hover { background: var(--accent-deep); color: #fff; }

.edd-blocks-form:not(.edd-blocks-form__purchase):not(#edd_checkout_user_info):not(#edd_cc_address) {
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.edd-blocks-form .edd-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.edd-blocks-form .edd-required-indicator { color: var(--accent); margin-left: 2px; }
body .edd-blocks-form input[type="text"],
body .edd-blocks-form input[type="email"],
body .edd-blocks-form input[type="password"] { /* body : passe devant le CSS EDD chargé après */
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
}
.edd-blocks-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .2); }
.edd-blocks-form__group-remember .edd-blocks-form__control { display: flex; align-items: center; gap: 8px; }
.edd-blocks-form__group-remember .edd-label { margin: 0; font-weight: 400; color: var(--fg-muted); }
.edd-blocks-form .edd-submit {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.edd-blocks-form .edd-submit:hover { background: var(--accent-deep); }
.edd-blocks-form a { color: var(--fg-muted); }

/* Download pages (single) */
.edd_download .entry-title { font-family: var(--font-display); }

.edd_price_option_name,
.edd_download_purchase_form .price { color: var(--fg); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-block: 48px;
}

.page-numbers {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 8px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .15s;
}

.page-numbers:hover { color: var(--fg); border-color: var(--border); }
.page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   RESPONSIVE — global
   ============================================================ */
@media (max-width: 600px) {
  .section { padding-block: 56px; }
  .hero { padding-block: 64px 48px; }
}

/* ============================================================
   FICHE PRODUIT KIT (single-download.php)
   ============================================================ */
.kp-hero { padding-block: 64px 72px; border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 75% 30%, rgba(249,115,22,.10), transparent 55%), var(--bg); }
.kp-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kp-hero__text, .kp-hero__visual { min-width: 0; }
.kp-tag { display: inline-block; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(249,115,22,.35);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.kp-h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 18px; }
.kp-h1 span { color: var(--accent); }
.kp-lead { font-size: 17px; line-height: 1.65; max-width: 560px; margin-bottom: 22px; }
.kp-bullets { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.kp-bullets li { position: relative; padding-left: 28px; color: var(--fg); margin: 0; }
.kp-bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-glow); color: var(--accent); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.kp-buybox { display: grid; gap: 14px; justify-items: start; }
.kp-buybox--card { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 28px; justify-items: stretch; }
.kp-price { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--fg); line-height: 1; }
.kp-price small { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--fg-subtle); margin-left: 6px; }
.kp-buybox .edd_download_purchase_form, .kp-buybox form { margin: 0; }
.kp-buy, .kp-buybox .edd-add-to-cart { font-size: 16px !important; padding: 15px 30px !important; }
.kp-buybox--card .kp-buy, .kp-buybox--card .edd-add-to-cart { width: 100%; text-align: center; justify-content: center; }
.kp-reassure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.kp-reassure li { margin: 0; color: var(--fg-muted); padding-left: 18px; position: relative; }
.kp-reassure li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); }
.kp-buybox--card .kp-reassure { flex-direction: column; }
.kp-hero__visual img { border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; aspect-ratio: 1; object-fit: cover; }
.kp-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.kp-stats div { padding: 12px; text-align: center; border-right: 1px solid var(--border); }
.kp-stats div:last-child { border-right: none; }
.kp-stats b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kp-stats span { font-size: 12px; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: .06em; }

.kp-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.kp-fit__col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; min-width: 0; }
.kp-fit__col h3 { font-size: 16px; margin-bottom: 14px; }
.kp-fit__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kp-fit__col li { position: relative; padding-left: 26px; margin: 0; }
.kp-fit__col--yes h3 { color: #4ade80; }
.kp-fit__col--yes li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 700; }
.kp-fit__col--no h3 { color: var(--fg-muted); }
.kp-fit__col--no li::before { content: "✕"; position: absolute; left: 0; color: var(--fg-subtle); font-weight: 700; }

.kp-ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-top: 28px; }
.kp-ba__col { border-radius: var(--radius-lg); padding: 24px 26px; min-width: 0; }
.kp-ba__col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.kp-ba__col ul { margin: 0; display: grid; gap: 10px; padding-left: 1.2em; }
.kp-ba__col li { margin: 0; }
.kp-ba__col--before { background: var(--surface); border: 1px solid var(--border); }
.kp-ba__col--before h3 { color: var(--fg-subtle); }
.kp-ba__col--after { background: var(--accent-glow); border: 1px solid rgba(249,115,22,.45); }
.kp-ba__col--after h3 { color: var(--accent); }
.kp-ba__col--after li { color: var(--fg); }
.kp-ba__arrow { display: flex; align-items: center; font-size: 28px; color: var(--accent); }

.kp-modules { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kp-module { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; margin: 0; }
.kp-module > div { min-width: 0; }
.kp-module__num { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius); background: var(--bg); color: var(--accent);
  font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.kp-module h3 { font-size: 16px; margin-bottom: 4px; }
.kp-module h3 small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--fg-subtle); margin-left: 6px; }
.kp-module p { font-size: 14px; }

.kp-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.kp-previews figure { margin: 0; min-width: 0; }
.kp-previews img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,.35); background: #fff; }
.kp-previews figcaption { font-size: 13px; color: var(--fg-muted); margin-top: 10px; text-align: center; }

.kp-sample-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.kp-sample-wrap > div { min-width: 0; }
.kp-var { color: var(--accent); font-weight: 500; }
.kp-steps { margin: 20px 0 0; display: grid; gap: 8px; }
.kp-steps li { margin: 0; }
.kp-steps b { color: var(--fg); }
.kp-sample { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.kp-sample__head { background: #f4f4f5; color: #18181b; font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 10px 16px; border-bottom: 1px solid #e4e4e7; }
.kp-sample pre { margin: 0; padding: 16px 18px; white-space: pre-wrap; font-family: var(--font-body); font-size: 13px; line-height: 1.75; color: #18181b; overflow-x: auto; }
.kp-sample .kp-var { color: #c2410c; }

.kp-offer { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.kp-offer > div { min-width: 0; }
.kp-included { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.kp-included li { position: relative; padding-left: 28px; margin: 0; color: var(--fg); }
.kp-included li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.kp-compare-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.kp-compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.kp-compare th, .kp-compare td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: center; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.kp-compare tbody th { text-align: left; color: var(--fg-subtle); font-weight: 500; }
.kp-compare thead th { font-family: var(--font-display); color: var(--fg); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.kp-compare thead th span { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--fg-muted); font-weight: 500; }
.kp-compare .is-current { background: var(--accent-glow); color: var(--fg); }
.kp-compare thead .is-current span { color: var(--accent); }
.kp-compare tr:last-child td, .kp-compare tr:last-child th { border-bottom: none; }

.kp-faq { margin-top: 24px; display: grid; gap: 10px; }
.kp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.kp-faq summary { cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 600; color: var(--fg); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.kp-faq summary::-webkit-details-marker { display: none; }
.kp-faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.kp-faq details[open] summary::after { content: "−"; }
.kp-faq details p { padding-bottom: 16px; }

.kp-sticky { display: none; }

@media (max-width: 900px) {
  .kp-hero__grid, .kp-sample-wrap, .kp-offer { grid-template-columns: 1fr; }
  .kp-hero__visual { max-width: 460px; }
  .kp-modules { grid-template-columns: 1fr; }
  .kp-previews { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .kp-hero { padding-block: 40px 48px; }
  .kp-fit { grid-template-columns: 1fr; }
  .kp-ba { grid-template-columns: 1fr; }
  .kp-ba__arrow { justify-content: center; transform: rotate(90deg); }
  .kp-previews { grid-template-columns: 1fr; }
  .kp-buy, .kp-buybox .edd-add-to-cart { width: 100%; text-align: center; }
  .kp-buybox { justify-items: stretch; }
  .kp { padding-bottom: 72px; }
  .kp-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(24,24,27,.96); border-top: 1px solid var(--border); backdrop-filter: blur(8px); }
  .kp-sticky b { display: block; font-family: var(--font-display); font-size: 14px; color: var(--fg); line-height: 1.2; }
  .kp-sticky span { font-size: 13px; color: var(--accent); font-weight: 600; }
}

/* ==========================================================
   SINGLE POST — image à la une + figures
   ========================================================== */
.article-thumbnail {
  max-width: var(--max-w-text);
  margin: 32px auto 0;
}
.article-thumbnail img,
.article-content figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.article-content figure { margin: 2em 0; }
.article-content figcaption {
  font-size: 13px;
  color: var(--fg-subtle);
  margin-top: 10px;
  text-align: center;
}

/* ==========================================================
   SINGLE POST — tableaux
   ========================================================== */
.article-content table {
  width: 100%;
  margin: 1.75em 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}
.article-content th,
.article-content td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.article-content th {
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
}
.article-content td { color: var(--fg-muted); }
.article-content td:first-child { color: var(--fg); font-weight: 500; }
.article-content tbody tr:last-child td { border-bottom: 0; }
.article-content tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.article-content td code { white-space: nowrap; }

@media (max-width: 640px) {
  .article-content table { display: block; overflow-x: auto; font-size: 13px; }
  .article-content th,
  .article-content td { padding: 10px 12px; min-width: 120px; }
}

/* ============================================================
   FORMULAIRE DE CONTACT ([kitforge_contact])
   ============================================================ */
.kf-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-top: 2em; }
.kf-form p { margin: 0 0 18px; }
.kf-form p:last-child { margin-bottom: 0; }
.kf-form label { display: block; font-size: 14px; font-weight: 500; color: var(--fg); margin-bottom: 6px; }
.kf-form input, .kf-form select, .kf-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
}
.kf-form textarea { resize: vertical; }
.kf-form input:focus, .kf-form select:focus, .kf-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .2); }
.kf-form .btn { border: 0; cursor: pointer; }
.kf-form__hp { position: absolute; left: -9999px; }
.kf-form__notice { padding: 14px 18px; border-radius: var(--radius); background: var(--accent-glow); border-left: 3px solid var(--accent); color: var(--fg) !important; }
.kf-form__notice--error { background: rgba(239, 68, 68, .12); border-left-color: #ef4444; }
.kf-cgv-note { font-size: 13px; color: var(--fg-subtle); margin: 8px 0 0; }
.kf-cgv-note a { color: var(--fg-muted); text-decoration: underline; }
.article-content mark { background: var(--accent-glow); color: var(--accent); padding: 0 4px; border-radius: 4px; }
.kf-optional { font-weight: 400; color: var(--fg-subtle); }
#edd-card-company-wrap .edd-label::after { content: " (facultatif)"; font-weight: 400; color: var(--fg-subtle); }
