/*
 * Terre Végétale Media — Custom child theme styles
 * Design system : Home Loft Industriel (Oswald / Manrope)
 * Palette : concurrent (Terra Potager) → vert nature + dark green-gray + creme
 * Prefix : tvm-
 * Mega menu layout : E - Tabs horizontaux (choix seeded md5(domain)%5)
 */

/* -------------------------------------------------------------- */
/* 1. TOKENS                                                       */
/* -------------------------------------------------------------- */
:root {
  --tvm-primary:   #2B2E2A;
  --tvm-accent:    #65B072;
  --tvm-accent-dk: #4A8A57;
  --tvm-text:      #1A1815;
  --tvm-text-soft: #5F5A52;
  --tvm-bg:        #F0EBE0;
  --tvm-surface:   #FFFFFF;
  --tvm-line:      #D5CDBF;

  --tvm-warm-1: #FFF5DE;
  --tvm-warm-2: #E8D9B5;

  --tvm-font-head: 'Oswald', 'Impact', 'Franklin Gothic Medium', sans-serif;
  --tvm-font-body: 'Manrope', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --tvm-radius: 6px;
  --tvm-shadow-1: 0 4px 12px rgba(26,24,21,0.08);
  --tvm-shadow-2: 0 12px 32px rgba(26,24,21,0.14);

  --tvm-container: 1240px;
}

/* -------------------------------------------------------------- */
/* 2. RESET LIGHT                                                  */
/* -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tvm-body {
  margin: 0;
  padding: 0;
  background: var(--tvm-bg);
  color: var(--tvm-text);
  font-family: var(--tvm-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tvm-accent-dk); text-decoration: none; transition: color .22s ease; }
a:hover { color: var(--tvm-accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tvm-font-head);
  color: var(--tvm-primary);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  margin: 0 0 .6rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1rem; }

main, .tvm-main { padding-top: 0 !important; margin-top: 0 !important; }
.tvm-container, .eea-container { max-width: var(--tvm-container); margin: 0 auto; padding: 0 1.5rem; }

/* Accessibility helpers */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

/* -------------------------------------------------------------- */
/* 3. BUTTONS                                                      */
/* -------------------------------------------------------------- */
.tvm-btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-family: var(--tvm-font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--tvm-radius);
  border: 1.5px solid var(--tvm-primary);
  background: var(--tvm-primary);
  color: #ffffff !important;
  cursor: pointer;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.tvm-btn:hover { transform: translateY(-2px); background: #17191A; color: #ffffff !important; }

.tvm-btn--cta {
  background: linear-gradient(120deg, #65B072 0%, #4A8A57 50%, #65B072 100%);
  background-size: 220% 220%;
  animation: tvmCtaGradientShift 6s ease infinite;
  border: none;
  color: #ffffff !important;
  padding: .95rem 1.75rem;
}
.tvm-btn--cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(101,176,114,0.35); color: #ffffff !important; }

@keyframes tvmCtaGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tvm-btn--ctr {
  background: transparent;
  color: var(--tvm-primary) !important;
  border-color: var(--tvm-primary);
}
.tvm-btn--ctr:hover { background: var(--tvm-primary); color: #ffffff !important; }

.tvm-btn--ghost {
  background: transparent;
  color: var(--tvm-primary) !important;
  border-color: var(--tvm-line);
  padding: .65rem 1.2rem;
  font-size: .85rem;
}
.tvm-btn--ghost:hover { background: var(--tvm-primary); color: #ffffff !important; }

/* -------------------------------------------------------------- */
/* 4. HEADER — layout "sticky-minimal" custom                     */
/* -------------------------------------------------------------- */
.tvm-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--tvm-surface);
  border-bottom: 1px solid var(--tvm-line);
  transition: box-shadow .3s ease;
}
.tvm-header.is-scrolled { box-shadow: 0 4px 14px rgba(26,24,21,0.08); }

.tvm-header-inner {
  max-width: var(--tvm-container);
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: flex-start;
  min-height: 70px;
}

.tvm-brand-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--tvm-primary);
  flex-shrink: 0;
}
.tvm-brand-logo {
  width: auto;
  display: block;
}
.tvm-brand-name {
  font-family: var(--tvm-font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--tvm-primary);
  line-height: 1.1;
}

/* Nav desktop — cachée mobile par défaut */
.tvm-nav-desktop { display: none; }
.tvm-nav-desktop-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.tvm-nav-desktop-list > li { position: relative; }
.tvm-nav-desktop-list > li > a {
  color: var(--tvm-primary);
  font-family: var(--tvm-font-head);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .5rem .2rem;
  display: inline-block;
  position: relative;
}
.tvm-nav-desktop-list > li > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--tvm-accent);
  transition: width .32s cubic-bezier(.2,.8,.2,1), left .32s cubic-bezier(.2,.8,.2,1);
}
.tvm-nav-desktop-list > li:hover > a::after,
.tvm-nav-desktop-list > li:focus-within > a::after { width: 100%; left: 0; }
.tvm-nav-desktop-list > li:hover > a,
.tvm-nav-desktop-list > li:focus-within > a { color: var(--tvm-accent); }

/* Header CTA desktop (yes) */
.tvm-header-cta-desktop {
  margin-left: auto;
  flex-shrink: 0;
}

