/* =============================================================
   bateau vert — style.css
   Design: Nautique Marin Atlantique × competitor Le Boat
   Palette: navy #104481 + cream #E8E0C5 (sailor bold)
   Fonts: Bevan (headings) / Lato (body)
   ============================================================= */

/* ---- 1. Reset minimal ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---- 2. Variables ---- */
:root {
  --e5b-primary: #104481;
  --e5b-primary-dark: #0d3a70;
  --e5b-accent: #E8E0C5;
  --e5b-accent-dark: #d4c7a0;
  --e5b-text: #0A1A2F;
  --e5b-text-soft: #5A6A80;
  --e5b-bg: #FFFFFF;
  --e5b-surface: #F0F2F5;
  --e5b-line: #D5DCE2;
  --e5b-font-headings: "Bevan", Georgia, serif;
  --e5b-font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --e5b-radius: 8px;
  --e5b-shadow: 0 8px 24px -10px rgba(15, 42, 74, 0.18);
}

/* ---- 3. Typography ---- */
html, body { font-family: var(--e5b-font-body); color: var(--e5b-text); background: var(--e5b-bg); }
body { font-size: 16px; line-height: 1.65; font-weight: 400; }
h1, h2, h3, h4, h5, h6 { font-family: var(--e5b-font-headings); font-weight: 400; line-height: 1.2; color: var(--e5b-primary); letter-spacing: .005em; margin: 0 0 .8rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1rem; }
a { color: var(--e5b-primary); }
a:hover { color: var(--e5b-primary-dark); text-decoration: underline; }

/* ---- 4. Layout helpers ---- */
.e5b-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.e5b-section { padding: 3.5rem 0; }
main, .e5b-main { padding-top: 0 !important; margin-top: 0 !important; min-height: 60vh; }

