/* ==========================================================================
   MOTOPHILE — Custom child theme styles
   Design system : Auto Auto-École Permis (DB pick)
   Palette : navy #1E40AF + moto red #D62B2B
   Fonts   : Plus Jakarta Sans (headings) + Public Sans (body)
   Hero    : latest-edition · Header : logo-left-menu-center-cta-right
   Category : single-bottom
   ========================================================================== */

:root {
  --edc-primary: #1E40AF;
  --edc-primary-dark: #1B3A6F;
  --edc-primary-deep: #142A55;
  --edc-accent: #D62B2B;
  --edc-accent-dark: #B91C1C;
  --edc-accent-deep: #7C1313;
  --edc-text: #0F1A2A;
  --edc-text-soft: #5A6A85;
  --edc-bg: #F8FAFC;
  --edc-surface: #FFFFFF;
  --edc-line: #E2E8F0;
  --edc-line-strong: #CBD5E1;
  --edc-shadow-sm: 0 1px 3px rgba(15,26,42,0.08);
  --edc-shadow-md: 0 4px 14px rgba(15,26,42,0.10);
  --edc-shadow-lg: 0 12px 32px rgba(15,26,42,0.14);
  --edc-radius-sm: 6px;
  --edc-radius-md: 10px;
  --edc-radius-lg: 14px;
  --edc-radius-pill: 999px;
  --edc-font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --edc-font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --edc-container: 1200px;
  --edc-gap: 1.5rem;
}

/* -------------------- BASE -------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.edc-body {
  margin: 0;
  font-family: var(--edc-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--edc-text);
  background: var(--edc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--edc-primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--edc-accent); }
a:focus-visible { outline: 3px solid var(--edc-primary); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--edc-font-heading);
  color: var(--edc-text);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

main, .edc-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.edc-container {
  width: 100%;
  max-width: var(--edc-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.edc-section { padding: 3.5rem 0; }

.edc-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--edc-line);
}
.edc-section-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.01em;
}
.edc-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--edc-accent);
  margin-right: 0.6rem;
  vertical-align: -0.15em;
  border-radius: 2px;
}
.edc-section-link {
  font-family: var(--edc-font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--edc-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.edc-section-link::after { content: "\2192"; transition: transform .15s; }
.edc-section-link:hover::after { transform: translateX(4px); }

/* -------------------- BUTTONS -------------------- */
.edc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--edc-primary);
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: var(--edc-radius-sm);
  font-family: var(--edc-font-heading);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.edc-btn:hover { background: var(--edc-primary-dark); color: #fff; transform: translateY(-1px); }
.edc-btn--outline {
  background: transparent;
  color: var(--edc-primary);
  border: 2px solid var(--edc-primary);
}
.edc-btn--outline:hover { background: var(--edc-primary); color: #fff; }

/* CTA — 3d_press_button effect (3D press) */
.edc-btn--cta, .edc-btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--edc-accent) 0%, var(--edc-accent-dark) 100%);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--edc-radius-sm);
  font-family: var(--edc-font-heading);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--edc-accent-deep), 0 8px 16px rgba(124,19,19,0.32);
  transform: translateY(0);
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.12s ease;
  will-change: transform, box-shadow;
  font-size: 0.95rem;
}
.edc-btn--cta:hover, .edc-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--edc-accent-deep), 0 14px 24px rgba(124,19,19,0.40);
  color: #fff;
}
.edc-btn--cta:active, .edc-btn-cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--edc-accent-deep), 0 4px 8px rgba(124,19,19,0.30);
  transition-duration: 0.06s;
}
.edc-btn--cta:focus-visible { outline: 3px solid var(--edc-primary); outline-offset: 3px; }

/* -------------------- HEADER (logo-left-menu-center-cta-right) -------------------- */
.edc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edc-line);
  box-shadow: var(--edc-shadow-sm);
}

.edc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  max-width: var(--edc-container);
  margin: 0 auto;
  min-height: 64px;
}

.edc-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.edc-brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--edc-text);
}

.edc-brand-logo {
  width: auto;
  display: block;
}

.edc-brand-name {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--edc-text);
  text-transform: uppercase;
  line-height: 1;
}

