/*!
 * JV LOCATION IMMO — Child theme styles
 * Parent: generatepress
 * Design: Business Crédit Confiance (biz-mortgage-trustworthy-06)
 * Hero: fade-reveal | Header: sticky-minimal | Cat: single-bottom
 */

/* ===== ROOT VARIABLES ===== */
:root {
  --f5f-primary: #2409F1;
  --f5f-primary-dark: #1c08c4;
  --f5f-accent: #ED591D;
  --f5f-accent-dark: #d44c15;
  --f5f-text: #1A1A1A;
  --f5f-text-soft: #6B6B6B;
  --f5f-bg: #FFFFFF;
  --f5f-surface: #F5F5F5;
  --f5f-line: #E5E5E5;
  --f5f-success: #10B981;
  --f5f-radius: 8px;
  --f5f-radius-lg: 14px;
  --f5f-shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
  --f5f-shadow: 0 4px 14px rgba(0,0,0,0.08);
  --f5f-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --f5f-container: 1240px;
  --f5f-gap: 1.5rem;
  --f5f-font-headings: 'Newsreader', Georgia, serif;
  --f5f-font-body: 'Inter', system-ui, sans-serif;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.f5f-body {
  margin: 0;
  font-family: var(--f5f-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--f5f-text);
  background: var(--f5f-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--f5f-font-headings);
  font-weight: 600;
  line-height: 1.25;
  color: var(--f5f-text);
  margin: 0 0 .8em;
}
h1 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
p { margin: 0 0 1rem; }
a { color: var(--f5f-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--f5f-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4em; }

.f5f-container, .eea-container {
  max-width: var(--f5f-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* No padding-top on main — hero must touch the header */
main, .f5f-main { padding-top: 0 !important; margin-top: 0 !important; }

/* ===== BUTTONS ===== */
.f5f-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  background: var(--f5f-primary);
  color: #fff;
  border: none;
  border-radius: var(--f5f-radius);
  font-weight: 600;
  font-family: var(--f5f-font-body);
  font-size: .98rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.f5f-btn:hover { background: var(--f5f-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--f5f-shadow); }
.f5f-btn--secondary { background: transparent; color: var(--f5f-primary); border: 1.5px solid var(--f5f-primary); }
.f5f-btn--secondary:hover { background: var(--f5f-primary); color: #fff; }
.f5f-btn--ghost { background: transparent; color: var(--f5f-text); border: 1.5px solid var(--f5f-line); }
.f5f-btn--ghost:hover { background: var(--f5f-surface); color: var(--f5f-text); }

/* ===== HEADER (sticky-minimal) ===== */
.f5f-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--f5f-line);
}
.f5f-header-inner {
  max-width: var(--f5f-container);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 64px;
}
.f5f-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--f5f-text);
  flex-shrink: 0;
}
.f5f-brand-logo {
  display: block;
  width: auto;
}
.f5f-brand-name {
  font-family: var(--f5f-font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--f5f-text);
}
.f5f-brand-tagline {
  display: none;
  font-size: .8rem;
  color: var(--f5f-text-soft);
}

/* Nav desktop */
.f5f-nav-desktop {
  display: none;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
}
.f5f-nav-desktop-list,
.f5f-nav-list {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.f5f-nav-desktop-list li,
.f5f-nav-list li { margin: 0; padding: 0; }
.f5f-nav-desktop-list a,
.f5f-nav-list a {
  color: var(--f5f-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .96rem;
  padding: .35rem .15rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.f5f-nav-desktop-list a:hover,
.f5f-nav-list a:hover {
  border-bottom-color: var(--f5f-primary);
  color: var(--f5f-primary);
}
.f5f-nav-desktop-list .current-menu-item > a,
.f5f-nav-desktop-list .current-cat > a,
.f5f-nav-list .current-menu-item > a {
  border-bottom-color: var(--f5f-primary);
  color: var(--f5f-primary);
}

/* Burger */
.f5f-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 8px !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1.5px solid rgba(0,0,0,0.18) !important;
  border-radius: 8px !important;
  color: var(--f5f-text) !important;
  cursor: pointer;
  margin-left: auto !important;
  z-index: 10000;
  flex-shrink: 0 !important;
  position: relative !important;
}
.f5f-burger-bars,
.f5f-burger > span {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.f5f-burger-bars span,
.f5f-burger > span > span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
}

/* Nav mobile drawer */
.f5f-nav-mobile { display: none; }
.f5f-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.f5f-nav-mobile-list li {
  border-bottom: 1px solid #ececec;
}
.f5f-nav-mobile-list a {
  display: block;
  padding: 1rem 0;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}
.f5f-nav-mobile-list a:hover { color: var(--f5f-primary); }

.f5f-drawer-cta {
  display: none !important;
}

@media (max-width: 1023px) {
  .f5f-nav-mobile.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #fff;
    padding: 4.5rem 1.5rem 1.5rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .f5f-drawer-cta {
    display: block !important;
    margin: 2rem 0 1rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--f5f-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }
  .f5f-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
  }
  .f5f-nav-overlay.is-open { display: block; }
  .f5f-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--f5f-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .f5f-nav-close:hover { background: var(--f5f-surface); }
}

@media (min-width: 1024px) {
  .f5f-nav-desktop { display: flex !important; }
  .f5f-burger, .f5f-nav-mobile, .f5f-nav-overlay { display: none !important; }
  .f5f-brand-tagline { display: block; }
}

/* ===== HERO (fade-reveal) ===== */
.f5f-hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  max-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--f5f-surface);
}
.f5f-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  animation: f5f-hero-fade-in 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) .15s forwards;
}
.f5f-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--f5f-container);
  width: 100%;
  padding: 5rem 1.5rem;
  text-align: center;
  opacity: 0;
  animation: f5f-hero-fade-up .9s cubic-bezier(0.2, 0.7, 0.3, 1) .6s forwards;
}
.f5f-hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  max-width: 880px;
  margin-inline: auto;
}
.f5f-hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  margin: 0 auto 2rem;
  max-width: 720px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.f5f-hero-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.f5f-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
