/*
 * Tout Pour Mon Chien — custom theme (child of Astra)
 * Prefix anti-empreinte : tpc-*
 * Design System : Pet Vétérinaire Clinique (fonts Plus Jakarta Sans + Public Sans)
 * Palette : concurrent 30millionsdamis.fr (red brand #d30d23 + blue accent)
 *
 * Hero style       : classic-overlay
 * Header layout    : logo-left-menu-right
 * Category layout  : single-bottom
 */

:root {
  --tpc-primary: #d30d23;
  --tpc-primary-dark: #a30615;
  --tpc-accent: #1d90f5;
  --tpc-text: #1f2024;
  --tpc-text-soft: #5a5a5a;
  --tpc-bg: #ffffff;
  --tpc-surface: #faf4e0;
  --tpc-surface-soft: #fbf7e9;
  --tpc-line: #e5dcc6;
  --tpc-line-soft: #f0e8d2;
  --tpc-shadow: 0 6px 20px rgba(31, 32, 36, 0.07);
  --tpc-shadow-hover: 0 12px 32px rgba(31, 32, 36, 0.12);
  --tpc-radius: 10px;
  --tpc-radius-lg: 14px;
  --tpc-font-headings: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --tpc-font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tpc-container: 1240px;
  --tpc-gutter: 1.5rem;
}

/* =====================================================================
 * RESET & BASE
 * ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tpc-body {
  margin: 0;
  font-family: var(--tpc-font-body);
  color: var(--tpc-text);
  background: var(--tpc-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tpc-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tpc-primary-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tpc-font-headings);
  color: var(--tpc-text);
  line-height: 1.25;
  margin: 0 0 .8rem;
  font-weight: 600;
  letter-spacing: .005em;
}
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--tpc-line); margin: 2rem 0; }

main.tpc-main, .tpc-main { padding-top: 0 !important; margin-top: 0 !important; }

.tpc-container { width: 100%; max-width: var(--tpc-container); margin: 0 auto; padding: 0 var(--tpc-gutter); }
.tpc-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.tpc-section--surface { background: var(--tpc-surface); }
.tpc-section--soft { background: var(--tpc-surface-soft); }

/* =====================================================================
 * BUTTONS
 * ===================================================================== */
.tpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: var(--tpc-font-body);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  border-radius: var(--tpc-radius);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  line-height: 1;
}
.tpc-btn--primary {
  background: var(--tpc-primary);
  color: #fff;
  border-color: var(--tpc-primary);
}
.tpc-btn--primary:hover {
  background: var(--tpc-primary-dark);
  border-color: var(--tpc-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 13, 35, 0.25);
}
.tpc-btn--ghost {
  background: transparent;
  color: var(--tpc-text);
  border-color: var(--tpc-line);
}
.tpc-btn--ghost:hover {
  background: var(--tpc-surface);
  border-color: var(--tpc-primary);
  color: var(--tpc-primary);
}
.tpc-btn--cta {
  background: linear-gradient(90deg, var(--tpc-primary) 0%, var(--tpc-primary-dark) 40%, var(--tpc-primary) 50%, var(--tpc-primary-dark) 60%, var(--tpc-primary) 100%);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  border-radius: 6px;
  animation: tpc-cta-progress 3.5s ease-in-out infinite;
}
.tpc-btn--cta:hover { transform: translateY(-2px); color: #fff; }
@keyframes tpc-cta-progress {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* =====================================================================
 * HEADER (logo-left-menu-right)
 * ===================================================================== */
.tpc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tpc-line);
}
.tpc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem var(--tpc-gutter);
  max-width: var(--tpc-container);
  margin: 0 auto;
  min-height: 72px;
}
.tpc-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--tpc-text);
  flex-shrink: 0;
}
.tpc-brand:hover { color: var(--tpc-primary); }
.tpc-brand-logo {
  width: auto;
  display: block;
}
.tpc-brand-name {
  font-family: var(--tpc-font-headings);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .02em;
  /* Title Case style B : no text-transform */
  line-height: 1.1;
}
.tpc-brand-name:hover { color: var(--tpc-primary); }