.edc-nav-desktop {
  display: none;
  flex: 1;
  justify-content: center;
}

.edc-nav-desktop-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.edc-nav-desktop-list a {
  font-family: var(--edc-font-heading);
  color: var(--edc-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.edc-nav-desktop-list a:hover {
  border-bottom-color: var(--edc-accent);
  color: var(--edc-accent);
}
.edc-nav-desktop-list .current-menu-item > a,
.edc-nav-desktop-list .current-cat > a {
  border-bottom-color: var(--edc-accent);
  color: var(--edc-accent);
}

.edc-header-cta-desktop {
  flex-shrink: 0;
}

/* Burger (mobile) */
.edc-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 8px;
  color: #1a1a1a;
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
}
.edc-burger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 16px;
}
.edc-burger-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile drawer */
.edc-nav-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .edc-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(15,26,42,0.30);
    animation: edc-drawer-slide-in .28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .edc-nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .edc-nav-mobile-list li { border-bottom: 1px solid #e5e5e5; }
  .edc-nav-mobile-list a {
    display: block;
    padding: 0.95rem 0.4rem;
    color: #0a0a0a;
    font-family: var(--edc-font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
  }
  .edc-nav-mobile-list a:hover { color: var(--edc-accent); }
  .edc-nav-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 1.5px solid var(--edc-line-strong);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: var(--edc-text);
    font-size: 1.4rem;
    line-height: 1;
    z-index: 1;
  }
  .edc-nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,26,42,0.55);
    z-index: 9998;
    display: none;
    animation: edc-fade-in .28s ease;
  }
  .edc-nav-mobile-overlay.is-open { display: block; }
  body.edc-nav-locked { overflow: hidden; }
}

@keyframes edc-drawer-slide-in {
  from { transform: translateX(110%); }
  to   { transform: translateX(0); }
}
@keyframes edc-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}

/* Drawer CTA (mobile, sous la liste catégories) */
.edc-drawer-cta {
  display: block !important;
  margin: 2rem 0 0 !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--edc-accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
  font-family: var(--edc-font-heading);
}
.edc-drawer-cta:hover { background: var(--edc-accent-dark) !important; color: #fff !important; }

/* Mobile : hide desktop CTA, show burger; Desktop : opposite */
@media (max-width: 1023px) {
  .edc-header-cta-desktop,
  .edc-header [class*="-btn--cta"]:not([class*="-drawer-"]) {
    display: none !important;
  }
  .edc-nav-desktop { display: none !important; }
  .edc-header-inner { justify-content: space-between; }
}
@media (min-width: 1024px) {
  .edc-burger { display: none !important; }
  .edc-nav-desktop { display: flex; }
  .edc-drawer-cta { display: none !important; }
  .edc-nav-mobile { display: none !important; }
  .edc-nav-mobile-overlay { display: none !important; }
}

/* -------------------- HERO (latest-edition) -------------------- */
.edc-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--edc-primary-deep) 0%, var(--edc-primary-dark) 60%, var(--edc-primary) 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  border-bottom: 4px solid var(--edc-accent);
}

.edc-hero--latest-edition {
  background: linear-gradient(135deg, #0c1a3a 0%, var(--edc-primary-dark) 100%);
}

.edc-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  z-index: 0;
}

.edc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--edc-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.edc-hero-eyebrow {
  display: inline-block;
  background: var(--edc-accent);
  color: #fff;
  font-family: var(--edc-font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--edc-radius-pill);
  margin-bottom: 1.2rem;
}

.edc-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.edc-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #E2E8F0;
  margin: 0 0 1.75rem;
  line-height: 1.55;
  max-width: 56ch;
}

.edc-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.edc-hero-actions .edc-btn--outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.edc-hero-actions .edc-btn--outline:hover {
  background: #fff;
  color: var(--edc-primary);
}

