/* ── Marbot theme layer (light / dark + page accents) ── */

html[data-theme="dark"] {
  color-scheme: dark;
  --theme-text: #ffffff;
  --theme-heading: #ffffff;
  --theme-desc: rgba(255, 255, 255, 0.78);
  --theme-em: #e8c96a;
  --theme-tag: #e8c96a;
  --theme-nav-bg: rgba(10, 22, 15, 0.72);
  --theme-nav-bg-scroll: rgba(8, 18, 12, 0.92);
  --theme-nav-border: rgba(255, 255, 255, 0.09);
  --theme-nav-surface: rgba(255, 255, 255, 0.05);
  --theme-nav-link: rgba(255, 255, 255, 0.76);
  --theme-nav-link-hover: #ffffff;
  --theme-nav-dropdown: rgba(10, 24, 16, 0.96);
  --theme-nav-mobile: rgba(8, 18, 12, 0.98);
  --theme-logo: #ffffff;
  --theme-hero-title: #ffffff;
  --theme-hero-sub: rgba(255, 255, 255, 0.78);
  --theme-hero-sub-strong: rgba(255, 255, 255, 0.95);
  --theme-card-bg: rgba(255, 255, 255, 0.07);
  --theme-card-tinted: rgba(255, 255, 255, 0.05);
  --theme-card-border: rgba(255, 255, 255, 0.12);
  --theme-card-title: #ffffff;
  --theme-card-desc: rgba(255, 255, 255, 0.72);
  --theme-item-bg: rgba(255, 255, 255, 0.06);
  --theme-item-border: rgba(255, 255, 255, 0.1);
  --theme-item-hover-bg: rgba(255, 255, 255, 0.09);
  --theme-item-title: #ffffff;
  --theme-item-desc: rgba(255, 255, 255, 0.72);
  --theme-icon-bg: rgba(255, 255, 255, 0.08);
  --theme-icon-color: #e8c96a;
  --theme-footer-border: rgba(255, 255, 255, 0.08);
  --theme-footer-muted: rgba(255, 255, 255, 0.62);
  --theme-footer-link: rgba(255, 255, 255, 0.78);
  --theme-footer-heading: rgba(255, 255, 255, 0.55);
  --theme-btn-ghost: rgba(255, 255, 255, 0.78);
  --theme-btn-ghost-border: rgba(255, 255, 255, 0.22);
  --theme-cta-bg: transparent;
  --theme-cta-text: rgba(255, 255, 255, 0.78);
  --theme-cta-note: rgba(255, 255, 255, 0.62);
  --theme-surface: rgba(255, 255, 255, 0.06);
  --theme-surface-border: rgba(255, 255, 255, 0.1);
  --theme-chip-bg: rgba(255, 255, 255, 0.08);
  --theme-chip-text: rgba(255, 255, 255, 0.82);
  --theme-divider: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"][data-accent="forest"],
html[data-theme="dark"]:not([data-accent]) {
  --theme-bg: linear-gradient(170deg, #0a160e 0%, #0f2318 55%, #163524 100%);
  --theme-bg-flat: #0a160e;
  --theme-trust-fade: #0a160e;
}

html[data-theme="dark"][data-accent="salesforce"] {
  --theme-bg: linear-gradient(170deg, #032d60 0%, #0b5cab 50%, #094a8a 100%);
  --theme-bg-flat: #032d60;
  --theme-trust-fade: #032d60;
  --theme-nav-bg: rgba(3, 45, 96, 0.78);
  --theme-nav-bg-scroll: rgba(3, 45, 96, 0.94);
  --theme-nav-mobile: rgba(3, 45, 96, 0.98);
  --theme-nav-dropdown: rgba(9, 74, 138, 0.96);
  --theme-em: #6fc1ff;
  --theme-tag: #6fc1ff;
  --theme-icon-color: #6fc1ff;
}

html[data-theme="dark"][data-accent="odoo"] {
  --theme-bg: linear-gradient(170deg, #3b2536 0%, #4d3247 50%, #714b67 100%);
  --theme-bg-flat: #3b2536;
  --theme-trust-fade: #3b2536;
  --theme-nav-bg: rgba(59, 37, 54, 0.78);
  --theme-nav-bg-scroll: rgba(59, 37, 54, 0.94);
  --theme-nav-mobile: rgba(59, 37, 54, 0.98);
  --theme-nav-dropdown: rgba(77, 50, 71, 0.96);
  --theme-em: #d4b8cc;
  --theme-tag: #7fdce0;
  --theme-icon-color: #7fdce0;
}

html[data-theme="light"] {
  color-scheme: light;
  --theme-bg: #fbfcfa;
  --theme-bg-flat: #fbfcfa;
  --theme-text: #0c1610;
  --theme-heading: #0c1610;
  --theme-desc: #5a665c;
  --theme-em: #2d5c42;
  --theme-tag: #a8873a;
  --theme-nav-bg: rgba(251, 252, 250, 0.88);
  --theme-nav-bg-scroll: rgba(251, 252, 250, 0.96);
  --theme-nav-border: #e9efe9;
  --theme-nav-surface: #ffffff;
  --theme-nav-link: #3f4a41;
  --theme-nav-link-hover: #0c1610;
  --theme-nav-dropdown: rgba(251, 252, 250, 0.98);
  --theme-nav-mobile: rgba(251, 252, 250, 0.98);
  --theme-logo: #0c1610;
  --theme-hero-title: #0c1610;
  --theme-hero-sub: #5a665c;
  --theme-hero-sub-strong: #3f4a41;
  --theme-trust-fade: #fbfcfa;
  --theme-card-bg: #ffffff;
  --theme-card-tinted: #eef4f0;
  --theme-card-border: #e9efe9;
  --theme-card-title: #0c1610;
  --theme-card-desc: #5a665c;
  --theme-item-bg: #ffffff;
  --theme-item-border: #e9efe9;
  --theme-item-hover-bg: #ffffff;
  --theme-item-title: #0c1610;
  --theme-item-desc: #5a665c;
  --theme-icon-bg: #eef4f0;
  --theme-icon-color: #2d5c42;
  --theme-footer-border: #e9efe9;
  --theme-footer-muted: #5a665c;
  --theme-footer-link: #3f4a41;
  --theme-footer-heading: #5a665c;
  --theme-btn-ghost: #3f4a41;
  --theme-btn-ghost-border: #e9efe9;
  --theme-cta-bg: #ffffff;
  --theme-cta-text: #5a665c;
  --theme-cta-note: #5a665c;
  --theme-surface: #ffffff;
  --theme-surface-border: #e9efe9;
  --theme-chip-bg: #eef4f0;
  --theme-chip-text: #0c1610;
  --theme-divider: #e9efe9;
}

html[data-theme="light"][data-accent="salesforce"] {
  --theme-em: #0176d3;
  --theme-tag: #0176d3;
  --theme-icon-color: #0176d3;
}

html[data-theme="light"][data-accent="odoo"] {
  --theme-em: #714b67;
  --theme-tag: #017e84;
  --theme-icon-color: #017e84;
}

body {
  background: var(--theme-bg) !important;
  color: var(--theme-text) !important;
  transition: background 0.45s cubic-bezier(.16, 1, .3, 1), color 0.45s cubic-bezier(.16, 1, .3, 1);
}

nav {
  background: var(--theme-nav-bg) !important;
  border-color: var(--theme-nav-border) !important;
  transition: background 0.45s, border-color 0.45s;
}
nav.scrolled { background: var(--theme-nav-bg-scroll) !important; }
.logo { color: #2d5c42 !important; }
.logo span:not(.logo-mark) { color: #c9a84c !important; }
.nav-links > li > a:not(.nav-cta),
.nav-dropdown-link { color: var(--theme-nav-link) !important; }
.nav-links > li > a:not(.nav-cta):hover,
.nav-dropdown-link:hover,
.nav-dropdown.is-open .nav-dropdown-link { color: var(--theme-nav-link-hover) !important; }
.nav-dropdown-chevron-btn { color: var(--theme-nav-link) !important; }
.nav-dropdown-menu { background: var(--theme-nav-dropdown) !important; }
.nav-dropdown-menu a { color: var(--theme-nav-link) !important; }
.nav-dropdown-menu a:hover { color: var(--theme-nav-link-hover) !important; }

.theme-switch {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--theme-nav-border);
  background: var(--theme-nav-surface);
  color: var(--theme-nav-link-hover);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.theme-switch:hover {
  color: var(--theme-nav-link-hover);
  border-color: rgba(201, 168, 76, 0.45);
  transform: translateY(-1px);
}
.theme-switch__icon { display: none; width: 18px; height: 18px; }
html[data-theme="light"] .theme-switch__icon--light { display: block; }
html[data-theme="dark"] .theme-switch__icon--dark { display: block; }

.lang-switch {
  display: flex;
  align-items: center;
  height: 38px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--theme-nav-border);
  background: var(--theme-nav-surface);
  gap: 2px;
}
.lang-switch__option {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--theme-nav-link);
  opacity: 0.55;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
}
.lang-switch__option.is-active {
  color: var(--theme-nav-link-hover);
  background: rgba(201, 168, 76, 0.2);
  opacity: 1;
  cursor: default;
}
a.lang-switch__option:hover {
  color: var(--theme-nav-link-hover);
  opacity: 1;
}

.nav-utilities {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Uniform section backgrounds (no light bands in dark mode) ── */
html[data-theme="dark"] section[id],
html[data-theme="light"] section[id] {
  background: transparent !important;
}

html[data-theme="dark"] footer,
html[data-theme="light"] footer {
  background: transparent !important;
  border-top: 1px solid var(--theme-footer-border) !important;
}

/* ── Headings ── */
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .eng-title,
html[data-theme="dark"] .model-title,
html[data-theme="dark"] .offre-title,
html[data-theme="dark"] .step-title,
html[data-theme="dark"] .build-title,
html[data-theme="dark"] .quand-name,
html[data-theme="dark"] .value-title,
html[data-theme="dark"] .ref-name,
html[data-theme="dark"] .founder-name,
html[data-theme="dark"] .timeline-title,
html[data-theme="dark"] .bento-title,
html[data-theme="dark"] .meth-title,
html[data-theme="dark"] .why-title,
html[data-theme="dark"] .app-cat-name,
html[data-theme="dark"] .cloud-name,
html[data-theme="dark"] .exp-card h4,
html[data-theme="dark"] .sf-detail-title,
html[data-theme="dark"] .eng-list strong,
html[data-theme="dark"] #cta h2 {
  color: var(--theme-heading) !important;
}

html[data-theme="dark"] .section-title em,
html[data-theme="dark"] .hero-title span,
html[data-theme="dark"] #cta h2 span {
  color: var(--theme-em) !important;
}

html[data-theme="light"] .section-title,
html[data-theme="light"] .eng-title,
html[data-theme="light"] .model-title,
html[data-theme="light"] .offre-title,
html[data-theme="light"] .step-title,
html[data-theme="light"] .build-title,
html[data-theme="light"] .quand-name,
html[data-theme="light"] .value-title,
html[data-theme="light"] .ref-name,
html[data-theme="light"] .founder-name,
html[data-theme="light"] .timeline-title,
html[data-theme="light"] .meth-title,
html[data-theme="light"] .why-title,
html[data-theme="light"] .app-cat-name,
html[data-theme="light"] .cloud-name,
html[data-theme="light"] .exp-card h4,
html[data-theme="light"] .sf-detail-title,
html[data-theme="light"] .eng-list strong,
html[data-theme="light"] .bento-title,
html[data-theme="light"] .hero-title,
html[data-theme="light"] #cta h2 {
  color: #2d5c42 !important;
}

/* 2e ligne des titres — doré */
html[data-theme="light"] .hero-title span,
html[data-theme="light"] .section-title em,
html[data-theme="light"] #cta h2 span,
html[data-theme="light"] .hero-title .line:nth-child(2) .line-inner.grad {
  font-style: normal;
  background: linear-gradient(90deg, #e8c96a, #c9a84c, #a8873a) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

html[data-theme="light"] .hero-title .line:nth-child(1) .line-inner {
  color: #2d5c42 !important;
  -webkit-text-fill-color: #2d5c42 !important;
}

/* Override page-level "dark section" title rules in light mode */
html[data-theme="light"] #construit .section-title,
html[data-theme="light"] #construit .build-title,
html[data-theme="light"] #fondateur .section-title,
html[data-theme="light"] #fondateur .founder-name,
html[data-theme="light"] #fondateur .timeline-title,
html[data-theme="light"] #pourquoi .section-title,
html[data-theme="light"] #pourquoi .why-title,
html[data-theme="light"] #accompagnement .section-title,
html[data-theme="light"] #accompagnement .step-title {
  color: #2d5c42 !important;
}

html[data-theme="light"] #construit .section-title em,
html[data-theme="light"] #fondateur .section-title em,
html[data-theme="light"] #pourquoi .section-title em,
html[data-theme="light"] #accompagnement .section-title em {
  font-style: normal;
  background: linear-gradient(90deg, #e8c96a, #c9a84c, #a8873a) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Salesforce — light : ligne 1 noir, ligne 2 bleu SF */
html[data-theme="light"][data-accent="salesforce"] .hero-title,
html[data-theme="light"][data-accent="salesforce"] .section-title,
html[data-theme="light"][data-accent="salesforce"] .step-title,
html[data-theme="light"][data-accent="salesforce"] .sf-detail-title,
html[data-theme="light"][data-accent="salesforce"] #cta h2,
html[data-theme="light"][data-accent="salesforce"] #accompagnement .section-title,
html[data-theme="light"][data-accent="salesforce"] #accompagnement .step-title {
  color: #0c1610 !important;
}

html[data-theme="light"][data-accent="salesforce"] .hero-title span,
html[data-theme="light"][data-accent="salesforce"] .section-title em,
html[data-theme="light"][data-accent="salesforce"] #cta h2 span,
html[data-theme="light"][data-accent="salesforce"] #accompagnement .section-title em {
  font-style: normal;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #0176d3 !important;
  color: #0176d3 !important;
}

/* Odoo — light : ligne 1 noir, ligne 2 violet Odoo */
html[data-theme="light"][data-accent="odoo"] .hero-title,
html[data-theme="light"][data-accent="odoo"] .section-title,
html[data-theme="light"][data-accent="odoo"] .offre-title,
html[data-theme="light"][data-accent="odoo"] #cta h2,
html[data-theme="light"][data-accent="odoo"] #pourquoi .section-title {
  color: #0c1610 !important;
}

html[data-theme="light"][data-accent="odoo"] .hero-title span,
html[data-theme="light"][data-accent="odoo"] .section-title em,
html[data-theme="light"][data-accent="odoo"] #cta h2 span,
html[data-theme="light"][data-accent="odoo"] #pourquoi .section-title em {
  font-style: normal;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #714b67 !important;
  color: #714b67 !important;
}

