/* =============================================================
   virtual univers gaming — Custom Theme
   Design system: Tech SaaS Modern Linear
   Palette (competitor Gameblog): #70ba3e green + #f47920 orange
   Fonts: Inter Tight (headings) / Inter (body)
   Prefix: vug-*
   Hero: quote-hero (side-by-side, no dark overlay)
   ============================================================= */

/* ===== Variables ===== */
:root {
  --vug-primary:     #70ba3e;
  --vug-primary-d:   #5aa030;
  --vug-accent:      #f47920;
  --vug-accent-d:    #d96810;
  --vug-text:        #161615;
  --vug-text-soft:   #666680;
  --vug-bg:          #ffffff;
  --vug-surface:     #f6f6f6;
  --vug-line:        #e5e5ec;
  --vug-radius:      10px;
  --vug-radius-lg:   16px;
  --vug-shadow-sm:   0 2px 6px rgba(22, 22, 21, 0.06);
  --vug-shadow-md:   0 6px 18px rgba(22, 22, 21, 0.09);
  --vug-shadow-lg:   0 14px 36px rgba(22, 22, 21, 0.12);
  --vug-font-head:   'Inter Tight', 'Inter', system-ui, sans-serif;
  --vug-font-body:   'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --vug-container:   1240px;
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.vug-body {
  margin: 0;
  font-family: var(--vug-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--vug-text);
  background: var(--vug-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--vug-font-head);
  color: var(--vug-text);
  line-height: 1.25;
  margin: 0 0 .8rem;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--vug-text); }
a  { color: var(--vug-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--vug-primary-d); text-decoration: underline; }
ul, ol { padding-left: 1.4rem; }

.vug-container,
.vug-header-inner,
.vug-footer-inner,
.vug-hero-inner {
  max-width: var(--vug-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vug-skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--vug-text); color: #fff; padding: .5rem 1rem;
  z-index: 100;
}
.vug-skip-link:focus { left: 1rem; top: 1rem; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===== Buttons ===== */
.vug-btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-family: var(--vug-font-head);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--vug-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  line-height: 1;
}
.vug-btn:hover { text-decoration: none; }
.vug-btn--ghost {
  background: transparent;
  border-color: var(--vug-line);
  color: var(--vug-text);
}
.vug-btn--ghost:hover {
  border-color: var(--vug-text);
  background: var(--vug-surface);
  color: var(--vug-text);
}

/* ===== CTA spotlight (animation pack) ===== */
@keyframes vug-cta-spotlight {
  0%, 100% { box-shadow: 0 4px 14px rgba(244, 121, 32, 0.25); transform: translateY(0); }
  50%      { box-shadow: 0 6px 22px rgba(244, 121, 32, 0.55); transform: translateY(-1px); }
}
.vug-btn--cta {
  background: linear-gradient(135deg, #f47920 0%, #ff8c3a 100%);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}
.vug-btn--cta::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 40%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.vug-btn--cta:hover {
  animation: vug-cta-spotlight 1.6s ease-in-out infinite;
  color: #fff;
}
.vug-btn--cta:hover::before { opacity: 1; }

/* ===== CTR floating badge ===== */
@keyframes vug-ctr-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}
.vug-ctr-badge {
  display: inline-block;
  background: var(--vug-primary);
  color: #fff;
  font-family: var(--vug-font-head);
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
  animation: vug-ctr-float 3.5s ease-in-out infinite;
  box-shadow: 0 3px 10px rgba(112, 186, 62, 0.35);
}

/* ===== CTO limited offer bar ===== */
@keyframes vug-cto-pulse {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.vug-cto-bar {
  background: linear-gradient(90deg, #f47920 0%, #70ba3e 50%, #f47920 100%);
  background-size: 200% 200%;
  animation: vug-cto-pulse 6s ease-in-out infinite;
  color: #fff;
  padding: .9rem 1.4rem;
  text-align: center;
  font-family: var(--vug-font-head);
  font-weight: 600;
}

/* ===== HEADER ===== */
.vug-header {
  background: var(--vug-bg);
  border-bottom: 1px solid var(--vug-line);
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vug-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  min-height: 64px;
}
.vug-brand-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--vug-text);
  flex-shrink: 0;
}
.vug-brand-link:hover { text-decoration: none; color: var(--vug-text); }
.vug-brand-logo {
  width: auto;
  max-width: 200px;
}
.vug-brand-name {
  /* Brand casing = lowercase (Style C) */
  font-family: var(--vug-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--vug-text);
  white-space: nowrap;
}

/* nav desktop : centre dense (rule 2026-06-05 anti-vide-géant) */
.vug-nav-desktop {
  display: none;
  flex: 1;
  justify-content: center;
}
.vug-nav-desktop-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.vug-nav-desktop-list a {
  color: var(--vug-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .45rem .2rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.vug-nav-desktop-list a:hover {
  border-bottom-color: var(--vug-primary);
  color: var(--vug-primary-d);
}

/* burger button (mobile only) */
.vug-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  min-width: 42px; min-height: 42px;
  padding: 8px;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 8px;
  color: var(--vug-text);
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
}
.vug-burger-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  width: 24px;
  height: 16px;
}
.vug-burger-bars span {
  display: block;
  width: 100%;
  height: 2.2px;
  background: var(--vug-text);
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}

/* ===== Drawer mobile (.vug-nav) ===== */
.vug-nav {
  display: none;
}
.vug-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  opacity: 0;
  transition: opacity .25s ease;
}
.vug-nav-overlay.is-open { opacity: 1; }
.vug-nav-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border: 0; background: transparent;
  font-size: 1.7rem; line-height: 1;
  cursor: pointer;
  color: var(--vug-text);
}

