/* =========================================================================
   RÉUSSIR SON MARIAGE — Design System: Cultural African Safari (07)
   Palette beige / ocre brûlé, fonts Crimson Pro (titres) + Karla (corps)
   Hero: split-50-50  /  Header: logo-center-menu-split  /  Cat: single-bottom
   Mega menu: layout B (grid 3 cols) — hash MD5(domain) % 5 = 3
   ========================================================================= */

:root {
  --d5f-primary:   #5A4530;
  --d5f-accent:    #C2853A;
  --d5f-bg:        #F0E5C8;
  --d5f-surface:   #F8EFD8;
  --d5f-text:      #2A1A0F;
  --d5f-text-soft: #7A6550;
  --d5f-line:      #D5C095;
  --d5f-white:     #FFFEFA;
  --d5f-shadow:    0 4px 24px rgba(90, 69, 48, 0.08);
  --d5f-shadow-lg: 0 8px 36px rgba(90, 69, 48, 0.15);
  --d5f-font-headings: 'Crimson Pro', Georgia, serif;
  --d5f-font-body:     'Karla', 'Helvetica Neue', Arial, sans-serif;
  --d5f-radius:    8px;
  --d5f-container: 1240px;
}

/* === RESET LIGHT =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--d5f-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--d5f-text);
  background: var(--d5f-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--d5f-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--d5f-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--d5f-font-headings);
  color: var(--d5f-primary);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 .8rem;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p  { margin: 0 0 1.1rem; }

.d5f-container { max-width: var(--d5f-container); margin: 0 auto; padding: 0 1.5rem; }
main, .d5f-main { padding-top: 0 !important; margin-top: 0 !important; }

/* === BOUTONS =============================================================== */
.d5f-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.6rem; font-family: var(--d5f-font-body); font-weight: 600;
  font-size: .95rem; letter-spacing: .02em; text-decoration: none;
  border-radius: var(--d5f-radius); border: 1.5px solid transparent;
  cursor: pointer; transition: all .25s;
}
.d5f-btn--primary {
  background: var(--d5f-primary); color: #fff; border-color: var(--d5f-primary);
}
.d5f-btn--primary:hover { background: var(--d5f-accent); border-color: var(--d5f-accent); color: #fff; }
.d5f-btn--ghost {
  background: transparent; color: var(--d5f-primary); border-color: var(--d5f-primary);
}
.d5f-btn--ghost:hover { background: var(--d5f-primary); color: #fff; }
.d5f-btn--cta {
  background: var(--d5f-accent); color: #fff; border-color: var(--d5f-accent);
  padding: .7rem 1.25rem; font-size: .9rem;
}
.d5f-btn--cta:hover { background: var(--d5f-primary); border-color: var(--d5f-primary); color: #fff; }

/* === HEADER (logo-center-menu-split) ====================================== */
.d5f-header {
  background: var(--d5f-surface);
  border-bottom: 1px solid var(--d5f-line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.d5f-header-inner {
  max-width: var(--d5f-container); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; padding: .85rem 1.5rem;
  position: relative;
}
.d5f-nav-left, .d5f-nav-right {
  display: flex; align-items: center; gap: 1.5rem; list-style: none;
  margin: 0; padding: 0;
}
.d5f-nav-left a, .d5f-nav-right a {
  font-family: var(--d5f-font-body); font-weight: 500; font-size: .92rem;
  color: var(--d5f-text); text-decoration: none; padding: .35rem .2rem;
  border-bottom: 2px solid transparent; transition: border-color .2s;
  text-transform: uppercase; letter-spacing: .06em;
}
.d5f-nav-left a:hover, .d5f-nav-right a:hover { border-bottom-color: var(--d5f-accent); color: var(--d5f-primary); }
.d5f-brand {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.d5f-brand-link { display: block; }
.d5f-brand-logo { display: block; width: auto; }
.d5f-brand-name {
  font-family: var(--d5f-font-headings); font-size: 1.45rem;
  color: var(--d5f-primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin: .3rem 0 0;
}
.d5f-header-cta-desktop {
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
}

/* Burger mobile (caché desktop) */
.d5f-burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  cursor: pointer; padding: 8px;
  z-index: 10000;
  position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
}
.d5f-burger-bars {
  display: flex; flex-direction: column; gap: 4px;
  width: 24px; height: 16px;
}
.d5f-burger-bars span {
  display: block; height: 2.5px; background: var(--d5f-primary); border-radius: 2px;
}

/* Drawer mobile = caché par défaut */
.d5f-nav-mobile { display: none; }

@media (max-width: 1023px) {
  .d5f-nav-left, .d5f-nav-right { display: none; }
  .d5f-burger {
    display: inline-flex !important;
    width: 42px !important; height: 42px !important;
    min-width: 42px !important; min-height: 42px !important;
    flex-shrink: 0 !important;
  }
  .d5f-header-cta-desktop { display: none !important; }
  .d5f-header-inner { justify-content: flex-start; padding-right: 70px; }

  .d5f-nav-mobile.is-open {
    display: flex !important; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 86%; max-width: 380px;
    background: var(--d5f-white);
    padding: 5rem 0 1.5rem;
    z-index: 9999; overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    animation: d5f-drawer-in .28s cubic-bezier(.22,1,.36,1);
  }
  .d5f-nav-mobile-list {
    list-style: none; margin: 0; padding: 0; flex: 1;
  }
  .d5f-nav-mobile-list li { border-bottom: 1px solid var(--d5f-line); }
  .d5f-nav-mobile-list a {
    display: block; padding: 1.1rem 1.5rem;
    color: var(--d5f-text); text-decoration: none;
    font-weight: 600; font-size: 1.02rem;
    text-transform: uppercase; letter-spacing: .06em;
  }
  .d5f-nav-mobile-list a:hover { background: var(--d5f-surface); color: var(--d5f-primary); }
  .d5f-drawer-cta {
    display: block !important;
    margin: 2rem 1.5rem 0 !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--d5f-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }
  .d5f-nav-mobile-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 40px; height: 40px;
    background: transparent; border: 0;
    font-size: 1.6rem; cursor: pointer; color: var(--d5f-primary);
  }
  .d5f-overlay {
    position: fixed; inset: 0; background: rgba(42,26,15,0.6);
    z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .d5f-overlay.is-open { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1024px) {
  .d5f-drawer-cta { display: none !important; }
  .d5f-burger { display: none !important; }
}

@keyframes d5f-drawer-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* === HERO (split-50-50) =================================================== */
.d5f-hero {
  position: relative; overflow: hidden;
  background: var(--d5f-surface);
  border-bottom: 1px solid var(--d5f-line);
}
.d5f-hero-inner {
  max-width: var(--d5f-container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; min-height: 540px;
}
.d5f-hero-text {
  padding: 4rem 2.5rem; display: flex; flex-direction: column;
  justify-content: center;
}
.d5f-hero-eyebrow {
  font-family: var(--d5f-font-body); font-size: .82rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--d5f-accent);
  margin-bottom: 1rem;
}
.d5f-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 1.1;
  color: var(--d5f-primary); margin-bottom: 1.2rem;
}
.d5f-hero-subtitle {
  font-size: 1.1rem; line-height: 1.6; color: var(--d5f-text-soft);
  margin-bottom: 1.8rem; max-width: 480px;
}
.d5f-hero-ctas { display: flex; gap: .85rem; flex-wrap: wrap; }
.d5f-hero-media {
  position: relative; overflow: hidden;
  background: var(--d5f-line);
  min-height: 540px;
}
.d5f-hero-bg, .d5f-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* Vidéo YouTube hero */
.d5f-hero--has-video .d5f-hero-media { background: #000; }
.d5f-hero-video-wrap {
  position: absolute; inset: 0; pointer-events: none;
}
.d5f-hero-video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%); border: 0;
}
.d5f-hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(90, 69, 48, 0.25) 0%, rgba(42, 26, 15, 0.55) 100%);
}
.d5f-hero--has-video .d5f-hero-media {
  position: relative;
}

@media (max-width: 900px) {
  .d5f-hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .d5f-hero-text { padding: 2.8rem 1.5rem; order: 2; }
  .d5f-hero-media { min-height: 320px; order: 1; }
}

/* === SECTIONS ============================================================== */
.d5f-section { padding: 4rem 0; }
.d5f-section-header { text-align: center; margin-bottom: 2.5rem; }
.d5f-section-eyebrow {
  font-family: var(--d5f-font-body); font-size: .82rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--d5f-accent);
  display: block; margin-bottom: .7rem;
}
.d5f-section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .5rem; }
.d5f-section-lede {
  font-size: 1.05rem; color: var(--d5f-text-soft); max-width: 640px;
  margin: 0 auto;
}

/* === BLOC ÉDITORIAL SEO (after-categories, 400-700 mots) =================== */
.d5f-editorial {
  background: var(--d5f-surface);
  padding: 4.5rem 0;
  border-top: 1px solid var(--d5f-line);
  border-bottom: 1px solid var(--d5f-line);
}
.d5f-editorial-inner {
  max-width: 880px; margin: 0 auto; padding: 0 1.5rem;
}
.d5f-editorial h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center; margin-bottom: 1.5rem;
}
.d5f-editorial h3 {
  margin-top: 2.2rem; font-size: 1.35rem;
  border-bottom: 1px solid var(--d5f-line); padding-bottom: .5rem;
}
.d5f-editorial p { font-size: 1.05rem; line-height: 1.75; color: var(--d5f-text); }
.d5f-editorial-quote {
  background: var(--d5f-bg); border-left: 4px solid var(--d5f-accent);
  padding: 1.3rem 1.5rem; margin: 2rem 0; border-radius: 0 8px 8px 0;
  font-family: var(--d5f-font-headings); font-style: italic;
  font-size: 1.1rem; color: var(--d5f-primary);
}
.d5f-editorial-quote-author {
  display: block; margin-top: .5rem;
  font-family: var(--d5f-font-body); font-size: .85rem;
  font-style: normal; color: var(--d5f-text-soft);
  letter-spacing: .05em; text-transform: uppercase;
}

