/* =========================================================================
   rey immobilier — webzine indépendant de l'immobilier français
   Design System : Insurance Trust Blue (DM Serif Display + DM Sans)
   Palette      : from competitor pretto.fr (teal green #006855 + orange #FF784E)
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --rey-primary:    #006855;
  --rey-primary-h:  #015445;
  --rey-accent:     #FF784E;
  --rey-accent-h:   #E96637;
  --rey-text:       #0A1B2E;
  --rey-text-soft:  #536378;
  --rey-bg:         #FFFFFF;
  --rey-surface:    #FAF7F2;
  --rey-line:       #E1DBD1;
  --rey-line-soft:  #F0EBE0;

  --rey-font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --rey-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --rey-radius-sm: 6px;
  --rey-radius-md: 10px;
  --rey-radius-lg: 14px;

  --rey-shadow-sm: 0 4px 12px rgba(10, 27, 46, 0.06);
  --rey-shadow-md: 0 8px 24px rgba(10, 27, 46, 0.10);
  --rey-shadow-lg: 0 20px 48px rgba(10, 27, 46, 0.14);

  --rey-container: 1240px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.dd2-body {
  margin: 0;
  font-family: var(--rey-font-body);
  color: var(--rey-text);
  background: var(--rey-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rey-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rey-accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--rey-font-heading);
  color: var(--rey-text);
  line-height: 1.2;
  margin: 0 0 .8rem;
  font-weight: 400;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

p { margin: 0 0 1.1rem; }

.rey-container, .dd2-container {
  max-width: var(--rey-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main, .rey-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- 3. Buttons ---------- */
.rey-btn, .dd2-btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: var(--rey-radius-sm);
  font-family: var(--rey-font-body);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1.2;
}

.rey-btn--primary, .dd2-btn--primary {
  background: var(--rey-primary);
  color: #ffffff !important;
}
.rey-btn--primary:hover { background: var(--rey-primary-h); transform: translateY(-1px); }

.rey-btn--cta, .dd2-btn--cta {
  background: var(--rey-accent);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(255,120,78,0.28);
}
.rey-btn--cta:hover, .dd2-btn--cta:hover {
  background: var(--rey-accent-h);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255,120,78,0.4);
}

.rey-btn--ghost {
  background: transparent;
  color: var(--rey-text) !important;
  border: 1px solid var(--rey-line);
}
.rey-btn--ghost:hover { border-color: var(--rey-primary); color: var(--rey-primary) !important; }

/* ---------- 4. Header ---------- */
.rey-header, .dd2-header {
  position: sticky; top: 0;
  z-index: 200;
  background: var(--rey-bg);
  border-bottom: 1px solid var(--rey-line);
  backdrop-filter: saturate(1.1);
}

.rey-header-top {
  background: var(--rey-primary);
  color: #FFFFFF;
  font-size: .82rem;
  padding: .38rem 0;
  text-align: center;
  letter-spacing: .02em;
}
.rey-header-top .rey-header-tagline { opacity: .92; }

.rey-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  max-width: var(--rey-container);
  margin: 0 auto;
  position: relative;
}

.rey-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--rey-text);
  order: 2;
}

.rey-brand-logo {
  display: block;
  width: auto;
}

.rey-brand-name {
  font-family: var(--rey-font-heading);
  font-size: 1.55rem;
  color: var(--rey-text);
  text-transform: lowercase;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1;
}

