/* ============================================================
   Compiègne News — Theme custom CSS
   Design System: Classic Auto Magazine (id: auto-moto-classic-magazine-17)
   Fonts (DB): Playfair Display + Source Serif 4
   Palette (competitor courrier-picard.fr): primary #e63339, accent #209e97
   Hero: fade-reveal | Header: sticky-minimal | Category: single-top
   ============================================================ */

:root {
  --a5e-primary: #e63339;
  --a5e-primary-d: #b51e23;
  --a5e-accent: #209e97;
  --a5e-accent-d: #176e69;
  --a5e-text: #242424;
  --a5e-text-soft: #696969;
  --a5e-bg: #FFFFFF;
  --a5e-surface: #FBF8F1;
  --a5e-line: #E5DECF;
  --a5e-line-strong: #c9bf9e;
  --a5e-font-headings: "Playfair Display", "Source Serif 4", Georgia, serif;
  --a5e-font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --a5e-shadow-sm: 0 2px 8px rgba(36, 36, 36, 0.06);
  --a5e-shadow-md: 0 6px 22px rgba(36, 36, 36, 0.10);
  --a5e-shadow-lg: 0 14px 40px rgba(36, 36, 36, 0.16);
  --a5e-radius: 4px;
  --a5e-content-max: 1240px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.a5e-body {
  font-family: var(--a5e-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--a5e-text);
  background: var(--a5e-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--a5e-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--a5e-primary-d); }

main, .a5e-main { padding-top: 0 !important; margin-top: 0 !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--a5e-font-headings);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--a5e-text);
  line-height: 1.18;
  margin: 0 0 0.7em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p  { margin: 0 0 1.05em; }

.a5e-container { max-width: var(--a5e-content-max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- HEADER (sticky-minimal) ---------- */
.a5e-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--a5e-line);
  padding: 0;
}
.a5e-header-inner {
  max-width: var(--a5e-content-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}
.a5e-brand-link { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.a5e-brand-logo {
  display: block;
  width: auto;
  max-height: 44px;
}
.a5e-brand-name {
  font-family: var(--a5e-font-headings);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--a5e-text);
  line-height: 1;
  letter-spacing: -0.01em;
}
.a5e-brand-tagline { display: none; }

/* Desktop nav */
.a5e-nav-desktop { display: none; }
.a5e-nav-desktop-list {
  display: flex;
  gap: 1.3rem;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}
.a5e-nav-desktop-list a {
  color: var(--a5e-text);
  text-decoration: none;
  font-family: var(--a5e-font-body);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  letter-spacing: 0.01em;
}
.a5e-nav-desktop-list a:hover,
.a5e-nav-desktop-list .current-cat > a,
.a5e-nav-desktop-list .current-menu-item > a {
  color: var(--a5e-primary);
  border-bottom-color: var(--a5e-primary);
}

@media (min-width: 1024px) {
  .a5e-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 1rem;
  }
  .a5e-burger { display: none !important; }
  .a5e-header-cta-desktop { display: inline-flex; }
}

/* Burger button (mobile only) */
.a5e-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;
  margin-left: auto !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(--a5e-text) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.a5e-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.a5e-burger-bars span {
  display: block;
  height: 2.5px;
  background: var(--a5e-text);
  border-radius: 2px;
  width: 100%;
}

/* CTA dans le header — `no` == 'no' donc CACHÉ */
.a5e-header-cta-desktop { display: none !important; }

/* ---------- DRAWER mobile ---------- */
.a5e-nav-mobile { display: none; }

@media (max-width: 1023px) {
  .a5e-nav-mobile.is-open {
    display: flex !important;
    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(0, 0, 0, 0.3);
  }
  .a5e-nav-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
  }
  .a5e-nav-mobile-list li {
    border-bottom: 1px solid #ececec;
  }
  .a5e-nav-mobile-list a {
    display: block;
    padding: 0.95rem 0.4rem;
    color: #1a1a1a;
    text-decoration: none;
    font-family: var(--a5e-font-body);
    font-weight: 600;
    font-size: 1rem;
  }
  .a5e-nav-mobile-list a:hover {
    color: var(--a5e-primary);
  }
  .a5e-drawer-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 38px; height: 38px;
    background: transparent;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: #1a1a1a;
  }
  .a5e-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .a5e-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* CTA EN BAS du drawer (toujours visible mobile, peu importe `no`) */
