/* VitaNaturalis — style.css
   Structure: SynaptikCMS official theme
   Fonts: Playfair Display (headings) + Inter (body)
   Botanical animations from Natura theme
   Dark/light mode, prefix: df- */
@font-face {
  font-family: 'DM Sans';
  src: url('../css/fonts/DMSans-Variable.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../css/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Brand — synaptik-cms green */
  --df-primary:       #3ea34e;
  --df-primary-dark:  #2d8a3d;
  --df-primary-light: #52c463;
  --df-primary-muted: #eaf6ec;
  --df-primary-alpha: rgba(62,163,78,.12);
  /* Neutrals */
  --df-ink:           #1a1f1b;
  --df-ink-2:         #2e3830;
  --df-ink-3:         #4e5e52;
  --df-ink-4:         #808f84;
  --df-border:        #d9e0da;
  --df-border-strong: #b4c4b6;
  --df-bg:            #fbf9f9;
  --df-bg-subtle:     #f2f4f2;
  --df-bg-muted:      #f4f4f4;
  --df-bg-muted-hover: #f1f4f2;
  --df-bg-dark:       #151c16;
  --df-bg-dark-2:     #1e2820;
  /* Gold accent */
  --df-gold:          #a07840;
  --df-gold-muted:    rgba(160,120,64,.12);
  /* Typography */
  --df-font-heading:  'DM Sans', system-ui, sans-serif;
  --df-font-body:     'Inter', system-ui, sans-serif;
  --df-size-base:     18px;
  --df-lh:            1.5;
  /* Layout */
  --df-max-w:         1200px;
  --df-header-h:      68px;
  /* Effects */
  --df-r-sm:  4px;
  --df-r-md:  8px;
  --df-r-lg:  16px;
  --df-r-xl:  24px;
  --df-shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --df-shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --df-shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
  --df-t: 0.22s cubic-bezier(0.4,0,0.2,1);
  /* Search overlay tokens */
  --search-card-bg-hover: #f8faf8;
  --search-overlay-bg:    #f8faf8;
  --search-card-bg:       #dde5de;
  --search-accent:        #6b8f71;
  --search-accent-dark:   #507558;
  --search-accent-light:  #8aad90;
  --search-text:          #1a1f1b;
  --search-section-heading: #808f84;
  --search-checkbox-border: var(--df-primary);
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --df-primary:       #3ea34e;
  --df-primary-dark:  #3ea34e;
  --df-primary-light: #78de72;
  --df-primary-muted: rgba(62,163,78,.14);
  --df-primary-alpha: rgba(62,163,78,.12);
  --df-ink:           #eff0ec;
  --df-ink-2:         #e4e5e1;
  --df-ink-3:         #c8cac5;
  --df-ink-4:         #6a7e6a;
  --df-border:        rgba(138,173,144,.16);
  --df-border-strong: rgba(138,173,144,.32);
  --df-bg:            #151c16;
  --df-bg-subtle:     #1a2318;
  --df-bg-muted:      #292f29;
  --df-bg-muted-hover: #333d33;
  --df-bg-dark:       #0e1510;
  --df-bg-dark-2:     #151c16;
  --df-gold:          #c9a85c;
  --df-gold-muted:    rgba(201,168,92,.12);
  --df-shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --df-shadow-md: 0 4px 16px rgba(0,0,0,.45);
  --df-shadow-lg: 0 12px 40px rgba(0,0,0,.55);
  --search-card-bg-hover: #1f2b1e;
  --search-overlay-bg:    #1a2318;
  --search-card-bg:       #232e22;
  --search-text:          #e8eed8;
  --search-accent:        #8aad90;
  --search-accent-light:  #a8c8ae;
  --search-section-heading: #6a7e6a;
  --search-checkbox-border: rgba(138,173,144,.22);
}
/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--df-font-body); font-size: var(--df-size-base); line-height: var(--df-lh); color: var(--df-ink); background: var(--df-bg); margin: 0; padding-top: var(--df-header-h); min-height: 100vh; display: flex; flex-direction: column; transition: background var(--df-t), color var(--df-t); }
main { flex: 1; width: 100%; }
a { color: var(--df-primary); text-decoration: none; transition: color var(--df-t); }
a:hover { color: var(--df-primary-dark); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--df-font-heading); font-weight: 600; line-height: 1.25; color: var(--df-ink); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 2rem); }
img { max-width: 100%; display: block; }
/* ── Container ── */
.df-container { max-width: var(--df-max-w); margin: 0 auto; padding: 0 32px; }
/* ── Theme toggle icons ── */
.df-theme-toggle .icon-sun { display: none; }
.df-theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .df-theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .df-theme-toggle .icon-moon { display: none; }
/* ───────────────────────────────────────── HEADER ───────────────────────────────────────── */
.df-site-header-wrap { position: fixed; top: var(--snk-adminbar-height, 0px); left: 0; right: 0; z-index: 1000; height: var(--df-header-h); background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--df-border); transition: box-shadow var(--df-t), background var(--df-t), border-color var(--df-t); }
[data-theme="dark"] .df-site-header-wrap { background: rgba(21,28,22,.90); }
.df-site-header-wrap.is-scrolled { box-shadow: var(--df-shadow-sm); }
.df-site-header-inner { max-width: var(--df-max-w); margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
/* Brand */
.df-site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.df-logo img, .df-logo-img { height: 36px; width: auto; display: block; }
.df-site-title { font-family: var(--df-font-heading); font-size: 1.15rem; font-weight: 700; color: var(--df-ink); white-space: nowrap; letter-spacing: -0.01em; }
.df-site-brand:hover .df-site-title { color: var(--df-primary); }
/* Botanical header plant — inline in header-right, right of theme toggle */
.df-header-plant { display: flex; align-items: flex-end; height: calc(var(--df-header-h) + 4px); width: auto; flex-shrink: 0; pointer-events: none; overflow: visible; color: var(--df-primary); opacity: .35; margin-right: 4px; }
.df-header-plant svg { height: 100%; width: auto; transform-origin: 50% 100%; animation: df-plant-sway 5s ease-in-out infinite; overflow: visible; }
@keyframes df-plant-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg) scale(1.01); }
}
/* Header right */
.df-header-right { display: flex; align-items: center; gap: 16px; }
/* Nav */
.df-site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.df-site-nav > ul > li { position: relative; }
.df-site-nav a { display: block; padding: 8px 12px; font-size: 0.9rem; font-weight: 500; color: var(--df-ink-3); border-radius: var(--df-r-sm); transition: color var(--df-t), background var(--df-t); white-space: nowrap; }
.df-site-nav a:hover { color: var(--df-primary); background: var(--df-primary-alpha); }
/* Dropdown arrow */
.df-site-nav li.has-submenu > a::after { content: '▾'; margin-left: 4px; font-size: .75em; opacity: .6; }
/* Dropdown */
.df-site-nav li.has-submenu > ul { position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; background: var(--df-bg); border: 1px solid var(--df-border); border-radius: var(--df-r-md); box-shadow: var(--df-shadow-md); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--df-t); z-index: 200; display: flex; flex-direction: column; }
.df-site-nav li.has-submenu:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.df-site-nav li.has-submenu > ul a { font-size: .875rem; color: var(--df-ink-2); border-radius: var(--df-r-sm); }
.df-site-nav li.has-submenu > ul li { width: 100%; }
.df-site-nav li.has-submenu > ul a:hover { color: var(--df-primary); background: var(--df-primary-alpha); }
/* Header CTA button */
.df-header-cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--df-primary); color: #fff; border-radius: var(--df-r-sm); font-size: .85rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: background var(--df-t), transform var(--df-t), box-shadow var(--df-t); text-decoration: none; }
.df-header-cta:hover { background: var(--df-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(107,143,113,.4); }
/* Theme toggle */
.df-theme-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: none; border: 1px solid var(--df-border); border: none; cursor: pointer; color: var(--df-ink-3); flex-shrink: 0; transition: color var(--df-t), border-color var(--df-t), background var(--df-t); }
.df-theme-toggle:hover { color: var(--df-primary); }
/* Mobile hamburger */
.df-nav-toggle { display: none; background: none; border: 1px solid var(--df-border); border-radius: var(--df-r-sm); padding: 8px; cursor: pointer; color: var(--df-ink); transition: background var(--df-t); line-height: 1; }
.df-nav-toggle:hover { background: var(--df-bg-muted); }
/* ───────────────────────────────────────── HERO — dark full-width like synaptik-cms ───────────────────────────────────────── */
.df-hero { background: var(--df-bg-dark); color: #fff; min-height: calc(100vh - var(--df-header-h)); display: flex; align-items: center; padding: 80px 0; position: relative; overflow: hidden; }
.df-hero::before { content: ""; position: absolute; inset: 0; background-image: url("https://vitanaturalis.fr/files/bg2.webp"); background-position: center; background-repeat: no-repeat; background-size: cover; opacity: 0.3; z-index: 0; }
/* Subtle grid texture */
/* .df-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(107,143,113,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(107,143,113,.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; } */
/* Top accent line */
.df-hero::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--df-primary-dark), var(--df-primary-light), var(--df-primary-dark)); }
.df-hero-inner { max-width: var(--df-max-w); margin: 0 auto; padding: 0 32px; text-align: center; position: relative; z-index: 1; }
.df-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(107,143,113,.15); border: 1px solid rgba(107,143,113,.3); color: var(--df-primary-light); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 24px; }
.df-badge-dot { width: 8px; height: 8px; background: var(--df-primary-light); border-radius: 50%; animation: df-pulse 2s ease infinite; }
@keyframes df-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}
.df-hero h1 { font-family: var(--df-font-heading); color: #fff; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 20px; max-width: 960px; text-align: center; }
.df-hero h1 .accent { color: #52c463; }
.df-hero-lead { font-size: clamp(1rem, 1.7vw, 1.25rem); color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto 40px; line-height: 1.65; font-weight: 300; }
.df-hero-cta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
/* Buttons */
.df-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-family: var(--df-font-body); font-size: .92rem; font-weight: 600; border-radius: var(--df-r-sm); border: 1.5px solid transparent; cursor: pointer; transition: all var(--df-t); text-decoration: none; line-height: 1; white-space: nowrap; }
.df-btn-primary { background: var(--df-primary); border-color: var(--df-primary); color: #fff; }
.df-btn-primary:hover { background: var(--df-primary-dark); border-color: var(--df-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(107,143,113,.35); }
.df-btn-outline { background: transparent; border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.85); }
.df-btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: #fff; }
.df-btn-outline-dark { background: transparent; border-color: var(--df-border-strong); color: var(--df-ink-2); }
.df-btn-outline-dark:hover { border-color: var(--df-primary); color: var(--df-primary); background: var(--df-primary-alpha); }
/* ───────────────────────────────────────── SECTION SCAFFOLDING ───────────────────────────────────────── */
.df-home-section { padding: 80px 0; }
.df-section-alt { background: var(--df-bg-subtle); }
.df-section-head { margin-bottom: 48px; }
.df-section-label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--df-primary); margin-bottom: 10px; }
.df-section-title { font-family: var(--df-font-heading); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; color: var(--df-ink); margin-bottom: 10px; line-height: 1.2; }
/* ───────────────────────────────────────── ARTICLES GRID — 3 columns ───────────────────────────────────────── */
.df-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.df-articles-grid--masonry { grid-auto-rows: 1px; align-items: start; }
/* ── Article card — masonry style (Ink), with featured image ── */
.article-card { background: #fff; border: 1px solid var(--df-border); border-radius: var(--df-r-md); padding: 0; display: flex; flex-direction: column; gap: 0; transition: background 0.3s ease, box-shadow 0.3s ease; box-shadow: var(--df-shadow-sm); overflow: hidden; }
.article-card:hover { background: var(--df-bg-muted-hover); box-shadow: var(--df-shadow-md); }
/* Featured image on card */
.article-thumbnail { margin: 0; overflow: hidden; }
.article-thumbnail img { width: 100%; height: auto; min-height: 160px; max-height: 340px; object-fit: cover; display: block; transition: transform 0.3s var(--df-t); }
.article-card:hover .article-thumbnail img { transform: scale(1.03); }
/* Card body */
.article-card h3 { font-family: var(--df-font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; margin: 0 0 14px; padding: 16px 20px 0; }
.article-card h3 a { color: var(--df-ink); transition: color 0.3s ease-in-out; }
.article-card h3 a:hover { color: var(--df-primary); }
.article-date { display: inline-flex; align-items: center; gap: 5px; padding: 0 20px 8px; font-size: .78rem; color: var(--df-ink-4); font-weight: 500; background: none; border: none; border-radius: 0; margin: 0; }
.article-date svg { flex-shrink: 0; color: var(--df-primary); }
.article-tags { padding: 0 20px 10px; display: flex; flex-wrap: wrap; gap: 4px; color: var(--df-primary); }
.article-tags svg { flex-shrink: 0; margin-right: 2px; }
.article-summary { padding: 0 20px; flex-grow: 1; font-size: .875rem; color: var(--df-ink-3); line-height: 1.55; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; color: var(--df-ink-3); margin: 12px 20px 20px; transition: color var(--df-t); background: none; text-align: left; padding: 0; }
.read-more:hover { color: var(--df-ink); background: none; }
/* Badges */
.tag-link { background: var(--df-bg-muted); color: var(--df-ink-3); padding: 2px 8px; border-radius: 5px; font-size: .75rem; font-weight: 500; transition: background var(--df-t), color var(--df-t); border: 1px solid var(--df-border); }
.tag-link:hover { background: var(--df-primary-muted); color: var(--df-primary-dark); border-color: var(--df-primary); }
.category-badge { display: inline-block; background: var(--df-primary-muted); color: var(--df-primary-dark); padding: 3px 10px; border-radius: 100px; font-size: .8rem; font-weight: 600; border: 1px solid rgba(107,143,113,.22); transition: background var(--df-t); }
.category-badge:hover { background: var(--df-primary); color: #fff; }
/* Projects grid */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.project-card { position: relative; border-radius: var(--df-r-lg); overflow: hidden; aspect-ratio: 4/3; transition: transform var(--df-t), box-shadow var(--df-t); box-shadow: var(--df-shadow-sm); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--df-shadow-lg); }
.project-thumbnail { width: 100%; height: 100%; }
.project-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: filter var(--df-t); }
.project-card:hover .project-thumbnail img { filter: brightness(.3); }
.project-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; opacity: 0; transition: opacity var(--df-t); color: #fff; text-align: center; }
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay h3 { color: #fff; margin: 0 0 8px; transform: translateY(-20px); transition: transform var(--df-t); }
.project-card:hover .project-overlay h3 { transform: translateY(0); }
.project-overlay .project-excerpt { font-size: .875rem; opacity: .85; margin-bottom: 12px; transform: translateY(10px); transition: transform var(--df-t) .05s; }
.project-card:hover .project-overlay .project-excerpt { transform: translateY(0); }
.view-project { display: inline-block; padding: 8px 20px; background: var(--df-primary); color: #fff; border-radius: var(--df-r-sm); font-size: .85rem; font-weight: 600; transform: translateY(10px); transition: transform var(--df-t) .08s, background var(--df-t); }
.project-card:hover .view-project { transform: translateY(0); }
.view-project:hover { background: var(--df-primary-dark); color: #fff; }
.project-card-no-image { background: var(--df-bg-muted); }
.project-card-no-image .project-overlay { opacity: 1; }
.project-card-no-image h3, .project-card-no-image .project-excerpt, .project-card-no-image .view-project { transform: none; }
/* View all */
.df-view-all { text-align: center; margin-top: 16px; }
.df-view-all a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1.5px solid var(--df-border-strong); border-radius: var(--df-r-sm); font-size: .88rem; font-weight: 600; color: var(--df-ink-3); transition: all var(--df-t); }
.df-view-all a:hover { border-color: var(--df-primary); color: var(--df-primary); background: var(--df-primary-alpha); }
/* ───────────────────────────────────────── SINGLE ITEM — full-width hero image + title overlay ───────────────────────────────────────── */
.df-single-hero { position: relative; width: 100%; height: clamp(320px, 50vh, 560px); overflow: hidden; display: flex; align-items: flex-end; }
.df-single-cover { position: absolute; inset: 0; }
.df-single-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.df-single-overlay { position: absolute; inset: 0; background: linear-gradient( to top, rgba(15,20,16,.85) 0%, rgba(15,20,16,.35) 55%, rgba(15,20,16,.10) 100% ); }
.df-single-hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--df-max-w); margin: 0 auto; padding: 0 32px 40px; }
.df-single-title { font-family: var(--df-font-heading); font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -.02em; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.df-single-hero-text .category-badge { display: inline-block; margin-bottom: 14px; background: rgba(62,163,78,.25); border-color: rgba(62,163,78,.4); color: #7de88a; }
.df-single-hero-text .article-date-single { color: rgba(255,255,255,.65); margin: 10px 0 0; }
@media (max-width: 768px) {
  .df-single-hero { height: clamp(240px, 40vw, 380px); }
  .df-single-hero-text { padding: 0 16px 28px; }
}
/* ───────────────────────────────────────── CONTENT — single items ───────────────────────────────────────── */
.content-wrap { max-width: var(--df-max-w); margin: 0 auto; padding: 64px 32px; }
.content-wrap--text { max-width: 720px; }
.featured-image { width: 100%; max-height: 500px; overflow: hidden; margin-bottom: 48px; border-radius: var(--df-r-lg); }
.featured-image img { width: 100%; height: 400px; object-fit: cover; }
h1.content-title { font-family: var(--df-font-heading); font-size: clamp(2rem, 4vw, 5rem); font-weight: 700; letter-spacing: -.02em; color: var(--df-ink); margin-bottom: 12px; line-height: 1.2; text-align: center; }
.article-date-single { font-size: .85rem; color: var(--df-ink-4); margin-bottom: 20px; }
.content-main, .page-content, .project-content { font-size: var(--df-size-base); line-height: var(--df-lh); color: var(--df-ink-2); max-width: 900px; margin: 0 auto; }
.content-main p, .page-content p, .project-content p { font-size: inherit; }
.content-main h2, .page-content h2, .project-content h2 { margin-top: 48px; font-family: var(--df-font-heading); }
.content-main h3, .page-content h3, .project-content h3 { margin-top: 32px; font-family: var(--df-font-heading); }
/* Underline sliding 2px — body content links only */
.content-main a:not([class]), .page-content a:not([class]), .project-content a:not([class]) { background-image: linear-gradient(currentColor, currentColor); background-position: left bottom; background-repeat: no-repeat; background-size: 0% 2px; transition: background-size 0.25s ease-in-out, color 0.2s ease-in-out; }
.content-main a:not([class]):hover, .page-content a:not([class]):hover, .project-content a:not([class]):hover { background-size: 100% 2px; padding-bottom: 2px; }
/* Disable sliding underline on TOC and footnote links — they live inside .content-main but must not inherit the above animation */
.sc-toc a, .md-footnotes a, .md-fn-backref { background-image: none !important; transition: color 0.2s ease-in-out !important; }
/* Breadcrumbs */
.breadcrumbs { padding: 12px 0; font-size: .82rem; color: var(--df-ink-4); margin-bottom: 20px; }
.breadcrumbs a { color: var(--df-ink-4); }
.breadcrumbs a:hover { color: var(--df-primary); }
/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination .current-page { padding: 8px 14px; border: 1px solid var(--df-border); border-radius: var(--df-r-sm); font-size: .88rem; font-weight: 500; color: var(--df-ink-3); background: var(--df-bg); transition: all var(--df-t); }
.pagination a:hover { border-color: var(--df-primary); color: var(--df-primary); background: var(--df-primary-alpha); }
.pagination .current-page { background: var(--df-primary); border-color: var(--df-primary); color: #fff; }
/* Custom fields */
.custom-fields-block { background: var(--df-bg-subtle); border: 1px solid var(--df-border); border-radius: var(--df-r-md); padding: 16px; }
.custom-fields { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.cf-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--df-border); }
.cf-row:last-child { border-bottom: none; padding-bottom: 0; }
.cf-row:first-child { padding-top: 0; }
.cf-row dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--df-primary); font-weight: 600; }
.cf-row dd { margin: 0; color: var(--df-ink-2); font-size: .875rem; line-height: 1.5; }
/* Related items */
.related-items { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--df-border); }
.related-items-title { font-family: var(--df-font-heading); font-size: 1.2rem; font-weight: 700; color: var(--df-ink); margin-bottom: 20px; }
.related-items-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.related-item a { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 16px 20px; background: var(--df-bg-subtle); border: 1px solid var(--df-border); border-left: 3px solid var(--df-primary); border-radius: var(--df-r-sm); color: var(--df-ink-2); font-size: .95rem; font-weight: 500; transition: all var(--df-t); }
.related-item a:hover { border-color: var(--df-primary); background: #FFF; color: var(--df-primary-dark); box-shadow: var(--df-shadow-md); transform: translateY(-2px); }
.related-item-type { display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 3px; }
.related-item--article .related-item-type { background: rgba(107,143,113,.12); color: var(--df-primary); }
.related-item--project .related-item-type { background: var(--df-gold-muted); color: var(--df-gold); }
.related-item--page .related-item-type { background: var(--df-bg-muted); color: var(--df-ink-4); }
/* Footer tags */
.article-footer-tags, .project-footer-tags { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--df-border); }
.article-footer-tags h4, .project-footer-tags h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--df-ink-4); margin-bottom: 12px; }
/* ───────────────────────────────────────── LIST / CATEGORY / TAG PAGES ───────────────────────────────────────── */
.content-list, .category-content, .tag-content { padding: 64px 0; }
.content-list h1, .category-content h2, .tag-content h2 { color: var(--df-ink); border-bottom: 2px solid var(--df-primary); padding-bottom: 8px; display: inline-block; margin-bottom: 32px; font-family: var(--df-font-heading); }
/* ───────────────────────────────────────── 404 ───────────────────────────────────────── */
.not-found { max-width: 560px; margin: 80px auto; text-align: center; padding: 0 20px; }
.not-found h1 { font-family: var(--df-font-heading); font-size: 6rem; font-weight: 700; color: var(--df-primary); line-height: 1; margin-bottom: 8px; }
.not-found h2 { font-size: 1.4rem; color: var(--df-ink); margin-bottom: 16px; }
.not-found p { color: var(--df-ink-4); margin-bottom: 24px; }
/* Empty state */
.df-empty { color: var(--df-ink-4); font-size: .92rem; font-style: italic; padding: 32px; }
/* ───────────────────────────────────────── FOOTER — dark with botanical plants ───────────────────────────────────────── */
.df-site-footer { background: var(--df-bg-dark); color: rgba(255,255,255,.7); padding-top: 80px; margin-top: auto; position: relative; overflow: hidden; }
/* Botanical plants — posées sur le footer-bottom */
.df-footer-plants { position: absolute; right: 48px; bottom: 0; display: flex; align-items: flex-end; gap: 8px; height: 110px; pointer-events: none; user-select: none; color: rgba(107,143,113,.22); z-index: 0; }
.df-fp { display: block; height: 100%; width: auto; transform-origin: center bottom; overflow: visible; }
.df-fp-1 { animation: df-plant-sway 6s ease-in-out infinite; }
.df-fp-2 { animation: df-plant-sway 7.5s ease-in-out infinite; animation-delay: -2s; height: 80%; }
.df-fp-3 { animation: df-plant-sway 5.5s ease-in-out infinite; animation-delay: -1s; height: 90%; }
.df-footer-container { max-width: var(--df-max-w); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.df-footer-top { display: grid; grid-template-columns: 240px 1fr; gap: 80px; padding-bottom: 64px; margin-bottom: 24px; }
.df-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; }
.df-footer-logo img { height: 32px; width: auto; filter: invert(0.2); opacity: .9; }
.df-footer-logo-title { font-family: var(--df-font-heading); font-size: 1rem; font-weight: 700; color: #fff; }
.df-footer-tagline { font-size: .85rem; color: rgba(255,255,255,.4); line-height: 1.6; margin: 0 0 20px; }
/* Footer social / text from render_footer_content() */
.df-site-footer .footer-text { font-size: .8rem; color: rgba(255,255,255,.3); margin: 0 0 12px; }
.df-site-footer .footer-text a { color: rgba(255,255,255,.45); text-decoration: underline; text-decoration-color: transparent; transition: color var(--df-t), text-decoration-color var(--df-t); }
.df-site-footer .footer-text a:hover { color: rgba(255,255,255,.8); text-decoration-color: rgba(255,255,255,.4); }
.df-site-footer .social-links { display: flex; gap: 12px; }
.df-site-footer a.social-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--df-r-sm); background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); transition: background var(--df-t), color var(--df-t); margin-right: 0; }
.df-site-footer a.social-icon:hover { background: var(--df-primary); color: #fff; }
.df-site-footer a.social-icon svg { width: 18px; height: 18px; }
.df-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.df-footer-col-title { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.df-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.df-footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.4); transition: color var(--df-t); }
.df-footer-col ul li a:hover { color: rgba(255,255,255,.85); }
.df-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 24px; border-top: 1px solid rgba(255,255,255,.08); }
.df-footer-copy { font-size: .8rem; color: rgba(255,255,255,.3); margin: 0; }
/* Footer contact list */
.df-footer-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.df-footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: rgba(255,255,255,.5); }
.df-footer-contact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--df-primary); }
.df-footer-contact-list a { color: rgba(255,255,255,.5); transition: color var(--df-t); }
.df-footer-contact-list a:hover { color: rgba(255,255,255,.85); }
.df-footer-address span { line-height: 1.55; }
/* Footer nav — override header nav styles, reset to simple list */
.df-footer-col .df-site-nav ul { flex-direction: column; gap: 0; }
.df-footer-col .df-site-nav > ul > li > a { padding: 4px 0; font-size: .875rem; font-weight: 400; color: rgba(255,255,255,.4); border-radius: 0; background: none; }
.df-footer-col .df-site-nav > ul > li > a:hover { color: rgba(255,255,255,.85); background: none; }
.df-footer-col .df-site-nav > ul > li > a::after { display: none; }
.df-footer-col .df-site-nav li.has-submenu > ul { display: none; }
.df-footer-col .df-site-nav li.has-submenu > ul a { font-size: .82rem; color: rgba(255,255,255,.3); padding: 3px 0; }
.df-footer-col .df-site-nav li.has-submenu > ul a:hover { color: rgba(255,255,255,.7); background: none; }
/* ───────────────────────────────────────── SHORTCODES ───────────────────────────────────────── */
.sc-toc { display: inline-block; min-width: 220px; background: var(--df-bg-subtle); border: 1px solid var(--df-border); border-radius: var(--df-r-md); padding: 16px 20px; margin: 20px 0; }
.sc-toc::before { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--df-primary); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--df-border); }
.sc-toc ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.sc-toc li { list-style: none !important; }
.sc-toc li a { font-size: .95rem; color: var(--df-ink-2); text-decoration: none; transition: color 0.2s ease-in-out; }
.sc-toc li a:hover { color: var(--df-primary); }
.sc-toc .sc-toc-sub { padding-left: 14px; }
.sc-toc .sc-toc-sub a { font-size: .82rem; color: var(--df-ink-3); }
.sc-callout-body { color: var(--df-ink-2); }
.sc-callout { padding: 16px 20px; border-radius: var(--df-r-md); border-left: 4px solid; margin: 20px 0; font-size: .95rem; }
.sc-callout-info { background: rgba(93,172,252,.15); border-color: #4e64ab; }
.sc-callout-warning { background: rgba(255,163,0,.15); border-color: #c78008; }
.sc-callout-tip { background: rgba(107,143,113,.12); border-color: var(--df-primary); }
.sc-callout-danger { background: rgba(220,53,69,.12); border-color: #b02a37; }
.sc-quote { margin: 24px 0; padding: 20px 24px; font-style: italic; color: var(--df-ink-3); font-size: 1.05rem; background-color: #dde5dd; border-radius: 5px; border: 1px solid #bcc7bc; border-left: 4px solid var(--df-primary); }
.sc-btn { display: inline-flex; padding: 10px 22px; background: var(--df-primary); color: #fff; border-radius: var(--df-r-sm); font-weight: 600; font-size: .9rem; transition: background var(--df-t); }
.sc-btn:hover { background: var(--df-primary-dark); color: #fff; }
.sc-btn-secondary { background: var(--df-ink-3); }
.sc-btn-outline { background: transparent; border: 2px solid var(--df-primary); color: var(--df-primary); }
.sc-btn-outline:hover { background: var(--df-primary); color: #fff; }
/* Columns */
.content-columns { display: flex; flex-wrap: wrap; gap: 20px; margin: 20px 0; width: 100%; }
.column { padding: 16px; background: var(--df-bg-subtle); border: 1px solid var(--df-border); border-radius: var(--df-r-md); }
.columns-4 .column { flex: 0 0 calc(25% - 15px); }
.columns-3 .column { flex: 0 0 calc(33.333% - 14px); }
.columns-2 .column { flex: 0 0 calc(50% - 10px); }
/* Collapsibles */
.c-col { --c-color: var(--df-primary); border: 1px solid var(--df-border); border-radius: var(--df-r-md); margin: 8px 0; overflow: hidden; background: var(--df-bg-subtle); }
.c-col>.c-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; user-select: none; background: transparent; border: 0; width: 100%; text-align: left; font: inherit; color: inherit; transition: background var(--df-t); }
.c-col>.c-head:hover { background: var(--df-bg-muted); }
.c-col>.c-head .c-title { flex: 1; font-weight: 600; color: var(--c-color); line-height: 1.3; }
.c-col>.c-head .c-chevron { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; margin-left: auto; font-size: 0; color: transparent; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.c-col>.c-head .c-chevron::before { content: ''; display: block; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--c-color); }
.c-col.open>.c-head .c-chevron { transform: rotate(180deg); }
.c-col>.c-body { display: block; max-height: 0; overflow: hidden; padding: 0 16px; opacity: 0; transform: translateY(-6px); transition: max-height .25s cubic-bezier(.4,0,.2,1), opacity .2s ease, transform .2s ease, padding .2s ease; }
.c-col.open>.c-body { max-height: 5000px; padding: 6px 16px 16px; opacity: 1; transform: translateY(0); transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease .06s, transform .3s ease .06s, padding .25s ease; }
/* Tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; margin: 24px 0; border: 1px solid var(--df-border); border-radius: var(--df-r-md); overflow: hidden; }
th { background: var(--df-bg-muted); color: var(--df-ink); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--df-border); border-right: 1px solid var(--df-border); }
th:last-child { border-right: none; }
td { padding: 11px 18px; border-bottom: 1px solid var(--df-border); border-right: 1px solid var(--df-border); color: var(--df-ink-2); line-height: 1.5; vertical-align: top; }
td:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: var(--df-bg-subtle); }
tbody tr { transition: background var(--df-t); }
tbody tr:hover td { background: var(--df-primary-muted); }
/* Tables dark */
[data-theme="dark"] table { border-color: rgba(138,173,144,.14); }
[data-theme="dark"] th { background: rgba(255,255,255,.09); color: var(--df-ink-2); border-bottom-color: rgba(138,173,144,.14); border-right-color: rgba(138,173,144,.08); }
[data-theme="dark"] td { color: var(--df-ink-3); border-bottom-color: rgba(138,173,144,.08); border-right-color: rgba(138,173,144,.06); }
[data-theme="dark"] tbody tr:nth-child(even) td { background: rgba(255,255,255,.025); }
[data-theme="dark"] tbody tr:hover td { background: rgba(62,163,78,.07); }
[data-theme="dark"] .article-card { background: var(--df-bg-muted); border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .article-card:hover { background: var(--df-bg-muted-hover); box-shadow: 0 8px 32px rgba(0,0,0,.55); border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .article-card h3 a { color: #e8eae6; transition: color 0.2s ease-in-out; }
[data-theme="dark"] .article-card h3 a:hover { color: var(--df-primary); }
[data-theme="dark"] .article-date { color: #8a9a8a; }
[data-theme="dark"] .article-summary { color: #abb3ab; }
[data-theme="dark"] .read-more { color: #9aa09a; }
[data-theme="dark"] .read-more:hover { color: #d0d8d0; }
[data-theme="dark"] .tag-link { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.09); color: #9aa09a; }
[data-theme="dark"] .tag-link:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #d0d8d0; }
/* Sections dark */
[data-theme="dark"] .df-section-alt { background: #181e1a; }
[data-theme="dark"] .df-feature-card { background: #222d24; border-color: rgba(138,173,144,.14); }
[data-theme="dark"] .df-feature-card:hover { border-color: var(--df-primary); box-shadow: 0 4px 20px rgba(0,0,0,.4); }
[data-theme="dark"] .df-feature-icon { background: rgba(62,163,78,.12); }
[data-theme="dark"] .df-step { background: #222d24; border-color: rgba(138,173,144,.14); border-top: 3px solid var(--df-primary); }
[data-theme="dark"] .df-review-card { background: #222d24; border-color: rgba(138,173,144,.14); }
[data-theme="dark"] .df-split-img-wrap { background: #1e2226; }
[data-theme="dark"] .df-split-img-placeholder { background: #1e2226; }
[data-theme="dark"] code { background: #1e2226; }
[data-theme="dark"] .c-col { background: #1e2226; border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .c-col>.c-head:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .custom-fields-block { background: #1e2226; border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .cf-row { border-bottom-color: rgba(255,255,255,.06); }
[data-theme="dark"] .related-item a { background: #1e2226; border-color: rgba(255,255,255,.07); color: #b0b8b0; }
[data-theme="dark"] .related-item a:hover { background: #262c2a; border-color: rgba(255,255,255,.16); }
/* Search overlay */
#search-overlay { background: rgba(0,0,0,.88) !important; backdrop-filter: blur(4px); }
:not(pre)>code { background: var(--df-bg-subtle); padding: 3px 5px; border-radius: 3px; color: var(--df-ink); font-size: .9em; }
.search-icon { list-style-type: none; }
/* ───────────────────────────────────────── HOME SECTIONS — split, steps, features, reviews, newsletter, CTA ───────────────────────────────────────── */
/* Section head row (label+title left, link right) */
.df-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.df-section-head--center { flex-direction: column; align-items: center; text-align: center; }
.df-section-head--center .df-section-lead { max-width: 580px; margin: 8px auto 0; }
.df-section-lead { font-size: 1rem; color: var(--df-ink-3); line-height: 1.65; margin: 0; }
.df-view-all-link { font-size: .85rem; font-weight: 600; color: var(--df-ink-3); white-space: nowrap; flex-shrink: 0; margin-left: 24px; transition: color var(--df-t); }
.df-view-all-link:hover { color: var(--df-primary); }
/* ── Alternating split — image ronde + texte ── */
.df-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--df-border); }
.df-split:last-child { border-bottom: none; }
.df-split--img-right { direction: rtl; }
.df-split--img-right > * { direction: ltr; }
.df-split-media { display: flex; justify-content: center; }
.df-split-img-wrap { width: 380px; height: 380px; border-radius: 5%; overflow: hidden; background: var(--df-bg-muted); flex-shrink: 0; position: relative; }
.df-split-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 5%; }
.df-split-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--df-border-strong); background: var(--df-bg-muted); }
.df-split-content .df-section-label { margin-bottom: 8px; }
.df-split-content h2 { font-family: var(--df-font-heading); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.25; color: var(--df-ink); margin-bottom: 16px; }
.df-split-content p { font-size: 1rem; color: var(--df-ink-3); line-height: 1.75; margin-bottom: 24px; }
/* ── Feature grid (encarts piliers) ── */
.df-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.df-feature-card { padding: 28px 24px; border: 1px solid var(--df-border); border-radius: var(--df-r-lg); background: #fff; box-shadow: var(--df-shadow-sm); transition: border-color var(--df-t), box-shadow var(--df-t), transform var(--df-t); }
.df-feature-card:hover { border-color: var(--df-primary); box-shadow: var(--df-shadow-md); transform: translateY(-2px); }
.df-feature-icon { width: 44px; height: 44px; border-radius: var(--df-r-md); background: var(--df-primary-muted); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--df-primary); }
.df-feature-title { font-family: var(--df-font-heading); font-size: 1rem; font-weight: 600; color: var(--df-ink); margin-bottom: 8px; line-height: 1.3; }
.df-feature-desc { font-size: .875rem; color: var(--df-ink-3); line-height: 1.6; margin: 0; }
/* ── Steps — déroulé consultation ── */
.df-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.df-step { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border: 1px solid var(--df-border); border-radius: var(--df-r-lg); border-top: 3px solid var(--df-primary); background: var(--df-bg-subtle); box-shadow: var(--df-shadow-sm); }
.df-step-num { font-family: var(--df-font-heading); font-size: 1.75rem; font-weight: 700; color: var(--df-primary); opacity: .35; line-height: 1; }
.df-step-body h3 { font-family: var(--df-font-heading); font-size: 1rem; font-weight: 700; color: var(--df-ink); margin-bottom: 8px; }
.df-step-body p { font-size: .875rem; color: var(--df-ink-3); line-height: 1.65; margin: 0; }
/* ── CTA Banner dark ── */
.df-cta-banner { background: var(--df-bg-dark); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.df-cta-banner::before { content: ''; position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(107,143,113,.12) 0%, transparent 70%); pointer-events: none; }
.df-cta-banner h2 { font-family: var(--df-font-heading); color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.df-cta-banner p { font-size: 1.05rem; color: rgba(255,255,255,.6); max-width: 520px; margin: 0 auto 40px; line-height: 1.65; }
.df-cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
/* ── Reviews ── */
.df-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.df-review-card { background: var(--df-bg); border: 1px solid var(--df-border); border-radius: var(--df-r-lg); padding: 28px 24px; box-shadow: var(--df-shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.df-review-stars { color: var(--df-gold); font-size: 1rem; letter-spacing: 2px; }
.df-review-text { font-size: .95rem; color: var(--df-ink-2); line-height: 1.7; font-style: italic; flex: 1; margin: 0; }
.df-review-author { display: flex; flex-direction: column; gap: 2px; }
.df-review-name { font-weight: 600; font-size: .875rem; color: var(--df-ink); }
.df-review-role { font-size: .78rem; color: var(--df-ink-4); text-transform: uppercase; letter-spacing: .06em; }
/* ── Newsletter ── */
.df-newsletter { background: var(--df-primary-muted); padding: 80px 0; border-top: 1px solid var(--df-border); border-bottom: 1px solid var(--df-border); }
[data-theme="dark"] .df-newsletter { background: #1a211c; border-color: rgba(255,255,255,.07); }
.df-newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.df-newsletter-text h2 { font-family: var(--df-font-heading); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; color: var(--df-ink); margin-bottom: 12px; }
.df-newsletter-text p { font-size: .95rem; color: var(--df-ink-3); line-height: 1.7; margin: 0; }
/* Page template — tarifs.php */
.df-tarifs-page {}
.df-tarifs-section { padding: 80px 0; }
.df-tarifs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.df-tarif-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; background: var(--df-bg); border: 1px solid var(--df-border); border-radius: var(--df-r-lg); border-top: 4px solid var(--df-border); transition: box-shadow var(--df-t), border-color var(--df-t); }
.df-tarif-card:hover { box-shadow: var(--df-shadow-md); border-top-color: var(--df-primary); }
.df-tarif-card--featured { border-top-color: var(--df-primary); background: var(--df-bg); box-shadow: var(--df-shadow-md); }
.df-tarif-card--featured::before { content: ''; position: absolute; inset: -1px; border-radius: calc(var(--df-r-lg) + 1px); background: linear-gradient(160deg, rgba(62,163,78,.15) 0%, transparent 60%); pointer-events: none; z-index: 0; }
.df-tarif-card--featured > * { position: relative; z-index: 1; }
[data-theme="dark"] .df-tarif-card { background: #1e2226; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .df-tarif-card--featured { box-shadow: 0 8px 32px rgba(0,0,0,.45); }
.df-tarif-note { display: inline-block; align-self: flex-start; padding: 3px 10px; background: var(--df-primary-muted); color: var(--df-primary-dark); border: 1px solid rgba(62,163,78,.25); border-radius: 100px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.df-tarif-card--featured .df-tarif-note { background: var(--df-primary); color: #fff; border-color: transparent; }
.df-tarif-name { font-family: var(--df-font-heading); font-size: 1.2rem; font-weight: 700; color: var(--df-ink); margin: 0; line-height: 1.25; }
.df-tarif-price-wrap { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--df-border); border-bottom: 1px solid var(--df-border); }
.df-tarif-price { font-family: var(--df-font-heading); font-size: 2rem; font-weight: 700; color: var(--df-primary); letter-spacing: -.02em; line-height: 1; }
.df-tarif-duration { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--df-ink-4); font-weight: 500; }
.df-tarif-desc { font-size: .9rem; color: var(--df-ink-3); line-height: 1.65; margin: 0; flex: 1; }
.df-tarif-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .875rem; font-weight: 600; color: var(--df-ink-3); border: 1px solid var(--df-border); border-radius: var(--df-r-sm); padding: 10px 18px; transition: all var(--df-t); align-self: flex-start; }
.df-tarif-cta:hover { color: var(--df-primary); border-color: var(--df-primary); background: var(--df-primary-alpha); }
.df-tarif-card--featured .df-tarif-cta { background: var(--df-primary); color: #fff; border-color: var(--df-primary); }
.df-tarif-card--featured .df-tarif-cta:hover { background: var(--df-primary-dark); border-color: var(--df-primary-dark); }
.df-tarifs-footnote { margin-top: 40px; padding: 20px 24px; background: var(--df-bg-subtle); border: 1px solid var(--df-border); border-left: 3px solid var(--df-border-strong); border-radius: var(--df-r-md); font-size: .875rem; color: var(--df-ink-4); line-height: 1.65; }
[data-theme="dark"] .df-tarifs-footnote { background: #1e2226; border-color: rgba(255,255,255,.07); }
@media (max-width: 1024px) {
  .df-tarifs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .df-tarifs-grid { grid-template-columns: 1fr; }
}
.df-naturo-page { width: 100%; }
.df-naturo-approach { margin-bottom: 64px; }
.df-naturo-body { margin-top: 64px; }
/* Page template — consultations.php */
.df-consult-page { max-width: 100%; }
.df-consult-intro { max-width: 720px; margin: 0 auto 0; text-align: center; color: var(--df-ink-3); font-size: 1.05rem; }
/* Steps section wrapper */
.df-consult-steps-section { padding: 80px 0; background: var(--df-bg-subtle); border-top: 1px solid var(--df-border); border-bottom: 1px solid var(--df-border); }
[data-theme="dark"] .df-consult-steps-section { background: #181e1a; border-color: rgba(255,255,255,.07); }
/* Grid problématiques — full width, 3 cols */
.df-probs-grid-section { padding: 80px 0 0; scroll-margin-top: var(--df-header-h); }
.df-probs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--df-border); border-left: 1px solid var(--df-border); margin-top: 48px; }
.df-prob-card { display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; border-right: 1px solid var(--df-border); border-bottom: 1px solid var(--df-border); text-decoration: none; color: var(--df-ink); background: var(--df-bg); transition: background var(--df-t), border-color var(--df-t); position: relative; scroll-margin-top: 80px; }
.df-prob-card a { background: var(--df-bg); }
.df-prob-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--df-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--df-t); }
.df-prob-card:hover { background: var(--df-bg-muted); color: var(--df-ink); }
.df-prob-card:hover::before { transform: scaleX(1); }
[data-theme="dark"] .df-prob-card { background: #181e1a; border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .df-prob-card:hover { background: #1e2226; }
.df-prob-icon { width: 44px; height: 44px; border-radius: var(--df-r-md); background: var(--df-primary-muted); display: flex; align-items: center; justify-content: center; color: var(--df-primary); flex-shrink: 0; }
[data-theme="dark"] .df-prob-icon { background: rgba(62,163,78,.12); }
.df-prob-title { font-family: var(--df-font-heading); font-size: 1.05rem; font-weight: 700; color: var(--df-ink); margin: 0; line-height: 1.3; }
.df-prob-desc { font-size: .875rem; color: var(--df-ink-3); line-height: 1.6; margin: 0; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.df-prob-more { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--df-primary); margin-top: auto; padding-top: 8px; transition: gap 0.2s ease; }
.df-prob-card:hover .df-prob-more { gap: 8px; }
/* Detail sections — full width alternated */
.df-prob-detail { padding: 80px 0; border-top: 1px solid var(--df-border); scroll-margin-top: calc(var(--df-header-h) + 16px); }
.df-prob-detail--alt { background: var(--df-bg-subtle); }
[data-theme="dark"] .df-prob-detail--alt { background: #181e1a; }
.df-prob-detail-inner { max-width: 840px; margin: 0 auto; padding: 0 32px; }
.df-prob-detail-header { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.df-prob-detail-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--df-r-lg); background: var(--df-primary-muted); display: flex; align-items: center; justify-content: center; color: var(--df-primary); }
[data-theme="dark"] .df-prob-detail-icon { background: rgba(62,163,78,.12); }
.df-prob-detail-header h2 { font-family: var(--df-font-heading); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -.02em; color: var(--df-ink); margin: 0; }
.df-prob-detail-body { font-size: 1rem; line-height: 1.8; color: var(--df-ink-2); }
.df-prob-detail-body p { margin-bottom: 1.1em; }
.df-prob-detail-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.1em; }
.df-prob-detail-body li { margin-bottom: .35em; }
.df-prob-detail-body h3 { font-family: var(--df-font-heading); font-size: 1.15rem; margin: 1.75em 0 .6em; }
.df-prob-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; font-size: .82rem; font-weight: 600; color: var(--df-ink-4); border: 1px solid var(--df-border); padding: 6px 14px; border-radius: 5px; transition: color var(--df-t), border-color var(--df-t); text-decoration: none; }
.df-prob-back:hover { color: var(--df-primary); border-color: var(--df-primary); }
/* Responsive */
@media (max-width: 900px) {
  .df-probs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .df-probs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .df-probs-grid { grid-template-columns: 1fr; }
  .df-prob-detail-inner { padding: 0 16px; }
  .df-prob-detail-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* ───────────────────────────────────────── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1280px) {
  .df-features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .df-split { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .df-split--img-right { direction: ltr; }
  .df-split-media { order: -1; }
  .df-split--img-right .df-split-media { order: -1; }
  .df-split-img-wrap { width: 280px; height: 280px; }
  .df-features-grid { grid-template-columns: repeat(2, 1fr); }
  .df-steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .df-reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .df-newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1024px) {
  .df-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .df-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .columns-4 .column { flex: 0 0 calc(33.333% - 14px); }
  .df-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --df-header-h: 60px; }
  body { padding-top: var(--df-header-h); }
  .df-site-header-wrap { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--df-bg); }
  [data-theme="dark"] .df-site-header-wrap { background: var(--df-bg-dark); }
  .df-site-header-inner { padding: 0 16px; }
  .df-nav-toggle { display: flex; }
  .df-site-nav { display: none; position: fixed; top: var(--df-header-h); left: 0; right: 0; bottom: 0; background: var(--df-bg); padding: 16px; overflow-y: auto; border-top: 1px solid var(--df-border); z-index: 999; }
  [data-theme="dark"] .df-site-nav { background: var(--df-bg-dark); }
  .df-site-nav.is-open { display: block; }
  .df-header-plant { display: none; }
  .df-header-cta { display: none; }
  .df-site-nav ul { flex-direction: column; gap: 0; }
  .df-site-nav a { padding: 12px 16px; font-size: 1rem; }
  .df-site-nav li.has-submenu > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--df-bg-subtle); display: none; padding: 8px 0 8px 16px; border-radius: 0; }
  .df-site-nav li.has-submenu.is-open > ul { display: block; }
  .df-articles-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .df-hero { padding: 64px 0; }
  .df-footer-plants { display: none; }
  .df-split { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .df-split--img-right { direction: ltr; }
  .df-split-img-wrap { width: 220px; height: 220px; }
  .df-features-grid { grid-template-columns: 1fr; }
  .df-reviews-grid { grid-template-columns: 1fr; }
  .df-steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .df-newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .df-cta-banner { padding: 64px 0; }
  .df-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .df-footer-top { grid-template-columns: 1fr; }
  .df-footer-cols { grid-template-columns: 1fr; }
  .df-footer-bottom { flex-direction: column; align-items: flex-start; }
  .content-wrap { padding: 32px 16px; }
  .columns-4 .column, .columns-3 .column, .columns-2 .column { flex: 0 0 100%; }
  .content-columns { flex-direction: column; }
}
/* temp-home hero override */
.df-hero-inner--th { text-align: left; max-width: 900px; margin: 0 auto; padding-left: 64px; }
.df-th-eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--df-primary-light); margin-bottom: 20px; text-align: center; }
.df-th-title { display: flex; flex-direction: column; font-family: var(--df-font-heading); font-weight: 700; line-height: 1; letter-spacing: -.03em; margin-bottom: 32px; }
.df-th-title-main { font-size: clamp(3.5rem, 8vw, 5rem); color: #fff; text-align: center; }
.df-th-title-accent { font-size: clamp(3.5rem, 8vw, 5rem); color: #52c463; }
.df-th-hero-quote { margin: 0 0 32px; padding: 0; border: none; }
.df-th-hero-quote p { font-family: var(--df-font-heading); font-size: clamp(1rem, 1.8vw, 1.2rem); font-style: italic; color: rgba(255,255,255,.5); font-weight: 400; line-height: 1.5; margin: 0 0 6px; }
.df-th-hero-quote cite { font-size: .8rem; font-style: normal; color: rgba(255,255,255,.3); letter-spacing: .04em; }
@media (max-width: 768px) {
  .df-hero-inner--th { padding-left: 0; text-align: center; margin: 0 auto; }
  .df-th-title { align-items: center; }
}
.df-specs-grid { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--df-border); border-left: 1px solid var(--df-border); margin-top: 48px; }
.df-steps--4 { grid-template-columns: repeat(4, 1fr); padding: 0 80px; }
.df-approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.df-approach-card { padding: 32px 28px; border: 1px solid var(--df-border); border-radius: var(--df-r-lg); background: var(--df-bg); display: flex; flex-direction: column; gap: 14px; transition: box-shadow var(--df-t), border-color var(--df-t), transform var(--df-t); }
.df-approach-card:hover { border-color: var(--df-primary); box-shadow: var(--df-shadow-md); transform: translateY(-2px); }
.df-approach-icon { width: 48px; height: 48px; border-radius: var(--df-r-md); background: var(--df-primary-muted); display: flex; align-items: center; justify-content: center; color: var(--df-primary); flex-shrink: 0; }
.df-approach-card h3 { font-family: var(--df-font-heading); font-size: 1.1rem; font-weight: 700; color: var(--df-ink); margin: 0; line-height: 1.3; }
.df-approach-card p { font-size: .9rem; color: var(--df-ink-3); line-height: 1.7; margin: 0; }
[data-theme="dark"] .df-approach-card { background: #1e2226; border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .df-approach-icon { background: rgba(62,163,78,.12); }
/* Approche — section editoriale */
.df-approach-section { background: var(--df-bg-subtle); }
[data-theme="dark"] .df-approach-section { background: #181e1a; }
.df-approach-header { max-width: 640px; margin-bottom: 56px; }
.df-approach-quote { font-family: var(--df-font-heading); font-size: clamp(1.15rem, 2vw, 1.4rem); font-style: italic; font-weight: 500; color: var(--df-primary); border-left: 3px solid var(--df-primary); padding: 0 0 0 20px; margin: 24px 0 0; line-height: 1.5; }
.df-approach-prose { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--df-border); }
.df-approach-block { padding: 40px 48px 40px 0; border-bottom: 1px solid var(--df-border); }
.df-approach-block:nth-child(even) { padding: 40px 0 40px 48px; border-left: 1px solid var(--df-border); }
.df-approach-block--closing { grid-column: 1 / -1; padding: 40px 0 0; border-bottom: none; border-left: none !important; max-width: 680px; }
.df-approach-block h3 { font-family: var(--df-font-heading); font-size: 1.15rem; font-weight: 700; color: var(--df-ink); margin-bottom: 14px; line-height: 1.3; }
.df-approach-block p { font-size: .975rem; color: var(--df-ink-3); line-height: 1.8; margin: 0; }
.df-approach-block--closing h3 { color: var(--df-primary); }
@media (max-width: 1200px) {
  .df-specs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .df-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .df-steps--4 { grid-template-columns: repeat(2, 1fr); }
  .df-approach-grid { grid-template-columns: 1fr; }
  .df-approach-prose { grid-template-columns: 1fr; }
  .df-approach-block, .df-approach-block:nth-child(even) { padding: 32px 0; border-left: none; }
}
@media (max-width: 580px) {
  .df-specs-grid { grid-template-columns: 1fr; }
  .df-steps--4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .df-container { padding: 0 16px; }
  .df-hero-inner { padding: 0 16px; }
  .df-hero-cta { flex-direction: column; align-items: center; }
  .df-steps { grid-template-columns: 1fr; gap: 10px; }
  .df-steps--4 { grid-template-columns: 1fr; }
}
/* ───────────────────────────────────────── PLUGIN THEME INTEGRATION Newsletter · Form Builder · Booking ───────────────────────────────────────── */
/* ── Newsletter [newsletter_signup] ──────────────────────── */
.nl-signup { --nl-primary: var(--df-primary); --nl-primary-hover: var(--df-primary-dark); --nl-border: var(--df-border-strong); --nl-text: var(--df-ink); --nl-text-muted: var(--df-ink-4); --nl-success: var(--df-primary); --nl-danger: #b02a37; max-width: 100%; }
.nl-title { font-family: var(--df-font-heading); font-size: 1.1rem; font-weight: 700; color: var(--df-ink); margin: 0 0 1rem; }
.nl-field { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-field input[type="email"] { flex: 1 1 200px; padding: 11px 16px; font-family: var(--df-font-body); font-size: .95rem; color: var(--df-ink); background: #e8f0e9; border: 1.5px solid #a8c0aa; border-radius: var(--df-r-md); outline: none; transition: border-color var(--df-t), box-shadow var(--df-t); }
.nl-field input[type="email"]:focus { border-color: var(--df-primary); box-shadow: 0 0 0 3px var(--df-primary-alpha); background: var(--df-bg); }
.nl-field input[type="email"]::placeholder { color: var(--df-ink-4); }
.nl-submit { padding: 11px 24px; background: var(--df-primary) !important; color: #fff; border: 1.5px solid var(--df-primary) !important; border-radius: var(--df-r-md); font-family: var(--df-font-body); font-size: .95rem; font-weight: 600; cursor: pointer; transition: background var(--df-t), border-color var(--df-t), transform var(--df-t), box-shadow var(--df-t); white-space: nowrap; }
.nl-submit:hover:not(:disabled) { background: var(--df-primary-dark); border-color: var(--df-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(62,163,78,.30); }
.nl-submit:disabled { opacity: .55; cursor: not-allowed; }
.nl-message { font-size: .875rem; margin-top: .5rem; }
.nl-message--success { color: var(--df-primary); font-weight: 500; }
.nl-message--error { color: #b02a37; font-weight: 500; }
[data-theme="dark"] .nl-field input[type="email"] { background: var(--df-bg-muted); border-color: rgba(138,173,144,.25); color: var(--df-ink); }
[data-theme="dark"] .nl-field input[type="email"]:focus { background: var(--df-bg-subtle); border-color: var(--df-primary); }
[data-theme="dark"] .nl-message--error { color: #e87a7a; }
/* ── Form Builder [form id="x"] ────────────────────────── */
.fb-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.fb-field { display: flex; flex-direction: column; gap: 6px; }
.fb-field label { font-size: .85rem; font-weight: 600; color: var(--df-ink-3); letter-spacing: .01em; }
.fb-field input[type="text"], .fb-field input[type="email"], .fb-field input[type="tel"], .fb-field input[type="number"], .fb-field select, .fb-field textarea { width: 100%; padding: 11px 16px; font-family: var(--df-font-body); font-size: .95rem; color: var(--df-ink); background: #e8f0e9; border: 1.5px solid #a8c0aa; border-radius: var(--df-r-md); outline: none; transition: border-color var(--df-t), box-shadow var(--df-t), background var(--df-t); appearance: none; -webkit-appearance: none; }
.fb-field input:hover, .fb-field select:hover, .fb-field textarea:hover { border-color: var(--df-border-strong); }
.fb-field input:focus, .fb-field select:focus, .fb-field textarea:focus { border-color: var(--df-primary); box-shadow: 0 0 0 3px var(--df-primary-alpha); background: var(--df-bg); outline: none; }
.fb-field input::placeholder, .fb-field textarea::placeholder { color: var(--df-ink-4); opacity: 1; }
.fb-field select { cursor: pointer; }
.fb-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.fb-field--checkbox label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .95rem; color: var(--df-ink-2); cursor: pointer; }
.fb-field--checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--df-primary); cursor: pointer; }
.fb-submit { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; padding: 11px 28px; background: var(--df-primary); color: #fff; border: 1.5px solid var(--df-primary); border-radius: var(--df-r-md); font-family: var(--df-font-body); font-size: .95rem; font-weight: 600; cursor: pointer; transition: background var(--df-t), border-color var(--df-t), transform var(--df-t), box-shadow var(--df-t); }
.fb-submit:hover:not(:disabled) { background: var(--df-primary-dark); border-color: var(--df-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(62,163,78,.30); }
.fb-submit:disabled { opacity: .55; cursor: not-allowed; }
.fb-message { padding: 12px 16px; border-radius: var(--df-r-md); font-size: .875rem; font-weight: 500; }
.fb-message--error { background: rgba(220,53,69,.08); border: 1px solid rgba(220,53,69,.25); color: #b02a37; }
.fb-success { padding: 14px 18px; border-radius: var(--df-r-md); background: var(--df-primary-muted); border: 1px solid rgba(62,163,78,.3); color: var(--df-primary-dark); font-weight: 500; font-size: .9rem; }
[data-theme="dark"] .fb-field input[type="text"], [data-theme="dark"] .fb-field input[type="email"], [data-theme="dark"] .fb-field input[type="tel"], [data-theme="dark"] .fb-field input[type="number"], [data-theme="dark"] .fb-field select, [data-theme="dark"] .fb-field textarea { background: var(--df-bg-muted); border-color: rgba(138,173,144,.25); color: var(--df-ink); }
[data-theme="dark"] .fb-field input:focus, [data-theme="dark"] .fb-field select:focus, [data-theme="dark"] .fb-field textarea:focus { background: var(--df-bg-subtle); border-color: var(--df-primary); }
[data-theme="dark"] .fb-message--error { background: rgba(220,53,69,.1); border-color: rgba(220,53,69,.2); color: #e87a7a; }
[data-theme="dark"] .fb-success { background: rgba(62,163,78,.1); border-color: rgba(62,163,78,.25); color: var(--df-primary-light); }
/* ── Booking [booking_form] ─────────────────────────────── */
/* Colours are defined directly in the plugin's own booking-form.css.
   No theme overrides needed. */
/* ───────────────────────────────────────── MARKDOWN FOOTNOTES ───────────────────────────────────────── */
.md-fnref { font-size: .75em; color: var(--df-primary); text-decoration: none; font-weight: 600; transition: color 0.2s ease-in-out; }
.md-fnref:hover { color: var(--df-primary-dark); }
.md-footnotes { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--df-border); list-style: decimal; padding-left: 1.4rem; font-size: .85rem; color: var(--df-ink-3); line-height: 1.7; display: flex; flex-direction: column; gap: 6px; }
.md-footnotes li { padding-left: 4px; }
/* Plain text in source entries */
.md-footnotes a { color: var(--df-primary); text-decoration: underline; text-decoration-color: rgba(62,163,78,.35); text-underline-offset: 2px; transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out; }
.md-footnotes a:hover { color: var(--df-primary-dark); text-decoration-color: var(--df-primary-dark); }
.md-fn-backref { font-size: .8em; margin-left: 6px; color: var(--df-ink-4); text-decoration: none; transition: color 0.2s ease-in-out; }
.md-fn-backref:hover { color: var(--df-primary); }
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-size: .85rem; font-weight: 600; color: var(--df-ink-3); letter-spacing: .01em; }
.required-mark { color: var(--df-primary); margin-left: 2px; }
.contact-field input[type="text"], .contact-field input[type="email"], .contact-field textarea { width: 100%; padding: 11px 16px; font-family: var(--df-font-body); font-size: .95rem; color: var(--df-ink); background: #f8faf8; border: 1.5px solid #a8c0aa; border-radius: var(--df-r-md); outline: none; transition: border-color var(--df-t), box-shadow var(--df-t), background var(--df-t); appearance: none; -webkit-appearance: none; }
.contact-field input[type="text"]:hover, .contact-field input[type="email"]:hover, .contact-field textarea:hover { border-color: var(--df-border-strong); }
.contact-field input[type="text"]:focus, .contact-field input[type="email"]:focus, .contact-field textarea:focus { border-color: var(--df-primary); box-shadow: 0 0 0 3px var(--df-primary-alpha); background: var(--df-bg); }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: var(--df-ink-4); opacity: 1; }
.contact-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.contact-submit { padding-top: 4px; }
.contact-submit button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; width: 160px; background: var(--df-primary); color: #fff; border: 1.5px solid var(--df-primary); border-radius: var(--df-r-md); font-family: var(--df-font-body); font-size: .95rem; font-weight: 600; cursor: pointer; transition: background var(--df-t), border-color var(--df-t), transform var(--df-t), box-shadow var(--df-t); }
.contact-submit button:hover { background: var(--df-primary-dark); border-color: var(--df-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(62,163,78,.30); }
.contact-submit button:active { transform: translateY(0); box-shadow: none; }
/* Status messages */
.contact-status { padding: 14px 18px; border-radius: var(--df-r-md); font-size: .9rem; font-weight: 500; line-height: 1.5; margin-bottom: 4px; }
.contact-status.success { background: var(--df-primary-muted); border: 1px solid rgba(62,163,78,.3); color: var(--df-primary-dark); }
.contact-status.error { background: rgba(220,53,69,.08); border: 1px solid rgba(220,53,69,.25); color: #b02a37; }
/* Dark mode overrides */
[data-theme="dark"] .contact-field input[type="text"], [data-theme="dark"] .contact-field input[type="email"], [data-theme="dark"] .contact-field textarea { background: var(--df-bg-muted); border-color: rgba(138,173,144,.2); color: var(--df-ink); }
[data-theme="dark"] .contact-field input[type="text"]:hover, [data-theme="dark"] .contact-field input[type="email"]:hover, [data-theme="dark"] .contact-field textarea:hover { border-color: rgba(138,173,144,.38); }
[data-theme="dark"] .contact-field input[type="text"]:focus, [data-theme="dark"] .contact-field input[type="email"]:focus, [data-theme="dark"] .contact-field textarea:focus { background: var(--df-bg-subtle); border-color: var(--df-primary); box-shadow: 0 0 0 3px rgba(62,163,78,.15); }
[data-theme="dark"] .contact-field input::placeholder, [data-theme="dark"] .contact-field textarea::placeholder { color: var(--df-ink-4); }
[data-theme="dark"] .contact-status.success { background: rgba(62,163,78,.1); border-color: rgba(62,163,78,.25); color: var(--df-primary-light); }
[data-theme="dark"] .contact-status.error { background: rgba(220,53,69,.1); border-color: rgba(220,53,69,.2); color: #e87a7a; }