/* ==========================================================================
   Château La Croix du Merle — Custom theme (child of Blocksy)
   Design system: Asiatique Tibétain Mantra (Marcellus / Karla)
   Palette: navy #204182 + bordeaux #dc2305 (palette concurrent France Tourisme)
   Anti-empreinte prefix: clm-* (mais classes legacy d68-* gardées pour compat)
   ========================================================================== */

:root {
  --d68-primary:      #204182;
  --d68-primary-dark: #1a345f;
  --d68-accent:       #dc2305;
  --d68-accent-dark:  #b81d04;
  --d68-text:         #3f3e3e;
  --d68-text-soft:    #63687a;
  --d68-bg:           #ffffff;
  --d68-surface:      #eceff7;
  --d68-surface-warm: #faf9f6;
  --d68-line:         #e5e5e5;
  --d68-line-soft:    #ebeef1;

  --d68-font-headings: "Marcellus", Georgia, serif;
  --d68-font-body:     "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --d68-radius:    10px;
  --d68-radius-lg: 16px;

  --d68-shadow-sm: 0 2px 8px rgba(32, 65, 130, 0.06);
  --d68-shadow:    0 6px 22px rgba(32, 65, 130, 0.10);
  --d68-shadow-lg: 0 18px 44px rgba(32, 65, 130, 0.18);

  --d68-container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.d68-body {
  margin: 0;
  font-family: var(--d68-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--d68-text);
  background: var(--d68-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--d68-primary); transition: color .2s; }
a:hover { color: var(--d68-accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--d68-font-headings);
  color: var(--d68-primary);
  margin: 0 0 .75em;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1em; }

main, .d68-main { padding-top: 0 !important; margin-top: 0 !important; }

.d68-container, .eea-container {
  max-width: var(--d68-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER — layout: logo-center-menu-split (Title Case brand, no transform)
   ========================================================================== */

.d68-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--d68-bg);
  border-bottom: 1px solid var(--d68-line);
  box-shadow: 0 1px 0 rgba(32,65,130,.04);
}

.d68-header-inner {
  max-width: var(--d68-container);
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Desktop: split menu autour du logo central */
@media (min-width: 1024px) {
  .d68-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 2rem;
    padding: 1rem 1.5rem;
    align-items: center;
  }
  .d68-nav-left   { justify-self: end; }
  .d68-nav-right  { justify-self: start; }
  .d68-brand      { justify-self: center; }
}

.d68-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--d68-primary);
  flex-shrink: 0;
}
.d68-brand-logo { width: auto; }
.d68-brand-name {
  font-family: var(--d68-font-headings);
  font-size: 1.32rem;
  line-height: 1.1;
  color: var(--d68-primary);
  /* Title Case casing — pas de text-transform (cf MD5 mod 3 = 1) */
  letter-spacing: 0;
  font-weight: 400;
}