/* ---- 5. Header ---- */
.e5b-header {
  background: var(--e5b-bg);
  border-bottom: 1px solid var(--e5b-line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(15,42,74,0.04);
}
.e5b-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem 1.5rem;
}
.e5b-brand-link { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.e5b-brand-logo { width: auto; }
.e5b-brand-name {
  font-family: var(--e5b-font-headings);
  font-size: 1.35rem;
  color: var(--e5b-primary);
  text-transform: lowercase;
  letter-spacing: 0;
  line-height: 1;
}

/* Desktop nav — hidden mobile by default */
.e5b-nav-desktop { display: none; }
.e5b-nav-desktop-list {
  display: flex; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.e5b-nav-desktop-list a {
  color: var(--e5b-text);
  font-size: .93rem;
  font-weight: 700;
  padding: .4rem .1rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
  display: inline-flex; align-items: center; gap: .35rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.e5b-nav-desktop-list a:hover {
  border-bottom-color: var(--e5b-primary);
  color: var(--e5b-primary);
  text-decoration: none;
}
.e5b-nav-desktop-list svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2;
  fill: none; flex-shrink: 0;
}

/* Burger (mobile only) */
.e5b-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(10,26,47,0.18);
  border-radius: 8px;
  color: var(--e5b-primary);
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
  margin-left: auto;
}
.e5b-burger-bars {
  display: flex; flex-direction: column;
  gap: 4px;
  width: 24px; height: 16px;
}
.e5b-burger-bars span {
  display: block; height: 2.5px;
  background: var(--e5b-primary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.e5b-burger.is-open .e5b-burger-bars span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.e5b-burger.is-open .e5b-burger-bars span:nth-child(2) { opacity: 0; }
.e5b-burger.is-open .e5b-burger-bars span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* Mobile drawer — hidden by default */
.e5b-nav-mobile { display: none; }
.e5b-nav-mobile-list { list-style: none; margin: 0; padding: 0; }
.e5b-nav-mobile-list li { border-bottom: 1px solid var(--e5b-line); }
.e5b-nav-mobile-list a {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.05rem .25rem;
  font-size: 1.05rem; font-weight: 700;
  color: var(--e5b-text);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.e5b-nav-mobile-list a:hover, .e5b-nav-mobile-list a:focus { color: var(--e5b-primary); text-decoration: none; }
.e5b-nav-mobile-list svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; }
.e5b-nav-mobile-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: transparent; border: 0;
  font-size: 28px; line-height: 1;
  color: var(--e5b-text);
}
.e5b-drawer-cta {
  display: block;
  margin: 1.5rem .25rem .5rem;
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--e5b-primary);
  color: #fff !important;
  border-radius: var(--e5b-radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.e5b-drawer-cta:hover { background: var(--e5b-primary-dark); color: #fff !important; text-decoration: none; }

/* Drawer overlay (backdrop) */
.e5b-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10, 26, 47, 0.55);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.e5b-nav-overlay.is-open { display: block; }

/* ---- 6. Hero (classic-overlay) ---- */
.e5b-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex; align-items: center;
  background: var(--e5b-primary);
}
.e5b-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.e5b-hero-inner {
  position: relative; z-index: 2;
  color: #fff;
  max-width: 1200px; margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
}
.e5b-hero-eyebrow {
  display: inline-block;
  background: var(--e5b-accent);
  color: var(--e5b-primary);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-family: var(--e5b-font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.e5b-hero-title {
  font-family: var(--e5b-font-headings);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: #fff !important;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 800px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
/* Force white on every H1 inside the home hero — fixed copy and animated
   typewriter/rotator variants — so no later rule (rotator span color,
   theme override, etc.) can darken the title. */
.e5b-hero h1,
.e5b-hero h1 *,
.e5b-hero .e5b-hero-title,
.e5b-hero .e5b-hero-title *,
.e5b-hero .e5b-typewriter,
.e5b-hero .e5b-typewriter *,
.e5b-hero .e5b-rotator,
.e5b-hero .e5b-rotator *,
.e5b-hero .typed,
.e5b-hero .typed-cursor,
.e5b-hero .rotator-word,
.e5b-hero .rotator-words {
  color: #fff !important;
}
.e5b-hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: #fff;
  max-width: 640px;
  margin: 0 0 1.8rem;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.e5b-hero-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--e5b-accent);
  color: var(--e5b-primary);
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.e5b-hero-cta:hover {
  background: var(--e5b-accent-dark);
  color: var(--e5b-primary);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Classic overlay – dark gradient on hero IMAGE only (no video) */
.e5b-hero.e5b-hero--classic-overlay::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,26,47,0.45) 0%, rgba(10,26,47,0.7) 100%);
  z-index: 1; pointer-events: none;
}

/* ---- 7. Editorial block (after-hero) ---- */
.e5b-editorial {
  background: var(--e5b-bg);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--e5b-line);
}
.e5b-editorial-inner { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.e5b-editorial h2 {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1.5rem;
}
.e5b-editorial h3 {
  font-size: 1.3rem;
  color: var(--e5b-primary);
  margin-top: 2rem;
  border-left: 4px solid var(--e5b-accent);
  padding-left: .8rem;
}
.e5b-editorial p { font-size: 1.05rem; color: var(--e5b-text); }
.e5b-editorial .e5b-edit-pull {
  background: var(--e5b-surface);
  border-left: 4px solid var(--e5b-primary);
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--e5b-primary);
  border-radius: 0 8px 8px 0;
}

/* ---- 8. Categories grid ---- */
.e5b-categories {
  padding: 3.5rem 0;
  background: var(--e5b-surface);
}
.e5b-categories-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 2.5rem;
}
.e5b-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.e5b-cat-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--e5b-bg);
  border: 1px solid var(--e5b-line);
  border-radius: var(--e5b-radius);
  overflow: hidden;
  height: 280px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  text-decoration: none;
}
.e5b-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--e5b-shadow);
  text-decoration: none;
}
.e5b-cat-card-img {
  display: block;
  width: 100%; height: 65%;
  background-size: cover; background-position: center;
  background-color: var(--e5b-primary);
}
.e5b-cat-card-body {
  padding: 1rem 1.2rem;
  flex: 1; display: flex; align-items: center;
  background: var(--e5b-bg);
}
.e5b-cat-card-name {
  font-family: var(--e5b-font-headings);
  font-size: 1.3rem;
  color: var(--e5b-primary);
  margin: 0;
}