/* Burger */
.tvm-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--tvm-line);
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
  color: var(--tvm-primary);
}
.tvm-burger:hover { background: var(--tvm-bg); }
.tvm-burger-icon,
.tvm-burger-icon::before,
.tvm-burger-icon::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .3s ease, top .3s ease;
}
.tvm-burger-icon::before { position: absolute; top: -7px; left: 0; }
.tvm-burger-icon::after  { position: absolute; top: 7px;  left: 0; }

/* Mega menu panel */
.tvm-mega-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: min(700px, 95vw);
  background: var(--tvm-surface);
  border: 1px solid var(--tvm-line);
  border-radius: 8px;
  box-shadow: var(--tvm-shadow-2);
  padding: 1.25rem 1.5rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  z-index: 600;
}
.tvm-nav-desktop-list > li:hover .tvm-mega-panel,
.tvm-nav-desktop-list > li:focus-within .tvm-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .28s ease, transform .28s ease;
}
.tvm-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.tvm-mega-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: .8rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: .4rem;
  border-radius: 5px;
  transition: background .2s;
}
.tvm-mega-item:hover { background: var(--tvm-bg); }
.tvm-mega-thumb {
  width: 84px;
  height: 64px;
  overflow: hidden;
  border-radius: 4px;
}
.tvm-mega-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tvm-mega-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
  color: var(--tvm-primary);
  margin-bottom: .2rem;
}
.tvm-mega-date { font-size: .78rem; color: var(--tvm-text-soft); }
.tvm-mega-cta {
  display: inline-block;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tvm-line);
  color: var(--tvm-accent-dk);
  font-family: var(--tvm-font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .85rem;
}
.tvm-mega-cta:hover { color: var(--tvm-primary); }

/* Desktop rules */
@media (min-width: 1024px) {
  .tvm-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    margin: 0 1rem;
  }
  .tvm-burger { display: none !important; }
}

/* -------------------------------------------------------------- */
/* 5. DRAWER MOBILE + OVERLAY                                      */
/* -------------------------------------------------------------- */
.tvm-nav-mobile { display: none; }
.tvm-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,24,21,0.55);
  z-index: 9990;
  opacity: 0;
  transition: opacity .3s ease;
}
.tvm-nav-overlay.is-open { display: block; opacity: 1; }

.tvm-nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  background: #ffffff;
  padding: 4.5rem 0 2rem;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(26,24,21,0.3);
  animation: tvmDrawerIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes tvmDrawerIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.tvm-nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--tvm-line);
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--tvm-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tvm-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tvm-nav-mobile-list li {
  border-bottom: 1px solid #E8E4DA;
}
.tvm-nav-mobile-list a {
  display: block;
  padding: 1rem 1.5rem;
  color: #1a1a1a;
  font-family: var(--tvm-font-head);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.tvm-nav-mobile-list a:hover { background: var(--tvm-bg); color: var(--tvm-accent-dk); }

/* Drawer CTA — visible mobile only */
.tvm-drawer-cta {
  display: block !important;
  margin: 2rem 1.5rem 1.5rem !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--tvm-accent) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
  font-family: var(--tvm-font-head);
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .tvm-drawer-cta { display: none !important; }
}
@media (max-width: 1023px) {
  .tvm-header-cta-desktop { display: none !important; }
}

/* -------------------------------------------------------------- */
/* 6. HERO — style "manifesto"                                     */
/* -------------------------------------------------------------- */
.tvm-hero {
  position: relative;
  background: var(--tvm-primary);
  color: #ffffff;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: center;
}
.tvm-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
  z-index: 0;
}
.tvm-hero-inner {
  max-width: var(--tvm-container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .tvm-hero--has-latest .tvm-hero-inner {
    grid-template-columns: 1.35fr 1fr;
    gap: 3rem;
  }
}
.tvm-hero-main { max-width: 700px; }
.tvm-hero-eyebrow {
  font-family: var(--tvm-font-head);
  font-weight: 500;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--tvm-accent);
  margin-bottom: 1.2rem;
  display: inline-block;
}
.tvm-hero-title {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.tvm-hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 620px;
  font-weight: 400;
}
.tvm-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.tvm-hero-ctas .tvm-btn { padding: 1rem 1.85rem; font-size: 1rem; }
.tvm-hero-ctas .tvm-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #ffffff !important;
}
.tvm-hero-ctas .tvm-btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* Hero aside — latest articles slider */
.tvm-hero-latest {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: .5rem;
}
.tvm-hero-latest-item {
  min-width: 240px;
  max-width: 240px;
  display: grid;
  grid-template-columns: 1fr;
  scroll-snap-align: start;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .2s ease, transform .2s ease;
}
.tvm-hero-latest-item:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.tvm-hero-latest-thumb { display: block; width: 100%; height: 130px; overflow: hidden; }
.tvm-hero-latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tvm-hero-latest-body { padding: .8rem .9rem 1rem; }
.tvm-hero-latest-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ffffff;
  font-family: var(--tvm-font-head);
  font-weight: 500;
  font-size: .98rem;
  line-height: 1.35;
  margin-bottom: .35rem;
}
.tvm-hero-latest-date {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,0.7);
}
.tvm-hero-latest-placeholder {
  padding: 1.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  text-align: center;
  min-width: 260px;
}
.tvm-hero-latest-placeholder-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 .5rem;
  color: #ffffff;
  font-family: var(--tvm-font-head);
}
.tvm-hero-latest-placeholder-desc {
  font-size: .92rem;
  margin: 0 0 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}