.edc-hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-family: var(--edc-font-heading);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.edc-hero-meta strong { color: #fff; }

/* -------------------- EDITORIAL BLOCK (after categories, mod3=0) -------------------- */
.edc-editorial {
  background: var(--edc-surface);
  border: 1px solid var(--edc-line);
  border-radius: var(--edc-radius-lg);
  padding: 2.5rem 2rem;
  margin: 2.5rem auto;
  max-width: 980px;
  box-shadow: var(--edc-shadow-sm);
}

.edc-editorial h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}
.edc-editorial h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em; bottom: 0.3em;
  width: 4px;
  background: var(--edc-accent);
  border-radius: 2px;
}

.edc-editorial h3 {
  font-size: 1.2rem;
  margin-top: 1.6rem;
  color: var(--edc-primary-dark);
}

.edc-editorial p { color: var(--edc-text); font-size: 1.02rem; }
.edc-editorial a { color: var(--edc-primary); border-bottom: 1.5px solid rgba(30,64,175,0.25); font-weight: 600; }
.edc-editorial a:hover { color: var(--edc-accent); border-bottom-color: var(--edc-accent); }

.edc-editorial-quote {
  background: linear-gradient(180deg, #F1F5F9, #F8FAFC);
  border-left: 4px solid var(--edc-accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--edc-radius-md) var(--edc-radius-md) 0;
  font-style: italic;
  color: var(--edc-primary-dark);
  font-family: var(--edc-font-heading);
}

/* -------------------- CATEGORIES GRID -------------------- */
.edc-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.edc-cat-card {
  position: relative;
  display: block;
  background: var(--edc-surface);
  border: 1px solid var(--edc-line);
  border-radius: var(--edc-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--edc-text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--edc-shadow-sm);
}
.edc-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--edc-shadow-lg);
  border-color: var(--edc-primary);
}

.edc-cat-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--edc-primary-dark);
  position: relative;
}
.edc-cat-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,26,42,0.55) 100%);
}

.edc-cat-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.edc-cat-card-name {
  font-family: var(--edc-font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--edc-text);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.edc-cat-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--edc-primary);
  font-family: var(--edc-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}
.edc-cat-card-arrow::after { content: "\2192"; transition: transform .15s; }
.edc-cat-card:hover .edc-cat-card-arrow::after { transform: translateX(4px); }

/* -------------------- ARTICLE CARDS GRID (home latest) -------------------- */
.edc-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.edc-card {
  background: var(--edc-surface);
  border: 1px solid var(--edc-line);
  border-radius: var(--edc-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--edc-shadow-sm);
}
.edc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--edc-shadow-lg);
  border-color: var(--edc-line-strong);
}

.edc-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--edc-line);
}
.edc-card-img--placeholder {
  background: linear-gradient(135deg, var(--edc-primary-dark), var(--edc-primary));
  position: relative;
}
.edc-card-img--placeholder::after {
  content: "MOTOPHILE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.18);
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
}

.edc-card-body {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.edc-card-cat {
  font-family: var(--edc-font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--edc-accent);
  margin-bottom: 0.4rem;
  text-decoration: none;
}
.edc-card-cat:hover { color: var(--edc-accent-dark); }

.edc-card-title {
  font-family: var(--edc-font-heading);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.edc-card-title a { color: var(--edc-text); }
.edc-card-title a:hover { color: var(--edc-primary); }

.edc-card-excerpt {
  font-size: 0.94rem;
  color: var(--edc-text-soft);
  margin: 0 0 0.95rem;
  flex: 1;
}

.edc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--edc-text-soft);
  font-family: var(--edc-font-heading);
  padding-top: 0.6rem;
  border-top: 1px solid var(--edc-line);
}
.edc-card-meta-date { display: inline-flex; align-items: center; gap: 0.35rem; }
.edc-card-meta-read { color: var(--edc-primary); font-weight: 600; }

/* -------------------- CATEGORY (single-bottom layout) -------------------- */
.edc-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--edc-primary-dark);
}
.edc-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.45;
}
.edc-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--edc-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.edc-cat-hero-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  padding-bottom: 1.5rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}

.edc-cat-intro {
  background: var(--edc-surface);
  padding: 2.5rem 0;
}
.edc-cat-intro-text {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--edc-text);
}
.edc-cat-intro-text strong { color: var(--edc-primary); }