/* DESKTOP NAV — visible ≥1024px (horizontal magazine menu) */
.tpc-nav-desktop { display: none; }
.tpc-nav-desktop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.tpc-nav-desktop-list > li > a,
.tpc-nav-desktop-list > li > .nav-link {
  display: inline-block;
  color: var(--tpc-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  font-family: var(--tpc-font-body);
  padding: .45rem .2rem;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.tpc-nav-desktop-list > li > a:hover,
.tpc-nav-desktop-list > li.current-menu-item > a,
.tpc-nav-desktop-list > li.current-cat > a {
  color: var(--tpc-primary);
  border-bottom-color: var(--tpc-primary);
}

/* BURGER (mobile only) */
.tpc-burger {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--tpc-text);
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.tpc-burger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 16px;
  justify-content: center;
}
.tpc-burger-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.tpc-burger[aria-expanded="true"] .tpc-burger-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tpc-burger[aria-expanded="true"] .tpc-burger-bars span:nth-child(2) { opacity: 0; }
.tpc-burger[aria-expanded="true"] .tpc-burger-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.tpc-burger-label { display: none; }

/* DRAWER MOBILE — HIDDEN by default */
.tpc-nav { display: none; }
.tpc-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tpc-nav-mobile-list > li {
  border-bottom: 1px solid var(--tpc-line);
}
.tpc-nav-mobile-list > li > a {
  display: block;
  padding: 1rem 0;
  color: var(--tpc-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.tpc-nav-mobile-list > li > a:hover,
.tpc-nav-mobile-list > li.current-menu-item > a { color: var(--tpc-primary); }
.tpc-drawer-cta { display: none; }

/* ===== Desktop ≥1024px ===== */
@media (min-width: 1024px) {
  .tpc-nav-desktop { display: flex; flex: 1; justify-content: flex-end; margin: 0 0 0 1.5rem; }
  .tpc-burger, .tpc-burger-wrap { display: none !important; }
  .tpc-nav { display: none !important; }
  .tpc-drawer-cta { display: none !important; }
}

/* ===== Mobile <1024px ===== */
@media (max-width: 1023px) {
  .tpc-nav-desktop { display: none; }
  .tpc-burger {
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 8px !important;
    background: rgba(255,255,255,0.92) !important;
    border: 1.5px solid rgba(0,0,0,0.18) !important;
    border-radius: 8px !important;
    color: var(--tpc-text) !important;
    z-index: 10000 !important;
    flex-shrink: 0 !important;
  }
  .tpc-burger-bars {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 24px !important;
    height: 16px !important;
  }
  .tpc-burger-label { display: none !important; }
  .tpc-nav {
    display: none;
  }
  .tpc-nav.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .tpc-drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
  }
  .tpc-drawer-overlay.is-open { display: block; }
  .tpc-drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 0;
    font-size: 2rem;
    color: var(--tpc-text);
    cursor: pointer;
    line-height: 1;
    width: 42px;
    height: 42px;
  }
  .tpc-drawer-cta {
    display: block !important;
    margin: 2rem 0 1.5rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--tpc-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }
}

/* =====================================================================
 * HERO (classic-overlay)
 * ===================================================================== */
.tpc-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--tpc-text);
}
.tpc-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.tpc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 32, 36, 0.65) 0%, rgba(31, 32, 36, 0.45) 70%);
  z-index: 2;
}
.tpc-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--tpc-container);
  width: 100%;
  margin: 0 auto;
  padding: 5rem var(--tpc-gutter) 5.5rem;
  color: #fff;
}
.tpc-hero-eyebrow {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffd8dd;
  background: rgba(211, 13, 35, .85);
  padding: .35rem .85rem;
  border-radius: 3px;
  margin-bottom: 1.4rem;
  font-weight: 600;
}
.tpc-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-family: var(--tpc-font-headings);
  font-weight: 700;
  margin: 0 0 1.1rem;
  color: #fff;
  line-height: 1.1;
  max-width: 800px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.tpc-hero-subtitle {
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  color: #fff;
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.tpc-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.tpc-hero-actions .tpc-btn--primary { box-shadow: 0 4px 14px rgba(211,13,35,0.35); }
.tpc-hero-actions .tpc-btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.tpc-hero-actions .tpc-btn--ghost:hover {
  background: #fff;
  color: var(--tpc-primary);
  border-color: #fff;
}

/* =====================================================================
 * EDITORIAL BLOCK (after hero — anti-empreinte 2/3)
 * ===================================================================== */
.tpc-editorial {
  background: var(--tpc-surface);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}
.tpc-editorial-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--tpc-gutter);
}
.tpc-editorial h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--tpc-text);
  margin-bottom: 1rem;
}
.tpc-editorial-lead {
  font-size: 1.12rem;
  color: var(--tpc-text);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.tpc-editorial-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.tpc-editorial-col h3 {
  font-size: 1.2rem;
  color: var(--tpc-primary);
  margin-bottom: .6rem;
}
.tpc-editorial-col p {
  color: var(--tpc-text);
  font-size: .98rem;
  line-height: 1.65;
}
.tpc-editorial-box {
  background: #fff;
  border: 1px solid var(--tpc-line);
  border-left: 4px solid var(--tpc-primary);
  padding: 1.4rem 1.6rem;
  border-radius: var(--tpc-radius);
  margin-top: 2rem;
}
.tpc-editorial-box h3 { color: var(--tpc-text); }
@media (max-width: 700px) {
  .tpc-editorial-cols { grid-template-columns: 1fr; }
}

/* =====================================================================
 * CATEGORIES GRID
 * ===================================================================== */
.tpc-categories {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: var(--tpc-bg);
}
.tpc-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tpc-section-title h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: .5rem;
}
.tpc-section-title p {
  color: var(--tpc-text-soft);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}