.tvm-hero-latest-placeholder-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.tvm-hero-latest-placeholder-link {
  padding: .55rem 1rem;
  background: var(--tvm-accent);
  color: #ffffff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
}
.tvm-hero-latest-placeholder-link:hover { background: var(--tvm-accent-dk); color: #ffffff !important; }

/* -------------------------------------------------------------- */
/* 7. HOME — SECTION À PROPOS (position #2 après hero)             */
/* -------------------------------------------------------------- */
.tvm-hero + .tvm-home-about { margin-top: 0 !important; }
.tvm-hero { margin-bottom: 0 !important; }

.tvm-home-about {
  background: var(--tvm-warm-1);
  padding: 4rem 1rem;
  margin: 0;
}
.tvm-home-about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .tvm-home-about-inner {
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    text-align: left;
  }
}
.tvm-home-about-media img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(26,24,21,0.15);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .tvm-home-about-media img { width: 220px; height: 220px; }
}
.tvm-home-about-eyebrow {
  display: inline-block;
  font-family: var(--tvm-font-head);
  font-weight: 500;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--tvm-accent-dk);
  margin-bottom: .6rem;
}
.tvm-home-about-title {
  color: #1a1a1a;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}
.tvm-home-about-bio {
  color: rgba(0,0,0,0.72);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.tvm-home-about-cta {
  display: inline-block;
  color: var(--tvm-primary);
  font-family: var(--tvm-font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
  padding: .8rem 1.4rem;
  border: 1.5px solid var(--tvm-primary);
  border-radius: 6px;
  text-decoration: none;
  transition: background .22s ease, color .22s ease;
}
.tvm-home-about-cta:hover { background: var(--tvm-primary); color: #ffffff !important; }

/* -------------------------------------------------------------- */
/* 8. HOME — CATEGORIES GRID (position #3)                         */
/* -------------------------------------------------------------- */
.tvm-categories {
  padding: 5rem 1.5rem;
  background: var(--tvm-bg);
}
.tvm-section-head {
  max-width: var(--tvm-container);
  margin: 0 auto 3rem;
  text-align: center;
}
.tvm-section-eyebrow {
  display: inline-block;
  font-family: var(--tvm-font-head);
  font-weight: 500;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--tvm-accent-dk);
  margin-bottom: .6rem;
}
.tvm-section-title {
  color: var(--tvm-primary);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: .8rem;
}
.tvm-section-desc {
  color: var(--tvm-text-soft);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.6;
}

.tvm-categories-grid {
  max-width: var(--tvm-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.tvm-cat-card {
  position: relative;
  display: block;
  background: var(--tvm-surface);
  border-radius: var(--tvm-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--tvm-line);
  transition: transform .28s ease, box-shadow .28s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.tvm-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tvm-shadow-2);
}
.tvm-cat-card-img {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--tvm-warm-2);
  position: relative;
}
.tvm-cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.tvm-cat-card:hover .tvm-cat-card-img img { transform: scale(1.06); }
.tvm-cat-card-fallback {
  width: 100%;
  height: 100%;
  background: var(--tvm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tvm-cat-card-fallback::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 2px solid var(--tvm-accent);
  border-radius: 4px;
  opacity: .55;
}
.tvm-cat-card-body {
  padding: 1.2rem 1.4rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.tvm-cat-card-title {
  color: var(--tvm-primary);
  font-family: var(--tvm-font-head);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: .5rem;
  letter-spacing: .02em;
}
.tvm-cat-card-desc {
  color: var(--tvm-text-soft);
  font-size: .92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.tvm-cat-card-more {
  margin-top: .8rem;
  color: var(--tvm-accent-dk);
  font-family: var(--tvm-font-head);
  font-weight: 500;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* -------------------------------------------------------------- */
/* 9. HOME — DERNIERS ARTICLES (position #4)                       */
/* -------------------------------------------------------------- */
.tvm-latest {
  padding: 5rem 1.5rem;
  background: var(--tvm-surface);
  border-top: 1px solid var(--tvm-line);
}
.tvm-latest-grid {
  max-width: var(--tvm-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
@media (min-width: 1024px) {
  .tvm-latest-grid { grid-template-columns: repeat(3, 1fr); }
}
.tvm-article-card {
  background: var(--tvm-surface);
  border: 1px solid var(--tvm-line);
  border-radius: var(--tvm-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.tvm-article-card:hover { transform: translateY(-3px); box-shadow: var(--tvm-shadow-1); }
.tvm-article-card-thumb {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.tvm-article-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tvm-article-card:hover .tvm-article-card-thumb img { transform: scale(1.04); }
.tvm-article-card-body { padding: 1.3rem 1.4rem 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.tvm-article-card-meta {
  font-size: .78rem;
  color: var(--tvm-text-soft);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .6rem;
  font-family: var(--tvm-font-head);
}
.tvm-article-card-cat {
  color: var(--tvm-accent-dk);
  font-weight: 600;
  text-decoration: none;
  margin-right: .5rem;
}
.tvm-article-card-title {
  color: var(--tvm-primary);
  font-family: var(--tvm-font-head);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 .6rem;
}
.tvm-article-card-title a { color: inherit; text-decoration: none; transition: color .2s; }
.tvm-article-card-title a:hover { color: var(--tvm-accent-dk); }
.tvm-article-card-excerpt {
  color: var(--tvm-text-soft);
  font-size: .93rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.tvm-article-card-cta {
  display: inline-block;
  color: var(--tvm-accent-dk);
  font-family: var(--tvm-font-head);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  align-self: flex-start;
}
.tvm-article-card-cta:hover { color: var(--tvm-primary); }

.tvm-latest-empty {
  text-align: center;
  color: var(--tvm-text-soft);
  padding: 3rem 1rem;
  font-style: italic;
}

/* -------------------------------------------------------------- */
/* 10. HOME — INTRO EDITORIALE (position #5)                       */
/* -------------------------------------------------------------- */
.tvm-home-intro {
  padding: 5rem 1.5rem;
  background: var(--tvm-primary);
  color: rgba(255,255,255,0.9);
}
.tvm-home-intro-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}
.tvm-home-intro-title {
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 1.3rem;
  border-left: 4px solid var(--tvm-accent);
  padding-left: 1rem;
}
.tvm-home-intro-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.5rem;
}
.tvm-home-intro-lead a,
.tvm-home-intro-body a {
  color: var(--tvm-accent);
  border-bottom: 1px solid rgba(101,176,114,0.5);
  transition: color .22s ease, border-color .22s ease;
}
.tvm-home-intro-lead a:hover,
.tvm-home-intro-body a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
.tvm-home-intro-h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 1.5rem 0 .8rem;
  font-weight: 500;
}
.tvm-home-intro-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}

/* -------------------------------------------------------------- */
/* 11. FOOTER — 4 colonnes                                         */
/* -------------------------------------------------------------- */
.tvm-footer {
  background: #ffffff;
  color: #1a1a1a;
  padding: 4rem 1.5rem 1.5rem;
  border-top: 1px solid var(--tvm-line);
}
.tvm-footer-inner {
  max-width: var(--tvm-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 720px)  { .tvm-footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tvm-footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.tvm-footer-col { }
.tvm-footer-title, .tvm-footer h4, .tvm-footer h3 {
  color: #1a1a1a;
  font-family: var(--tvm-font-head);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 1.2rem;
}
.tvm-footer-logo {
  max-width: 140px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}
.tvm-footer-brand-pitch {
  color: #4b5563;
  font-size: .94rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.tvm-footer-brand-cta {
  display: inline-block;
  color: #1a1a1a;
  font-family: var(--tvm-font-head);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--tvm-accent);
  padding-bottom: 2px;
}
.tvm-footer-brand-cta:hover { color: var(--tvm-accent-dk); }
.tvm-footer-cta { margin-top: 1rem; }
.tvm-footer-col ul { list-style: none; margin: 0; padding: 0; }
.tvm-footer-col ul li { margin: 0 0 .55rem; }
.tvm-footer-col ul li a {
  color: #1a1a1a;
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s;
}
.tvm-footer-col ul li a:hover { color: var(--tvm-accent-dk); text-decoration: underline; }

.tvm-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .5rem;
}
.tvm-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--tvm-line);
  border-radius: 6px;
  color: #1a1a1a;
  transition: background .2s, color .2s;
}
.tvm-footer-social a:hover { background: var(--tvm-primary); color: #ffffff; border-color: var(--tvm-primary); }

.tvm-footer-bottom {
  max-width: var(--tvm-container);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tvm-line);
  text-align: center;
  color: #6b7280;
  font-size: .85rem;
}

/* -------------------------------------------------------------- */
/* 12. CATEGORY PAGE                                               */
/* -------------------------------------------------------------- */
.tvm-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--tvm-primary);
}
.tvm-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: .55;
}
.tvm-cat-hero .eea-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, transparent 30%, rgba(43,46,42,0.75) 100%);
}
.tvm-cat-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}
.tvm-cat-intro {
  max-width: 900px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  color: var(--tvm-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* -------------------------------------------------------------- */
/* 13. CONTACT PAGE (formulaire JotForm)                           */
/* -------------------------------------------------------------- */
.f52-contact-form { max-width: 900px; margin: 2rem auto; }
.f52-contact-form iframe { border: 1px solid var(--tvm-line); border-radius: 6px; background: #ffffff; }

/* -------------------------------------------------------------- */
/* 14. PERSONA PHOTO (page à propos)                               */
/* -------------------------------------------------------------- */
.tvm-persona-photo {
  float: right;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 1.5rem 2rem;
  box-shadow: var(--tvm-shadow-1);
  border: 4px solid #ffffff;
}
@media (max-width: 720px) {
  .tvm-persona-photo { float: none; margin: 0 auto 1.5rem; display: block; }
}

/* -------------------------------------------------------------- */
/* 15. FOOTER SEARCH                                               */
/* -------------------------------------------------------------- */
.f52-footer-search { margin-top: 1.2rem; }
.f52-footer-search-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--tvm-line);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}
.f52-footer-search-field {
  flex: 1;
  border: none;
  padding: .7rem .9rem;
  font-size: .9rem;
  background: transparent;
  color: #1a1a1a;
  outline: none;
  font-family: var(--tvm-font-body);
}
.f52-footer-search-btn {
  border: none;
  background: var(--tvm-primary);
  color: #ffffff;
  padding: 0 .95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .22s ease;
}
.f52-footer-search-btn:hover { background: var(--tvm-accent-dk); }

/* -------------------------------------------------------------- */
/* 16. PARALLAX (CTR)                                              */
/* -------------------------------------------------------------- */
.tvm-parallax-section {
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  will-change: background-position;
}
@media (max-width: 900px) {
  .tvm-parallax-section { background-attachment: scroll; }
}
.tvm-parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,46,42,0.55), rgba(43,46,42,0.75));
  z-index: 1;
}
.tvm-parallax-section > * { position: relative; z-index: 2; }

/* -------------------------------------------------------------- */
/* 17. UTILITIES                                                   */
/* -------------------------------------------------------------- */
.tvm-visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------------------------------------- */
/* 18. RESPONSIVE FINE                                             */
/* -------------------------------------------------------------- */
@media (max-width: 720px) {
  .tvm-hero { padding: 3rem 1.25rem 3.5rem; min-height: auto; }
  .tvm-hero-inner { grid-template-columns: 1fr; }
  .tvm-hero-latest { padding-bottom: .8rem; }
  .tvm-categories, .tvm-latest, .tvm-home-intro, .tvm-home-about { padding: 3rem 1.25rem; }
  .tvm-mega-panel { position: static; width: 100%; box-shadow: none; border: none; padding: .5rem 0 0 1rem; }
  .tvm-mega-grid { grid-template-columns: 1fr; }
}


/* Site-specific styles */
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, body, body [class*="f52-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 */
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;
}



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;
  }
}