/* ── Body / desc text ── */
html[data-theme="dark"] .section-desc,
html[data-theme="dark"] .hero-sub,
html[data-theme="dark"] .bento-desc,
html[data-theme="dark"] .model-desc,
html[data-theme="dark"] .offre-desc,
html[data-theme="dark"] .step-desc,
html[data-theme="dark"] .build-desc,
html[data-theme="dark"] .quand-desc,
html[data-theme="dark"] .eng-desc,
html[data-theme="dark"] .timeline-desc,
html[data-theme="dark"] .founder-meta,
html[data-theme="dark"] .refs-note,
html[data-theme="dark"] .ref-sector,
html[data-theme="dark"] .value-desc,
html[data-theme="dark"] .footer-text,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] p.section-desc,
html[data-theme="dark"] .meth-desc,
html[data-theme="dark"] .why-desc,
html[data-theme="dark"] .app-cat-desc,
html[data-theme="dark"] .cloud-desc,
html[data-theme="dark"] .exp-card p,
html[data-theme="dark"] .exp-intro p,
html[data-theme="dark"] .certs-intro p,
html[data-theme="dark"] .eng-intro p,
html[data-theme="dark"] .eng-list span,
html[data-theme="dark"] .sf-detail-desc,
html[data-theme="dark"] .sf-hint,
html[data-theme="dark"] #cta p {
  color: var(--theme-card-desc) !important;
}