/* Nav desktop (gauche et droite, split symétrique) */
.d68-nav-list,
.d68-nav-left ul,
.d68-nav-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.d68-nav-list a,
.d68-nav-left a,
.d68-nav-right a {
  color: var(--d68-text);
  text-decoration: none;
  font-weight: 600;
  font-size: .94rem;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.d68-nav-list a:hover,
.d68-nav-left a:hover,
.d68-nav-right a:hover {
  color: var(--d68-primary);
  border-bottom-color: var(--d68-accent);
}

/* Cache nav desktop sur mobile */
@media (max-width: 1023px) {
  .d68-nav-left, .d68-nav-right { display: none; }
}

/* Burger (mobile only) */
.d68-burger {
  display: none;
  align-items: center; justify-content: center;
  width: 46px; height: 40px;
  background: var(--d68-primary);
  border: 2px solid var(--d68-accent);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 8px 18px rgba(32, 65, 130, .18);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.d68-burger:hover,
.d68-burger:focus-visible {
  background: var(--d68-accent);
  border-color: var(--d68-primary);
  box-shadow: 0 10px 24px rgba(220, 35, 5, .24);
  transform: translateY(-1px);
  outline: none;
}
.d68-burger-bars {
  display: flex; flex-direction: column; gap: 4px;
  width: 22px; height: 16px;
}
.d68-burger-bars span {
  display: block; width: 100%; height: 2.5px;
  background: #ffffff; border-radius: 999px;
  transition: transform .25s, width .2s ease, background .2s ease;
}
.d68-burger-bars span:nth-child(2) {
  width: 76%;
  align-self: flex-end;
}

@media (max-width: 1023px) {
  .d68-burger {
    display: inline-flex !important;
    width: 46px !important; height: 40px !important;
    min-width: 46px !important; min-height: 40px !important;
  }
  .d68-burger-bars, .d68-burger > span {
    display: flex !important; flex-direction: column !important;
    gap: 4px !important; width: 24px !important; height: 16px !important;
  }
}
@media (min-width: 1024px) {
  .d68-burger { display: none !important; }
}

/* Drawer mobile — CACHÉ par défaut */
.d68-nav-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .d68-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 1.5rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(32, 65, 130, 0.3);
    animation: d68-drawer-in .3s ease;
  }
  .d68-nav-mobile-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column;
    flex: 1;
  }
  .d68-nav-mobile-list li {
    border-bottom: 1px solid var(--d68-line-soft);
  }
  .d68-nav-mobile-list a {
    display: block;
    padding: 1rem 0;
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
  }
  .d68-nav-mobile-list a:hover { color: var(--d68-accent); }
  .d68-nav-mobile-close {
    position: absolute; top: 1.1rem; right: 1.1rem;
    width: 38px; height: 38px;
    background: var(--d68-surface);
    border: 1.5px solid var(--d68-line);
    border-radius: 8px;
    color: var(--d68-primary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }
  .d68-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 25, 55, 0.55);
    z-index: 9998;
  }
  .d68-overlay.is-open { display: block; }
}
@keyframes d68-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* CTA drawer mobile (toujours en bas du drawer, si présent) */
.d68-drawer-cta {
  display: block !important;
  margin: 2rem 0 1rem !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--d68-accent) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
}
@media (min-width: 1024px) {
  .d68-drawer-cta { display: none !important; }
}

/* ==========================================================================
   HERO — style: magazine-cover
   ========================================================================== */

.d68-hero {
  position: relative;
  background: var(--d68-surface);
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: stretch;
}
.d68-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.d68-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--d68-container);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 3rem;
}
@media (max-width: 900px) {
  .d68-hero-inner { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .d68-hero { min-height: 70vh; }
}

/* Magazine cover style: bandeau cream à gauche avec titre, image à droite */
.d68-hero--magazine-cover .d68-hero-cover {
  background: #faf6ee;
  padding: 2.5rem;
  border-radius: var(--d68-radius-lg);
  box-shadow: var(--d68-shadow-lg);
  border-top: 6px solid var(--d68-accent);
  max-width: 580px;
}
.d68-hero-eyebrow {
  display: inline-block;
  font-family: var(--d68-font-body);
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--d68-accent);
  background: rgba(220, 35, 5, 0.08);
  padding: .35rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.d68-hero-title {
  font-family: var(--d68-font-headings);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: var(--d68-primary);
  margin: 0 0 1rem;
  font-weight: 400;
}
.d68-hero-subtitle {
  font-size: 1.1rem;
  color: var(--d68-text);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.d68-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: .92rem;
  color: var(--d68-text-soft);
  padding-top: 1rem;
  border-top: 1px solid var(--d68-line);
}
.d68-hero-meta strong { color: var(--d68-primary); font-weight: 600; }

/* ==========================================================================
   EDITORIAL BLOCK (intro SEO sous hero, 400-700 mots)
   ========================================================================== */

.d68-editorial {
  padding: 5rem 0 4rem;
  background: var(--d68-bg);
}
.d68-editorial-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.d68-editorial h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: .6rem;
}
.d68-editorial h2::after {
  content: ""; display: block; width: 64px; height: 3px;
  background: var(--d68-accent); margin-top: .8rem;
}
.d68-editorial h3 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
}
.d68-editorial p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--d68-text);
}
.d68-editorial-pillbox {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--d68-surface);
  border-left: 4px solid var(--d68-accent);
  border-radius: 0 var(--d68-radius) var(--d68-radius) 0;
}
.d68-editorial-pillbox h3 { margin-top: 0; color: var(--d68-primary); }
.d68-editorial-pillbox p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CATEGORIES — grid cartes
   ========================================================================== */