.a5e-drawer-cta {
  display: block !important;
  margin: 2rem 0.6rem 1rem !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--a5e-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-family: var(--a5e-font-body);
  text-decoration: none !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.02em;
}
.a5e-drawer-cta:hover { background: var(--a5e-primary-d) !important; color: #fff !important; }

@media (min-width: 1024px) {
  .a5e-drawer-cta { display: none !important; }
  .a5e-drawer-overlay { display: none !important; }
}

/* ---------- HERO (fade-reveal + YouTube background) ---------- */
.a5e-hero {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--a5e-text);
}
.a5e-hero-video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.a5e-hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.a5e-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 32, 0.45) 0%, rgba(20, 22, 32, 0.78) 100%);
  z-index: 2;
}
.a5e-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.a5e-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 5rem 1.25rem;
  text-align: center;
  color: #fff;
  animation: a5e-hero-fade-reveal 1.4s cubic-bezier(.22, .8, .2, 1) both;
}
@keyframes a5e-hero-fade-reveal {
  0%   { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0)     scale(1);     filter: blur(0);  }
}
.a5e-hero-eyebrow {
  display: inline-block;
  font-family: var(--a5e-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #f9e3c3;
  border: 1px solid rgba(249, 227, 195, 0.55);
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.a5e-hero-title {
  font-family: var(--a5e-font-headings);
  font-size: clamp(2.2rem, 5.8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 1.2rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.a5e-hero-subtitle {
  font-family: var(--a5e-font-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 0 auto 2rem;
  max-width: 720px;
  color: #f4ecdc;
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.a5e-hero-ctas { display: inline-flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Buttons ---------- */
.a5e-btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--a5e-font-body);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--a5e-primary);
  border-radius: 0;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all .3s ease;
  font-size: 0.95rem;
}
.a5e-btn:hover { transform: translateY(-1px); }
.a5e-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.a5e-btn--ghost:hover { background: #fff; color: var(--a5e-text); }

/* ---------- EDITORIAL BLOC (after-hero) ---------- */
.a5e-editorial-bloc {
  padding: 5rem 0 4rem;
  background: var(--a5e-bg);
}
.a5e-editorial-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.a5e-editorial-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--a5e-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--a5e-primary);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.a5e-editorial-bloc h2 {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1.1rem;
}
.a5e-editorial-bloc h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--a5e-primary);
}
.a5e-editorial-bloc h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--a5e-text);
}
.a5e-editorial-bloc p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--a5e-text);
  font-family: var(--a5e-font-body);
}
.a5e-editorial-bloc .a5e-editorial-pullquote {
  border-left: 4px solid var(--a5e-primary);
  background: var(--a5e-surface);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-family: var(--a5e-font-headings);
  font-size: 1.15rem;
  color: var(--a5e-text);
}
.a5e-editorial-bloc a { color: var(--a5e-primary); text-decoration: underline; }

/* ---------- SECTION CATEGORIES (rubriques cards) ---------- */
.a5e-section-title-block {
  text-align: center;
  padding: 3.5rem 1.25rem 1.5rem;
  max-width: var(--a5e-content-max);
  margin: 0 auto;
}
.a5e-section-eyebrow {
  display: block;
  font-family: var(--a5e-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--a5e-primary);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.a5e-section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 0.4rem;
}
.a5e-section-subtitle {
  color: var(--a5e-text-soft);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

.a5e-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: var(--a5e-content-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}
.a5e-cat-card {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  background: var(--a5e-text);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--a5e-radius);
  transition: transform .35s ease, box-shadow .35s ease;
}
.a5e-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--a5e-shadow-md);
}
.a5e-cat-card-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--a5e-primary);
  transition: transform .8s ease;
  z-index: 1;
}
.a5e-cat-card:hover .a5e-cat-card-img { transform: scale(1.06); }
.a5e-cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 32, 0.12) 0%, rgba(20, 22, 32, 0.78) 75%);
  z-index: 2;
}
.a5e-cat-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 1.2rem 1.1rem;
  color: #fff;
}
.a5e-cat-card-name {
  font-family: var(--a5e-font-headings);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #fff;
  margin: 0;
}
.a5e-cat-card-meta {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f4d3c0;
}

