/* =====================================================================
 * La Sardine à Lire — custom_theme/assets/css/style.css
 * Design System pioché DB : Gastronomie Magazine (#722F37 / #6B8E4E)
 * Hero : parallax-scroll
 * Header : logo-left-menu-center-cta-right (CTA = "Nous contacter")
 * Category layout : sandwich
 * Brand casing : B (Title Case naturel "La Sardine à Lire")
 * Préfixe classes : .e75-* (compat skeleton)
 * ===================================================================== */

:root {
  --e75-primary: #722F37;
  --e75-primary-dark: #5A1F27;
  --e75-accent: #6B8E4E;
  --e75-accent-dark: #547739;
  --e75-text: #2A1A14;
  --e75-text-soft: #7A5048;
  --e75-bg: #F1E4D2;
  --e75-surface: #FAF1E4;
  --e75-line: #D5C5AC;
  --e75-white: #ffffff;
  --e75-shadow: 0 6px 20px rgba(42, 26, 20, 0.08);
  --e75-shadow-hover: 0 12px 32px rgba(42, 26, 20, 0.14);
  --e75-radius: 8px;
  --e75-radius-lg: 14px;
  --e75-font-h: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --e75-font-b: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== RESET / BASE ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, .e75-body {
  font-family: var(--e75-font-b);
  color: var(--e75-text);
  background: var(--e75-bg);
  line-height: 1.65;
  margin: 0;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--e75-font-h);
  color: var(--e75-text);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
a { color: var(--e75-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--e75-accent-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
main, .e75-main { padding-top: 0 !important; margin-top: 0 !important; }
.e75-container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* ========== BUTTONS ========== */
.e75-btn { display: inline-block; padding: .75rem 1.6rem; border-radius: var(--e75-radius); font-weight: 600; text-decoration: none; transition: all .2s; border: 0; cursor: pointer; font-family: var(--e75-font-b); font-size: 1rem; }
.e75-btn--primary { background: var(--e75-primary); color: var(--e75-white); }
.e75-btn--primary:hover { background: var(--e75-primary-dark); color: var(--e75-white); text-decoration: none; transform: translateY(-1px); }
.e75-btn--ghost { background: transparent; color: var(--e75-primary); border: 1.5px solid var(--e75-primary); }
.e75-btn--ghost:hover { background: var(--e75-primary); color: var(--e75-white); text-decoration: none; }
.e75-btn--cta { background: var(--e75-primary); color: var(--e75-white); padding: .7rem 1.4rem; border-radius: var(--e75-radius); font-weight: 700; letter-spacing: .015em; text-decoration: none; }
.e75-btn--cta:hover { color: var(--e75-white); text-decoration: none; }

/* ========== HEADER : logo-left-menu-center-cta-right ========== */
.e75-header {
  background: var(--e75-surface);
  border-bottom: 1px solid var(--e75-line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(42,26,20,0.04);
}
.e75-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  min-height: 72px;
}
.e75-brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.e75-brand-link { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.e75-brand-link:hover { text-decoration: none; }
.e75-brand-logo { width: auto; max-width: 56px; }
.e75-brand-name {
  font-family: var(--e75-font-h);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--e75-primary);
  letter-spacing: -0.01em;
  /* Casing B : Title Case naturel — pas de text-transform */
}

/* Nav desktop — menu CENTRÉ (flex collé au centre, pas de 1fr) */
.e75-nav-desktop { display: none; }
.e75-nav-desktop-list {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; align-items: center;
}
.e75-nav-desktop-list a {
  color: var(--e75-text); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .4rem .2rem; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.e75-nav-desktop-list a:hover { border-bottom-color: var(--e75-accent); color: var(--e75-primary); }

/* Header CTA (desktop only) */
.e75-header-cta-desktop {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  background: var(--e75-primary);
  color: var(--e75-white);
  padding: .55rem 1.1rem;
  border-radius: var(--e75-radius);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: .95rem;
}
.e75-header-cta-desktop:hover { background: var(--e75-primary-dark); color: var(--e75-white); text-decoration: none; }

/* Burger (mobile only) */
.e75-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(42,26,20,0.18) !important;
  border-radius: 8px !important;
  color: var(--e75-text) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-left: auto;
}
.e75-burger-bars { display: flex !important; flex-direction: column !important; gap: 4px !important; width: 24px !important; height: 16px !important; }
.e75-burger-bars span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; }

/* Desktop : >= 1024px → nav visible, burger caché */
@media (min-width: 1024px) {
  .e75-nav-desktop { display: flex; flex: 1; justify-content: center; gap: 1.5rem; }
  .e75-burger { display: none !important; }
}

/* ========== NAV MOBILE (drawer) — caché par défaut ========== */
.e75-nav { display: none; }
.e75-nav.is-open {
  display: flex !important;
  flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 86%; max-width: 380px;
  background: var(--e75-white);
  padding: 4.5rem 1.5rem 2rem;
  z-index: 9999; overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}
.e75-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.e75-nav-list li { border-bottom: 1px solid var(--e75-line); }
.e75-nav-list a {
  display: block; padding: 1rem 0; color: #1a1a1a; font-weight: 500; font-size: 1.05rem;
  text-decoration: none;
}
.e75-nav-list a:hover { color: var(--e75-primary); }
.e75-drawer-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 38px; height: 38px; border: 0; background: transparent;
  font-size: 1.6rem; cursor: pointer; color: var(--e75-text);
  display: flex; align-items: center; justify-content: center;
}
.e75-drawer-cta {
  display: block !important;
  margin: 2rem 0 1rem !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--e75-primary) !important;
  color: var(--e75-white) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
}
.e75-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 9998; display: none;
}
.e75-nav-overlay.is-open { display: block; }