.tpc-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: var(--tpc-container);
  margin: 0 auto;
  padding: 0 var(--tpc-gutter);
}
.tpc-cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tpc-line);
  border-radius: var(--tpc-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--tpc-text);
  box-shadow: var(--tpc-shadow);
  transition: all .25s ease;
  min-height: 280px;
}
.tpc-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tpc-shadow-hover);
  border-color: var(--tpc-primary);
  color: var(--tpc-text);
}
.tpc-cat-card-img {
  display: block;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--tpc-surface);
}
.tpc-cat-card-img--fallback {
  background: linear-gradient(135deg, var(--tpc-primary), var(--tpc-primary-dark));
}
.tpc-cat-card-body {
  flex: 1;
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.tpc-cat-card h3 {
  font-size: 1.2rem;
  color: var(--tpc-text);
  margin: 0 0 .5rem;
}
.tpc-cat-card p {
  font-size: .9rem;
  color: var(--tpc-text-soft);
  line-height: 1.55;
  margin: 0 0 .8rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpc-cat-card-arrow {
  color: var(--tpc-primary);
  font-weight: 600;
  font-size: .9rem;
}

/* =====================================================================
 * LATEST ARTICLES GRID (9 articles, 3 cols)
 * ===================================================================== */
.tpc-latest {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: var(--tpc-surface-soft);
}
.tpc-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: var(--tpc-container);
  margin: 0 auto;
  padding: 0 var(--tpc-gutter);
}
.tpc-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tpc-line);
  border-radius: var(--tpc-radius-lg);
  overflow: hidden;
  box-shadow: var(--tpc-shadow);
  transition: all .25s ease;
}
.tpc-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tpc-shadow-hover);
}
.tpc-article-card a { text-decoration: none; color: inherit; }
.tpc-article-card .tpc-thumb,
.tpc-article-card .tpc-article-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tpc-surface);
}
.tpc-article-card .tpc-thumb img,
.tpc-article-card .tpc-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.tpc-article-card:hover .tpc-thumb img,
.tpc-article-card:hover .tpc-article-thumb img { transform: scale(1.04); }
.tpc-article-card .tpc-thumb--ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tpc-primary), var(--tpc-primary-dark));
}
.tpc-article-card .tpc-body { padding: 1.25rem 1.4rem 1.5rem; }
.tpc-article-card .tpc-meta {
  font-size: .78rem;
  color: var(--tpc-text-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}
.tpc-article-card .tpc-meta a { color: var(--tpc-primary); }
.tpc-article-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 .55rem;
  color: var(--tpc-text);
}
.tpc-article-card:hover h3 { color: var(--tpc-primary); }
.tpc-article-card p {
  font-size: .92rem;
  color: var(--tpc-text-soft);
  line-height: 1.55;
  margin: 0;
}
.tpc-latest-cta {
  text-align: center;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .tpc-latest-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 600px) {
  .tpc-latest-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
 * TOOL ON HOME (anti-empreinte 1/3 — enabled here)
 * ===================================================================== */
.tpc-home-tool {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: var(--tpc-surface);
}
.tpc-home-tool-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--tpc-gutter);
}
.tpc-home-tool-head {
  text-align: center;
  margin-bottom: 2rem;
}
.tpc-home-tool-head h2 {
  margin-bottom: .6rem;
}
.tpc-home-tool-head p {
  color: var(--tpc-text-soft);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================================
 * CATEGORY PAGE (single-bottom layout)
 * ===================================================================== */
.tpc-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--tpc-text);
}
.tpc-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.tpc-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--tpc-container);
  margin: 0 auto;
  padding: 0 var(--tpc-gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.tpc-cat-hero-inner h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.tpc-cat-content {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  background: var(--tpc-bg);
}
.tpc-cat-list {
  max-width: var(--tpc-container);
  margin: 0 auto;
  padding: 0 var(--tpc-gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 900px) { .tpc-cat-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tpc-cat-list { grid-template-columns: 1fr; } }
.tpc-cat-desc {
  max-width: 920px;
  margin: 0 auto 2.5rem;
  padding: 0 var(--tpc-gutter);
  font-size: 1.05rem;
  color: var(--tpc-text);
  line-height: 1.7;
}
.tpc-cat-desc p { margin-bottom: 1rem; }

/* =====================================================================
 * SINGLE POST
 * ===================================================================== */
.tpc-single {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.tpc-single-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--tpc-gutter);
}
.tpc-single h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}
.tpc-single .tpc-single-meta {
  color: var(--tpc-text-soft);
  font-size: .9rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.tpc-single img.tpc-single-thumb {
  width: 100%;
  border-radius: var(--tpc-radius-lg);
  margin: 1.5rem 0 2rem;
}
.tpc-single-content {
  font-size: 1.05rem;
  line-height: 1.75;
}
.tpc-single-content h2 { margin: 2.5rem 0 1rem; font-size: 1.7rem; }
.tpc-single-content h3 { margin: 2rem 0 .8rem; font-size: 1.35rem; }
.tpc-single-content blockquote {
  border-left: 4px solid var(--tpc-primary);
  padding: .8rem 1.4rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--tpc-text-soft);
  background: var(--tpc-surface);
}

