/* ============================================================
   MAISON BOIS CONCEPT — Style custom
   Design System : Culturel Méditerranéen Santorin (fonts DB)
   Palette : empruntée au concurrent mamaison-bois.fr
   Brand casing : Title Case (no text-transform)
   ============================================================ */

:root {
  /* Palette concurrent : brun bois + vert olive */
  --d8e-primary:    #6b3812;
  --d8e-primary-dk: #4a2509;
  --d8e-accent:     #91aa1f;
  --d8e-accent-dk:  #6e811a;
  --d8e-text:       #23262d;
  --d8e-text-soft:  #545454;
  --d8e-bg:         #faf7f2;
  --d8e-surface:    #ffffff;
  --d8e-line:       #e5e0d6;
  --d8e-cream:      #f3ede2;
  --d8e-shadow:     0 4px 18px rgba(35, 38, 45, 0.08);
  --d8e-shadow-lg:  0 12px 40px rgba(35, 38, 45, 0.16);

  /* Typo DB Santorin */
  --d8e-font-h:     "Italiana", "Playfair Display", Georgia, serif;
  --d8e-font-b:     "Manrope", "Inter", system-ui, -apple-system, sans-serif;

  /* Espacements */
  --d8e-container:  1240px;
  --d8e-radius:     8px;
  --d8e-radius-lg:  16px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.d8e-body {
  margin: 0;
  font-family: var(--d8e-font-b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--d8e-text);
  background: var(--d8e-bg);
  -webkit-font-smoothing: antialiased;
}

main, .d8e-main { padding-top: 0 !important; margin-top: 0 !important; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--d8e-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--d8e-primary-dk); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--d8e-font-h);
  font-weight: 400;
  color: var(--d8e-text);
  letter-spacing: .005em;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1rem; }

.d8e-container {
  width: 100%;
  max-width: var(--d8e-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.d8e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  font-family: var(--d8e-font-b);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  letter-spacing: .02em;
  border: 2px solid transparent;
  border-radius: var(--d8e-radius);
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}

.d8e-btn--primary {
  background: var(--d8e-primary);
  color: #fff;
}
.d8e-btn--primary:hover {
  background: var(--d8e-primary-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--d8e-shadow);
}

.d8e-btn--ghost {
  background: transparent;
  color: var(--d8e-primary);
  border-color: var(--d8e-primary);
}
.d8e-btn--ghost:hover {
  background: var(--d8e-primary);
  color: #fff;
}

/* CTA — animation rotating_icon_button */
.d8e-btn--cta {
  background: var(--d8e-primary);
  color: #fff;
  position: relative;
  padding-right: 2.6rem;
  overflow: hidden;
}
.d8e-btn--cta::after {
  content: "\2192";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .35s ease;
}
.d8e-btn--cta:hover {
  background: var(--d8e-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--d8e-shadow);
}
.d8e-btn--cta:hover::after {
  animation: d8e-rotateIcon 0.6s ease forwards;
}
@keyframes d8e-rotateIcon {
  0%   { transform: translateY(-50%) rotate(0deg); }
  50%  { transform: translateY(-50%) rotate(180deg) scale(1.2); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================================
   HEADER — logo-left-menu-center-cta-right (sans CTA)
   ============================================================ */

.d8e-header {
  background: var(--d8e-surface);
  border-bottom: 1px solid var(--d8e-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.d8e-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: var(--d8e-container);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.d8e-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--d8e-text);
  flex-shrink: 0;
}
.d8e-brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
.d8e-brand-name {
  font-family: var(--d8e-font-h);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--d8e-text);
  /* Title Case styling — no text-transform */
}

/* NAV desktop (cachée par défaut) */
.d8e-nav-desktop { display: none; }
.d8e-nav-desktop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.d8e-nav-desktop-list a {
  color: var(--d8e-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .45rem .15rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.d8e-nav-desktop-list a:hover {
  color: var(--d8e-primary);
  border-bottom-color: var(--d8e-accent);
}

/* Burger mobile */
.d8e-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--d8e-line);
  border-radius: var(--d8e-radius);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.d8e-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--d8e-text);
  margin: 2px 0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* NAV mobile drawer (cachée par défaut) */
.d8e-nav-mobile { display: none; }

.d8e-nav-mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(35, 38, 45, 0.5);
  z-index: 9998;
}
.d8e-nav-mobile-overlay.is-open { display: block; }

.d8e-nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 86%;
  max-width: 380px;
  background: var(--d8e-surface);
  padding: 4.5rem 1.5rem 2rem;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.25);
}