/* Desktop : CTA drawer caché */
@media (min-width: 1024px) {
  .e75-drawer-cta { display: none !important; }
  .e75-header-cta-desktop { display: inline-flex; }
}
/* Mobile : CTA desktop caché */
@media (max-width: 1023px) {
  .e75-header-cta-desktop { display: none !important; }
  .e75-nav-desktop { display: none !important; }
}

/* ========== HERO : parallax-scroll ========== */
.e75-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a0a08;
}
.e75-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 130%;
  object-fit: cover;
  will-change: transform;
  z-index: 1;
}
.e75-hero-inner {
  position: relative; z-index: 3;
  color: var(--e75-white);
  max-width: 880px;
  padding: 3rem 1.5rem;
  margin: 0 auto;
  text-align: center;
}
.e75-hero-eyebrow {
  display: inline-block;
  font-family: var(--e75-font-b);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--e75-accent);
  background: rgba(0,0,0,0.35);
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.e75-hero-title,
.e75-hero .e75-hero-inner h1.e75-hero-title {
  font-family: var(--e75-font-h);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  line-height: 1.05;
}
.e75-hero-subtitle {
  font-family: var(--e75-font-b);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.95);
  margin: 0 0 2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  font-weight: 400;
  line-height: 1.55;
}
.e75-hero-cta {
  display: inline-block; padding: 1rem 2.25rem;
  background: var(--e75-primary); color: var(--e75-white);
  font-weight: 700; border-radius: var(--e75-radius);
  text-decoration: none; font-size: 1.05rem;
  letter-spacing: .015em;
  transition: all .25s;
}
.e75-hero-cta:hover { background: var(--e75-primary-dark); transform: translateY(-2px); color: var(--e75-white); text-decoration: none; }

/* ========== EDITORIAL INTRO (400-700 mots SEO) ========== */
.e75-editorial { background: var(--e75-bg); padding: 4rem 0; }
.e75-editorial-inner { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.e75-editorial h2 {
  font-family: var(--e75-font-h);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--e75-primary);
  margin: 0 0 1rem;
  text-align: center;
}
.e75-editorial .e75-editorial-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--e75-text);
  margin: 0 0 2rem;
  text-align: center;
  font-style: italic;
  font-family: var(--e75-font-h);
}
.e75-editorial h3 {
  font-family: var(--e75-font-h);
  font-size: 1.4rem;
  color: var(--e75-primary);
  margin: 2.25rem 0 .75rem;
}
.e75-editorial p {
  font-size: 1rem;
  color: var(--e75-text);
  margin: 0 0 1rem;
  line-height: 1.7;
}
.e75-editorial-line {
  border: 0; height: 1px;
  background: var(--e75-line);
  margin: 2.5rem auto;
  max-width: 80px;
}
.e75-editorial-quote {
  background: var(--e75-surface);
  border-left: 4px solid var(--e75-accent);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-family: var(--e75-font-h);
  font-style: italic;
  color: var(--e75-primary);
  border-radius: 0 var(--e75-radius) var(--e75-radius) 0;
}