/* Navigation desktop (logo-center-menu-split) */
.rey-nav-desktop { display: none; }
.rey-nav-desktop-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.rey-nav-desktop-list a {
  color: var(--rey-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .35rem .1rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.rey-nav-desktop-list a:hover {
  color: var(--rey-primary);
  border-bottom-color: var(--rey-accent);
}
.rey-nav-desktop-list li.current-menu-item > a,
.rey-nav-desktop-list li.current-cat > a {
  color: var(--rey-primary);
  border-bottom-color: var(--rey-primary);
}

/* Split menu — left and right of the centered logo */
.rey-nav-split { display: none; }
.rey-nav-split-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.rey-nav-split-list a {
  color: var(--rey-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .35rem .1rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.rey-nav-split-list a:hover {
  color: var(--rey-primary);
  border-bottom-color: var(--rey-accent);
}
.rey-nav-split--left  { justify-content: flex-end; order: 1; }
.rey-nav-split--right { justify-content: flex-start; order: 3; }

/* Burger button (mobile only) */
.rey-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid var(--rey-line);
  background: var(--rey-bg);
  color: var(--rey-text);
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  order: 3;
}
.rey-burger:hover { background: var(--rey-surface); border-color: var(--rey-primary); }
.rey-burger svg { width: 22px; height: 22px; }

/* Nav mobile drawer — HIDDEN by default (rule 9.bis) */
.rey-nav-mobile { display: none; }

@media (max-width: 1023px) {
  .rey-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(0,0,0,0.28);
    animation: rey-drawer-in .28s ease-out;
  }
  .rey-nav-mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 27, 46, 0.5);
    z-index: 9998;
    display: none;
  }
  .rey-nav-mobile-overlay.is-open { display: block; }
  .rey-nav-mobile-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 42px; height: 42px;
    border-radius: 8px;
    border: 1px solid var(--rey-line);
    background: #FFFFFF;
    color: var(--rey-text);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .rey-nav-mobile-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column;
  }
  .rey-nav-mobile-list li {
    border-bottom: 1px solid var(--rey-line);
  }
  .rey-nav-mobile-list a {
    display: block;
    padding: 1rem .2rem;
    color: #0A1B2E;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
  }
  .rey-nav-mobile-list a:hover { color: var(--rey-primary); }
}

@keyframes rey-drawer-in {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Drawer CTA (bottom of mobile drawer) */
.rey-drawer-cta {
  display: block !important;
  margin: 2rem 0 0 !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--rey-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) {
  .rey-drawer-cta { display: none !important; }
  .rey-burger     { display: none !important; }
  .rey-nav-split  { display: flex; flex: 1; }
  .rey-nav-desktop { display: flex; flex: 1; justify-content: center; margin: 0 1.5rem; }
  .rey-header-inner { justify-content: space-between; }
}

/* ---------- 5. Hero (zoom-on-scroll) ---------- */
.rey-hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: var(--rey-surface);
  margin: 0;
}

.rey-hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.rey-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.4s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.rey-hero.is-visible .rey-hero-bg { transform: scale(1.08); }

.rey-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--rey-container);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  min-height: 76vh;
}

.rey-hero-main {
  background: rgba(255,255,255,0.94);
  padding: 2.5rem 2rem;
  border-radius: var(--rey-radius-lg);
  box-shadow: var(--rey-shadow-md);
  border-left: 4px solid var(--rey-accent);
}

.rey-hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rey-primary);
  margin-bottom: .9rem;
}

.rey-hero-title {
  font-family: var(--rey-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--rey-text);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.rey-hero-subtitle {
  font-size: 1.1rem;
  color: var(--rey-text-soft);
  margin: 0 0 1.6rem;
  line-height: 1.55;
  max-width: 55ch;
}

.rey-hero-ctas {
  display: flex; gap: .8rem; flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .rey-hero--has-latest .rey-hero-inner {
    grid-template-columns: 1.35fr 1fr;
    gap: 3rem;
  }
}

/* Aside : latest articles preview */
.rey-hero-latest {
  background: rgba(255,255,255,0.96);
  padding: 1.5rem 1.4rem;
  border-radius: var(--rey-radius-lg);
  box-shadow: var(--rey-shadow-md);
}

.rey-hero-latest--slider {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding: 1rem;
}
.rey-hero-latest--slider .rey-hero-latest-item {
  min-width: 240px; max-width: 240px;
  grid-template-columns: 1fr;
  scroll-snap-align: start;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: var(--rey-radius-md);
  border: 1px solid var(--rey-line);
}
.rey-hero-latest--slider .rey-hero-latest-thumb {
  width: 100%; height: 130px;
}

.rey-hero-latest-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: .55rem;
  border-radius: var(--rey-radius-md);
  transition: background .2s, transform .2s;
}
.rey-hero-latest-item:hover {
  background: var(--rey-surface);
  transform: translateY(-2px);
}

.rey-hero-latest-thumb {
  display: block; width: 96px; height: 72px;
  overflow: hidden; border-radius: var(--rey-radius-sm);
}
.rey-hero-latest-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.rey-hero-latest-body { display: flex; flex-direction: column; padding: .4rem .6rem .6rem; }

.rey-hero-latest-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--rey-font-heading);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: .35rem;
  color: var(--rey-text);
}

.rey-hero-latest-date {
  font-size: .78rem;
  color: var(--rey-text-soft);
}