.d8e-nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--d8e-line);
  border-radius: var(--d8e-radius);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--d8e-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.d8e-nav-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.d8e-nav-mobile-list li {
  border-bottom: 1px solid var(--d8e-line);
}
.d8e-nav-mobile-list a {
  display: block;
  padding: 1rem .25rem;
  color: var(--d8e-text);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
}
.d8e-nav-mobile-list a:hover { color: var(--d8e-primary); }

/* Desktop : nav horizontale, burger caché */
@media (min-width: 1024px) {
  .d8e-nav-desktop { display: flex; flex: 1; justify-content: center; }
  .d8e-burger { display: none !important; }
}

/* ============================================================
   HERO — classic-overlay
   ============================================================ */

.d8e-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--d8e-cream);
}

.d8e-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.d8e-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 37, 9, 0.55) 0%, rgba(35, 38, 45, 0.35) 100%);
  z-index: 2;
}

.d8e-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--d8e-container);
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  color: #fff;
}

.d8e-hero-eyebrow {
  display: inline-block;
  font-family: var(--d8e-font-b);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(145, 170, 31, 0.85);
  padding: .4rem .9rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}

.d8e-hero-title {
  font-family: var(--d8e-font-h);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
  max-width: 800px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.d8e-hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.55;
  margin: 0 0 1.8rem;
  color: #fff;
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.d8e-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.d8e-hero .d8e-btn--primary {
  background: var(--d8e-accent);
  color: #fff;
}
.d8e-hero .d8e-btn--primary:hover {
  background: var(--d8e-accent-dk);
}

.d8e-hero .d8e-btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}
.d8e-hero .d8e-btn--ghost:hover {
  background: #fff;
  color: var(--d8e-primary);
}

/* ============================================================
   EDITORIAL BLOC (after-hero placement)
   ============================================================ */

.d8e-editorial {
  background: var(--d8e-bg);
  padding: 5rem 0 3rem;
}

.d8e-editorial-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.d8e-editorial-intro {
  text-align: center;
  margin-bottom: 3rem;
}
.d8e-editorial-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--d8e-text);
  margin: 0 0 1.2rem;
}
.d8e-editorial-intro p {
  font-size: 1.08rem;
  color: var(--d8e-text-soft);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 1rem;
}

.d8e-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.d8e-editorial-block {
  background: var(--d8e-surface);
  border: 1px solid var(--d8e-line);
  border-radius: var(--d8e-radius-lg);
  padding: 1.8rem;
  transition: transform .25s, box-shadow .25s;
}
.d8e-editorial-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--d8e-shadow);
}
.d8e-editorial-block h3 {
  font-size: 1.3rem;
  margin: 0 0 .8rem;
  color: var(--d8e-primary);
}
.d8e-editorial-block p {
  margin: 0;
  font-size: .96rem;
  color: var(--d8e-text-soft);
  line-height: 1.65;
}

.d8e-editorial-pillar {
  background: var(--d8e-cream);
  border-left: 4px solid var(--d8e-accent);
  padding: 1.8rem 2rem;
  margin-top: 2.5rem;
  border-radius: var(--d8e-radius);
}
.d8e-editorial-pillar h3 {
  font-size: 1.4rem;
  margin: 0 0 .8rem;
  color: var(--d8e-primary);
}
.d8e-editorial-pillar p {
  margin: 0;
  font-size: 1rem;
  color: var(--d8e-text);
  line-height: 1.7;
}
.d8e-editorial-pillar a {
  font-weight: 600;
  color: var(--d8e-primary);
  border-bottom: 1px solid var(--d8e-accent);
}

/* ============================================================
   CATEGORY SECTIONS (by-category mode)
   ============================================================ */

.d8e-cat-section {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--d8e-line);
}
.d8e-cat-section:nth-child(even) {
  background: var(--d8e-cream);
}
.d8e-cat-section:last-of-type {
  border-bottom: 0;
}

.d8e-cat-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--d8e-accent);
}
.d8e-cat-section-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.d8e-cat-section-header h2 a {
  color: var(--d8e-text);
  text-decoration: none;
}
.d8e-cat-section-header h2 a:hover {
  color: var(--d8e-primary);
}
.d8e-cat-section-more {
  font-family: var(--d8e-font-b);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--d8e-primary);
  text-decoration: none;
  white-space: nowrap;
}
.d8e-cat-section-more:hover { color: var(--d8e-accent-dk); }