/* ========== SECTION RUBRIQUES ========== */
.e75-rubriques { padding: 4rem 0; background: var(--e75-surface); }
.e75-section-header { text-align: center; margin-bottom: 2.5rem; }
.e75-section-header h2 {
  color: var(--e75-primary); margin: 0 0 .5rem;
  font-family: var(--e75-font-h);
}
.e75-section-header p { color: var(--e75-text-soft); margin: 0; font-size: 1.05rem; }
.e75-cat-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1240px; margin: 0 auto; padding: 0 1.5rem;
}
.e75-cat-card {
  position: relative;
  border-radius: var(--e75-radius-lg);
  overflow: hidden;
  background: var(--e75-white);
  box-shadow: var(--e75-shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
  min-height: 280px;
  text-decoration: none;
  color: inherit;
}
.e75-cat-card:hover { transform: translateY(-4px); box-shadow: var(--e75-shadow-hover); text-decoration: none; color: inherit; }
.e75-cat-card-img {
  display: block;
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  background-color: var(--e75-primary);
}
.e75-cat-card-body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.e75-cat-card h3 {
  font-family: var(--e75-font-h);
  color: var(--e75-primary);
  margin: 0 0 .5rem;
  font-size: 1.3rem;
}
.e75-cat-card p {
  color: var(--e75-text-soft);
  font-size: .92rem;
  margin: 0 0 1rem;
  line-height: 1.5;
  flex: 1;
}
.e75-cat-card-link {
  color: var(--e75-accent-dark);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
}

/* ========== LATEST POSTS ========== */
.e75-latest { padding: 4rem 0; background: var(--e75-bg); }
.e75-latest-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1240px; margin: 0 auto; padding: 0 1.5rem;
}
@media (max-width: 900px) { .e75-latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .e75-latest-grid { grid-template-columns: 1fr; } }

.e75-card {
  background: var(--e75-white);
  border-radius: var(--e75-radius-lg);
  overflow: hidden;
  box-shadow: var(--e75-shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.e75-card:hover { transform: translateY(-3px); box-shadow: var(--e75-shadow-hover); }
.e75-card-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--e75-line); }
.e75-card-body { padding: 1.25rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.e75-card-cat {
  font-family: var(--e75-font-b);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--e75-accent-dark);
  font-weight: 700;
  margin-bottom: .5rem;
}
.e75-card-title {
  font-family: var(--e75-font-h);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--e75-text);
  margin: 0 0 .75rem;
  line-height: 1.25;
}
.e75-card-title a { color: var(--e75-text); text-decoration: none; }
.e75-card-title a:hover { color: var(--e75-primary); }
.e75-card-excerpt {
  color: var(--e75-text-soft);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}
.e75-card-meta {
  font-size: .82rem;
  color: var(--e75-text-soft);
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--e75-line);
}

/* ========== CATEGORY PAGE — sandwich (intro + posts + outro) ========== */
.e75-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
}
.e75-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.e75-cat-hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.78) 100%);
  padding: 2rem 1.5rem;
  max-width: 1240px; margin: 0 auto;
}
.e75-cat-hero-inner h1 {
  color: var(--e75-white);
  font-family: var(--e75-font-h);
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
}
.e75-cat-intro, .e75-cat-outro {
  max-width: 880px; margin: 0 auto;
  padding: 3rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--e75-text);
}
.e75-cat-intro p, .e75-cat-outro p { margin: 0 0 1rem; }
.e75-cat-archive {
  padding: 3rem 0;
  background: var(--e75-surface);
}