.d68-section { padding: 4rem 0; }
.d68-section-alt { background: var(--d68-surface-warm); }

.d68-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.d68-section-title h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  margin: 0 0 .5rem;
}
.d68-section-title p {
  color: var(--d68-text-soft);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.d68-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--d68-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 1024px) { .d68-categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .d68-categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .d68-categories-grid { grid-template-columns: 1fr; } }

.d68-cat-card {
  position: relative;
  background: var(--d68-bg);
  border: 1px solid var(--d68-line);
  border-radius: var(--d68-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--d68-text);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-shadow: var(--d68-shadow-sm);
}
.d68-cat-card-img {
  display: block;
  width: 100%;
  height: 65%;
  min-height: 175px;
  background-size: cover;
  background-position: center;
  background-color: var(--d68-primary);
  position: relative;
}
.d68-cat-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(32, 65, 130, 0.55) 100%);
}
.d68-cat-card-body {
  padding: 1.1rem 1.25rem 1.5rem;
  flex: 1;
}
.d68-cat-card-name {
  font-family: var(--d68-font-headings);
  font-size: 1.25rem;
  color: var(--d68-primary);
  margin: 0 0 .35rem;
  font-weight: 400;
}
.d68-cat-card-arrow {
  margin-top: .8rem;
  display: inline-block;
  color: var(--d68-accent);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
}

/* ==========================================================================
   ARTICLES — cards
   ========================================================================== */

.d68-cat-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--d68-line-soft);
}
.d68-cat-section:nth-child(odd) { background: var(--d68-surface-warm); }
.d68-cat-section-header {
  max-width: var(--d68-container);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.d68-cat-section-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}
.d68-cat-section-header h2 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}
.d68-cat-section-header h2 a:hover { border-bottom-color: var(--d68-accent); }
.d68-cat-section-link {
  color: var(--d68-accent);
  font-weight: 700;
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .03em;
}
.d68-cat-section-link:hover { text-decoration: underline; }

.d68-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--d68-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.d68-article-card {
  background: #fff;
  border: 1px solid var(--d68-line);
  border-radius: var(--d68-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--d68-text);
  box-shadow: var(--d68-shadow-sm);
}
.d68-article-card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--d68-surface);
  background-size: cover;
  background-position: center;
  display: block;
}
.d68-article-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.d68-article-card-title {
  font-family: var(--d68-font-headings);
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--d68-primary);
  margin: 0 0 .6rem;
  font-weight: 400;
}
.d68-article-card-date {
  font-size: .82rem;
  color: var(--d68-text-soft);
  margin-top: auto;
  letter-spacing: .03em;
}
.d68-article-card-cat-empty {
  font-size: .96rem;
  color: var(--d68-text-soft);
  padding: 1.5rem;
  text-align: center;
  background: var(--d68-surface-warm);
  border: 1px dashed var(--d68-line);
  border-radius: var(--d68-radius);
}
.d68-article-card-cat-empty a {
  color: var(--d68-primary);
  font-weight: 600;
}

/* ==========================================================================
   CATEGORY PAGE — sandwich layout (cat-hero + intro + grid + outro?)
   ========================================================================== */