html[data-theme="light"] .section-desc,
html[data-theme="light"] .hero-sub,
html[data-theme="light"] .bento-desc,
html[data-theme="light"] .model-desc,
html[data-theme="light"] .offre-desc,
html[data-theme="light"] .step-desc,
html[data-theme="light"] .build-desc,
html[data-theme="light"] .quand-desc,
html[data-theme="light"] .eng-desc,
html[data-theme="light"] .timeline-desc,
html[data-theme="light"] .founder-meta,
html[data-theme="light"] .refs-note,
html[data-theme="light"] .ref-sector,
html[data-theme="light"] .value-desc,
html[data-theme="light"] .footer-text,
html[data-theme="light"] .meth-desc,
html[data-theme="light"] .why-desc,
html[data-theme="light"] .app-cat-desc,
html[data-theme="light"] .cloud-desc,
html[data-theme="light"] .exp-card p,
html[data-theme="light"] .exp-intro p,
html[data-theme="light"] .certs-intro p,
html[data-theme="light"] .eng-intro p,
html[data-theme="light"] .eng-list span,
html[data-theme="light"] .sf-detail-desc,
html[data-theme="light"] .sf-hint,
html[data-theme="light"] #cta p {
  color: var(--theme-card-desc) !important;
}

html[data-theme="light"] #construit .section-desc,
html[data-theme="light"] #construit .build-desc,
html[data-theme="light"] #fondateur .section-desc,
html[data-theme="light"] #fondateur .timeline-desc,
html[data-theme="light"] #fondateur .founder-meta,
html[data-theme="light"] #pourquoi .section-desc,
html[data-theme="light"] #pourquoi .why-desc,
html[data-theme="light"] #accompagnement .section-desc,
html[data-theme="light"] #accompagnement .step-desc {
  color: var(--theme-card-desc) !important;
}

