/* =====================================================================
 * Depist ORL — Custom theme stylesheet
 * Design system: Wabi-Sabi Imperfection (fonts) + competitor medical palette
 * Prefix: dor-*
 * ===================================================================*/

:root {
  --dor-primary:    #21325b;
  --dor-primary-d:  #16223f;
  --dor-accent:     #00c9a7;
  --dor-accent-d:   #009b80;
  --dor-text:       #1e2022;
  --dor-text-soft:  #677788;
  --dor-bg:         #ffffff;
  --dor-surface:    #f7faff;
  --dor-line:       #e7eaf3;
  --dor-shadow:     0 2px 14px rgba(33, 50, 91, 0.08);
  --dor-shadow-h:   0 6px 28px rgba(33, 50, 91, 0.16);

  --dor-font-h:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --dor-font-b:  "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --dor-radius:  10px;
  --dor-radius-l: 16px;

  --dor-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--dor-bg);
  color: var(--dor-text);
  font-family: var(--dor-font-b);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main, .dor-main { padding-top: 0 !important; margin-top: 0 !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--dor-font-h);
  color: var(--dor-primary);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }

p { margin: 0 0 1.1em; }

a { color: var(--dor-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dor-accent-d); }

img { max-width: 100%; height: auto; display: block; }

.dor-container { max-width: var(--dor-container); margin: 0 auto; padding: 0 1.2rem; }

/* =====================================================================
 * BUTTONS — earth_imperfect Wabi-Sabi style (subtle asymmetric radius)
 * ===================================================================*/

.dor-btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--dor-primary);
  color: #fff;
  border: 0;
  border-radius: 12px 14px 11px 13px;
  font: 600 .98rem/1.2 var(--dor-font-b);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: var(--dor-shadow);
}
.dor-btn:hover { background: var(--dor-primary-d); color: #fff; transform: translateY(-1px); box-shadow: var(--dor-shadow-h); }
.dor-btn--cta { background: var(--dor-accent); color: #042a25; }
.dor-btn--cta:hover { background: var(--dor-accent-d); color: #fff; }
.dor-btn--ghost { background: transparent; color: var(--dor-primary); border: 1.5px solid var(--dor-primary); }
.dor-btn--ghost:hover { background: var(--dor-primary); color: #fff; }

/* =====================================================================
 * HEADER — sticky-minimal (logo left, nav right; sticky on scroll)
 * ===================================================================*/

.dor-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--dor-line);
  transition: box-shadow .3s, padding .3s;
}
.dor-header.is-scrolled { box-shadow: 0 2px 18px rgba(33, 50, 91, 0.08); }

.dor-header-inner {
  max-width: var(--dor-container);
  margin: 0 auto;
  padding: .8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.dor-brand-link {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--dor-primary);
  flex-shrink: 0;
}
.dor-brand-logo { display: block; width: auto; }
.dor-brand-name {
  font-family: var(--dor-font-h);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: .005em;
  color: var(--dor-primary);
}

.dor-nav-desktop { display: none; flex: 1; justify-content: center; }
.dor-nav-desktop-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.dor-nav-desktop-list a {
  color: var(--dor-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .96rem;
  padding: .4rem .15rem;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.dor-nav-desktop-list a:hover,
.dor-nav-desktop-list .current-menu-item > a {
  color: var(--dor-primary);
  border-bottom-color: var(--dor-accent);
}

/* Burger (mobile only) ----------------------------------------------- */
.dor-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: var(--dor-primary);
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10000;
  position: relative;
}
.dor-burger-bars { display: flex; flex-direction: column; gap: 4px; width: 24px; height: 16px; }
.dor-burger-bars span {
  display: block; height: 2px; width: 100%;
  background: currentColor;
  transition: transform .2s, opacity .2s;
  border-radius: 2px;
}
.dor-burger.is-open .dor-burger-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.dor-burger.is-open .dor-burger-bars span:nth-child(2) { opacity: 0; }
.dor-burger.is-open .dor-burger-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.dor-burger-wrap { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Mobile drawer ------------------------------------------------------ */
.dor-nav-mobile { display: none; }
.dor-nav-mobile-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.dor-nav-mobile-list li { border-bottom: 1px solid var(--dor-line); }
.dor-nav-mobile-list a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--dor-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}
.dor-nav-mobile-list a:hover { background: var(--dor-surface); color: var(--dor-primary); }

.dor-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
}
.dor-drawer-overlay.is-open { display: block; }

/* Mobile layout: header simple, nav cachee */
@media (max-width: 1023px) {
  .dor-header-inner { justify-content: space-between; padding: .7rem 1rem; gap: 1rem; }
  .dor-nav-desktop { display: none !important; }
  .dor-burger-wrap, .dor-header-actions { display: flex !important; align-items: center !important; gap: 8px !important; flex-shrink: 0 !important; }
  .dor-burger-label { display: none !important; }
  body.dor-drawer-locked .dor-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .dor-nav-mobile.is-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed; top: 0; right: 0; bottom: auto;
    width: 86%; max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    padding: 4.5rem 0 max(1.5rem, env(safe-area-inset-bottom));
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
}

/* Desktop layout: nav visible, burger cache */
@media (min-width: 1024px) {
  .dor-burger, .dor-burger-wrap { display: none !important; }
  .dor-nav-desktop { display: flex !important; }
  .dor-nav-mobile { display: none !important; }
}

/* =====================================================================
 * HERO — parallax-scroll variant
 * ===================================================================*/

.dor-hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.dor-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 115%;
  object-fit: cover;
  z-index: 1;
  will-change: transform;
  transition: transform .1s linear;
}
.dor-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(33, 50, 91, 0.72) 0%, rgba(33, 50, 91, 0.45) 55%, rgba(0, 201, 167, 0.30) 100%);
  z-index: 2;
}
.dor-hero-inner {
  position: relative; z-index: 3;
  max-width: var(--dor-container);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: #fff;
}
.dor-hero-eyebrow {
  display: inline-block;
  font: 600 .8rem/1 var(--dor-font-b);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dor-accent);
  margin-bottom: 1.2rem;
  padding: .4rem .9rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 201, 167, 0.6);
  border-radius: 999px;
}
.dor-hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1.2rem;
  max-width: 760px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}