.d68-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--d68-primary);
}
.d68-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.d68-cat-hero .eea-container,
.d68-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--d68-container);
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
}
.d68-cat-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}
.d68-cat-intro {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.d68-cat-intro p { color: var(--d68-text); }

/* ==========================================================================
   FOOTER (4 colonnes, fond clair — contraste WCAG AA)
   ========================================================================== */

.d68-footer {
  background: var(--d68-surface-warm);
  padding: 4rem 0 0;
  border-top: 1px solid var(--d68-line);
  color: #1a1a1a;
}
.d68-footer-inner {
  max-width: var(--d68-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 980px) { .d68-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .d68-footer-inner { grid-template-columns: 1fr; } }

.d68-footer-col h3 {
  font-family: var(--d68-font-headings);
  font-size: 1.05rem;
  color: var(--d68-primary);
  margin: 0 0 1rem;
  font-weight: 400;
  letter-spacing: .02em;
  border-bottom: 2px solid var(--d68-accent);
  padding-bottom: .5rem;
  display: inline-block;
}
.d68-footer-col p,
.d68-footer-col li {
  color: #1a1a1a;
  font-size: .94rem;
  line-height: 1.55;
}
.d68-footer-logo { margin-bottom: 1rem; max-width: 140px; height: auto; }
.d68-footer-brand-pitch {
  margin: 0 0 1rem;
  color: #1a1a1a;
  font-size: .92rem;
  line-height: 1.6;
}
.d68-footer-brand-cta {
  display: inline-block;
  color: var(--d68-accent);
  font-weight: 700;
  text-decoration: none;
  margin-top: .5rem;
  font-size: .94rem;
  border-bottom: 1.5px solid var(--d68-accent);
  padding-bottom: 2px;
}
.d68-footer-brand-cta:hover { color: var(--d68-accent-dark); border-bottom-color: var(--d68-accent-dark); }

.d68-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.d68-footer-links li { margin-bottom: .55rem; }
.d68-footer-links a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(32, 65, 130, 0.3);
  font-size: .92rem;
}
.d68-footer-links a:hover {
  color: var(--d68-primary);
  text-decoration-color: var(--d68-accent);
}

.d68-footer-social {
  display: flex;
  gap: .6rem;
  margin-top: .9rem;
}
.d68-footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--d68-primary);
  color: #fff;
  transition: background .25s;
}
.d68-footer-social a:hover { background: var(--d68-accent); }
.d68-footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.d68-footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--d68-line);
  text-align: center;
  font-size: .85rem;
  color: var(--d68-text-soft);
  background: rgba(32, 65, 130, 0.02);
}

/* ==========================================================================
   ANIMATIONS — CTA magnetic_button / CTR progress_scroll_bar / CTO calendar
   ========================================================================== */

@keyframes d68-magnetic-pulse {
  0%   { transform: translate3d(0,0,0) scale(1);     box-shadow: 0 6px 18px rgba(32, 65, 130, .25); }
  50%  { transform: translate3d(0,-2px,0) scale(1.02); box-shadow: 0 12px 28px rgba(220, 35, 5, .32); }
  100% { transform: translate3d(0,0,0) scale(1);     box-shadow: 0 6px 18px rgba(32, 65, 130, .25); }
}

.d68-btn--cta {
  position: relative;
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--d68-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .25s cubic-bezier(.2,.85,.4,1.275), box-shadow .25s ease;
  will-change: transform;
}
.d68-btn--cta::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(220, 35, 5, .35), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.d68-btn--cta:hover { animation: d68-magnetic-pulse 1.4s ease-in-out infinite; }
.d68-btn--cta:hover::before { opacity: 1; }

/* Scroll progress bar (CTR) */
.d68-scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: transparent;
  z-index: 9999; pointer-events: none;
}
.d68-scroll-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--d68-primary) 0%, var(--d68-accent) 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .15s linear;
  will-change: transform;
  box-shadow: 0 0 12px rgba(220, 35, 5, .5);
}

/* Calendar booking embed (CTO) */
@keyframes d68-calendar-slide {
  0%   { opacity: 0; transform: translateY(20px) scale(.96); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}
.d68-cto-calendar {
  background: #fff;
  border: 1.5px solid var(--d68-line);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 14px 40px rgba(32, 65, 130, .12);
  animation: d68-calendar-slide .5s cubic-bezier(.2,.8,.3,1.1) both;
  max-width: 520px;
  margin: 1.5rem auto;
}

/* ==========================================================================
   MOUSE EFFECT — card_hover_soft_tilt (CSS portion)
   ========================================================================== */

.d68-card, .d68-cat-card, .d68-article-card {
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.85,.4,1.1), box-shadow .35s ease;
  will-change: transform;
}
.d68-card:hover, .d68-cat-card:hover, .d68-article-card:hover {
  box-shadow: var(--d68-shadow-lg);
}
@media (hover: none) {
  .d68-card:hover, .d68-cat-card:hover, .d68-article-card:hover { transform: none; }
}