/* ---- 9. Latest articles grid ---- */
.e5b-latest {
  padding: 3.5rem 0;
  background: var(--e5b-bg);
}
.e5b-latest-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 2.5rem;
}
.e5b-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.e5b-article-card {
  display: flex; flex-direction: column;
  background: var(--e5b-bg);
  border: 1px solid var(--e5b-line);
  border-radius: var(--e5b-radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.e5b-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--e5b-shadow);
  text-decoration: none;
}
.e5b-article-thumb {
  display: block;
  width: 100%; height: 200px;
  background-size: cover; background-position: center;
  background-color: var(--e5b-surface);
}
.e5b-article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e5b-article-body { padding: 1.1rem 1.3rem 1.3rem; }
.e5b-article-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--e5b-primary);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .5rem;
  display: block;
}
.e5b-article-title {
  font-family: var(--e5b-font-headings);
  font-size: 1.2rem;
  color: var(--e5b-text);
  line-height: 1.25;
  margin: 0 0 .5rem;
}
.e5b-article-excerpt { color: var(--e5b-text-soft); font-size: .92rem; line-height: 1.55; margin: 0; }
.e5b-article-date {
  display: block;
  font-size: .78rem;
  color: var(--e5b-text-soft);
  margin-top: .6rem;
  font-style: italic;
}
.e5b-latest-empty {
  text-align: center;
  color: var(--e5b-text-soft);
  padding: 2rem;
  grid-column: 1 / -1;
}

/* ---- 10. Page templates (single, category, page) ---- */
.e5b-page, .e5b-single {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.e5b-page-title, .e5b-single-title { margin-bottom: 1.5rem; }
.e5b-single-meta {
  font-size: .88rem;
  color: var(--e5b-text-soft);
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--e5b-line);
}
.e5b-content > p, .e5b-content > h2, .e5b-content > h3, .e5b-content > ul, .e5b-content > ol { max-width: 720px; }
.e5b-content img { border-radius: var(--e5b-radius); margin: 1.5rem 0; }
.e5b-persona-photo {
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1.5rem auto;
  display: block;
  border: 4px solid var(--e5b-accent);
  box-shadow: var(--e5b-shadow);
}

/* Category hero with image and overlay title */
.e5b-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--e5b-primary);
}
.e5b-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.e5b-cat-hero-inner {
  position: relative; z-index: 2;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(10,26,47,0.78) 100%);
}
.e5b-cat-hero h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin-bottom: .5rem;
}

/* Category intro + FAQ + outro */
.e5b-cat-intro {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.e5b-cat-intro p { font-size: 1.05rem; }
.e5b-cat-faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--e5b-surface);
  border-radius: var(--e5b-radius);
}
.e5b-cat-faq h2 { margin-bottom: 1.2rem; }
.e5b-cat-faq details {
  border-bottom: 1px solid var(--e5b-line);
  padding: .9rem 0;
}
.e5b-cat-faq details:last-child { border-bottom: 0; }
.e5b-cat-faq summary {
  font-weight: 700;
  color: var(--e5b-primary);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.e5b-cat-faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--e5b-text-soft); }
.e5b-cat-faq details[open] summary::after { content: '−'; }
.e5b-cat-faq details p { margin-top: .6rem; color: var(--e5b-text); }

.e5b-cat-outro {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.e5b-cat-outro h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-left: .8rem;
  border-left: 4px solid var(--e5b-accent);
}