.rey-hero-latest-placeholder {
  padding: 1.5rem;
  background: rgba(0,0,0,0.03);
  border-radius: var(--rey-radius-md);
  text-align: center;
}
.rey-hero-latest-placeholder-title {
  font-family: var(--rey-font-heading);
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  color: var(--rey-text);
}
.rey-hero-latest-placeholder-desc {
  font-size: .93rem;
  margin: 0 0 1rem;
  color: var(--rey-text-soft);
  line-height: 1.5;
}
.rey-hero-latest-placeholder-links {
  display: flex; flex-direction: column; gap: .5rem;
}
.rey-hero-latest-placeholder-link {
  padding: .55rem 1rem;
  background: var(--rey-primary);
  color: #FFFFFF !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
}
.rey-hero-latest-placeholder-link:hover { background: var(--rey-primary-h); }

/* ---------- 6. Categories grid (Rubriques) ---------- */
.rey-categories {
  padding: 4.5rem 0;
  background: var(--rey-bg);
}

.rey-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.rey-section-eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--rey-accent);
  margin-bottom: .8rem;
}
.rey-section-title {
  font-family: var(--rey-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  color: var(--rey-text);
  margin: 0 0 .8rem;
}
.rey-section-lead {
  color: var(--rey-text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}

.rey-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: var(--rey-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rey-cat-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--rey-radius-md);
  text-decoration: none;
  color: var(--rey-text);
  background: var(--rey-surface);
  border: 1px solid var(--rey-line);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  min-height: 260px;
}
.rey-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rey-shadow-lg);
  border-color: var(--rey-primary);
}

.rey-cat-card-img {
  display: block;
  width: 100%;
  height: 70%;
  background-size: cover;
  background-position: center;
  background-color: var(--rey-primary);
}

.rey-cat-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  background: #FFFFFF;
}

.rey-cat-card-name {
  font-family: var(--rey-font-heading);
  font-size: 1.35rem;
  color: var(--rey-text);
  margin: 0 0 .25rem;
}
.rey-cat-card-count {
  font-size: .82rem;
  color: var(--rey-text-soft);
}

/* ---------- 7. Latest articles grid ---------- */
.rey-latest {
  padding: 4.5rem 0;
  background: var(--rey-surface);
}

.rey-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: var(--rey-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 900px) { .rey-latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rey-latest-grid { grid-template-columns: 1fr; } }

.rey-card {
  background: #FFFFFF;
  border: 1px solid var(--rey-line);
  border-radius: var(--rey-radius-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.rey-card:hover { transform: translateY(-4px); box-shadow: var(--rey-shadow-md); }

.rey-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rey-surface);
}
.rey-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.rey-card:hover .rey-card-thumb img { transform: scale(1.05); }

.rey-card-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }

.rey-card-cat {
  display: inline-block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--rey-accent);
  margin-bottom: .55rem;
  text-decoration: none;
}
.rey-card-cat:hover { color: var(--rey-accent-h); }

.rey-card-title {
  font-family: var(--rey-font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--rey-text);
  margin: 0 0 .55rem;
}
.rey-card-title a { color: inherit; text-decoration: none; }
.rey-card-title a:hover { color: var(--rey-primary); }

.rey-card-excerpt {
  color: var(--rey-text-soft);
  font-size: .94rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rey-card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--rey-text-soft);
  border-top: 1px solid var(--rey-line);
  padding-top: .7rem;
}

.rey-card-readmore {
  font-weight: 600;
  color: var(--rey-primary);
  text-decoration: none;
}
.rey-card-readmore:hover { color: var(--rey-accent); }

/* ---------- 8. Home intro section (H2 + H3, 3+ internal links) ---------- */
.rey-home-intro {
  padding: 4.5rem 0;
  background: var(--rey-bg);
}
.rey-home-intro-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rey-home-intro-title {
  font-family: var(--rey-font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--rey-text);
  margin: 0 0 1.2rem;
  text-align: center;
}
.rey-home-intro-lead {
  color: var(--rey-text);
  font-size: 1.06rem;
  line-height: 1.65;
  margin: 0 0 1.8rem;
}
.rey-home-intro-h3 {
  font-family: var(--rey-font-heading);
  font-size: 1.4rem;
  color: var(--rey-primary);
  margin: 0 0 .9rem;
}
.rey-home-intro-body {
  color: var(--rey-text);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}
.rey-home-intro a {
  color: var(--rey-primary);
  border-bottom: 1px solid var(--rey-accent);
  text-decoration: none;
}
.rey-home-intro a:hover { color: var(--rey-accent); border-bottom-color: var(--rey-accent); }