/* === CATÉGORIES GRID ====================================================== */
.d5f-categories {
  padding: 4rem 0; background: var(--d5f-bg);
}
.d5f-categories-grid {
  max-width: var(--d5f-container); margin: 0 auto;
  padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.d5f-cat-card {
  position: relative; display: block;
  background: var(--d5f-surface); border: 1px solid var(--d5f-line);
  border-radius: var(--d5f-radius); overflow: hidden;
  text-decoration: none; color: var(--d5f-text);
  transition: transform .3s, box-shadow .3s;
  aspect-ratio: 4/3;
}
.d5f-cat-card:hover { transform: translateY(-4px); box-shadow: var(--d5f-shadow-lg); }
.d5f-cat-card-img {
  display: block; width: 100%; height: 70%;
  background-size: cover; background-position: center;
  background-color: var(--d5f-primary);
}
.d5f-cat-card-body {
  padding: .9rem 1rem;
  background: var(--d5f-surface);
}
.d5f-cat-card-title {
  font-family: var(--d5f-font-headings); font-size: 1.15rem; font-weight: 600;
  color: var(--d5f-primary); margin: 0;
}

@media (max-width: 1023px) {
  .d5f-categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .d5f-categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* === DERNIERS ARTICLES GRID ============================================== */
.d5f-latest-section { padding: 4rem 0; background: var(--d5f-surface); }
.d5f-latest-grid {
  max-width: var(--d5f-container); margin: 0 auto;
  padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.d5f-card {
  background: var(--d5f-white); border: 1px solid var(--d5f-line);
  border-radius: var(--d5f-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.d5f-card:hover { transform: translateY(-3px); box-shadow: var(--d5f-shadow-lg); }
.d5f-card-img {
  width: 100%; aspect-ratio: 16/10;
  background: var(--d5f-line); display: block;
  object-fit: cover;
}
.d5f-card-img-fallback {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--d5f-primary) 0%, var(--d5f-accent) 100%);
}
.d5f-card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.d5f-card-cat {
  font-size: .76rem; font-weight: 600; color: var(--d5f-accent);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .55rem;
}
.d5f-card-title {
  font-family: var(--d5f-font-headings); font-size: 1.25rem; line-height: 1.3;
  margin: 0 0 .65rem; color: var(--d5f-primary);
}
.d5f-card-title a { color: inherit; text-decoration: none; }
.d5f-card-title a:hover { color: var(--d5f-accent); }
.d5f-card-excerpt { font-size: .95rem; color: var(--d5f-text-soft); flex: 1; margin-bottom: .9rem; line-height: 1.55; }
.d5f-card-meta { font-size: .8rem; color: var(--d5f-text-soft); }
.d5f-card-meta time { font-weight: 500; }

@media (max-width: 1023px) {
  .d5f-latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .d5f-latest-grid { grid-template-columns: 1fr; }
}

/* === OUTIL EMBED HOME ===================================================== */
.d5f-tool-home-section {
  padding: 5rem 0; background: var(--d5f-bg);
}
.d5f-tool-home-inner {
  max-width: 880px; margin: 0 auto; padding: 0 1.5rem;
}
.d5f-tool-home-intro {
  text-align: center; margin-bottom: 2rem; font-size: 1.05rem;
  color: var(--d5f-text-soft);
}

/* === METRICS LINKS (placeholder bloc) ==================================== */
.d5f-metrics-links { padding: 3rem 0; background: var(--d5f-surface); }
.d5f-metrics-links-inner {
  max-width: var(--d5f-container); margin: 0 auto; padding: 0 1.5rem;
  text-align: center;
}
.d5f-metrics-links ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  list-style: none; padding: 0; margin: 1rem 0 0; gap: 1.5rem;
}
.d5f-metrics-links a {
  font-size: .9rem; color: var(--d5f-text-soft); text-decoration: none;
  padding: .3rem .8rem; border: 1px solid var(--d5f-line); border-radius: 999px;
}
.d5f-metrics-links a:hover { color: var(--d5f-primary); border-color: var(--d5f-accent); }

/* === FOOTER ============================================================== */
.d5f-footer {
  background: #2A1A0F; color: #F0E5C8; padding: 3.8rem 0 1.5rem;
}
.d5f-footer a { color: #F0E5C8; }
.d5f-footer a:hover { color: #C2853A; }
.d5f-footer-grid {
  max-width: var(--d5f-container); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
}
.d5f-footer-col {}
.d5f-footer-logo {
  display: block; height: auto; max-width: 160px; margin-bottom: 1rem;
  filter: brightness(0) invert(1) brightness(.95);
}
.d5f-footer-brand-pitch {
  font-size: .92rem; color: #D5C095; line-height: 1.65; margin-bottom: 1.25rem;
}
.d5f-footer-brand-cta {
  display: inline-block; padding: .55rem 1.1rem; border: 1.5px solid #C2853A;
  border-radius: 6px; color: #F0E5C8; text-decoration: none;
  font-weight: 600; font-size: .85rem; transition: all .2s;
}
.d5f-footer-brand-cta:hover { background: #C2853A; color: #2A1A0F; }
.d5f-footer-title {
  font-family: var(--d5f-font-headings); font-size: 1.05rem; color: #F0E5C8;
  margin: 0 0 1rem; letter-spacing: .04em; text-transform: uppercase;
  font-weight: 600;
}
.d5f-footer-links { list-style: none; padding: 0; margin: 0; }
.d5f-footer-links li { margin-bottom: .55rem; }
.d5f-footer-links a {
  font-size: .92rem; color: #F0E5C8; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.d5f-footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.d5f-footer-social a {
  width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid #5A4530; border-radius: 50%;
  text-decoration: none;
}
.d5f-footer-social a:hover { background: #C2853A; border-color: #C2853A; }
.d5f-footer-bottom {
  max-width: var(--d5f-container); margin: 2.5rem auto 0; padding: 1.5rem;
  border-top: 1px solid #5A4530;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  font-size: .85rem; color: #D5C095;
}
.d5f-footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

@media (max-width: 980px) {
  .d5f-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 580px) {
  .d5f-footer-grid { grid-template-columns: 1fr; }
  .d5f-footer-bottom { flex-direction: column; text-align: center; }
}

/* === PERSONA PHOTO (page à propos) ======================================= */
.d5f-persona-photo {
  display: block; max-width: 320px; width: 100%;
  border-radius: 12px; margin: 2rem auto;
  box-shadow: var(--d5f-shadow-lg);
}

/* === PAGE CATÉGORIE ====================================================== */
.d5f-cat-hero {
  position: relative; height: 320px; max-height: 350px; overflow: hidden;
  background: var(--d5f-primary);
}
.d5f-cat-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.d5f-cat-hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  max-width: var(--d5f-container); margin: 0 auto; padding: 2rem 1.5rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
  color: #fff;
}
.d5f-cat-hero-title {
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.7); margin: 0;
}
.d5f-cat-content {
  max-width: 880px; margin: 0 auto; padding: 3rem 1.5rem;
}
.d5f-cat-content p { font-size: 1.05rem; line-height: 1.75; }

/* === PAGE OUTILS ========================================================= */
.d5f-tool-page-header {
  background: var(--d5f-surface); padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--d5f-line);
}
.d5f-tool-page-header-inner {
  max-width: 880px; margin: 0 auto; padding: 0 1.5rem; text-align: center;
}
.d5f-tool-page-body {
  max-width: 880px; margin: 3rem auto; padding: 0 1.5rem;
}
.d5f-tool-faq { margin-top: 3rem; }
.d5f-tool-faq details {
  background: var(--d5f-surface); border: 1px solid var(--d5f-line);
  border-radius: var(--d5f-radius); padding: 1rem 1.25rem; margin-bottom: .65rem;
}
.d5f-tool-faq summary {
  cursor: pointer; font-weight: 600; color: var(--d5f-primary);
  font-family: var(--d5f-font-headings); font-size: 1.1rem;
}
.d5f-tool-faq details[open] summary { margin-bottom: .8rem; }
.d5f-tool-faq details p { margin: 0; color: var(--d5f-text); }

/* === FORMULAIRE CONTACT ================================================== */
.d5f-contact-form {
  margin-top: 2.5rem;
  background: var(--d5f-surface); border: 1px solid var(--d5f-line);
  border-radius: var(--d5f-radius); padding: 1.5rem;
}

/* === ANIMATIONS ========================================================== */
@keyframes d5f-ripple {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
.d5f-btn--cta { position: relative; overflow: hidden; }
.d5f-btn--cta::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,0.65); pointer-events: none;
  transform: translate(-50%, -50%) scale(0); opacity: 0;
}
.d5f-btn--cta:active::after { animation: d5f-ripple 620ms ease-out; }

@keyframes d5f-card-slide-in {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
.d5f-card { animation: d5f-card-slide-in 520ms cubic-bezier(.22,1,.36,1) both; }
.d5f-card:nth-child(2) { animation-delay: 60ms; }
.d5f-card:nth-child(3) { animation-delay: 120ms; }
.d5f-card:nth-child(4) { animation-delay: 180ms; }
.d5f-card:nth-child(5) { animation-delay: 240ms; }
.d5f-card:nth-child(6) { animation-delay: 300ms; }
.d5f-card:nth-child(7) { animation-delay: 360ms; }
.d5f-card:nth-child(8) { animation-delay: 420ms; }
.d5f-card:nth-child(9) { animation-delay: 480ms; }

@keyframes d5f-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(194, 133, 58, 0.55); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(194, 133, 58, 0); }
}
.d5f-badge-stock {
  display: inline-block; padding: .3rem .65rem;
  background: var(--d5f-accent); color: #fff;
  border-radius: 999px; font-size: .8rem; font-weight: 700;
  animation: d5f-badge-pulse 2.2s ease-in-out infinite;
}

/* === UTILS =============================================================== */
.d5f-skip-link { position: absolute; left: -9999px; }
.d5f-skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; background: var(--d5f-primary); color: #fff; padding: .5rem 1rem; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0 !important; }
}

/* 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; }