.d8e-cat-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.d8e-cat-empty {
  background: var(--d8e-surface);
  border: 1px dashed var(--d8e-line);
  border-radius: var(--d8e-radius);
  padding: 2rem;
  text-align: center;
  color: var(--d8e-text-soft);
}
.d8e-cat-empty a {
  display: inline-block;
  margin-top: .8rem;
  font-weight: 600;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */

.d8e-card {
  background: var(--d8e-surface);
  border-radius: var(--d8e-radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid var(--d8e-line);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.d8e-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--d8e-shadow-lg);
}

.d8e-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--d8e-cream);
}
.d8e-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.d8e-card:hover .d8e-card-img-wrap img {
  transform: scale(1.05);
}

.d8e-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.d8e-card-meta {
  display: inline-block;
  font-family: var(--d8e-font-b);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--d8e-accent-dk);
  margin-bottom: .55rem;
}

.d8e-card-title {
  font-family: var(--d8e-font-h);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 .65rem;
  color: var(--d8e-text);
}
.d8e-card-title a {
  color: inherit;
  text-decoration: none;
}
.d8e-card-title a:hover { color: var(--d8e-primary); }

.d8e-card-excerpt {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--d8e-text-soft);
  margin: 0 0 .8rem;
}

.d8e-card-date {
  font-size: .82rem;
  color: var(--d8e-text-soft);
  margin-top: auto;
}

/* ============================================================
   METRICS LINKS
   ============================================================ */

.d8e-metrics-section {
  padding: 4rem 0;
  background: var(--d8e-surface);
}
.d8e-metrics-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin-bottom: 2.5rem;
  color: var(--d8e-primary);
}
.d8e-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   HOME TOOL EMBED
   ============================================================ */

.d8e-tool-home {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--d8e-cream) 0%, var(--d8e-bg) 100%);
}
.d8e-tool-home-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}
.d8e-tool-home-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--d8e-accent-dk);
  margin-bottom: 1rem;
}
.d8e-tool-home h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.d8e-tool-home-intro {
  font-size: 1.05rem;
  color: var(--d8e-text-soft);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.d8e-tool-home-widget {
  background: var(--d8e-surface);
  border-radius: var(--d8e-radius-lg);
  padding: 2rem;
  box-shadow: var(--d8e-shadow);
  text-align: left;
}

/* ============================================================
   FOOTER
   ============================================================ */

.d8e-footer {
  background: #1f1a14;
  color: #f3ede2;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}

.d8e-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--d8e-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.d8e-footer-col h3,
.d8e-footer-title {
  font-family: var(--d8e-font-h);
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 1.1rem;
  letter-spacing: .02em;
}

.d8e-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: 60px;
  width: auto;
  filter: brightness(1.05);
}

.d8e-footer-brand-pitch {
  font-size: .94rem;
  line-height: 1.65;
  color: #d8cfbe;
  margin: 0 0 1.2rem;
}

.d8e-footer-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--d8e-font-b);
  font-size: .92rem;
  font-weight: 600;
  color: #c8d97a;
  text-decoration: none;
  border-bottom: 1px solid #c8d97a;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.d8e-footer-brand-cta:hover {
  color: #fff;
  border-color: #fff;
}

.d8e-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.d8e-footer-links li {
  margin-bottom: .55rem;
}
.d8e-footer-links a {
  color: #d8cfbe;
  font-size: .94rem;
  text-decoration: none;
  transition: color .2s;
}
.d8e-footer-links a:hover {
  color: #c8d97a;
  text-decoration: underline;
}

.d8e-footer-social {
  display: flex;
  gap: .65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.d8e-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #f3ede2;
  transition: background .2s;
  text-decoration: none;
}
.d8e-footer-social a:hover {
  background: var(--d8e-accent);
  color: #fff;
}
.d8e-footer-social svg {
  width: 18px;
  height: 18px;
}

.d8e-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding: 1.5rem 1.25rem 0;
  max-width: var(--d8e-container);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: #a89e8d;
}
.d8e-footer-bottom a {
  color: #c8d97a;
  text-decoration: none;
}
.d8e-footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   CATEGORY PAGE — single-top layout
   ============================================================ */

.d8e-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  margin: 0;
}
.d8e-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.d8e-cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--d8e-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1.8rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.d8e-cat-hero-inner h1 {
  color: #fff;
  margin: 0 0 .4rem;
  font-size: clamp(2rem, 4vw, 3rem);
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.d8e-cat-hero-inner .d8e-breadcrumb {
  color: #f0e8d8;
  font-size: .88rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.d8e-cat-hero-inner .d8e-breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

.d8e-cat-fallback {
  background: var(--d8e-primary);
  background: linear-gradient(135deg, var(--d8e-primary), var(--d8e-primary-dk));
}

.d8e-cat-intro {
  background: var(--d8e-bg);
  padding: 3rem 0;
}
.d8e-cat-intro-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--d8e-text);
}
.d8e-cat-intro-inner p {
  margin-bottom: 1rem;
}