/* ---------- 9. Home "About" (persona teaser) ---------- */
.rey-home-about {
  background: var(--rey-surface);
  padding: 4rem 1rem;
  margin: 0;
}
.rey-home-about-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
.rey-home-about-media {
  display: flex; justify-content: center;
}
.rey-home-about-media img {
  width: 160px; height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  border: 3px solid #FFFFFF;
}
.rey-home-about-eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--rey-accent);
  margin-bottom: .55rem;
}
.rey-home-about-title {
  font-family: var(--rey-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #1a1a1a;
  margin: 0 0 1rem;
}
.rey-home-about-bio {
  color: rgba(0,0,0,0.72);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 1.3rem;
}
.rey-home-about-cta {
  display: inline-block;
  color: var(--rey-primary);
  font-weight: 600;
  text-decoration: none;
  padding: .55rem 0;
  border-bottom: 2px solid var(--rey-accent);
  transition: color .2s;
}
.rey-home-about-cta:hover { color: var(--rey-accent); }

@media (min-width: 768px) {
  .rey-home-about-inner {
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    text-align: left;
  }
  .rey-home-about-media img { width: 220px; height: 220px; }
}

/* ---------- 10. Footer ---------- */
.rey-footer, .dd2-footer {
  background: #FFFFFF;
  border-top: 4px solid var(--rey-primary);
  padding: 3.5rem 0 1.5rem;
  color: #1a1a1a;
}

.rey-footer-inner {
  max-width: var(--rey-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rey-footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px)  { .rey-footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rey-footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.rey-footer-col h3, .rey-footer-col h4 {
  font-family: var(--rey-font-heading);
  font-size: 1.15rem;
  color: #1a1a1a;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--rey-accent);
  display: inline-block;
}

.rey-footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.rey-footer-col li { margin-bottom: .5rem; }
.rey-footer-col a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: .96rem;
}
.rey-footer-col a:hover {
  color: var(--rey-primary);
  text-decoration: underline;
}

.rey-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
}

.rey-footer-brand-pitch {
  color: #4b5563;
  font-size: .96rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}

.rey-footer-brand-cta {
  display: inline-block;
  color: var(--rey-primary);
  font-weight: 600;
  text-decoration: none;
  padding: .5rem 1rem;
  border: 2px solid var(--rey-primary);
  border-radius: var(--rey-radius-sm);
  transition: background .2s, color .2s;
}
.rey-footer-brand-cta:hover {
  background: var(--rey-primary);
  color: #FFFFFF !important;
}

.rey-footer-bottom {
  border-top: 1px solid var(--rey-line);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #6b7280;
  font-size: .88rem;
}

.rey-footer-social {
  display: flex; gap: .8rem; align-items: center;
}
.rey-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--rey-surface);
  color: var(--rey-primary);
  border: 1px solid var(--rey-line);
  transition: background .2s, color .2s, border-color .2s;
}
.rey-footer-social a:hover {
  background: var(--rey-primary);
  color: #FFFFFF;
  border-color: var(--rey-primary);
}

/* Footer search widget */
.dd2-footer-search { margin-top: 1.2rem; }
.dd2-footer-search-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rey-line);
  border-radius: var(--rey-radius-sm);
  overflow: hidden;
  background: #FFFFFF;
}
.dd2-footer-search-field {
  flex: 1;
  border: none;
  padding: .55rem .8rem;
  font-family: var(--rey-font-body);
  font-size: .95rem;
  color: var(--rey-text);
  background: transparent;
  outline: none;
}
.dd2-footer-search-btn {
  border: none;
  background: var(--rey-primary);
  color: #FFFFFF;
  padding: 0 .9rem;
  cursor: pointer;
  display: inline-flex; align-items: center;
}
.dd2-footer-search-btn:hover { background: var(--rey-primary-h); }