/* Category posts grid */
.e5b-cat-posts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ---- 11. Tool page ---- */
.e5b-tool-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.e5b-tool-page-title { margin-bottom: 1rem; }
.e5b-tool-intro { color: var(--e5b-text-soft); margin-bottom: 2rem; font-size: 1.05rem; }
.e5b-tool-wrap {
  background: var(--e5b-surface);
  padding: 2rem 1.8rem;
  border-radius: var(--e5b-radius);
  margin-bottom: 2.5rem;
}
.e5b-tool-seo { font-size: 1rem; line-height: 1.7; }

/* ---- 12. Footer ---- */
.e5b-footer {
  background: #0a1a2f;
  color: #f5f0e5;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.e5b-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.e5b-footer-col h3 {
  font-family: var(--e5b-font-headings);
  font-size: 1.1rem;
  color: var(--e5b-accent);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.e5b-footer-logo { display: block; margin-bottom: 1rem; height: auto; max-width: 120px; }
.e5b-footer-brand-pitch {
  color: #d6d3c4;
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.e5b-footer-brand-cta {
  display: inline-block;
  color: var(--e5b-accent);
  font-weight: 700;
  text-decoration: underline;
  font-size: .92rem;
}
.e5b-footer-brand-cta:hover { color: #fff; }
.e5b-footer-links { list-style: none; margin: 0; padding: 0; }
.e5b-footer-links li { margin-bottom: .55rem; }
.e5b-footer-links a {
  color: #f5f0e5;
  font-size: .92rem;
  text-decoration: underline;
  text-decoration-color: rgba(232,224,197,.35);
}
.e5b-footer-links a:hover { color: var(--e5b-accent); text-decoration-color: var(--e5b-accent); }
.e5b-footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(232,224,197,.18);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .85rem;
  color: #d6d3c4;
}
.e5b-footer-bottom a { color: #d6d3c4; text-decoration: underline; }
.e5b-footer-bottom a:hover { color: var(--e5b-accent); }
.e5b-footer-social { display: flex; gap: .8rem; }
.e5b-footer-social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232,224,197,.3);
  border-radius: 50%;
  color: #f5f0e5;
}
.e5b-footer-social a:hover { background: var(--e5b-accent); color: var(--e5b-primary); border-color: var(--e5b-accent); }

/* ---- 13. Contact form wrapper ---- */
.e5b-contact-form { margin-top: 2rem; }
.e5b-contact-form iframe { display: block; }

/* ---- 14. Tools home section (only when enabled) ---- */
.e5b-home-tools {
  padding: 3.5rem 0;
  background: var(--e5b-surface);
}
.e5b-home-tools-title { text-align: center; margin-bottom: 2.5rem; }
.e5b-home-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.e5b-tool-card {
  background: var(--e5b-bg);
  border: 1px solid var(--e5b-line);
  border-radius: var(--e5b-radius);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--e5b-text);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.e5b-tool-card:hover { transform: translateY(-4px); box-shadow: var(--e5b-shadow); text-decoration: none; }
.e5b-tool-card h3 { color: var(--e5b-primary); margin-bottom: .5rem; }
.e5b-tool-card p { color: var(--e5b-text-soft); font-size: .92rem; margin: 0 0 1rem; }
.e5b-tool-card-cta { font-weight: 700; color: var(--e5b-primary); }

/* ---- 15. CTO chat widget (WhatsApp-style floating) ---- */
.e5b-chat-widget {
  position: fixed; bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--e5b-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(15,42,74,.45);
  text-decoration: none;
  z-index: 9000;
}
.e5b-chat-widget:hover { background: var(--e5b-primary-dark); text-decoration: none; color: #fff; }
.e5b-chat-widget svg { width: 26px; height: 26px; }

/* ---- 16. Mobile drawer (open state) ---- */
@media (max-width: 1023px) {
  .e5b-header-cta-desktop,
  [class*="-header"] [class*="-btn--cta"]:not([class*="-drawer-"]) {
    display: none !important;
  }
  .e5b-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 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(10,26,47,0.35);
    color: var(--e5b-text);
  }
  .e5b-nav-mobile.is-open .e5b-nav-mobile-list a { color: var(--e5b-text); }
  .e5b-burger-label { display: none !important; }
  .e5b-header-cta-wrap, .e5b-header-actions, .e5b-burger-wrap {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  }
}

/* ---- 17. Desktop (≥1024px) ---- */
@media (min-width: 1024px) {
  .e5b-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 1.5rem;
  }
  .e5b-burger, .e5b-burger-wrap { display: none !important; }
  .e5b-drawer-cta { display: none !important; }
  .e5b-nav-mobile { display: none !important; }
}