@keyframes f5f-hero-fade-in {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes f5f-hero-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== EDITORIAL INTRO BLOCK (after-hero) ===== */
.f5f-editorial {
  background: var(--f5f-bg);
  padding: 4rem 0;
}
.f5f-editorial-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.f5f-editorial-eyebrow {
  font-family: var(--f5f-font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--f5f-primary);
  margin: 0 0 .8rem;
}
.f5f-editorial h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--f5f-text);
  margin: 0 0 1.4rem;
}
.f5f-editorial p {
  color: var(--f5f-text);
  font-size: 1.05rem;
  line-height: 1.75;
}
.f5f-editorial h3 {
  margin-top: 2rem;
  color: var(--f5f-text);
}
.f5f-editorial-callout {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--f5f-surface);
  border-left: 4px solid var(--f5f-accent);
  border-radius: 0 var(--f5f-radius) var(--f5f-radius) 0;
}
.f5f-editorial-callout strong { color: var(--f5f-primary); }

/* ===== CATEGORIES GRID ===== */
.f5f-section { padding: 4rem 0; }
.f5f-section--alt { background: var(--f5f-surface); }
.f5f-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.f5f-section-head h2 {
  margin: 0 0 .6rem;
  color: var(--f5f-text);
}
.f5f-section-head p {
  color: var(--f5f-text-soft);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

.f5f-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.f5f-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--f5f-bg);
  border: 1px solid var(--f5f-line);
  border-radius: var(--f5f-radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
  min-height: 280px;
}
.f5f-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--f5f-shadow);
  border-color: var(--f5f-primary);
}
.f5f-cat-card-img {
  display: block;
  width: 100%;
  height: 170px;
  background-color: var(--f5f-primary);
  background-size: cover;
  background-position: center;
}
.f5f-cat-card-body {
  padding: 1.1rem 1.25rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.f5f-cat-card h3 {
  font-size: 1.15rem;
  margin: 0 0 .4rem;
  color: var(--f5f-text);
}
.f5f-cat-card p {
  color: var(--f5f-text-soft);
  font-size: .92rem;
  margin: 0;
  line-height: 1.55;
}

/* ===== ARTICLE CARDS ===== */
.f5f-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.f5f-article-card {
  background: var(--f5f-bg);
  border: 1px solid var(--f5f-line);
  border-radius: var(--f5f-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.f5f-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--f5f-shadow);
}
.f5f-article-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--f5f-surface);
  overflow: hidden;
}
.f5f-article-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.f5f-article-card:hover .f5f-article-card-thumb img { transform: scale(1.04); }
.f5f-article-card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.f5f-article-card-cat {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--f5f-primary);
  margin: 0 0 .5rem;
  text-decoration: none;
}
.f5f-article-card h3 {
  font-size: 1.1rem;
  margin: 0 0 .65rem;
}
.f5f-article-card h3 a {
  color: var(--f5f-text);
  text-decoration: none;
}
.f5f-article-card h3 a:hover { color: var(--f5f-primary); }
.f5f-article-card-excerpt {
  color: var(--f5f-text-soft);
  font-size: .9rem;
  margin: 0 0 .85rem;
  line-height: 1.55;
  flex: 1;
}
.f5f-article-card-meta {
  font-size: .82rem;
  color: var(--f5f-text-soft);
  margin: 0;
}