.d8e-cat-articles {
  padding: 2rem 0 4rem;
}
.d8e-cat-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: var(--d8e-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   GENERIC PAGE / CONTACT / TOOLS
   ============================================================ */

.d8e-page {
  padding: 3rem 0 4rem;
}
.d8e-page-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.d8e-page h1 {
  margin: 0 0 1.5rem;
  text-align: left;
}
.d8e-page p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--d8e-text);
  margin-bottom: 1.1rem;
}
.d8e-page h2 {
  margin-top: 2.4rem;
  font-size: 1.7rem;
}
.d8e-page h3 {
  margin-top: 1.8rem;
  font-size: 1.3rem;
  color: var(--d8e-primary);
}

.d8e-persona-photo {
  float: right;
  width: 240px;
  max-width: 38%;
  border-radius: var(--d8e-radius-lg);
  margin: 0 0 1.5rem 1.8rem;
  box-shadow: var(--d8e-shadow);
}

.d8e-contact-form {
  margin: 2.5rem 0 0;
}
.d8e-contact-form iframe {
  display: block;
  border-radius: var(--d8e-radius);
}

/* ============================================================
   PILL / TAG / BADGE
   ============================================================ */

.d8e-pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--d8e-accent-dk);
  background: rgba(145, 170, 31, 0.12);
  padding: .25rem .7rem;
  border-radius: 99px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .d8e-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .d8e-persona-photo {
    float: none;
    margin: 0 auto 1.5rem;
    width: 60%;
    max-width: 320px;
    display: block;
  }
}

@media (max-width: 640px) {
  .d8e-header-inner {
    justify-content: space-between;
    gap: .5rem;
  }
  .d8e-brand-logo { height: 38px; }
  .d8e-brand-name { font-size: 1.1rem; }
  .d8e-hero { min-height: 60vh; }
  .d8e-hero-inner { padding: 3rem 1.25rem 3.5rem; }
  .d8e-hero-actions { flex-direction: column; align-items: stretch; }
  .d8e-hero-actions .d8e-btn { width: 100%; }
  .d8e-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .d8e-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .d8e-editorial { padding: 3rem 0 2rem; }
  .d8e-cat-section { padding: 3rem 0 1.5rem; }
}

/* ============================================================
   CTR — accordion_faq (animation pour FAQ blocks)
   ============================================================ */

.d8e-faq {
  margin: 2.5rem 0;
}
.d8e-faq-item {
  border: 1px solid var(--d8e-line);
  border-radius: var(--d8e-radius);
  background: var(--d8e-surface);
  margin-bottom: .8rem;
  overflow: hidden;
  transition: box-shadow .25s;
}
.d8e-faq-item[open] {
  box-shadow: var(--d8e-shadow);
  border-color: var(--d8e-accent);
}
.d8e-faq-item summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--d8e-font-h);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--d8e-text);
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
  transition: color .2s, background .2s;
}
.d8e-faq-item summary::-webkit-details-marker { display: none; }
.d8e-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--d8e-primary);
  transition: transform .3s ease;
}
.d8e-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--d8e-accent-dk);
}
.d8e-faq-item summary:hover {
  background: var(--d8e-cream);
  color: var(--d8e-primary);
}
.d8e-faq-content {
  padding: 0 1.2rem 1.2rem;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--d8e-text-soft);
  animation: d8e-faqSlide .35s ease;
}
@keyframes d8e-faqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CTO — faq_conversion_block (intercalé entre FAQ et CTA)
   ============================================================ */