/* ---- 18. Animations: CTA / CTR / CTO ---- */
@keyframes rpMagneticPulse {
  0% { box-shadow: 0 0 0 0 rgba(16,68,129,.35); }
  70% { box-shadow: 0 0 0 14px rgba(16,68,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,68,129,0); }
}
.e5b-btn--cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--e5b-primary); color: #fff !important; border: 0;
  padding: .95rem 1.7rem; border-radius: 6px;
  font-weight: 700; letter-spacing: .02em; cursor: pointer;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.e5b-btn--cta:hover { background: var(--e5b-primary-dark); animation: rpMagneticPulse 1.4s ease-out infinite; }
@media (hover: none) { .e5b-btn--cta { animation: none; } }

@keyframes rpRevealUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.e5b-article-card .e5b-article-card__reveal {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .35s ease;
}
.e5b-article-card:hover .e5b-article-card__reveal {
  max-height: 80px; opacity: 1;
  animation: rpRevealUp .45s ease-out both;
}
@media (hover: none) {
  .e5b-article-card .e5b-article-card__reveal { max-height: none; opacity: 1; }
}

@keyframes rpChatBubble {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
.e5b-chat-widget { animation: rpChatBubble 2.4s ease-in-out infinite; }
@media (hover: none) { .e5b-chat-widget { animation: none; } }

/* ---- 19. Mouse effect: image_hover_zoom ---- */
.e5b-cat-card, .e5b-article-card, .e5b-tool-card { overflow: hidden; }
.e5b-cat-card-img, .e5b-article-thumb, .e5b-tool-card-img {
  display: block; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.e5b-cat-card:hover .e5b-cat-card-img,
.e5b-article-card:hover .e5b-article-thumb,
.e5b-tool-card:hover .e5b-tool-card-img { transform: scale(1.08); }
@media (hover: none) {
  .e5b-cat-card:hover .e5b-cat-card-img,
  .e5b-article-card:hover .e5b-article-thumb,
  .e5b-tool-card:hover .e5b-tool-card-img { transform: none; }
}

/* ---- 20. Mobile breakpoints (≤1023px global) ---- */
@media (max-width: 1023px) {
  .e5b-hero { min-height: 60vh; }
  .e5b-hero-inner { padding: 3rem 1.2rem; }
  .e5b-categories, .e5b-latest, .e5b-editorial { padding: 2.5rem 0; }
  .e5b-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .e5b-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .e5b-cat-card { height: 220px; }
  .e5b-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .e5b-chat-widget { bottom: 14px; right: 14px; width: 52px; height: 52px; }
  .e5b-hero-title { font-size: 2rem; }
  body { font-size: 15.5px; }
}

/* ---- 21. Utility / Accessibility ---- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  height: 1px; width: 1px;
  overflow: hidden; padding: 0;
  position: absolute !important;
}
.e5b-skip-link {
  position: absolute; left: -9999px;
  background: var(--e5b-primary); color: #fff;
  padding: .6rem 1rem; border-radius: 4px;
  top: .5rem;
}
.e5b-skip-link:focus { left: .5rem; z-index: 99999; }

/* ---- 22. Hero H1 forced white — ultra-specific override (fixed + animated typewriter/rotator) ---- */
html body section[class*="hero"] h1,
html body section[class*="hero"] h1 *,
html body [class*="hero-title"],
html body [class*="hero"] [class*="title"],
html body [class*="hero"] [class*="quote"]
{ color: #ffffff !important; }


/* === RP AGNOSTIC ANTI-FOOTPRINT FIXES === */
/* Auto-append par child_theme_builder pour garantir les regles anti-empreinte (cat-hero, burger, footer, etc.) meme quand Claude override le style.css custom. */
body section[class*="cat-hero"], body div[class*="cat-hero"] {
  position: relative !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  left: 0 !important; right: 0 !important;
  height: 360px !important; min-height: 360px !important; max-height: 360px !important;
  padding: 0 !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  box-sizing: border-box !important;
}
/* Aussi force le parent <main> a etre full-width pour eviter cap a 1024 */
body main, body [class*="lda-main"], body [class*="bdf-main"], body [class*="e5b-main"], body #content {
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  max-height: 360px !important;
  object-fit: cover !important; z-index: 0 !important;
  border: none !important;
}
body [class*="cat-hero"]::before, body [class*="cat-hero"]::after {
  content: none !important; display: none !important;
}
/* Overlay : absolute par-dessus l'image, juste pour le gradient sombre (fix 2026-06-17) */
body [class*="cat-hero-overlay"], body [class*="cat-hero"] > [class*="overlay"] {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important;
  max-width: none !important;
  display: block !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%) !important;
  pointer-events: none !important;
  border: none !important;
}
/* Container / inner du titre : centré au-dessus de l'overlay (z-index 2) */
body [class*="cat-hero"] > [class*="container"],
body [class*="cat-hero"] > [class*="cat-hero-inner"],
body [class*="cat-hero"] > [class*="hero-inner"]:not([class*="overlay"]),
body [class*="cat-hero"] > div:not([class*="overlay"]):not([class*="-bg"]) {
  position: relative !important; z-index: 2 !important;
  text-align: center !important;
  max-width: 900px !important; margin: 0 auto !important;
  padding: 1.5rem 2rem !important;
  border: none !important; background: transparent !important;
}
body [class*="cat-hero"] h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  text-align: center !important;
  margin: 0 !important; font-weight: 800 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important;
  border: none !important; display: block !important;
}
body [class*="cat-hero"] [class*="breadcrumb"],
body [class*="cat-hero"] nav[aria-label*="riane"],
body [class*="cat-hero"] nav[aria-label*="readcrumb"] {
  display: none !important;
}