.edc-cat-outro {
  background: var(--edc-bg);
  padding: 3rem 0;
  border-top: 1px solid var(--edc-line);
  margin-top: 2.5rem;
}
.edc-cat-outro-inner { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }
.edc-cat-outro h2 {
  color: var(--edc-primary-dark);
  font-size: 1.5rem;
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}
.edc-cat-outro h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em; bottom: 0.3em;
  width: 4px;
  background: var(--edc-accent);
  border-radius: 2px;
}

/* -------------------- TOOL PAGE -------------------- */
.edc-tool-page { padding: 3rem 0; }
.edc-tool-intro {
  max-width: 780px;
  margin: 0 auto 2rem;
  color: var(--edc-text);
  font-size: 1.04rem;
}
.edc-tool-faq {
  max-width: 780px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--edc-line);
}
.edc-tool-faq h2 {
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1rem;
}
.edc-tool-faq h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em; bottom: 0.3em;
  width: 4px;
  background: var(--edc-accent);
  border-radius: 2px;
}
.edc-tool-faq details {
  background: var(--edc-surface);
  border: 1px solid var(--edc-line);
  border-radius: var(--edc-radius-md);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.85rem;
}
.edc-tool-faq summary {
  cursor: pointer;
  font-family: var(--edc-font-heading);
  font-weight: 600;
  color: var(--edc-text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.edc-tool-faq summary::-webkit-details-marker { display: none; }
.edc-tool-faq summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--edc-accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .15s;
}
.edc-tool-faq details[open] summary::before { transform: rotate(45deg); }
.edc-tool-faq details p {
  margin: 0.85rem 0 0;
  color: var(--edc-text-soft);
  font-size: 0.96rem;
}

/* -------------------- PERSONA / ABOUT PAGE -------------------- */
.edc-persona-photo {
  max-width: 280px;
  border-radius: var(--edc-radius-md);
  box-shadow: var(--edc-shadow-md);
  margin: 1rem 0 1.5rem;
  border: 4px solid var(--edc-surface);
}

/* -------------------- CONTACT PAGE -------------------- */
.edc-contact-form {
  margin: 2rem 0 0;
  background: var(--edc-surface);
  border: 1px solid var(--edc-line);
  border-radius: var(--edc-radius-md);
  padding: 1rem;
}

/* -------------------- CTR : reading_progress_bar -------------------- */
.edc-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--edc-primary), var(--edc-accent));
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .edc-progress-bar { transition: none; }
}

/* -------------------- CTO : newsletter_slide_popup -------------------- */
@keyframes edc-cto-slide-in {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0%);   opacity: 1; }
}
.edc-cto-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--edc-line);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 24px 60px rgba(15,26,42,0.20);
  z-index: 9998;
  transform: translateX(110%);
  opacity: 0;
  display: none;
}
.edc-cto-popup.is-open {
  display: block;
  animation: edc-cto-slide-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.edc-cto-popup h4 { margin: 0 0 0.4rem; color: var(--edc-text); font-size: 1.05rem; font-weight: 700; }
.edc-cto-popup p { margin: 0 0 0.85rem; color: var(--edc-text-soft); font-size: 0.9rem; }
.edc-cto-popup .edc-cto-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--edc-text-soft);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 8px;
}
.edc-cto-popup .edc-cto-close:hover { color: var(--edc-accent); }
.edc-cto-popup .edc-btn--cta { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .edc-cto-popup.is-open { animation: none; transform: translateX(0); opacity: 1; }
}

/* -------------------- FOOTER -------------------- */
.edc-footer {
  background: linear-gradient(180deg, #0E1E3D 0%, #0A1530 100%);
  color: #E2E8F0;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--edc-accent);
}

.edc-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--edc-container);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.edc-footer-col {
  min-width: 0;
}