.home .dor-hero h1,
.front-page .dor-hero h1,
.dor-hero--parallax-scroll h1,
.dor-hero-title,
.dor-hero-title *,
.dor-hero-title::before,
.dor-hero-title::after {
  color: #fff !important;
}
.dor-hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 620px;
  margin: 0 0 2rem;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.dor-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =====================================================================
 * EDITORIAL BLOC (400-700 mots) — after-hero placement
 * ===================================================================*/

.dor-editorial {
  padding: 5rem 0;
  background: var(--dor-bg);
}
.dor-editorial-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.dor-editorial h2 {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}
.dor-editorial h2::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 3px; background: var(--dor-accent); border-radius: 999px;
}
.dor-editorial p { font-size: 1.04rem; line-height: 1.75; color: var(--dor-text); margin-bottom: 1.3em; }
.dor-editorial h3 { margin-top: 2.4rem; }
.dor-editorial-aside {
  background: var(--dor-surface);
  border-left: 4px solid var(--dor-accent);
  padding: 1.4rem 1.8rem;
  border-radius: 0 var(--dor-radius) var(--dor-radius) 0;
  margin: 2rem 0;
  font-style: italic;
}

/* =====================================================================
 * SECTION TITLES (generic)
 * ===================================================================*/

.dor-section { padding: 4rem 0; }
.dor-section--surface { background: var(--dor-surface); }
.dor-section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin: 0 0 .6rem;
}
.dor-section-eyebrow {
  display: block;
  font: 500 .85rem/1 var(--dor-font-b);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dor-accent-d);
  margin-bottom: .6rem;
}
.dor-section-intro {
  font-size: 1.05rem; color: var(--dor-text-soft);
  max-width: 720px; margin: 0 0 2.4rem;
}
.dor-section-head { text-align: center; margin-bottom: 2.6rem; }
.dor-section-head .dor-section-intro { margin: 0 auto; }

/* =====================================================================
 * CATEGORIES GRID
 * ===================================================================*/