/* ---------- SECTIONS PAR CATEGORIE (by-category mode) ---------- */
.a5e-cat-section {
  padding: 3rem 1.25rem 1rem;
  max-width: var(--a5e-content-max);
  margin: 0 auto;
}
.a5e-cat-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--a5e-line);
}
.a5e-cat-section-title {
  font-family: var(--a5e-font-headings);
  font-size: 1.7rem;
  margin: 0;
  font-weight: 800;
  position: relative;
}
.a5e-cat-section-title a { color: var(--a5e-text); text-decoration: none; }
.a5e-cat-section-title a:hover { color: var(--a5e-primary); }
.a5e-cat-section-title::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--a5e-primary);
  margin-right: 0.7rem;
  transform: translateY(1px);
}
.a5e-cat-section-more {
  font-family: var(--a5e-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--a5e-primary);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.a5e-cat-section-more:hover { color: var(--a5e-primary-d); text-decoration: underline; }

.a5e-cat-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.a5e-card {
  background: var(--a5e-bg);
  border: 1px solid var(--a5e-line);
  border-radius: var(--a5e-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.a5e-card-image-wrap {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--a5e-surface);
}
.a5e-card-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.a5e-card:hover .a5e-card-image { transform: scale(1.04); }
.a5e-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.a5e-card-meta {
  font-size: 0.78rem;
  color: var(--a5e-text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.a5e-card-title {
  font-family: var(--a5e-font-headings);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
}
.a5e-card-title a { color: var(--a5e-text); text-decoration: none; }
.a5e-card-title a:hover { color: var(--a5e-primary); }
.a5e-card-excerpt {
  color: var(--a5e-text-soft);
  font-size: 0.95rem;
  font-family: var(--a5e-font-body);
  line-height: 1.55;
}

.a5e-cat-section-empty {
  padding: 1.5rem;
  background: var(--a5e-surface);
  border-left: 3px solid var(--a5e-primary);
  color: var(--a5e-text-soft);
  font-style: italic;
  border-radius: 0 var(--a5e-radius) var(--a5e-radius) 0;
}
.a5e-cat-section-empty a {
  font-weight: 700;
  color: var(--a5e-primary);
  margin-left: 0.5rem;
}

/* ---------- HOME TOOL SECTION ---------- */
.a5e-home-tool-section {
  padding: 4rem 1.25rem;
  background: var(--a5e-surface);
  margin-top: 3rem;
}
.a5e-home-tool-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.a5e-home-tool-inner h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 0.6rem;
}
.a5e-home-tool-intro {
  font-size: 1.05rem;
  color: var(--a5e-text-soft);
  margin-bottom: 2rem;
  font-style: italic;
  font-family: var(--a5e-font-body);
}

/* ---------- CATEGORY PAGE (single-top) ---------- */
.a5e-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--a5e-primary);
}
.a5e-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.a5e-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.25rem;
  max-width: var(--a5e-content-max);
  margin: 0 auto;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78) 100%);
}
.a5e-cat-hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.a5e-cat-description {
  max-width: 880px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--a5e-text);
}