html[data-theme="dark"] .hero-sub strong,
html[data-theme="light"] .hero-sub strong {
  color: var(--theme-hero-sub-strong) !important;
}

html[data-theme="dark"] .hero-stat strong,
html[data-theme="light"] .hero-stat strong {
  color: var(--theme-em) !important;
}

html[data-theme="dark"] .hero-stat span,
html[data-theme="light"] .hero-stat span {
  color: var(--theme-card-desc) !important;
}

html[data-theme="dark"] .sf-detail-tag,
html[data-theme="light"] .sf-detail-tag {
  color: var(--theme-em) !important;
  background: var(--theme-chip-bg) !important;
}

html[data-theme="dark"] .founder-role {
  color: var(--theme-em) !important;
}

html[data-theme="light"] .founder-role {
  color: var(--theme-em) !important;
}

html[data-theme="dark"] .model-num,
html[data-theme="dark"] .offre-num,
html[data-theme="dark"] .step-num,
html[data-theme="dark"] .timeline-phase,
html[data-theme="dark"] .exp-stat div strong,
html[data-theme="dark"] .certs-stat div strong {
  color: var(--theme-em) !important;
}

html[data-theme="light"] .model-num,
html[data-theme="light"] .offre-num,
html[data-theme="light"] .step-num,
html[data-theme="light"] .timeline-phase,
html[data-theme="light"] .exp-stat div strong,
html[data-theme="light"] .certs-stat div strong {
  color: var(--theme-em) !important;
}