.edc-footer-logo {
  display: block;
  height: auto;
  width: 120px;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

.edc-footer-brand-pitch {
  color: #CBD5E1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.edc-footer-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #FFD180;
  font-family: var(--edc-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.edc-footer-brand-cta:hover { color: #fff; }

.edc-footer-title {
  font-family: var(--edc-font-heading);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--edc-accent);
  display: inline-block;
}

.edc-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.edc-footer-links a {
  color: #E2E8F0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(226,232,240,0.35);
  font-size: 0.95rem;
  transition: color .15s, text-decoration-color .15s;
}
.edc-footer-links a:hover {
  color: #fff;
  text-decoration-color: var(--edc-accent);
}

.edc-footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.edc-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(226,232,240,0.35);
  border-radius: 50%;
  color: #fff;
  transition: background .15s, border-color .15s;
}
.edc-footer-social a:hover {
  background: var(--edc-accent);
  border-color: var(--edc-accent);
  color: #fff;
}

.edc-footer-bottom {
  border-top: 1px solid rgba(226,232,240,0.18);
  padding: 1.25rem;
  max-width: var(--edc-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.edc-footer-copyright {
  color: #CBD5E1;
  font-size: 0.85rem;
  margin: 0;
}
.edc-footer-tag {
  color: #94A3B8;
  font-size: 0.82rem;
  font-family: var(--edc-font-heading);
  letter-spacing: 0.04em;
}

/* -------------------- RESPONSIVE -------------------- */
@media (min-width: 768px) {
  .edc-articles { grid-template-columns: repeat(2, 1fr); }
  .edc-categories { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .edc-articles { grid-template-columns: repeat(3, 1fr); }
  .edc-categories { grid-template-columns: repeat(4, 1fr); }
  .edc-section { padding: 4rem 0; }
  .edc-hero { padding: 5.5rem 0 6.5rem; }
}

@media (max-width: 900px) {
  .edc-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 580px) {
  .edc-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }
  .edc-footer { padding-top: 3rem; }
  .edc-footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: flex-start;
  }
  .edc-hero-actions { flex-direction: column; align-items: flex-start; }
  .edc-hero-actions .edc-btn, .edc-hero-actions .edc-btn--cta { width: 100%; justify-content: center; }
}

/* Accessibility */
.edc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Print */
@media print {
  .edc-header, .edc-footer, .edc-cto-popup, .edc-progress-bar { display: none !important; }
  body { background: #fff; color: #000; }
}


/* Site 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*="edc-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(--edc-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.
============================================================ */
.edc-media-press {
  padding: 2.5rem 0;
  background: var(--edc-bg-soft, var(--edc-color-surface, #f9fafb));
  margin: 2rem 0;
}
.edc-media-press > .edc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.edc-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--edc-color-text-soft, var(--edc-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.edc-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.edc-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%);
}
.edc-media-press-item:hover,
.edc-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.edc-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .edc-media-press { padding: 1.8rem 0; }
  .edc-media-press-grid { gap: 1.4rem; }
  .edc-media-press-item { max-width: 110px; min-height: 36px; }
  .edc-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) */
.edc-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);
}
.edc-media-press .edc-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;
}
.edc-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(--edc-muted, #666);
  flex: 0 0 auto;
}
.edc-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;
}
.edc-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;
}
.edc-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.edc-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;
}
.edc-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .edc-media-press .edc-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.edc-cat-hero--align-left .edc-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;
}
.edc-cat-hero--align-center .edc-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: 8px !important; padding: 8px !important;
    background: rgba(0,0,0,0.08) !important; 
  }
  [class*="-burger"] > span, [class*="-burger-bars"] {
    gap: 5px !important; width: 24px !important; height: 16px !important;
    align-items: center !important;
  }
  [class*="-burger-bars"] > *, [class*="-burger"] > span > * {
    height: 2px !important; border-radius: 1px !important;
  }
  [class*="-burger-bars"] > *:nth-child(1), [class*="-burger"] > span > *:nth-child(1) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(2), [class*="-burger"] > span > *:nth-child(2) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(3), [class*="-burger"] > span > *:nth-child(3) { width: 24px !important; }
}

/* === USER FIX 2026-06-27 : H1 hero force blanc === */
.edc-hero h1,
.edc-hero h1 *,
.edc-hero-title,
.edc-hero-title *,
.edc-hero [class*="typewriter"],
.edc-hero [class*="typewriter"] *,
.edc-hero [class*="rotator"],
.edc-hero [class*="rotator"] * {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