.dor-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.dor-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--dor-radius-l) 18px 15px 17px;
  overflow: hidden;
  border: 1px solid var(--dor-line);
  text-decoration: none;
  color: var(--dor-text);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--dor-shadow);
  min-height: 280px;
}
.dor-cat-card:hover { transform: translateY(-4px); box-shadow: var(--dor-shadow-h); border-color: var(--dor-accent); }
.dor-cat-card-img {
  display: block;
  width: 100%;
  height: 65%;
  min-height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--dor-primary);
}
.dor-cat-card-body {
  padding: 1.2rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.dor-cat-card-name {
  font-family: var(--dor-font-h);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--dor-primary);
  margin: 0;
}
.dor-cat-card-desc {
  font-size: .92rem;
  color: var(--dor-text-soft);
  line-height: 1.5;
  margin: 0;
}

/* =====================================================================
 * LATEST POSTS GRID
 * ===================================================================*/

.dor-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.dor-post-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--dor-radius-l);
  overflow: hidden;
  border: 1px solid var(--dor-line);
  text-decoration: none;
  color: var(--dor-text);
  transition: transform .25s, box-shadow .25s;
}
.dor-post-card:hover { transform: translateY(-3px); box-shadow: var(--dor-shadow-h); }
.dor-post-thumb {
  display: block;
  width: 100%; aspect-ratio: 16 / 9;
  background: var(--dor-surface);
  overflow: hidden;
}
.dor-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dor-post-body { padding: 1.2rem 1.3rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.dor-post-cat {
  font: 600 .75rem/1 var(--dor-font-b);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dor-accent-d);
}
.dor-post-title {
  font-family: var(--dor-font-h);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dor-primary);
  line-height: 1.25;
  margin: 0;
}
.dor-post-excerpt { font-size: .92rem; color: var(--dor-text-soft); line-height: 1.55; margin: 0; }
.dor-post-meta { font-size: .82rem; color: var(--dor-text-soft); margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--dor-line); }

@media (max-width: 980px) { .dor-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .dor-posts-grid { grid-template-columns: 1fr; } }

/* =====================================================================
 * CATEGORY PAGE — single-bottom (intro top, outro bottom if present)
 * Cat hero capped at 350px
 * ===================================================================*/

.dor-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
}
.dor-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.dor-cat-hero-overlay {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(33, 50, 91, 0.0) 25%, rgba(15, 25, 50, 0.78) 100%);
  padding: 0 1.5rem 1.6rem;
  max-width: var(--dor-container);
  margin: 0 auto;
}
.dor-cat-hero-overlay h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.dor-cat-intro {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dor-text);
}

/* =====================================================================
 * CONTACT page wrapper
 * ===================================================================*/

.c03-contact-form, .dor-contact-form {
  max-width: 760px;
  margin: 2rem auto;
  background: var(--dor-surface);
  border: 1px solid var(--dor-line);
  border-radius: var(--dor-radius-l);
  padding: 1.4rem;
  box-shadow: var(--dor-shadow);
}

/* Persona photo on a-propos */
.c03-persona-photo {
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1.6rem 0;
  border: 4px solid var(--dor-surface);
  box-shadow: var(--dor-shadow-h);
}

/* =====================================================================
 * FOOTER — kintsugi-columns (4 cols, light bg, golden separator)
 * ===================================================================*/