html[data-theme="dark"] .exp-stat div span,
html[data-theme="dark"] .certs-stat div span,
html[data-theme="light"] .exp-stat div span,
html[data-theme="light"] .certs-stat div span {
  color: var(--theme-card-desc) !important;
}

html[data-theme="dark"] .offre-list li,
html[data-theme="light"] .offre-list li {
  color: var(--theme-card-desc) !important;
  border-top-color: var(--theme-divider) !important;
}

/* ── Tags ── */
html[data-theme="dark"] .section-tag,
html[data-theme="light"] .section-tag {
  color: var(--theme-tag) !important;
}
html[data-theme="dark"] .section-tag::before,
html[data-theme="light"] .section-tag::before {
  background: var(--theme-tag) !important;
}

html[data-theme="light"] #construit .section-tag,
html[data-theme="light"] #fondateur .section-tag,
html[data-theme="light"] #pourquoi .section-tag,
html[data-theme="light"] #accompagnement .section-tag {
  color: var(--theme-tag) !important;
}
html[data-theme="light"] #construit .section-tag::before,
html[data-theme="light"] #fondateur .section-tag::before,
html[data-theme="light"] #pourquoi .section-tag::before,
html[data-theme="light"] #accompagnement .section-tag::before {
  background: var(--theme-tag) !important;
}