/* =====================================================================
 * PERSONA PHOTO (about page)
 * ===================================================================== */
.a40-persona-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem auto 2rem;
  display: block;
  border: 4px solid var(--tpc-surface);
  box-shadow: var(--tpc-shadow);
}

/* =====================================================================
 * CONTACT FORM WRAPPER
 * ===================================================================== */
.a40-contact-form {
  margin: 2rem 0;
  padding: 0;
  background: var(--tpc-surface);
  border-radius: var(--tpc-radius-lg);
  border: 1px solid var(--tpc-line);
  overflow: hidden;
}
.a40-contact-form iframe { display: block; margin: 0; }

/* =====================================================================
 * FOOTER (4 columns NAC style)
 * ===================================================================== */
.tpc-footer {
  background: #ffffff;
  color: var(--tpc-text);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--tpc-primary);
}
.tpc-footer-inner {
  max-width: var(--tpc-container);
  margin: 0 auto;
  padding: 0 var(--tpc-gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.tpc-footer-col h3 {
  font-family: var(--tpc-font-headings);
  font-size: 1rem;
  color: var(--tpc-text);
  margin: 0 0 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tpc-footer-brand-pitch {
  color: var(--tpc-text-soft);
  font-size: .92rem;
  line-height: 1.65;
  margin: 1rem 0 1.2rem;
}
.tpc-footer-logo {
  max-width: 130px;
  height: auto;
  display: block;
  margin: 0 0 .5rem;
}
.tpc-footer-brand-cta {
  display: inline-block;
  color: var(--tpc-primary);
  font-weight: 600;
  text-decoration: none;
  padding: .55rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s;
}
.tpc-footer-brand-cta:hover {
  color: var(--tpc-primary-dark);
  border-bottom-color: var(--tpc-primary-dark);
}
.tpc-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tpc-footer-links li {
  margin-bottom: .55rem;
}
.tpc-footer-links a {
  color: var(--tpc-text);
  text-decoration: underline;
  font-size: .92rem;
  transition: color .2s;
}
.tpc-footer-links a:hover {
  color: var(--tpc-primary);
}
.tpc-footer-social {
  display: flex;
  gap: .8rem;
  margin-top: 1rem;
}
.tpc-footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  color: var(--tpc-text);
  transition: all .2s;
}
.tpc-footer-social a:hover {
  background: var(--tpc-primary);
  color: #fff;
  transform: translateY(-2px);
}
.tpc-footer-bottom {
  max-width: var(--tpc-container);
  margin: 2.5rem auto 0;
  padding: 1.4rem var(--tpc-gutter) 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--tpc-text-soft);
}
.tpc-footer-bottom-legal {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.tpc-footer-bottom-legal a {
  color: var(--tpc-text-soft);
  text-decoration: underline;
}
.tpc-footer-bottom-legal a:hover { color: var(--tpc-primary); }

@media (max-width: 1024px) {
  .tpc-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .tpc-footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .tpc-footer-bottom { flex-direction: column; text-align: center; }
}

/* =====================================================================
 * CTR FLOATING SIDEBAR LINKS
 * ===================================================================== */
@keyframes tpc-ctr-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.tpc-ctr-floating {
  position: fixed;
  top: 35%;
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--tpc-surface);
  border: 1px solid var(--tpc-line);
  border-right: 0;
  padding: 12px 10px;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 4px 16px rgba(0,0,0,0.08);
  animation: tpc-ctr-float 4s ease-in-out infinite;
}
.tpc-ctr-floating a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: var(--tpc-text);
  transition: all .2s;
}
.tpc-ctr-floating a:hover {
  background: var(--tpc-primary);
  color: #fff;
}
@media (max-width: 980px) {
  .tpc-ctr-floating { display: none; }
}