.dor-footer {
  background: #0f1729;
  color: #c8d0e0;
  padding: 4rem 0 1.5rem;
  position: relative;
}
.dor-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--dor-accent) 35%, var(--dor-accent) 65%, transparent 100%);
}
.dor-footer-inner {
  max-width: var(--dor-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.dor-footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 2.5rem;
}
.dor-footer-col h3, .dor-footer-title {
  font-family: var(--dor-font-h);
  font-weight: 600;
  color: #f4f5f8;
  font-size: 1.15rem;
  margin: 0 0 1rem;
}
.dor-footer-logo {
  display: block;
  width: 120px; height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.dor-footer-brand-pitch {
  color: #c8d0e0;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.dor-footer-brand-cta {
  display: inline-block;
  color: var(--dor-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .4rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s;
}
.dor-footer-brand-cta:hover { border-bottom-color: var(--dor-accent); color: var(--dor-accent); }
.dor-footer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.dor-footer-links a {
  color: #c8d0e0;
  text-decoration: none;
  font-size: .92rem;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.dor-footer-links a:hover { color: #fff; border-bottom-color: var(--dor-accent); }
.dor-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.4rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; color: #97a4af;
}
.dor-footer-social { display: flex; gap: .8rem; }
.dor-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #c8d0e0;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.dor-footer-social a:hover { background: var(--dor-accent); color: #042a25; }

@media (max-width: 980px) {
  .dor-footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .dor-footer-cols { grid-template-columns: 1fr; }
}

/* =====================================================================
 * Drawer CTA (hidden — no==no, no CTA forced)
 * ===================================================================*/

.dor-header-cta-desktop, .dor-drawer-cta { display: none; }
@media (max-width: 1023px) {
  [class*="-header"] [class*="-btn--cta"]:not([class*="-drawer-"]) { display: none !important; }
}

/* =====================================================================
 * ANIMATIONS — CTA / CTR / CTO
 * ===================================================================*/

@keyframes dor-cta-hero-center-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 201, 167, 0.45); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(0, 201, 167, 0); }
}
.dor-btn--cta { animation: dor-cta-hero-center-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .dor-btn--cta { animation: none; } }

@keyframes dor-ctr-map-pin-drop {
  0% { transform: translateY(-18px) scale(0.85); opacity: 0; }
  60% { transform: translateY(2px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes dor-ctr-map-pin-ping {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
.dor-ctr-pin { position: relative; display: inline-block; animation: dor-ctr-map-pin-drop 0.8s ease-out both; }
.dor-ctr-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: rgba(0, 201, 167, 0.55);
  animation: dor-ctr-map-pin-ping 1.6s ease-out infinite;
}

@keyframes dor-cto-rise {
  0% { transform: translateY(28px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes dor-cto-shine {
  0% { background-position: -200px 0; }
  100% { background-position: 220px 0; }
}
.dor-cto-box {
  border: 1px solid var(--dor-line);
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--dor-surface) 0%, #fff 50%, var(--dor-surface) 100%);
  background-size: 400px 100%;
  animation: dor-cto-rise 0.65s cubic-bezier(0.23, 1, 0.32, 1) both,
             dor-cto-shine 3.2s linear infinite;
}

/* =====================================================================
 * UTILITIES
 * ===================================================================*/

.dor-text-center { text-align: center; }
.dor-mt-3 { margin-top: 1.6rem; }
.dor-mb-3 { margin-bottom: 1.6rem; }
.dor-hidden { display: none !important; }

/* Body lock when drawer open */
body.dor-drawer-locked { overflow: hidden; }

/* =====================================================================
 * RESPONSIVE TWEAKS
 * ===================================================================*/

@media (max-width: 768px) {
  .dor-hero { min-height: 60vh; }
  .dor-hero-inner { padding: 3rem 1.2rem; }
  .dor-section { padding: 3rem 0; }
  .dor-editorial { padding: 3rem 0; }
  body { font-size: 16px; }
}


/* Site-specific styles */
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*="c03-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(--c03-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.
============================================================ */
.c03-media-press {
  padding: 2.5rem 0;
  background: var(--c03-bg-soft, var(--c03-color-surface, #f9fafb));
  margin: 2rem 0;
}
.c03-media-press > .c03-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.c03-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c03-color-text-soft, var(--c03-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.c03-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.c03-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%);
}
.c03-media-press-item:hover,
.c03-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.c03-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .c03-media-press { padding: 1.8rem 0; }
  .c03-media-press-grid { gap: 1.4rem; }
  .c03-media-press-item { max-width: 110px; min-height: 36px; }
  .c03-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) */
.c03-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);
}
.c03-media-press .c03-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;
}
.c03-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(--c03-muted, #666);
  flex: 0 0 auto;
}
.c03-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;
}
.c03-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;
}
.c03-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.c03-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;
}
.c03-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .c03-media-press .c03-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.c03-cat-hero--align-left .c03-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;
}
.c03-cat-hero--align-center .c03-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: 4px !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: 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; }
}