/* ===== CATEGORY PAGE ===== */
.f5f-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--f5f-primary);
}
.f5f-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.f5f-cat-hero .eea-container,
.f5f-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1.5rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.f5f-cat-hero h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
}
.f5f-cat-intro {
  background: var(--f5f-bg);
  padding: 3rem 0 2rem;
}
.f5f-cat-intro-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--f5f-text);
}

/* ===== TRUST BADGES ROW (CTR animation) ===== */
.f5f-trust-badges { background: var(--f5f-bg); }

/* ===== FOOTER ===== */
.f5f-footer {
  background: #0E1B26;
  color: #D9E1E8;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.f5f-footer a { color: #fff; text-decoration: none; }
.f5f-footer a:hover { color: var(--f5f-accent); text-decoration: underline; }
.f5f-footer-grid {
  max-width: var(--f5f-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.f5f-footer-col h3,
.f5f-footer-title {
  font-family: var(--f5f-font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
}
.f5f-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  background: rgba(255,255,255,0.06);
  padding: .5rem;
  border-radius: 8px;
}
.f5f-footer-brand-pitch {
  color: #B0BFC9;
  font-size: .93rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.f5f-footer-brand-cta {
  display: inline-block;
  margin-top: .5rem;
  padding: .55rem 1.1rem;
  background: var(--f5f-accent);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none !important;
}
.f5f-footer-brand-cta:hover {
  background: var(--f5f-accent-dark);
  color: #fff !important;
  text-decoration: none !important;
}
.f5f-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.f5f-footer-links li { margin: 0 0 .55rem; }
.f5f-footer-links a {
  font-size: .93rem;
  color: #D9E1E8;
}
.f5f-footer-bottom {
  max-width: var(--f5f-container);
  margin: 3rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .87rem;
  color: #8B99A3;
}
.f5f-footer-social {
  display: flex;
  gap: .75rem;
}
.f5f-footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff !important;
}
.f5f-footer-social a:hover { background: var(--f5f-accent); }
.f5f-footer-social svg { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .f5f-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 640px) {
  .f5f-footer-grid { grid-template-columns: 1fr; }
}

/* ===== METRICS LINKS BLOCK ===== */
.f5f-metrics-section {
  padding: 3rem 0;
  background: var(--f5f-surface);
}
.f5f-metrics-inner {
  max-width: var(--f5f-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}
.f5f-metrics-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.f5f-metrics-list a {
  display: inline-flex;
  padding: .55rem 1.2rem;
  background: var(--f5f-bg);
  border: 1px solid var(--f5f-line);
  border-radius: 999px;
  font-size: .92rem;
  color: var(--f5f-text);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.f5f-metrics-list a:hover {
  border-color: var(--f5f-primary);
  color: var(--f5f-primary);
}

/* ===== PERSONA PHOTO (about page) ===== */
.f5f-persona-photo {
  float: right;
  width: 220px;
  height: auto;
  border-radius: var(--f5f-radius-lg);
  margin: 0 0 1.5rem 1.5rem;
  box-shadow: var(--f5f-shadow);
}
@media (max-width: 640px) {
  .f5f-persona-photo {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 260px;
  }
}

/* ===== CONTACT FORM WRAPPER ===== */
.f5f-contact-form {
  max-width: 760px;
  margin: 2rem auto;
}

/* ===== TOOL PAGES ===== */
.f5f-tool-page {
  padding: 3rem 0;
}
.f5f-tool-page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.f5f-tool-faq {
  margin-top: 3rem;
}
.f5f-tool-faq summary {
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  border-bottom: 1px solid var(--f5f-line);
  color: var(--f5f-text);
  font-size: 1rem;
}
.f5f-tool-faq details { margin-bottom: .5rem; }
.f5f-tool-faq details[open] summary { color: var(--f5f-primary); }
.f5f-tool-faq details p {
  padding: 1rem 0;
  color: var(--f5f-text-soft);
  margin: 0;
}

/* ===== ANIMATIONS: CTA gradient shift ===== */
@keyframes f5f-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.f5f-btn--cta {
  background: linear-gradient(120deg, #2409F1 0%, #ED591D 50%, #2409F1 100%);
  background-size: 200% 200%;
  animation: f5f-gradient-shift 6s ease infinite;
  color: #fff !important;
  border: none;
  padding: .85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.f5f-btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(36,9,241,.25);
  color: #fff !important;
}

/* ===== ANIMATIONS: CTR trust badges fade-in ===== */
@keyframes f5f-trust-fade-in {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.f5f-trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 0;
  border-top: 1px solid var(--f5f-line);
  border-bottom: 1px solid var(--f5f-line);
  margin: 2rem 0;
}
.f5f-trust-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--f5f-text-soft);
  font-size: .92rem;
  font-weight: 500;
  animation: f5f-trust-fade-in .6s ease both;
}
.f5f-trust-item:nth-child(2) { animation-delay: .1s; }
.f5f-trust-item:nth-child(3) { animation-delay: .2s; }
.f5f-trust-item:nth-child(4) { animation-delay: .3s; }
.f5f-trust-item svg {
  flex-shrink: 0;
  color: var(--f5f-success);
}

/* ===== ANIMATIONS: CTO chat bubble ===== */
@keyframes f5f-chat-bubble-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes f5f-chat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237,89,29,.45); }
  70% { box-shadow: 0 0 0 14px rgba(237,89,29,0); }
}
.f5f-chat-bubble {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--f5f-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9000;
  border: none;
  text-decoration: none;
  animation: f5f-chat-bubble-pop .5s ease-out both, f5f-chat-pulse 2.4s ease-out 1.5s infinite;
}
.f5f-chat-bubble:hover { background: var(--f5f-accent-dark); color: #fff; }
.f5f-chat-bubble svg { width: 28px; height: 28px; }

/* ===== RESPONSIVE NAV BREAKPOINTS ===== */
@media (max-width: 1023px) {
  .f5f-header-cta-desktop { display: none !important; }
}

/* ===== UTIL: SCREEN READER TEXT ===== */
.f5f-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 760px) {
  .f5f-hero { min-height: 50vh; max-height: 520px; }
  .f5f-section { padding: 3rem 0; }
  .f5f-editorial { padding: 3rem 0; }
  .f5f-articles-grid { grid-template-columns: 1fr; }
}

/* 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; }