/* ── Cards & surfaces ── */
html[data-theme="dark"] .model-card,
html[data-theme="dark"] .ref-card,
html[data-theme="dark"] .value-item,
html[data-theme="dark"] .eng-item,
html[data-theme="dark"] .eng-list li,
html[data-theme="dark"] .offre-card,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .build-card,
html[data-theme="dark"] .quand-card,
html[data-theme="dark"] .why-card,
html[data-theme="dark"] .app-cat,
html[data-theme="dark"] .exp-card,
html[data-theme="dark"] .cloud-card,
html[data-theme="dark"] .sf-detail,
html[data-theme="dark"] .sf-step,
html[data-theme="dark"] .bento-card,
html[data-theme="dark"] .meth-dot {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
}

html[data-theme="light"] .model-card,
html[data-theme="light"] .ref-card,
html[data-theme="light"] .value-item,
html[data-theme="light"] .eng-item,
html[data-theme="light"] .eng-list li,
html[data-theme="light"] .offre-card,
html[data-theme="light"] .step-card,
html[data-theme="light"] .build-card,
html[data-theme="light"] .quand-card,
html[data-theme="light"] .why-card,
html[data-theme="light"] .app-cat,
html[data-theme="light"] .exp-card,
html[data-theme="light"] .cloud-card,
html[data-theme="light"] .sf-detail,
html[data-theme="light"] .meth-dot {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
}

html[data-theme="dark"] .founder-card,
html[data-theme="dark"] .cta-panel {
  background: var(--theme-item-bg) !important;
  border-color: var(--theme-item-border) !important;
}

html[data-theme="dark"] .sf-platform,
html[data-theme="dark"] .sf-mulesoft {
  background: var(--theme-card-tinted) !important;
  border-color: var(--theme-card-border) !important;
}

html[data-theme="light"] .sf-platform,
html[data-theme="light"] .sf-mulesoft {
  background: var(--theme-card-tinted) !important;
  border-color: var(--theme-card-border) !important;
}

html[data-theme="dark"] .sf-plat-item,
html[data-theme="dark"] .sf-mulesoft {
  color: var(--theme-card-desc) !important;
}

html[data-theme="dark"] .sf-plat-item:hover,
html[data-theme="dark"] .sf-plat-item.is-active {
  background: var(--theme-card-bg) !important;
  color: var(--theme-heading) !important;
}