@media (max-width: 1023px) {
  /* FIX width:auto -> ne plus l'imposer (laisse child theme définir width).
     Sinon écrase le child et le burger devient 0 de large -> invisible. */
  body [class*="burger"], body button[class*="burger"] {
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    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;
  }
}



body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}


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;
}


body [class*="burger"] {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer !important;
  padding: 8px;
  color: inherit;
  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);
  border-color: var(--f52-accent, currentColor);
}
/* 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;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 16px;
  gap: 0;
}
/* 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;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  margin: 2px 0;
  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;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* Mobile : 1 SEUL CTA visible (dans le burger).
   Sur mobile le CTA original du header est masque ; sur desktop le clone est hidden. */
@media (max-width: 1023px) {
  body [class*="header-cta"] [class*="btn--cta"],
  body [class*="header__cta"] [class*="btn--cta"],
  body [class*="header-cta"] > [class*="cta"],
  body [class*="header__cta"] > a {
    display: none !important;
  }
}


/* ============================================================
   Section 'On parle de nous' (media press)
   Logos grayscale par defaut, couleur au hover.
   Grid responsive 2-6 colonnes, gap auto.
============================================================ */
.f52-media-press {
  padding: 2.5rem 0;
  background: var(--f52-bg-soft, var(--f52-color-surface, #f9fafb));
  margin: 2rem 0;
}
.f52-media-press > .f52-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.f52-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--f52-color-text-soft, var(--f52-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.f52-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.f52-media-press-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 160px;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
  opacity: .65;
  filter: grayscale(100%);
}
.f52-media-press-item:hover,
.f52-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.f52-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .f52-media-press { padding: 1.8rem 0; }
  .f52-media-press-grid { gap: 1.4rem; }
  .f52-media-press-item { max-width: 110px; min-height: 36px; }
  .f52-media-press-item img { max-height: 36px; }
}


/* FIX gap header->hero (parent theme override) + media-press compact centre */
body main, body.home main, body.archive main, body.single main,
body, body, body main[class*="-main"] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* MEDIA PRESS : layout horizontal compact CENTRE (titre + logos cote a cote au centre) */
.f52-media-press section[class*="media-press"] {
  padding: 24px 0 !important;
  margin: 0 !important;
  background: #fafafa;
  border-block: 1px solid rgba(0,0,0,0.06);
}
.f52-media-press .f52-container,
section[class*="media-press"] [class*="container"] {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  text-align: center;
}
.f52-media-press-title,
section[class*="media-press"] [class*="title"] {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--f52-muted, #666);
  flex: 0 0 auto;
}
.f52-media-press-grid,
section[class*="media-press"] [class*="grid"] {
  display: flex !important;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  flex: 0 1 auto;
  justify-content: center;
}
.f52-media-press-item,
section[class*="media-press"] [class*="item"] {
  display: inline-flex !important;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.f52-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.f52-media-press imgimg,
section[class*="media-press"] img {
  max-height: 48px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}
.f52-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .f52-media-press .f52-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.f52-cat-hero--align-left .f52-cat-hero-inner
section[class*="cat-hero--align-left"] [class*="cat-hero-inner"] {
  text-align: left !important;
  align-items: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 24px;
}
.f52-cat-hero--align-center .f52-cat-hero-inner
section[class*="cat-hero--align-center"] [class*="cat-hero-inner"] {
  text-align: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}


@media (max-width: 1023.98px) {  [class*="-header-cta-wrap"],
  [class*="-header-actions"],
  [class*="-burger-wrap"],
  [class*="-header-right"],
  [class*="-header-actions-mobile"] {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex-shrink: 0 !important;
    z-index: 9999;
    pointer-events: auto !important;
    cursor: pointer !important;
  }  [class*="-burger"] > span,
  [class*="-burger-bars"] {
    display: flex !important;
    flex-direction: column !important;
    min-width: 24px !important;
    min-height: 16px !important;
  }  [class*="-burger-bars"] > *,
  [class*="-burger"] > span > * {
    display: block !important;
    min-width: 24px !important;
    min-height: 2px !important;
  }  [class*="-header-cta-desktop"] {
    display: none !important;
  }  [class*="-burger-label"] {
    display: none !important;
  }
}
@media (min-width: 1024px) {  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: none !important;
  }
}


/* Burger style */
@media (max-width: 1023.98px) {
  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    width: 42px !important; height: 42px !important;
    border-radius: 50% !important; padding: 8px !important;
     
  }
  [class*="-burger"] > span, [class*="-burger-bars"] {
    gap: 5px !important; width: 24px !important; height: 16px !important;
    align-items: center !important;
  }
  [class*="-burger-bars"] > *, [class*="-burger"] > span > * {
    height: 2px !important; border-radius: 0 !important;
  }
  [class*="-burger-bars"] > *:nth-child(1), [class*="-burger"] > span > *:nth-child(1) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(2), [class*="-burger"] > span > *:nth-child(2) { width: 16px !important; }
  [class*="-burger-bars"] > *:nth-child(3), [class*="-burger"] > span > *:nth-child(3) { width: 24px !important; }
}