/* ==========================================================================
   PERSONA & CONTACT
   ========================================================================== */

.d68-persona-photo {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
  width: 220px;
  border-radius: var(--d68-radius);
  box-shadow: var(--d68-shadow);
}
@media (max-width: 640px) {
  .d68-persona-photo {
    float: none;
    margin: 0 auto 1.5rem;
    width: 75%;
    display: block;
  }
}

.d68-contact-form {
  margin: 2.5rem 0;
  background: #fff;
  border-radius: var(--d68-radius);
  padding: .5rem;
  box-shadow: var(--d68-shadow);
}

/* ==========================================================================
   TOOLS PAGE
   ========================================================================== */

.d68-tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.d68-tool-page h1 {
  text-align: center;
  margin-bottom: 1rem;
}
.d68-tool-intro {
  text-align: center;
  color: var(--d68-text-soft);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   ARTICLE (single)
   ========================================================================== */

.d68-article {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}
.d68-article h1 { margin-bottom: 1.5rem; }
.d68-article-meta {
  color: var(--d68-text-soft);
  font-size: .92rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--d68-line);
}
.d68-article-content { font-size: 1.08rem; line-height: 1.75; }
.d68-article-content h2 { margin: 2rem 0 1rem; font-size: 1.6rem; }
.d68-article-content h3 { margin: 1.6rem 0 .7rem; font-size: 1.3rem; }
.d68-article-content blockquote {
  border-left: 4px solid var(--d68-accent);
  background: var(--d68-surface);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--d68-primary);
  border-radius: 0 var(--d68-radius) var(--d68-radius) 0;
}

/* ==========================================================================
   RESPONSIVE / ACCESSIBILITY
   ========================================================================== */

@media (max-width: 760px) {
  .d68-header-inner { padding: .75rem 1.2rem; }
  .d68-brand-name { font-size: 1.05rem; }
  .d68-section { padding: 3rem 0; }
  .d68-cat-section { padding: 2.5rem 0; }
  .d68-editorial { padding: 3rem 0 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(220, 35, 5, 0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; word-wrap: normal !important;
}


/* Custom site CSS */
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*="d68-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(--d68-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.
============================================================ */
.d68-media-press {
  padding: 2.5rem 0;
  background: var(--d68-bg-soft, var(--d68-color-surface, #f9fafb));
  margin: 2rem 0;
}
.d68-media-press > .d68-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.d68-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d68-color-text-soft, var(--d68-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.d68-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.d68-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%);
}
.d68-media-press-item:hover,
.d68-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.d68-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .d68-media-press { padding: 1.8rem 0; }
  .d68-media-press-grid { gap: 1.4rem; }
  .d68-media-press-item { max-width: 110px; min-height: 36px; }
  .d68-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) */
.d68-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);
}
.d68-media-press .d68-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;
}
.d68-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(--d68-muted, #666);
  flex: 0 0 auto;
}
.d68-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;
}
.d68-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;
}
.d68-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.d68-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;
}
.d68-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .d68-media-press .d68-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.d68-cat-hero--align-left .d68-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;
}
.d68-cat-hero--align-center .d68-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: 12px !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; }
}


/* Mouse effect : card_hover_soft_tilt */
.d68-card,.d68-cat-card,.d68-article-card{transform-style:preserve-3d;transition:transform .35s cubic-bezier(.2,.85,.4,1.1),box-shadow .35s ease;will-change:transform}.d68-card:hover,.d68-cat-card:hover,.d68-article-card:hover{box-shadow:0 18px 44px rgba(32,65,130,.18)}@media (hover:none){.d68-card:hover,.d68-cat-card:hover,.d68-article-card:hover{transform:none}}