html[data-theme="light"] .sf-plat-item,
html[data-theme="light"] .sf-mulesoft {
  color: var(--theme-card-desc) !important;
}

html[data-theme="light"] .sf-plat-item:hover,
html[data-theme="light"] .sf-plat-item.is-active {
  background: var(--theme-card-bg) !important;
  color: var(--theme-heading) !important;
}

html[data-theme="dark"] .sf-plat-title {
  color: var(--theme-heading) !important;
}

html[data-theme="light"] .sf-plat-title {
  color: var(--theme-heading) !important;
}

/* ── Icons & chips ── */
html[data-theme="dark"] .quand-ic,
html[data-theme="dark"] .value-ic,
html[data-theme="dark"] .build-ic,
html[data-theme="dark"] .why-ic,
html[data-theme="dark"] .eng-check,
html[data-theme="dark"] .sf-detail-ic {
  background: var(--theme-icon-bg) !important;
  color: var(--theme-icon-color) !important;
}

html[data-theme="light"] .quand-ic,
html[data-theme="light"] .value-ic,
html[data-theme="light"] .build-ic,
html[data-theme="light"] .why-ic,
html[data-theme="light"] .eng-check,
html[data-theme="light"] .sf-detail-ic {
  background: var(--theme-icon-bg) !important;
  color: var(--theme-icon-color) !important;
}

html[data-theme="dark"] .eng-check svg {
  stroke: var(--theme-icon-color) !important;
}

html[data-theme="light"] .eng-check svg {
  stroke: var(--theme-icon-color) !important;
}

html[data-theme="dark"] .app-chip {
  background: var(--theme-chip-bg) !important;
  color: var(--theme-chip-text) !important;
}

html[data-theme="light"] .app-chip {
  background: var(--theme-chip-bg) !important;
  color: var(--theme-chip-text) !important;
}

html[data-theme="dark"] .build-tag,
html[data-theme="dark"] .hero-badge {
  color: var(--theme-em) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="light"] .build-tag,
html[data-theme="light"] .hero-badge {
  color: var(--theme-em) !important;
  background: var(--theme-chip-bg) !important;
  border-color: var(--theme-card-border) !important;
}

html[data-theme="dark"] .meth-dot {
  color: var(--theme-em) !important;
}

html[data-theme="light"] .meth-dot {
  color: var(--theme-em) !important;
}

html[data-theme="dark"] .meth-step:hover .meth-dot {
  background: var(--theme-em) !important;
  color: var(--theme-bg-flat) !important;
}

html[data-theme="light"] .meth-step:hover .meth-dot {
  background: var(--theme-em) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .timeline li {
  border-bottom-color: var(--theme-divider) !important;
}

html[data-theme="light"] .timeline li {
  border-bottom-color: var(--theme-divider) !important;
}

/* ── Hero & buttons ── */
html[data-theme="dark"] .hero-eyebrow {
  color: var(--theme-em) !important;
}

html[data-theme="light"] .hero-eyebrow {
  color: var(--theme-em) !important;
}

html[data-theme="dark"] .btn-ghost {
  color: var(--theme-btn-ghost) !important;
  border-bottom-color: var(--theme-btn-ghost-border) !important;
}

html[data-theme="light"] .btn-ghost {
  color: var(--theme-btn-ghost) !important;
  border-bottom-color: var(--theme-btn-ghost-border) !important;
}

html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="light"] .btn-ghost:hover {
  color: var(--theme-nav-link-hover) !important;
}