/* =====================================================================
 * CTO FLOATING COUPON BOX
 * ===================================================================== */
@keyframes tpc-cto-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211, 13, 35, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(211, 13, 35, 0); }
}
.tpc-cto-coupon {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  background: #fffbea;
  border: 2px dashed var(--tpc-primary);
  padding: 14px 18px;
  border-radius: 10px;
  max-width: 260px;
  font-size: .9rem;
  animation: tpc-cto-pulse 2s ease-in-out infinite;
}
.tpc-cto-coupon strong { color: var(--tpc-primary); }
.tpc-cto-coupon-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: transparent;
  border: 0;
  color: var(--tpc-text-soft);
  font-size: 1.1rem;
  cursor: pointer;
}
@media (max-width: 760px) {
  .tpc-cto-coupon {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 12px;
  }
}

/* =====================================================================
 * TOOL PAGES (page-templates/tool-*.php)
 * ===================================================================== */
.tpc-tool-page {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.tpc-tool-page-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--tpc-gutter);
}
.tpc-tool-intro {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--tpc-text);
}
.tpc-tool-intro p { margin-bottom: 1rem; }
.tpc-tool-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tpc-line);
}
.tpc-tool-faq h2 { margin-bottom: 1.5rem; }
.tpc-tool-faq details {
  background: var(--tpc-surface);
  border: 1px solid var(--tpc-line);
  border-radius: var(--tpc-radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.tpc-tool-faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--tpc-text);
}
.tpc-tool-faq details[open] summary { color: var(--tpc-primary); }
.tpc-tool-faq details p { margin: .75rem 0 0; color: var(--tpc-text-soft); }

/* =====================================================================
 * MISC UTIL
 * ===================================================================== */
.tpc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
 * MEDIA — base alignment fixes
 * ===================================================================== */
@media (max-width: 600px) {
  .tpc-hero { min-height: 60vh; }
  .tpc-hero-inner { padding: 4rem var(--tpc-gutter) 4rem; }
  .tpc-section-title { margin-bottom: 1.8rem; }
  .tpc-cat-grid, .tpc-latest-grid { gap: 1.1rem; }
}