/* [2026-06-17] PERSONA PHOTO — Force taille raisonnable.
   Sans contrainte, l'image 1024x1024 (Codex output) s'affiche en grand
   sur la page "À propos". On force max 280px avec auto height.
*/
body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
  max-width: 280px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
    max-width: 320px !important;
  }
}

/* [2026-06-17] BURGER MOBILE — Garantit l'affichage en mobile.
   Le CSS Claude met souvent display:none par defaut + media query qui
   n'est pas garantie. Force agnostique : tout selecteur contenant "burger"
   visible en mobile, invisible en desktop. Couvre tous prefixes
   (.e5b-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  body [class*="burger"], body button[class*="burger"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 42px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }
}
@media (min-width: 1024px) {
  body [class*="burger"], body button[class*="burger"] {
    display: none !important;
  }
}

/* [2026-06-17] BURGER PARENT FIX : si un wrapper du header contient un
   burger, force-le visible en mobile. Claude met parfois le burger DANS un
   wrapper "cta-wrap" qui est display:none en mobile -> burger invisible.
*/
/* [2026-06-17] FOOTER COLOR HERITAGE — Force le footer ENTIER à hériter
   de la couleur du body. Claude définit parfois color:var(--bg) sur le footer
   (utile si bg sombre, illisible si bg clair). On force color:inherit → texte
   reste lisible peu importe le bg footer.
*/
body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}

/* [2026-06-17] FOOTER LINKS HERITAGE — Force les liens à hériter du texte.
   Claude définit parfois color: var(--bg) sur les liens footer (utile si bg
   sombre, mais illisible si bg clair). On force color:inherit qui suit le
   texte parent → toujours lisible. underline pour distinguer du texte normal.
*/
body footer ul li a, body footer ol li a,
body [class*="footer"] ul li a:not([class*="btn"]):not([class*="cta"]),
body footer [class*="link"]:not([class*="brand"]):not([class*="btn"]) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.85 !important;
  transition: opacity .2s ease !important;
}
body footer ul li a:hover, body footer ol li a:hover,
body [class*="footer"] ul li a:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}