/* ── Hero : plus étalé sur grands écrans ── */
@media (min-width: 1400px) {
  .hero-inner {
    max-width: min(1280px, 88vw) !important;
    padding-left: clamp(48px, 6vw, 96px) !important;
    padding-right: clamp(48px, 6vw, 96px) !important;
  }
  .hero-title {
    font-size: clamp(48px, 4.2vw, 72px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.04em !important;
    margin-bottom: 28px !important;
    max-width: none !important;
  }
  /* 2 phrases = 2 lignes ; pas de coupure à l'intérieur d'une phrase */
  .hero-title span {
    display: block;
    white-space: nowrap;
  }
  .hero-sub {
    max-width: min(920px, 72vw) !important;
    font-size: clamp(17px, 1.15vw, 21px) !important;
    line-height: 1.75 !important;
    margin-bottom: 40px !important;
  }
  .hero-eyebrow { margin-bottom: 30px !important; font-size: 12px !important; }
  .hero-badges { margin-top: 48px !important; gap: 12px !important; }
  .hero-stats { gap: 32px 56px !important; margin-top: 16px !important; }
  .hero-stat strong { font-size: 34px !important; }
  .hero-stat span { font-size: 13px !important; }
}

@media (min-width: 1800px) {
  .hero-inner {
    max-width: min(1480px, 90vw) !important;
    padding-top: 160px !important;
    padding-bottom: 100px !important;
  }
  .hero-title {
    font-size: clamp(68px, 4.6vw, 80px) !important;
    line-height: 1.04 !important;
    margin-bottom: 32px !important;
  }
  .hero-sub {
    max-width: min(1040px, 74vw) !important;
    font-size: 21px !important;
    line-height: 1.72 !important;
    margin-bottom: 44px !important;
  }
  .hero-stat strong { font-size: 38px !important; }
}

/* ── Footer ── */
html[data-theme="dark"] .footer-logo,
html[data-theme="dark"] .footer-brand .footer-logo,
html[data-theme="light"] .footer-logo,
html[data-theme="light"] .footer-brand .footer-logo {
  color: #2d5c42 !important;
}

.footer-logo span:not(.logo-mark),
.footer-brand .footer-logo span:not(.logo-mark) {
  color: #c9a84c !important;
}

html[data-theme="dark"] .footer-col h4 {
  color: var(--theme-footer-heading) !important;
}

html[data-theme="dark"] .footer-col a {
  color: var(--theme-footer-link) !important;
}

html[data-theme="dark"] .footer-bottom p,
html[data-theme="dark"] .footer-text {
  color: var(--theme-footer-muted) !important;
}

html[data-theme="light"] .footer-text {
  color: var(--theme-footer-muted) !important;
}

html[data-theme="light"] .nav-toggle-bar {
  background: var(--theme-nav-link) !important;
}

@media (max-width: 1024px) {
  .nav-links {
    background: var(--theme-nav-mobile) !important;
    border-color: var(--theme-nav-border) !important;
  }
  .nav-links > li > .nav-utilities { margin: 8px 12px; }
  .nav-links > li > .theme-switch { margin: 0; }
}

/* ── Mobile card accordions (touch devices + narrow viewports) ── */
.macc-body {
  display: grid;
  grid-template-rows: 0fr;
  min-height: 0;
  margin-top: 0;
  transition: grid-template-rows 0.3s ease, margin-top 0.3s ease;
}

.macc-body-inner {
  overflow: hidden;
  min-height: 0;
}

@media (min-width: 1025px) {
  html:not(.macc-mobile) [data-macc] .macc-body {
    grid-template-rows: 1fr;
    margin-top: 10px;
  }
}

html.macc-mobile [data-macc] {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html.macc-mobile [data-macc]:not(.is-open) .macc-body {
  grid-template-rows: 0fr;
  margin-top: 0;
}

html.macc-mobile [data-macc].is-open .macc-body {
  grid-template-rows: 1fr;
  margin-top: 10px;
}

html.macc-mobile [data-macc].is-open {
  border-color: rgba(201, 168, 76, 0.42) !important;
}

html.macc-mobile[data-accent="salesforce"] [data-macc].is-open {
  border-color: rgba(27, 150, 255, 0.45) !important;
}

html.macc-mobile[data-accent="odoo"] [data-macc].is-open {
  border-color: rgba(113, 75, 103, 0.45) !important;
}

html.macc-mobile [data-macc]:not(.is-open):hover {
  transform: none;
  box-shadow: none;
}