.d8e-cto-block {
  margin: 3rem 0;
  background: var(--d8e-cream);
  border-radius: var(--d8e-radius-lg);
  padding: 2rem 2.2rem;
  position: relative;
  border-left: 5px solid var(--d8e-accent);
  animation: d8e-ctoFade .8s ease;
}
@keyframes d8e-ctoFade {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.d8e-cto-block h3 {
  margin: 0 0 .8rem;
  color: var(--d8e-primary);
  font-size: 1.4rem;
}
.d8e-cto-block p {
  margin: 0 0 1.2rem;
  color: var(--d8e-text);
  line-height: 1.65;
}
.d8e-cto-block .d8e-btn--cta {
  background: var(--d8e-primary);
}
.d8e-cto-block .d8e-btn--cta:hover { background: var(--d8e-accent-dk); }

/* ============================================================
   TOOL PAGES (custom widgets)
   ============================================================ */

.d8e-tool-page {
  padding: 3rem 0 4rem;
}
.d8e-tool-page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.d8e-tool-page h1 {
  margin: 0 0 1rem;
}
.d8e-tool-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--d8e-text-soft);
  margin-bottom: 2rem;
}
.d8e-tool-widget {
  background: var(--d8e-surface);
  border: 1px solid var(--d8e-line);
  border-radius: var(--d8e-radius-lg);
  padding: 2rem;
  box-shadow: var(--d8e-shadow);
}
.d8e-tool-widget label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--d8e-text);
}
.d8e-tool-widget input,
.d8e-tool-widget select,
.d8e-tool-widget textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--d8e-line);
  border-radius: var(--d8e-radius);
  font-family: var(--d8e-font-b);
  font-size: .96rem;
  margin-bottom: 1rem;
  background: var(--d8e-bg);
  color: var(--d8e-text);
}
.d8e-tool-widget input:focus,
.d8e-tool-widget select:focus {
  outline: none;
  border-color: var(--d8e-accent);
  box-shadow: 0 0 0 3px rgba(145, 170, 31, 0.18);
}
.d8e-tool-widget button {
  background: var(--d8e-primary);
  color: #fff;
  border: 0;
  padding: .85rem 1.7rem;
  border-radius: var(--d8e-radius);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--d8e-font-b);
  font-size: .98rem;
  transition: background .2s, transform .2s;
}
.d8e-tool-widget button:hover {
  background: var(--d8e-accent-dk);
  transform: translateY(-1px);
}
.d8e-tool-result {
  margin-top: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--d8e-cream);
  border-left: 4px solid var(--d8e-accent);
  border-radius: var(--d8e-radius);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--d8e-text);
}
.d8e-tool-result strong { color: var(--d8e-primary); }
.d8e-tool-result hidden { display: none; }

/* Quiz styling */
.d8e-quiz-step { padding: 1rem 0; }
.d8e-quiz-step h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--d8e-primary);
}
.d8e-quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
}
.d8e-quiz-option {
  background: var(--d8e-surface);
  border: 2px solid var(--d8e-line);
  border-radius: var(--d8e-radius);
  padding: 1rem 1.2rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--d8e-font-b);
  font-size: .95rem;
  color: var(--d8e-text);
  transition: all .2s;
}
.d8e-quiz-option:hover {
  border-color: var(--d8e-accent);
  background: var(--d8e-cream);
  transform: translateY(-2px);
}
.d8e-quiz-option.is-selected {
  border-color: var(--d8e-accent);
  background: rgba(145, 170, 31, 0.1);
  color: var(--d8e-primary);
}
.d8e-quiz-progress {
  height: 4px;
  background: var(--d8e-line);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.d8e-quiz-progress-bar {
  height: 100%;
  background: var(--d8e-accent);
  transition: width .3s ease;
}

/* 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. */
@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 { 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 (dark on light) v1 */
/* Bouton burger mobile : couleur SOMBRE forcee + leger fond pour qu'il soit toujours distinguable du header (fond clair ou sombre indifferent). */
[class*="-burger"], [class*="-burger"] * { color: #1a1a1a !important; }
[class*="-burger"] svg { stroke: #1a1a1a !important; fill: none !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"] { background: rgba(0,0,0,0.05) !important; border-radius: 6px !important; border: 1px solid rgba(0,0,0,0.1) !important; padding: 6px !important; }
/* Si le header a un fond sombre (defini en inline ou via classe), on inverse en blanc */
[class*="-header"][style*="background:#0"] [class*="-burger"], [class*="-header"][style*="background:#1"] [class*="-burger"], [class*="-header"][style*="background:#2"] [class*="-burger"], [class*="-header"][class*="dark"] [class*="-burger"], [class*="-header"][class*="black"] [class*="-burger"] { color: #f5f5f5 !important; background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.2) !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: 980px) {
  [class*="-burger"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 44px !important; height: 44px !important; }
}

/* === RP2G 2026-06-06 burger drawer UL fix === */
.d8e-nav-mobile.is-open .d8e-nav-mobile-list,
.d8e-nav-mobile.is-open ul,
[class*="-nav-mobile"].is-open ul,
[class*="-nav-mobile"].is-open [class*="-nav-mobile-list"] {
  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 {
  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 {
  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;
}
/* === end === */