/* [2026-06-17] BURGER STYLE — 3 barres visibles + hover/animation.
   Le bouton burger Claude est souvent un <button> avec 3 <span> dedans qui
   représentent les barres, mais sans CSS la cible est un carré vide.
   Force ici un style propre, agnostique au prefixe.
*/
body [class*="burger"] {
  background: transparent !important;
  border: 1px solid currentColor !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  padding: 8px !important;
  color: inherit !important;
  transition: background .2s ease, border-color .2s ease !important;
}
body [class*="burger"]:hover, body [class*="burger"]:focus-visible {
  background: rgba(0,0,0,0.06) !important;
  border-color: var(--e5b-accent, currentColor) !important;
}
/* Container des 3 barres (peut s'appeler "bars", "lines", etc.) */
body [class*="burger"] > [class*="bar"],
body [class*="burger"] > [class*="line"],
body [class*="burger"] > span {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 22px !important;
  height: 16px !important;
  gap: 0 !important;
}
/* Les 3 barres elles-mêmes */
body [class*="burger"] [class*="bar"] > span,
body [class*="burger"] [class*="line"] > span,
body [class*="burger"] > span > span {
  display: block !important;
  width: 22px !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  margin: 2px 0 !important;
  transition: transform .25s ease, opacity .25s ease !important;
}
/* Etat ouvert : transforme en X */
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(2) {
  opacity: 0 !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

@media (max-width: 1023px) {
  body header [class*="cta-wrap"]:has([class*="burger"]),
  body header > div:has([class*="burger"]),
  body [class*="header"] [class*="-wrap"]:has([class*="burger"]),
  body [class*="header-inner"] > div:has([class*="burger"]) {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* [2026-06-19] FIX contraste boutons (anti bouton invisible) */
html body a[class*="btn--primary"], html body button[class*="btn--primary"],
html body a[class*="btn-primary"], html body button[class*="btn-primary"],
html body a[class*="-cta"]:not([class*="ghost"]):not([class*="link"]),
html body button[class*="-cta"]:not([class*="ghost"]):not([class*="link"]) {
  color: #ffffff !important;
}
html body a[class*="btn--ghost"], html body button[class*="btn--ghost"],
html body a[class*="btn--secondary"], html body button[class*="btn--secondary"],
html body a[class*="btn-secondary"], html body button[class*="btn-secondary"] {
  color: var(--e5b-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : rounded-square (16px) */
html body img[class*="persona"],
html body img[class*="author"],
html body img[class*="author-photo"],
html body img[class*="persona-photo"],
html body img[class*="redaction"],
html body img[class*="about-photo"],
html body img[class*="team-photo"],
html body img[class*="profile"],
html body [class*="persona"] > img,
html body [class*="author"] > img:not([class*="logo"]),
html body [class*="about"] img:not([class*="logo"]):not([class*="brand"]) {
  border-radius: 16px !important;
}


/* Mouse effect : image_hover_zoom */
.e5b-cat-card,.e5b-article-card,.e5b-tool-card{overflow:hidden}.e5b-cat-card-img,.e5b-article-thumb,.e5b-tool-card-img{display:block;width:100%;height:100%;background-size:cover;background-position:center;transition:transform .7s cubic-bezier(.2,.8,.2,1);will-change:transform}.e5b-cat-card:hover .e5b-cat-card-img,.e5b-article-card:hover .e5b-article-thumb,.e5b-tool-card:hover .e5b-tool-card-img{transform:scale(1.08)}@media (hover:none){.e5b-cat-card:hover .e5b-cat-card-img,.e5b-article-card:hover .e5b-article-thumb,.e5b-tool-card:hover .e5b-tool-card-img{transform:none}}