/* ---------- FOOTER ---------- */
.a5e-footer {
  background: var(--a5e-text);
  color: #f5f0e5;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}
.a5e-footer-cols {
  max-width: var(--a5e-content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.a5e-footer-col h3 {
  font-family: var(--a5e-font-headings);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.a5e-footer-logo {
  display: block;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}
.a5e-footer-brand-pitch {
  color: #d3cdbe;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.a5e-footer-brand-cta {
  display: inline-block;
  color: #f9e3c3;
  text-decoration: underline;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.a5e-footer-brand-cta:hover { color: #fff; }
.a5e-footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.a5e-footer-links li {
  margin-bottom: 0.55rem;
}
.a5e-footer-links a {
  color: #d3cdbe;
  text-decoration: underline;
  font-size: 0.94rem;
}
.a5e-footer-links a:hover { color: #fff; }
.a5e-footer-bottom {
  max-width: var(--a5e-content-max);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(245, 240, 229, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #b6b0a3;
}
.a5e-footer-bottom a { color: #d3cdbe; }

/* ---------- Persona photo (used on a-propos) ---------- */
.a5e-persona-photo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0 1.25rem 1rem 0;
  float: right;
  shape-outside: margin-box;
  box-shadow: var(--a5e-shadow-md);
}
@media (max-width: 700px) {
  .a5e-persona-photo { float: none; margin: 0 auto 1.5rem; width: 100%; max-width: 360px; }
}

/* ---------- Contact form wrapper ---------- */
.a5e-contact-form {
  max-width: 760px;
  margin: 2rem auto;
  border: 1px solid var(--a5e-line);
  border-radius: var(--a5e-radius);
  background: var(--a5e-bg);
  overflow: hidden;
}
.a5e-contact-form iframe { display: block; }

/* ---------- WordPress default categories list helper ---------- */
.a5e-archive {
  max-width: var(--a5e-content-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.a5e-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .a5e-header-inner { gap: 0.7rem; min-height: 56px; }
  .a5e-brand-name { font-size: 1.2rem; }
  .a5e-brand-logo { max-height: 36px; }
  .a5e-hero { min-height: 64vh; }
  .a5e-hero-inner { padding: 3rem 1rem; }
  .a5e-editorial-bloc { padding: 3rem 0; }
  .a5e-section-title-block { padding-top: 2.5rem; }
  .a5e-categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .a5e-cat-card { aspect-ratio: 1/1; }
  .a5e-cat-card-name { font-size: 1.05rem; }
  .a5e-cat-section { padding-top: 2.2rem; }
  .a5e-cat-section-title { font-size: 1.35rem; }
}

/* ---------- Animations CTA / CTR / CTO (from site_data.animations) ---------- */
.a5e-btn--cta {
  position: relative;
  display: inline-block;
  padding: 0.85rem 1.6rem;
  color: var(--a5e-bg);
  background: var(--a5e-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0;
  letter-spacing: 0.04em;
  overflow: hidden;
  border: 2px solid var(--a5e-primary);
  transition: color .35s ease, background .35s ease;
  cursor: pointer;
}
.a5e-btn--cta::before,
.a5e-btn--cta::after {
  content: "";
  position: absolute;
  background: var(--a5e-accent);
  transition: transform .5s cubic-bezier(.7, 0, .2, 1);
}
.a5e-btn--cta::before {
  left: 0; top: 0;
  width: 100%; height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
}
.a5e-btn--cta::after {
  right: 0; bottom: 0;
  width: 100%; height: 2px;
  transform: scaleX(0);
  transform-origin: right center;
}
.a5e-btn--cta:hover::before,
.a5e-btn--cta:hover::after { transform: scaleX(1); }
.a5e-btn--cta:hover { background: var(--a5e-bg); color: var(--a5e-primary); }

@keyframes a5e-cta-border-draw {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Card CTR pin animation */
.a5e-card::after {
  content: "";
  position: absolute;
  top: -10px; right: 14px;
  width: 18px; height: 18px;
  background: var(--a5e-primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) scale(0);
  opacity: 0;
  transition: transform .35s cubic-bezier(.5, 1.6, .5, 1), opacity .35s;
  z-index: 5;
  pointer-events: none;
}
.a5e-card:hover::after {
  transform: rotate(-45deg) scale(1);
  opacity: 1;
  animation: a5e-ctr-pin-drop .6s ease-out;
}
@keyframes a5e-ctr-pin-drop {
  0%   { transform: rotate(-45deg) translateY(-25px) scale(.5); opacity: 0; }
  60%  { transform: rotate(-45deg) translateY(2px)   scale(1.05); opacity: 1; }
  100% { transform: rotate(-45deg) translateY(0)     scale(1);    opacity: 1; }
}

/* Tool fade-up */
.a5e-home-tool-section .a5e-tool-quiz {
  animation: a5e-cto-fade-up .8s ease-out both;
}
@keyframes a5e-cto-fade-up {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}


/* Theme overrides */
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*="a5e-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;
}


/* 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;
  }
}

/* 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
   (.a5e-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@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;
  }
}

/* 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.
*/
/* 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;
}

/* 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;
}

/* 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;
  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(--a5e-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.
============================================================ */
.a5e-media-press {
  padding: 2.5rem 0;
  background: var(--a5e-bg-soft, var(--a5e-color-surface, #f9fafb));
  margin: 2rem 0;
}
.a5e-media-press > .a5e-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.a5e-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a5e-color-text-soft, var(--a5e-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.a5e-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.a5e-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%);
}
.a5e-media-press-item:hover,
.a5e-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.a5e-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .a5e-media-press { padding: 1.8rem 0; }
  .a5e-media-press-grid { gap: 1.4rem; }
  .a5e-media-press-item { max-width: 110px; min-height: 36px; }
  .a5e-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) */
.a5e-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);
}
.a5e-media-press .a5e-container.bdf-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;
}
.a5e-media-press-title, .bdf-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(--a5e-muted, #666);
  flex: 0 0 auto;
}
.a5e-media-press-grid, .bdf-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;
}
.a5e-media-press-item, .bdf-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;
}
.a5e-media-press-item:hover, .bdf-media-press-item:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.a5e-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;
}
.a5e-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .a5e-media-press .a5e-container.bdf-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}


/* FIX anti-empreinte : variation alignement titre categorie (left/center seedee) */
.a5e-cat-hero--align-left .a5e-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;
}
.a5e-cat-hero--align-center .a5e-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;
  }
}