/* ===== HERO QUOTE (no overlay sombre, side-by-side) ===== */
.vug-hero {
  background: var(--vug-bg);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.vug-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.vug-hero-text { max-width: 620px; }
.vug-hero-eyebrow {
  display: inline-block;
  font-family: var(--vug-font-head);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vug-primary);
  background: rgba(112, 186, 62, 0.1);
  padding: .35rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}
.vug-hero-title {
  font-family: var(--vug-font-head);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: var(--vug-text);
  font-weight: 800;
}
.vug-hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--vug-text-soft);
  line-height: 1.55;
  margin: 0 0 1.8rem;
}
.vug-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.vug-hero-media {
  position: relative;
}
.vug-hero-bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--vug-radius-lg);
  box-shadow: var(--vug-shadow-lg);
  object-fit: cover;
}

/* ===== EDITORIAL BLOCK ===== */
.vug-editorial {
  padding: 4rem 0 3rem;
  background: var(--vug-surface);
  border-top: 1px solid var(--vug-line);
  border-bottom: 1px solid var(--vug-line);
}
.vug-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.vug-editorial-h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 1.2rem;
  color: var(--vug-text);
}
.vug-editorial-h3 {
  font-size: 1.3rem;
  margin: 1.8rem 0 .6rem;
  color: var(--vug-text);
}
.vug-editorial-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--vug-text);
}
.vug-editorial-main p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--vug-text);
}
.vug-editorial-main p a {
  color: var(--vug-primary-d);
  border-bottom: 1px solid rgba(112, 186, 62, 0.4);
}
.vug-editorial-main p a:hover {
  background: rgba(112, 186, 62, 0.08);
  text-decoration: none;
}
.vug-editorial-signature {
  font-style: italic;
  color: var(--vug-text-soft);
  margin-top: 2rem;
}
.vug-editorial-aside {
  align-self: start;
}
.vug-editorial-card {
  background: var(--vug-bg);
  border-radius: var(--vug-radius-lg);
  padding: 1.6rem;
  border: 1px solid var(--vug-line);
  box-shadow: var(--vug-shadow-sm);
}
.vug-editorial-card h4 {
  font-family: var(--vug-font-head);
  font-size: 1.05rem;
  margin: 0 0 .8rem;
  color: var(--vug-text);
}
.vug-editorial-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.vug-editorial-card li {
  padding: .45rem 0 .45rem 1.5rem;
  position: relative;
  color: var(--vug-text);
  font-size: .95rem;
  border-bottom: 1px solid var(--vug-line);
}
.vug-editorial-card li::before {
  content: '◆';
  position: absolute; left: 0; top: .55rem;
  color: var(--vug-primary);
  font-size: .65rem;
}
.vug-editorial-card li:last-child { border-bottom: none; }
.vug-editorial-cta {
  display: inline-block;
  color: var(--vug-accent-d);
  font-weight: 600;
  font-family: var(--vug-font-head);
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--vug-accent);
  padding-bottom: 2px;
}
.vug-editorial-cta:hover { color: var(--vug-accent); }