/* ---------- 11. Category page ---------- */
.rey-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--rey-primary);
}
.rey-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.rey-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--rey-container);
  margin: 0 auto;
  padding: 2rem 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%);
}
.rey-cat-hero-title {
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.rey-cat-body {
  padding: 3rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.rey-cat-intro {
  padding: 0 1.5rem 3rem;
  color: var(--rey-text);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---------- 12. Single article ---------- */
.rey-single {
  padding: 3rem 0;
}
.rey-single-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rey-single h1 {
  font-family: var(--rey-font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1.2rem;
}
.rey-single-meta {
  font-size: .88rem;
  color: var(--rey-text-soft);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rey-line);
}
.rey-single-content p { font-size: 1.05rem; line-height: 1.75; }
.rey-single-content h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.rey-single-content h3 { font-size: 1.35rem; margin-top: 1.8rem; }
.rey-single-content blockquote {
  border-left: 4px solid var(--rey-accent);
  padding: 1rem 1.5rem;
  background: var(--rey-surface);
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--rey-text);
}

/* ---------- 13. Contact form wrapper (rule imposed) ---------- */
.dd2-contact-form {
  max-width: 780px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--rey-surface);
  border-radius: var(--rey-radius-lg);
  border: 1px solid var(--rey-line);
}

/* ---------- 14. Persona photo (about page — required class) ---------- */
.dd2-persona-photo {
  display: block;
  width: 200px; height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 2rem;
  box-shadow: var(--rey-shadow-md);
  border: 3px solid #FFFFFF;
}

/* ---------- 15. Announcement bar (CTR) ---------- */
.dd2-announcement {
  background: var(--rey-primary);
  color: #FFFFFF;
  padding: .55rem 1.2rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
}
.dd2-announcement a { color: #FFFFFF; text-decoration: underline; }

/* ---------- 16. CTO lead-magnet box ---------- */
.dd2-cto-box {
  max-width: 640px;
  margin: 2.5rem auto;
}

/* ---------- 17. Animation keyframes (CTA / CTR / CTO) ---------- */
@keyframes dd2-cta-call-button-mobile {
  0%,100% { transform: translateY(0); box-shadow: 0 6px 18px rgba(255,120,78,0.28); }
  50%     { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,120,78,0.45); }
}
.dd2-btn--cta {
  animation: dd2-cta-call-button-mobile 2.2s ease-in-out infinite;
  will-change: transform, box-shadow;
}

@keyframes dd2-ctr-announcement-slide {
  0%   { transform: translateY(-8px); opacity: 0; }
  12%  { transform: translateY(0);    opacity: 1; }
  88%  { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(-8px); opacity: 0; }
}

@keyframes dd2-cto-lead-magnet-pulse {
  0%,100% { box-shadow: 0 12px 28px rgba(0,104,85,0.15); }
  50%     { box-shadow: 0 18px 44px rgba(255,120,78,0.28); }
}

@media (prefers-reduced-motion: reduce) {
  .dd2-btn--cta, .dd2-announcement, .dd2-cto-box { animation: none !important; }
  .rey-hero-bg { transition: none !important; }
}

/* ---------- 18. Mouse effect (cursor_disable_on_mobile) ---------- */
.rey-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,120,78,0.55) 0%, rgba(255,120,78,0) 70%);
  pointer-events: none;
  z-index: 99998;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .18s ease;
  mix-blend-mode: multiply;
  opacity: 0;
  will-change: transform;
}
.rey-cursor-dot.is-active { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .rey-cursor-dot { display: none !important; }
}

/* ---------- 19. Utilities ---------- */
.rey-eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--rey-accent);
  margin-bottom: .6rem;
  display: inline-block;
}

/* Focus visible pour l'accessibilité */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--rey-accent);
  outline-offset: 2px;
  border-radius: 2px;
}


/* 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*="dd2-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(--dd2-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.
============================================================ */
.dd2-media-press {
  padding: 2.5rem 0;
  background: var(--dd2-bg-soft, var(--dd2-color-surface, #f9fafb));
  margin: 2rem 0;
}
.dd2-media-press > .dd2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.dd2-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dd2-color-text-soft, var(--dd2-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.dd2-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.dd2-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%);
}
.dd2-media-press-item:hover,
.dd2-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.dd2-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .dd2-media-press { padding: 1.8rem 0; }
  .dd2-media-press-grid { gap: 1.4rem; }
  .dd2-media-press-item { max-width: 110px; min-height: 36px; }
  .dd2-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) */
.dd2-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);
}
.dd2-media-press .dd2-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;
}
.dd2-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(--dd2-muted, #666);
  flex: 0 0 auto;
}
.dd2-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;
}
.dd2-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;
}
.dd2-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.dd2-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;
}
.dd2-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .dd2-media-press .dd2-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.dd2-cat-hero--align-left .dd2-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;
}
.dd2-cat-hero--align-center .dd2-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: 6px !important; padding: 8px !important;
     
  }
  [class*="-burger"] > span, [class*="-burger-bars"] {
    gap: 5px !important; width: 24px !important; height: 16px !important;
    align-items: flex-start !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: 14px !important; }
  [class*="-burger-bars"] > *:nth-child(2), [class*="-burger"] > span > *:nth-child(2) { width: 20px !important; }
  [class*="-burger-bars"] > *:nth-child(3), [class*="-burger"] > span > *:nth-child(3) { width: 24px !important; }
}