/* ========== FOOTER : recipe_columns (4 cols) ========== */
.e75-footer {
  background: #1a0d0a;
  color: #f5f0e5;
  padding: 4rem 0 1rem;
  margin-top: 4rem;
}
.e75-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.e75-footer-col h3 {
  font-family: var(--e75-font-h);
  color: #000000 !important;
  font-size: 1.1rem;
  margin: 0 0 1rem;
  letter-spacing: .02em;
}
.e75-footer-col p, .e75-footer-col a, .e75-footer-col li {
  color: #000000 !important;
  font-size: .92rem;
  line-height: 1.6;
}
.e75-footer-col a { color: #f5f0e5; text-decoration: underline; text-decoration-color: rgba(245,240,229,0.3); }
.e75-footer-col a:hover { color: var(--e75-accent); text-decoration-color: var(--e75-accent); }
.e75-footer-logo { width: 64px; height: auto; margin: 0 0 1rem; }
.e75-footer-brand-pitch {
  font-size: .95rem;
  line-height: 1.7;
  color: #e8dccf;
  margin: 0 0 1.25rem;
}
.e75-footer-brand-cta {
  display: inline-block;
  color: var(--e75-accent);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none !important;
  padding-top: .5rem;
  border-top: 1px solid rgba(245,240,229,0.15);
}
.e75-footer-brand-cta:hover { color: var(--e75-white); text-decoration: underline !important; }
.e75-footer-links { list-style: none; padding: 0; margin: 0; }
.e75-footer-links li { margin-bottom: .5rem; }
.e75-footer-bottom {
  border-top: 1px solid rgba(245,240,229,0.15);
  margin-top: 3rem; padding: 1.5rem 1.5rem 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(245,240,229,0.7);
  max-width: 1240px; margin-left: auto; margin-right: auto;
}
@media (max-width: 900px) {
  .e75-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .e75-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ========== UTILS ========== */
.e75-persona-photo {
  width: 100%;
  max-width: 360px;
  border-radius: var(--e75-radius-lg);
  margin: 0 0 1.5rem;
  box-shadow: var(--e75-shadow);
}
.screen-reader-text { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ========== CONTACT PAGE ========== */
.e75-contact-form { max-width: 800px; margin: 2rem auto; }

/* ========== TOOL PAGES wrappers ========== */
.e75-tool-page { padding: 3rem 0; background: var(--e75-bg); }
.e75-tool-page .e75-tool-intro { max-width: 800px; margin: 0 auto 2.5rem; padding: 0 1.5rem; text-align: center; }
.e75-tool-page .e75-tool-intro h1 {
  font-family: var(--e75-font-h); color: var(--e75-primary); margin: 0 0 1rem;
}
.e75-tool-page .e75-tool-intro p { font-size: 1.05rem; line-height: 1.7; color: var(--e75-text); }
.e75-tool-page .e75-tool-faq { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem; }
.e75-tool-page .e75-tool-faq h2 { font-family: var(--e75-font-h); color: var(--e75-primary); }
.e75-tool-page .e75-tool-faq details {
  background: var(--e75-surface);
  border: 1px solid var(--e75-line);
  border-radius: var(--e75-radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.e75-tool-page .e75-tool-faq summary {
  cursor: pointer; font-weight: 600; color: var(--e75-primary);
  font-family: var(--e75-font-h); font-size: 1.1rem;
}
.e75-tool-page .e75-tool-faq p { margin: .75rem 0 0; color: var(--e75-text); }

/* ========== PARALLAX-SCROLL JS HOOK ========== */
/* le main.js applique translate3d sur .e75-hero-bg en fonction du scroll */
.e75-hero[data-parallax="true"] .e75-hero-bg { transform: translate3d(0, 0, 0); }
@media (prefers-reduced-motion: reduce) {
  .e75-hero-bg { transform: none !important; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .e75-hero { min-height: 60vh; }
  .e75-hero-inner { padding: 2rem 1.25rem; }
  .e75-rubriques, .e75-latest, .e75-editorial { padding: 2.5rem 0; }
  .e75-editorial h2 { font-size: 1.7rem; }
  .e75-cat-card { min-height: 260px; }
  .e75-header-inner { gap: 1rem; padding: .5rem 1rem; min-height: 64px; }
  .e75-brand-name { font-size: 1.2rem; }
  .e75-brand-logo { max-width: 44px; }
}


/* Tailored rules */
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*="e75-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(--e75-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.
============================================================ */
.e75-media-press {
  padding: 2.5rem 0;
  background: var(--e75-bg-soft, var(--e75-color-surface, #f9fafb));
  margin: 2rem 0;
}
.e75-media-press > .e75-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.e75-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--e75-color-text-soft, var(--e75-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.e75-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.e75-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%);
}
.e75-media-press-item:hover,
.e75-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.e75-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .e75-media-press { padding: 1.8rem 0; }
  .e75-media-press-grid { gap: 1.4rem; }
  .e75-media-press-item { max-width: 110px; min-height: 36px; }
  .e75-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) */
.e75-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);
}
.e75-media-press .e75-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;
}
.e75-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(--e75-muted, #666);
  flex: 0 0 auto;
}
.e75-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;
}
.e75-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;
}
.e75-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.e75-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;
}
.e75-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .e75-media-press .e75-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.e75-cat-hero--align-left .e75-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;
}
.e75-cat-hero--align-center .e75-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: 2px !important; padding: 8px !important;
     
  }
  [class*="-burger"] > span, [class*="-burger-bars"] {
    gap: 5px !important; width: 24px !important; height: 16px !important;
    align-items: center !important;
  }
  [class*="-burger-bars"] > *, [class*="-burger"] > span > * {
    height: 2px !important; border-radius: 0 !important;
  }
  [class*="-burger-bars"] > *:nth-child(1), [class*="-burger"] > span > *:nth-child(1) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(2), [class*="-burger"] > span > *:nth-child(2) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(3), [class*="-burger"] > span > *:nth-child(3) { width: 24px !important; }
}