/* === RP AGNOSTIC ANTI-FOOTPRINT FIXES === */
/* Auto-append par child_theme_builder pour garantir les regles anti-empreinte (cat-hero, burger, footer, etc.) meme quand Claude override le style.css custom. */
body section[class*="cat-hero"], body div[class*="cat-hero"] {
  position: relative !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  left: 0 !important; right: 0 !important;
  height: 360px !important; min-height: 360px !important; max-height: 360px !important;
  padding: 0 !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  box-sizing: border-box !important;
}
/* Aussi force le parent <main> a etre full-width pour eviter cap a 1024 */
body main, body [class*="lda-main"], body [class*="bdf-main"], body [class*="a40-main"], body #content {
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  max-height: 360px !important;
  object-fit: cover !important; z-index: 0 !important;
  border: none !important;
}
body [class*="cat-hero"]::before, body [class*="cat-hero"]::after {
  content: none !important; display: none !important;
}
/* Overlay : absolute par-dessus l'image, juste pour le gradient sombre (fix 2026-06-17) */
body [class*="cat-hero-overlay"], body [class*="cat-hero"] > [class*="overlay"] {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important;
  max-width: none !important;
  display: block !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%) !important;
  pointer-events: none !important;
  border: none !important;
}
/* Container / inner du titre : centré au-dessus de l'overlay (z-index 2) */
body [class*="cat-hero"] > [class*="container"],
body [class*="cat-hero"] > [class*="cat-hero-inner"],
body [class*="cat-hero"] > [class*="hero-inner"]:not([class*="overlay"]),
body [class*="cat-hero"] > div:not([class*="overlay"]):not([class*="-bg"]) {
  position: relative !important; z-index: 2 !important;
  text-align: center !important;
  max-width: 900px !important; margin: 0 auto !important;
  padding: 1.5rem 2rem !important;
  border: none !important; background: transparent !important;
}
body [class*="cat-hero"] h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  text-align: center !important;
  margin: 0 !important; font-weight: 800 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important;
  border: none !important; display: block !important;
}
body [class*="cat-hero"] [class*="breadcrumb"],
body [class*="cat-hero"] nav[aria-label*="riane"],
body [class*="cat-hero"] nav[aria-label*="readcrumb"] {
  display: none !important;
}


/* [2026-06-17] PERSONA PHOTO — Force taille raisonnable.
   Sans contrainte, l'image 1024x1024 (Codex output) s'affiche en grand
   sur la page "À propos". On force max 280px avec auto height.
*/
body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
  max-width: 280px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
    max-width: 320px !important;
  }
}

/* [2026-06-17] BURGER MOBILE — Garantit l'affichage en mobile.
   Le CSS Claude met souvent display:none par defaut + media query qui
   n'est pas garantie. Force agnostique : tout selecteur contenant "burger"
   visible en mobile, invisible en desktop. Couvre tous prefixes
   (.a40-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  body [class*="burger"], body button[class*="burger"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 42px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }
}
@media (min-width: 1024px) {
  body [class*="burger"], body button[class*="burger"] {
    display: none !important;
  }
}

/* [2026-06-17] BURGER PARENT FIX : si un wrapper du header contient un
   burger, force-le visible en mobile. Claude met parfois le burger DANS un
   wrapper "cta-wrap" qui est display:none en mobile -> burger invisible.
*/
/* [2026-06-17] FOOTER COLOR HERITAGE — Force le footer ENTIER à hériter
   de la couleur du body. Claude définit parfois color:var(--bg) sur le footer
   (utile si bg sombre, illisible si bg clair). On force color:inherit → texte
   reste lisible peu importe le bg footer.
*/
body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}

/* [2026-06-17] FOOTER LINKS HERITAGE — Force les liens à hériter du texte.
   Claude définit parfois color: var(--bg) sur les liens footer (utile si bg
   sombre, mais illisible si bg clair). On force color:inherit qui suit le
   texte parent → toujours lisible. underline pour distinguer du texte normal.
*/
body footer ul li a, body footer ol li a,
body [class*="footer"] ul li a:not([class*="btn"]):not([class*="cta"]),
body footer [class*="link"]:not([class*="brand"]):not([class*="btn"]) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.85 !important;
  transition: opacity .2s ease !important;
}
body footer ul li a:hover, body footer ol li a:hover,
body [class*="footer"] ul li a:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}