/* Mouse effect : cursor_disable_on_mobile */
.rey-cursor-dot { position: fixed; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, rgba(255,120,78,0.55) 0%, rgba(255,120,78,0) 70%); pointer-events: none; z-index: 99998; transform: translate3d(-50%, -50%, 0); transition: opacity .18s ease; mix-blend-mode: multiply; opacity: 0; will-change: transform; } .rey-cursor-dot.is-active { opacity: 1; } @media (hover: none), (pointer: coarse) { .rey-cursor-dot { display: none !important; } }


/* rp-contrast-autofix-2026-07-31 */
/* AUTO-FIX contraste WCAG AA (validator_contrast.py) */
/* FOOTER : fond blanc + texte sombre partout */
.dd2-footer { background: #ffffff !important; color: #1a1a1a !important; border-top: 1px solid rgba(0,0,0,0.08) !important; }
.dd2-footer a { color: #1a1a1a !important; }
.dd2-footer a:hover { color: var(--dd2-accent, #333) !important; }
.dd2-footer-col h3,
.dd2-footer-col h4 { color: #1a1a1a !important; border-bottom: 1px solid rgba(0,0,0,0.12) !important; }
.dd2-footer-brand-pitch,
.dd2-brand-tagline { color: #4b5563 !important; }
.dd2-footer-bottom,
.dd2-copyright { border-top: 1px solid rgba(0,0,0,0.08) !important; color: #6b7280 !important; }
.dd2-footer-brand-cta { background: var(--dd2-accent, #1a1a1a) !important; color: #ffffff !important; }
.dd2-footer-brand-cta:hover { background: var(--dd2-primary, #000) !important; color: #ffffff !important; }

/* BOUTONS CTA : texte blanc force (garde-fou contre texte=fond) */
.dd2-btn--cta,
a.dd2-btn--cta,
button.dd2-btn--cta { color: #ffffff !important; }
.dd2-btn--cta:hover { color: #ffffff !important; }
.dd2-btn--ctr { color: #ffffff !important; }
.dd2-btn--ctr:hover { color: #ffffff !important; }

/* DRAWER MOBILE : fond blanc + texte sombre */
.dd2-drawer,
.dd2-nav-mobile,
.dd2-mobile-menu { background: #ffffff !important; }
.dd2-drawer a,
.dd2-nav-mobile a,
.dd2-mobile-menu a { color: #0a0a0a !important; }

/* CARDS BODY : texte lisible sur fond clair */
.dd2-card-body h3,
.dd2-card-body p { color: inherit; }

/* Validator: cap hauteur hero cat v2 */
body section[class*="cat-hero"], body div[class*="cat-hero"], body section[class*="category-hero"], body div[class*="category-hero"] { position: relative !important; height: 320px !important; max-height: 320px !important; min-height: 200px !important; padding: 0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; border: none !important; box-shadow: none !important; }
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img, body [class*="category-hero"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: 320px !important; object-fit: cover !important; z-index: 0 !important; border: none !important; }
body [class*="cat-hero"] > [class*="container"], body [class*="cat-hero"] > [class*="wrap"], body [class*="cat-hero"] > [class*="inner"], body [class*="cat-hero"] > div { position: relative !important; z-index: 2 !important; max-width: 900px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; background: transparent !important; }
body [class*="cat-hero"] h1, body [class*="category-hero"] h1 { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3.5rem) !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; }
body [class*="cat-hero"][style*="background-image"] { background-size: cover !important; background-position: center !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; }

/* Validator: nav-mobile drawer hidden by default v2 */
/* Drawer/burger menu mobile : hidden par defaut, visible mobile+is-open */
[class*="-nav-mobile"]:not(.is-open), [id*="-nav-mobile"]:not(.is-open), [class*="-drawer"]:not(.is-open), [class*="-burger-menu"]:not(.is-open), [class*="-mobile-menu"]:not(.is-open) { display: none !important; }
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { display: flex !important; flex-direction: column !important; position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 86% !important; max-width: 380px !important; background: #fff !important; padding: 4.5rem 1.5rem 2rem !important; z-index: 9999 !important; overflow-y: auto !important; box-shadow: -10px 0 30px rgba(0,0,0,0.3) !important; }
}

/* Validator: drawer-mobile height fix v1 */
/* Force height:100vh sur le drawer ouvert : top:0;bottom:0 sans !important peut etre overrides par Claude → on impose 100vh. */
/* [2026-06-06] Broadening : ajout patterns supplementaires (X-nav sans 'mobile', X-side, X-menu-drawer, etc.) sinon le validator manque les sites comme artois-moto.com qui utilise fe8-nav (sans 'mobile' dans le nom). */
@media (max-width: 1023px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open, [class*="-side-nav"].is-open, [class*="-side-menu"].is-open, [class*="-offcanvas"].is-open, nav[aria-label*="mobile" i].is-open, nav[aria-label*="Menu mobile" i].is-open, nav[id*="nav"].is-open[class*="-nav"]:not([class*="desktop"]) { height: 100vh !important; min-height: 100vh !important; max-height: 100vh !important; }
}

/* Validator: footer logo no-filter v1 */
footer img, [class*="-footer"] img, [role="contentinfo"] img, footer [class*="logo"], [class*="-footer"] [class*="logo"] { filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
footer[class*="dark"] img, footer[class*="black"] img, [class*="-footer"][class*="dark"] img, [class*="-footer"][class*="black"] img { filter: brightness(0) invert(1) !important; }

/* Validator: header-hero gap fix v1 */
/* Bug recurrent : <main class="X-main"> a padding-top:30px qui creait un
 * gap entre header sticky et hero/cat-hero. Force padding-top:0 sur le
 * wrapper <main> + margin-top:0 sur le 1er hero enfant. */
body > main, body > [role="main"], main[class*="-main"], [id="main"] { padding-top: 0 !important; }
main > [class*="-hero"]:first-child, main > [class*="-cat-hero"]:first-child, main > [class*="-category-hero"]:first-child { margin-top: 0 !important; }
/* Fallback : si sibling direct du header */
header + section, header + [class*="-hero"], header + [class*="-cat-hero"], header + [class*="-category-hero"], [class*="-header"] + section, [class*="-header"] + [class*="-hero"], [class*="-header"] + [class*="-cat-hero"], [class*="-header"] + [class*="-category-hero"] { margin-top: 0 !important; padding-top: 0 !important; }
section[class*="-hero"]:first-of-type, section[class*="-cat-hero"]:first-of-type, section[class*="-category-hero"]:first-of-type { margin-top: 0 !important; }

/* Validator: contraste lisible header+menu-mobile+footer v2 */
[class*="-nav-mobile"], [id*="-nav-mobile"], [class*="-drawer"], [class*="-burger-menu"], [class*="-mobile-menu"], [class*="-side-nav"] { background: #ffffff !important; }
[class*="-nav-mobile"] *, [id*="-nav-mobile"] *, [class*="-drawer"] *, [class*="-burger-menu"] *, [class*="-mobile-menu"] *, [class*="-side-nav"] * { color: #0a0a0a !important; }
[class*="-nav-mobile"] a, [id*="-nav-mobile"] a, [class*="-drawer"] a, [class*="-burger-menu"] a, [class*="-mobile-menu"] a { color: #0a0a0a !important; font-weight: 600 !important; }
[class*="-nav-mobile"] a:hover, [class*="-drawer"] a:hover, [class*="-burger-menu"] a:hover, [class*="-mobile-menu"] a:hover { color: #000 !important; opacity: 0.7 !important; }
footer *, [class*="-footer"] *, [role="contentinfo"] * { color: #1a1a1a !important; }
footer a, [class*="-footer"] a, [role="contentinfo"] a { color: #1a1a1a !important; text-decoration: underline !important; text-decoration-color: currentColor !important; text-underline-offset: 3px !important; font-weight: 600 !important; }
footer a:hover, [class*="-footer"] a:hover, [role="contentinfo"] a:hover { color: #000 !important; opacity: 1 !important; }
footer h1, footer h2, footer h3, footer h4, footer h5, [class*="-footer"] h1, [class*="-footer"] h2, [class*="-footer"] h3, [class*="-footer"] h4, [class*="-footer"] h5 { color: #0a0a0a !important; font-weight: 700 !important; }
footer p, footer span, footer li, [class*="-footer"] p, [class*="-footer"] span, [class*="-footer"] li { color: #2a2a2a !important; }
footer[class*="dark"] *, footer[class*="black"] *, [class*="-footer"][class*="dark"] *, [class*="-footer"][class*="black"] *, footer[style*="background:#0"] *, footer[style*="background: #0"] *, footer[style*="background:#1"] *, footer[style*="background: #1"] *, footer[style*="background:#2"] *, footer[style*="background: #2"] * { color: #f5f5f5 !important; }
footer[class*="dark"] a, [class*="-footer"][class*="dark"] a, footer[style*="background:#0"] a, footer[style*="background:#1"] a { color: #ffffff !important; }
header a, [class*="-header"] a, [role="banner"] a { text-shadow: none !important; }
header a:hover, [class*="-header"] a:hover { opacity: 0.7 !important; }
[class*="-nav-mobile"] [class*="-btn"], [class*="-footer"] [class*="-btn"] { border: 1.5px solid currentColor !important; }

/* Validator: burger button always visible+clickable v2 */
/* === Burger button : VISIBLE + CLIQUABLE garanti === */
[class*="-burger"], [class*="burger-menu"], [class*="menu-toggle"], button[aria-controls*="nav"], button[aria-label*="menu" i] { color: #1a1a1a !important; pointer-events: auto !important; cursor: pointer !important; z-index: 100 !important; position: relative !important; user-select: none !important; -webkit-tap-highlight-color: transparent !important; background: rgba(255,255,255,0.92) !important; border-radius: 8px !important; border: 1.5px solid rgba(0,0,0,0.15) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important; padding: 8px !important; }
[class*="-burger"] svg, [class*="burger-menu"] svg, [class*="menu-toggle"] svg, button[aria-controls*="nav"] svg { stroke: #1a1a1a !important; fill: none !important; pointer-events: none !important; stroke-width: 2.5 !important; width: 22px !important; height: 22px !important; }
[class*="-burger"] svg path, [class*="-burger"] svg line, [class*="-burger"] svg rect, [class*="-burger"] svg polyline { stroke: #1a1a1a !important; stroke-width: 2.5 !important; fill: none !important; }
[class*="-burger"]:hover, [class*="-burger"]:focus { background: rgba(255,255,255,1) !important; border-color: rgba(0,0,0,0.3) !important; outline: 2px solid rgba(0,0,0,0.15) !important; outline-offset: 1px !important; }
/* Si le header est sombre : inverse en clair (detection elargie) */
[class*="-header"][style*="background:#0"] [class*="-burger"], [class*="-header"][style*="background:#1"] [class*="-burger"], [class*="-header"][style*="background:#2"] [class*="-burger"], [class*="-header"][style*="background-color:#0"] [class*="-burger"], [class*="-header"][style*="background-color:#1"] [class*="-burger"], [class*="-header"][style*="background-color:#2"] [class*="-burger"], [class*="-header"][class*="dark"] [class*="-burger"], [class*="-header"][class*="black"] [class*="-burger"], [class*="-header"][class*="--dark"] [class*="-burger"], [class*="-header"][class*="-night"] [class*="-burger"] { color: #f5f5f5 !important; background: rgba(0,0,0,0.55) !important; border-color: rgba(255,255,255,0.4) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important; }
[class*="-header"][style*="background:#0"] [class*="-burger"] svg, [class*="-header"][style*="background:#1"] [class*="-burger"] svg, [class*="-header"][class*="dark"] [class*="-burger"] svg, [class*="-header"][class*="black"] [class*="-burger"] svg { stroke: #f5f5f5 !important; }
@media (max-width: 1023px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px !important; min-height: 44px !important; }
}
@media (min-width: 1024px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: none !important; }
}

/* Validator: nav-mobile-list visible inside open drawer v1 */
/* Burger drawer ouvert : la UL des liens DOIT etre visible. */
[class*="-nav-mobile"].is-open ul, [id*="-nav-mobile"].is-open ul, [class*="-nav-mobile"].is-open [class*="-nav-mobile-list"], [class*="-drawer"].is-open ul, [class*="-burger-menu"].is-open ul { display: block !important; visibility: visible !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li, [id*="-nav-mobile"].is-open ul li, [class*="-drawer"].is-open ul li, [class*="-burger-menu"].is-open ul li { display: list-item !important; height: auto !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li a, [id*="-nav-mobile"].is-open ul li a, [class*="-drawer"].is-open ul li a, [class*="-burger-menu"].is-open ul li a { display: block !important; padding: 0.9rem 0 !important; text-decoration: none !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; font-size: 1rem !important; }