/* Mouse effect : nav_hover_dropdown_fade */
.tvm-nav-desktop-list li { position: relative; } .tvm-nav-desktop-list > li > a { transition: color .28s ease; } .tvm-nav-desktop-list > li > a::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 0; height: 2px; background: var(--tvm-accent, #65B072); transition: width .32s cubic-bezier(.2,.8,.2,1), left .32s cubic-bezier(.2,.8,.2,1); } .tvm-nav-desktop-list > li:hover > a::after, .tvm-nav-desktop-list > li:focus-within > a::after { width: 100%; left: 0; } .tvm-nav-desktop-list > li:hover > a, .tvm-nav-desktop-list > li:focus-within > a { color: var(--tvm-accent, #65B072); } @media (hover: none) { .tvm-nav-desktop-list > li > a::after { display: none; } }


/* rp-contrast-autofix-2026-07-31 */
/* AUTO-FIX contraste WCAG AA (validator_contrast.py) */
/* FOOTER : fond blanc + texte sombre partout */
.f52-footer { background: #ffffff !important; color: #1a1a1a !important; border-top: 1px solid rgba(0,0,0,0.08) !important; }
.f52-footer a { color: #1a1a1a !important; }
.f52-footer a:hover { color: var(--f52-accent, #333) !important; }
.f52-footer-col h3,
.f52-footer-col h4 { color: #1a1a1a !important; border-bottom: 1px solid rgba(0,0,0,0.12) !important; }
.f52-footer-brand-pitch,
.f52-brand-tagline { color: #4b5563 !important; }
.f52-footer-bottom,
.f52-copyright { border-top: 1px solid rgba(0,0,0,0.08) !important; color: #6b7280 !important; }
.f52-footer-brand-cta { background: var(--f52-accent, #1a1a1a) !important; color: #ffffff !important; }
.f52-footer-brand-cta:hover { background: var(--f52-primary, #000) !important; color: #ffffff !important; }

/* BOUTONS CTA : texte blanc force (garde-fou contre texte=fond) */
.f52-btn--cta,
a.f52-btn--cta,
button.f52-btn--cta { color: #ffffff !important; }
.f52-btn--cta:hover { color: #ffffff !important; }
.f52-btn--ctr { color: #ffffff !important; }
.f52-btn--ctr:hover { color: #ffffff !important; }

/* BOUTONS FOOTER (CTA + search) : texte blanc force */
.f52-footer-brand-cta,
.f52-footer-brand-cta:visited { color: #ffffff !important; }
.f52-footer-brand-cta:hover { color: #ffffff !important; }
.f52-footer-search-btn { color: #ffffff !important; }
.f52-footer-search-btn svg { color: #ffffff !important; stroke: #ffffff !important; }
.f52-footer-search-btn:hover { color: #ffffff !important; }
.f52-footer-search-field { color: #1a1a1a !important; background: #ffffff !important; }
.f52-footer-search-field::placeholder { color: rgba(0,0,0,0.5) !important; }

/* DRAWER MOBILE : fond blanc + texte sombre */
.f52-drawer,
.f52-nav-mobile,
.f52-mobile-menu { background: #ffffff !important; }
.f52-drawer a,
.f52-nav-mobile a,
.f52-mobile-menu a { color: #0a0a0a !important; }

/* CARDS BODY : texte lisible sur fond clair */
.f52-card-body h3,
.f52-card-body p { color: inherit; }

/* ANTI-GAP About : verrouille les margins entre .home-about et TOUTES les sections voisines
   (l'ordre HOME_SECTIONS_ORDER V0-V5 place About à des positions différentes = besoin d'un
   verrou général pour éviter les trous visibles entre sections adjacentes) */
.f52-home-about { margin: 0 !important; }
.f52-hero { margin-bottom: 0 !important; }
.f52-categories, .f52-latest, .f52-home-intro { margin-top: 0 !important; margin-bottom: 0 !important; }
.f52-home-about + section { margin-top: 0 !important; }
section + .f52-home-about { margin-top: 0 !important; }
.f52-home-about + .f52-footer, .f52-home-about + footer { margin-top: 0 !important; }

/* Validator: cap hauteur hero cat v2 */
body section[class*="cat-hero"], body div[class*="cat-hero"], body section[class*="category-hero"], body div[class*="category-hero"] { position: relative !important; height: 320px !important; max-height: 320px !important; min-height: 200px !important; padding: 0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; border: none !important; box-shadow: none !important; }
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img, body [class*="category-hero"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: 320px !important; object-fit: cover !important; z-index: 0 !important; border: none !important; }
body [class*="cat-hero"] > [class*="container"], body [class*="cat-hero"] > [class*="wrap"], body [class*="cat-hero"] > [class*="inner"], body [class*="cat-hero"] > div { position: relative !important; z-index: 2 !important; max-width: 900px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; background: transparent !important; }
body [class*="cat-hero"] h1, body [class*="category-hero"] h1 { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3.5rem) !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; }
body [class*="cat-hero"][style*="background-image"] { background-size: cover !important; background-position: center !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; }

/* Validator: nav-mobile drawer hidden by default v2 */
/* Drawer/burger menu mobile : hidden par defaut, visible mobile+is-open */
[class*="-nav-mobile"]:not(.is-open), [id*="-nav-mobile"]:not(.is-open), [class*="-drawer"]:not(.is-open), [class*="-burger-menu"]:not(.is-open), [class*="-mobile-menu"]:not(.is-open) { display: none !important; }
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { display: flex !important; flex-direction: column !important; position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 86% !important; max-width: 380px !important; background: #fff !important; padding: 4.5rem 1.5rem 2rem !important; z-index: 9999 !important; overflow-y: auto !important; box-shadow: -10px 0 30px rgba(0,0,0,0.3) !important; }
}

/* Validator: drawer-mobile height fix v1 */
/* Force height:100vh sur le drawer ouvert : top:0;bottom:0 sans !important peut etre overrides par Claude → on impose 100vh. */
/* [2026-06-06] Broadening : ajout patterns supplementaires (X-nav sans 'mobile', X-side, X-menu-drawer, etc.) sinon le validator manque les sites comme artois-moto.com qui utilise fe8-nav (sans 'mobile' dans le nom). */
@media (max-width: 1023px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open, [class*="-side-nav"].is-open, [class*="-side-menu"].is-open, [class*="-offcanvas"].is-open, nav[aria-label*="mobile" i].is-open, nav[aria-label*="Menu mobile" i].is-open, nav[id*="nav"].is-open[class*="-nav"]:not([class*="desktop"]) { height: 100vh !important; min-height: 100vh !important; max-height: 100vh !important; }
}

/* Validator: footer logo no-filter v1 */
footer img, [class*="-footer"] img, [role="contentinfo"] img, footer [class*="logo"], [class*="-footer"] [class*="logo"] { filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
footer[class*="dark"] img, footer[class*="black"] img, [class*="-footer"][class*="dark"] img, [class*="-footer"][class*="black"] img { filter: brightness(0) invert(1) !important; }

/* Validator: header-hero gap fix v1 */
/* Bug recurrent : <main class="X-main"> a padding-top:30px qui creait un
 * gap entre header sticky et hero/cat-hero. Force padding-top:0 sur le
 * wrapper <main> + margin-top:0 sur le 1er hero enfant. */
body > main, body > [role="main"], main[class*="-main"], [id="main"] { padding-top: 0 !important; }
main > [class*="-hero"]:first-child, main > [class*="-cat-hero"]:first-child, main > [class*="-category-hero"]:first-child { margin-top: 0 !important; }
/* Fallback : si sibling direct du header */
header + section, header + [class*="-hero"], header + [class*="-cat-hero"], header + [class*="-category-hero"], [class*="-header"] + section, [class*="-header"] + [class*="-hero"], [class*="-header"] + [class*="-cat-hero"], [class*="-header"] + [class*="-category-hero"] { margin-top: 0 !important; padding-top: 0 !important; }
section[class*="-hero"]:first-of-type, section[class*="-cat-hero"]:first-of-type, section[class*="-category-hero"]:first-of-type { margin-top: 0 !important; }

/* Validator: contraste lisible header+menu-mobile+footer v2 */
[class*="-nav-mobile"], [id*="-nav-mobile"], [class*="-drawer"], [class*="-burger-menu"], [class*="-mobile-menu"], [class*="-side-nav"] { background: #ffffff !important; }
[class*="-nav-mobile"] *, [id*="-nav-mobile"] *, [class*="-drawer"] *, [class*="-burger-menu"] *, [class*="-mobile-menu"] *, [class*="-side-nav"] * { color: #0a0a0a !important; }
[class*="-nav-mobile"] a, [id*="-nav-mobile"] a, [class*="-drawer"] a, [class*="-burger-menu"] a, [class*="-mobile-menu"] a { color: #0a0a0a !important; font-weight: 600 !important; }
[class*="-nav-mobile"] a:hover, [class*="-drawer"] a:hover, [class*="-burger-menu"] a:hover, [class*="-mobile-menu"] a:hover { color: #000 !important; opacity: 0.7 !important; }
footer *, [class*="-footer"] *, [role="contentinfo"] * { color: #1a1a1a !important; }
footer a, [class*="-footer"] a, [role="contentinfo"] a { color: #1a1a1a !important; text-decoration: underline !important; text-decoration-color: currentColor !important; text-underline-offset: 3px !important; font-weight: 600 !important; }
footer a:hover, [class*="-footer"] a:hover, [role="contentinfo"] a:hover { color: #000 !important; opacity: 1 !important; }
footer h1, footer h2, footer h3, footer h4, footer h5, [class*="-footer"] h1, [class*="-footer"] h2, [class*="-footer"] h3, [class*="-footer"] h4, [class*="-footer"] h5 { color: #0a0a0a !important; font-weight: 700 !important; }
footer p, footer span, footer li, [class*="-footer"] p, [class*="-footer"] span, [class*="-footer"] li { color: #2a2a2a !important; }
footer[class*="dark"] *, footer[class*="black"] *, [class*="-footer"][class*="dark"] *, [class*="-footer"][class*="black"] *, footer[style*="background:#0"] *, footer[style*="background: #0"] *, footer[style*="background:#1"] *, footer[style*="background: #1"] *, footer[style*="background:#2"] *, footer[style*="background: #2"] * { color: #f5f5f5 !important; }
footer[class*="dark"] a, [class*="-footer"][class*="dark"] a, footer[style*="background:#0"] a, footer[style*="background:#1"] a { color: #ffffff !important; }
header a, [class*="-header"] a, [role="banner"] a { text-shadow: none !important; }
header a:hover, [class*="-header"] a:hover { opacity: 0.7 !important; }
[class*="-nav-mobile"] [class*="-btn"], [class*="-footer"] [class*="-btn"] { border: 1.5px solid currentColor !important; }

/* Validator: burger button always visible+clickable v2 */
/* === Burger button : VISIBLE + CLIQUABLE garanti === */
[class*="-burger"], [class*="burger-menu"], [class*="menu-toggle"], button[aria-controls*="nav"], button[aria-label*="menu" i] { color: #1a1a1a !important; pointer-events: auto !important; cursor: pointer !important; z-index: 100 !important; position: relative !important; user-select: none !important; -webkit-tap-highlight-color: transparent !important; background: rgba(255,255,255,0.92) !important; border-radius: 8px !important; border: 1.5px solid rgba(0,0,0,0.15) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important; padding: 8px !important; }
[class*="-burger"] svg, [class*="burger-menu"] svg, [class*="menu-toggle"] svg, button[aria-controls*="nav"] svg { stroke: #1a1a1a !important; fill: none !important; pointer-events: none !important; stroke-width: 2.5 !important; width: 22px !important; height: 22px !important; }
[class*="-burger"] svg path, [class*="-burger"] svg line, [class*="-burger"] svg rect, [class*="-burger"] svg polyline { stroke: #1a1a1a !important; stroke-width: 2.5 !important; fill: none !important; }
[class*="-burger"]:hover, [class*="-burger"]:focus { background: rgba(255,255,255,1) !important; border-color: rgba(0,0,0,0.3) !important; outline: 2px solid rgba(0,0,0,0.15) !important; outline-offset: 1px !important; }
/* Si le header est sombre : inverse en clair (detection elargie) */
[class*="-header"][style*="background:#0"] [class*="-burger"], [class*="-header"][style*="background:#1"] [class*="-burger"], [class*="-header"][style*="background:#2"] [class*="-burger"], [class*="-header"][style*="background-color:#0"] [class*="-burger"], [class*="-header"][style*="background-color:#1"] [class*="-burger"], [class*="-header"][style*="background-color:#2"] [class*="-burger"], [class*="-header"][class*="dark"] [class*="-burger"], [class*="-header"][class*="black"] [class*="-burger"], [class*="-header"][class*="--dark"] [class*="-burger"], [class*="-header"][class*="-night"] [class*="-burger"] { color: #f5f5f5 !important; background: rgba(0,0,0,0.55) !important; border-color: rgba(255,255,255,0.4) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important; }
[class*="-header"][style*="background:#0"] [class*="-burger"] svg, [class*="-header"][style*="background:#1"] [class*="-burger"] svg, [class*="-header"][class*="dark"] [class*="-burger"] svg, [class*="-header"][class*="black"] [class*="-burger"] svg { stroke: #f5f5f5 !important; }
@media (max-width: 1023px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px !important; min-height: 44px !important; }
}
@media (min-width: 1024px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: none !important; }
}

/* Validator: nav-mobile-list visible inside open drawer v1 */
/* Burger drawer ouvert : la UL des liens DOIT etre visible. */
[class*="-nav-mobile"].is-open ul, [id*="-nav-mobile"].is-open ul, [class*="-nav-mobile"].is-open [class*="-nav-mobile-list"], [class*="-drawer"].is-open ul, [class*="-burger-menu"].is-open ul { display: block !important; visibility: visible !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li, [id*="-nav-mobile"].is-open ul li, [class*="-drawer"].is-open ul li, [class*="-burger-menu"].is-open ul li { display: list-item !important; height: auto !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li a, [id*="-nav-mobile"].is-open ul li a, [class*="-drawer"].is-open ul li a, [class*="-burger-menu"].is-open ul li a { display: block !important; padding: 0.9rem 0 !important; text-decoration: none !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; font-size: 1rem !important; }


/* rp-hero-h1-white-2026-08-03 */
.tvm-hero h1, .tvm-hero-title { color: #ffffff !important; }


/* rp-editorial-white-2026-08-03 */
.tvm-home-intro, .tvm-home-editorial, .tvm-editorial-block, section.tvm-editorial { color: #ffffff !important; }
.tvm-home-intro h2, .tvm-home-intro h3, .tvm-home-intro p,
.tvm-home-editorial h2, .tvm-home-editorial h3, .tvm-home-editorial p,
.tvm-editorial-block h2, .tvm-editorial-block h3, .tvm-editorial-block p,
.tvm-home-intro-title, .tvm-home-editorial-title,
.tvm-editorial-title, .tvm-editorial-heading { color: #ffffff !important; }
.tvm-home-intro a, .tvm-home-editorial a, .tvm-editorial-block a { color: #ffffff !important; text-decoration: underline; }