/* ===== SECTION HEADS ===== */
.vug-section-head {
  text-align: center;
  margin: 0 0 2.5rem;
}
.vug-section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin: 0 0 .5rem;
  color: var(--vug-text);
}
.vug-section-kicker {
  color: var(--vug-text-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* ===== CATEGORIES GRID ===== */
.vug-categories { padding: 4rem 0 3rem; background: var(--vug-bg); }
.vug-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.vug-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--vug-radius);
  overflow: hidden;
  background: var(--vug-surface);
  border: 1px solid var(--vug-line);
  text-decoration: none;
  color: var(--vug-text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  aspect-ratio: 16 / 11;
  position: relative;
}
.vug-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vug-shadow-md);
  border-color: var(--vug-primary);
  text-decoration: none;
  color: var(--vug-text);
}
.vug-cat-card-img {
  display: block;
  width: 100%;
  height: 70%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.vug-cat-card--noimg .vug-cat-card-body {
  background: linear-gradient(135deg, var(--vug-primary) 0%, var(--vug-primary-d) 100%);
  color: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.vug-cat-card-body {
  padding: .9rem 1rem;
  flex: 1;
  display: flex;
  align-items: center;
}
.vug-cat-card-title {
  font-family: var(--vug-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.2;
}

/* ===== LATEST ARTICLES ===== */
.vug-latest { padding: 4rem 0 4rem; background: var(--vug-surface); }
.vug-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.vug-article-card {
  background: var(--vug-bg);
  border-radius: var(--vug-radius);
  overflow: hidden;
  border: 1px solid var(--vug-line);
  transition: transform .2s, box-shadow .2s;
}
.vug-article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vug-shadow-md);
}
.vug-article-card-link {
  display: block;
  text-decoration: none;
  color: var(--vug-text);
}
.vug-article-card-link:hover { text-decoration: none; color: var(--vug-text); }
.vug-article-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--vug-surface);
}
.vug-article-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.vug-article-card:hover .vug-article-card-thumb img { transform: scale(1.04); }
.vug-article-card-body {
  display: block;
  padding: 1rem 1.1rem 1.2rem;
}
.vug-article-card-cat {
  display: inline-block;
  font-family: var(--vug-font-head);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--vug-primary-d);
  background: rgba(112, 186, 62, 0.1);
  padding: .25rem .6rem;
  border-radius: 4px;
  margin-bottom: .6rem;
}
.vug-article-card-title {
  font-family: var(--vug-font-head);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 .5rem;
  color: var(--vug-text);
  font-weight: 700;
}
.vug-article-card-meta {
  font-size: .85rem;
  color: var(--vug-text-soft);
}
.vug-latest-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--vug-text-soft);
  font-size: 1.05rem;
}

/* ===== PERSONA PHOTO (page a-propos) ===== */
.bfb-persona-photo {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: var(--vug-radius);
  margin: 1.5rem 0;
  box-shadow: var(--vug-shadow-md);
}

/* ===== CONTACT FORM ===== */
.bfb-contact-form {
  margin: 2.5rem 0;
  background: var(--vug-surface);
  padding: 1rem;
  border-radius: var(--vug-radius);
  border: 1px solid var(--vug-line);
}

/* ===== CATEGORY PAGE HERO ===== */
.vug-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
}
.vug-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.vug-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  max-width: var(--vug-container);
  margin: 0 auto;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.vug-cat-hero h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
}

/* ===== FOOTER ===== */
.vug-footer {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 3.5rem 0 0;
  border-top: 4px solid var(--vug-primary);
}
.vug-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 0 1.5rem 2.5rem;
}
.vug-footer-col h3.vug-footer-title {
  font-family: var(--vug-font-head);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 1.1rem;
  font-weight: 700;
}
.bfb-footer-brand-pitch {
  color: #d6d6d6;
  font-size: .92rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}