/* [2026-06-17] BURGER STYLE — 3 barres visibles + hover/animation.
   Le bouton burger Claude est souvent un <button> avec 3 <span> dedans qui
   représentent les barres, mais sans CSS la cible est un carré vide.
   Force ici un style propre, agnostique au prefixe.
*/
body [class*="burger"] {
  background: transparent !important;
  border: 1px solid currentColor !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  padding: 8px !important;
  color: inherit !important;
  transition: background .2s ease, border-color .2s ease !important;
}
body [class*="burger"]:hover, body [class*="burger"]:focus-visible {
  background: rgba(0,0,0,0.06) !important;
  border-color: var(--a40-accent, currentColor) !important;
}
/* Container des 3 barres (peut s'appeler "bars", "lines", etc.) */
body [class*="burger"] > [class*="bar"],
body [class*="burger"] > [class*="line"],
body [class*="burger"] > span {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 22px !important;
  height: 16px !important;
  gap: 0 !important;
}
/* Les 3 barres elles-mêmes */
body [class*="burger"] [class*="bar"] > span,
body [class*="burger"] [class*="line"] > span,
body [class*="burger"] > span > span {
  display: block !important;
  width: 22px !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  margin: 2px 0 !important;
  transition: transform .25s ease, opacity .25s ease !important;
}
/* Etat ouvert : transforme en X */
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(2) {
  opacity: 0 !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

@media (max-width: 1023px) {
  body header [class*="cta-wrap"]:has([class*="burger"]),
  body header > div:has([class*="burger"]),
  body [class*="header"] [class*="-wrap"]:has([class*="burger"]),
  body [class*="header-inner"] > div:has([class*="burger"]) {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* [2026-06-19] FIX gap main padding-top (Claude met parfois padding-top: 30px sur .{prefix}-main qui casse le collage hero) */
html body main[class*="-main"],
html body main.a40-main,
html body main#bdf-main, html body main#lda-main, html body main#a66-main,
html body main#b3b-main, html body main#e96-main, html body main#aaa-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* [2026-06-19] FIX drawer mobile height : force full viewport */
html body [class*="nav-mobile"]:not([class*="close"]):not([class*="overlay"]),
html body [class*="menu-mobile"]:not([class*="close"]),
html body [class*="drawer-mobile"]:not([class*="close"]) {
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  bottom: 0 !important;
  overflow-y: auto !important;
}

/* [2026-06-19] BURGER variation seedee : shape=decrescendo (w1=20/w2=16/w3=12) + dimensions + couleur + angle X */
html body button[class*="burger"] > span > span,
html body button[class*="burger"] > span:not([class*="bar"]):not([class*="line"]),
html body button[class*="burger"] [class*="bar"] > span,
html body button[class*="burger"] [class*="line"] > span {
  height: 2px !important;
  border-radius: 1px !important;
  background: var(--a40-accent, currentColor) !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease !important;
}
/* Widths individuelles seedees -> forme distincte par site */
html body button[class*="burger"] > span > span:nth-child(1),
html body button[class*="burger"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"] [class*="line"] > span:nth-child(1) {
  width: 20px !important;
}
html body button[class*="burger"] > span > span:nth-child(2),
html body button[class*="burger"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"] [class*="line"] > span:nth-child(2) {
  width: 16px !important;
}
html body button[class*="burger"] > span > span:nth-child(3),
html body button[class*="burger"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"] [class*="line"] > span:nth-child(3) {
  width: 12px !important;
}
/* En etat ouvert (X) : les 3 barres ont meme largeur pour X symetrique */
html body button[class*="burger"][aria-expanded="true"] > span > span,
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span,
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span {
  width: 20px !important;
}
html body button[class*="burger"] > span:has(> span) {
  flex-direction: column !important;
  gap: 6px !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(1):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1) {
  transform: translateY(8.0px) rotate(50deg) !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(2):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2) {
  opacity: 0 !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(3):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3) {
  transform: translateY(-8.0px) rotate(-50deg) !important;
}

/* [2026-06-19] FIX contraste boutons (anti bouton invisible) */
html body a[class*="btn--primary"], html body button[class*="btn--primary"],
html body a[class*="btn-primary"], html body button[class*="btn-primary"],
html body a[class*="-cta"]:not([class*="ghost"]):not([class*="link"]),
html body button[class*="-cta"]:not([class*="ghost"]):not([class*="link"]) {
  color: #ffffff !important;
}
html body a[class*="btn--ghost"], html body button[class*="btn--ghost"],
html body a[class*="btn--secondary"], html body button[class*="btn--secondary"],
html body a[class*="btn-secondary"], html body button[class*="btn-secondary"] {
  color: var(--a40-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : subtle (8px) */
html body img[class*="persona"],
html body img[class*="author"],
html body img[class*="author-photo"],
html body img[class*="persona-photo"],
html body img[class*="redaction"],
html body img[class*="about-photo"],
html body img[class*="team-photo"],
html body img[class*="profile"],
html body [class*="persona"] > img,
html body [class*="author"] > img:not([class*="logo"]),
html body [class*="about"] img:not([class*="logo"]):not([class*="brand"]) {
  border-radius: 8px !important;
}