.bfb-footer-brand-cta {
  display: inline-block;
  color: var(--vug-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--vug-primary);
  padding-bottom: 2px;
  font-family: var(--vug-font-head);
  font-size: .95rem;
}
.bfb-footer-brand-cta:hover { color: var(--vug-accent); border-bottom-color: var(--vug-accent); }
.vug-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vug-footer-links li {
  margin: 0 0 .5rem;
}
.vug-footer-links a {
  color: #d6d6d6;
  text-decoration: none;
  font-size: .95rem;
  transition: color .15s;
  border-bottom: 1px solid transparent;
}
.vug-footer-links a:hover {
  color: var(--vug-primary);
  border-bottom-color: var(--vug-primary);
}
.vug-footer-bottom {
  border-top: 1px solid #2c2c2c;
  padding: 1.4rem 1.5rem;
  text-align: center;
}
.vug-footer-copy {
  margin: 0;
  font-size: .85rem;
  color: #aaa;
}

/* ===== Single article basic ===== */
.vug-single { padding: 3rem 0; }
.vug-single .vug-container > article { max-width: 760px; margin: 0 auto; }

/* ===== Responsive ===== */
/* Desktop */
@media (min-width: 1024px) {
  .vug-nav-desktop { display: flex; }
  .vug-burger      { display: none !important; }

  .vug-hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
  .vug-hero        { padding: 4.5rem 0 3.5rem; }
  .vug-editorial-grid {
    grid-template-columns: 1.6fr 1fr;
  }
  .vug-cats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.4rem;
  }
  .vug-articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
  }
  .vug-footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
  }
}
/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .vug-cats-grid       { grid-template-columns: repeat(3, 1fr); }
  .vug-articles-grid   { grid-template-columns: repeat(2, 1fr); }
  .vug-footer-inner    { grid-template-columns: 1fr 1fr; }
  .vug-hero-inner      { grid-template-columns: 1.1fr 1fr; gap: 2rem; }
}

/* Mobile */
@media (max-width: 1023px) {
  .vug-header-inner {
    justify-content: space-between;
    gap: 1rem;
  }
  /* burger parent wrap always visible mobile */
  .vug-burger { display: inline-flex !important; }
  .vug-nav {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86%; max-width: 380px;
    background: #ffffff;
    color: var(--vug-text);
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform .25s ease;
    visibility: hidden;
  }
  .vug-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .vug-nav-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
  }
  .vug-nav-list li {
    border-bottom: 1px solid var(--vug-line);
  }
  .vug-nav-list a {
    display: block;
    padding: .95rem .2rem;
    color: var(--vug-text);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
  }
  .vug-nav-list a:hover { color: var(--vug-primary-d); }
  .vug-drawer-cta {
    display: block !important;
    margin: 1.2rem 0 0 !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }

  .vug-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .vug-drawer-cta { display: none !important; }
  .vug-nav-overlay { display: none !important; }
}

@media (max-width: 767px) {
  .vug-hero            { padding: 2.2rem 0 2rem; }
  .vug-hero-title      { font-size: 1.9rem; }
  .vug-hero-subtitle   { font-size: 1rem; }
  .vug-cats-grid       { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .vug-articles-grid   { grid-template-columns: 1fr; }
  .vug-editorial       { padding: 2.5rem 0; }
  .vug-categories,
  .vug-latest          { padding: 2.5rem 0; }
  .vug-footer-inner    { grid-template-columns: 1fr; gap: 2rem; }
  .vug-footer          { padding-top: 2.5rem; }
}

/* ===== zero gap between header and main content ===== */
main, .vug-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}


/* Theme rules — appended */
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*="bfb-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(--bfb-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.
============================================================ */
.bfb-media-press {
  padding: 2.5rem 0;
  background: var(--bfb-bg-soft, var(--bfb-color-surface, #f9fafb));
  margin: 2rem 0;
}
.bfb-media-press > .bfb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.bfb-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bfb-color-text-soft, var(--bfb-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.bfb-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.bfb-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%);
}
.bfb-media-press-item:hover,
.bfb-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.bfb-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .bfb-media-press { padding: 1.8rem 0; }
  .bfb-media-press-grid { gap: 1.4rem; }
  .bfb-media-press-item { max-width: 110px; min-height: 36px; }
  .bfb-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) */
.bfb-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);
}
.bfb-media-press .bfb-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;
}
.bfb-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(--bfb-muted, #666);
  flex: 0 0 auto;
}
.bfb-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;
}
.bfb-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;
}
.bfb-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.bfb-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;
}
.bfb-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .bfb-media-press .bfb-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.bfb-cat-hero--align-left .bfb-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;
}
.bfb-cat-hero--align-center .bfb-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: 12px !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: 1px !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: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(3), [class*="-burger"] > span > *:nth-child(3) { width: 24px !important; }
}
