/* ============================================================================
   excel-pro.css — Thème clair bureautique « Excel Pro » (Outils Excel)
   Chargé en fin de <head> sur les pages secondaires pour unifier la charte
   avec l'accueil : fond papier #f8fafc, cartes #ffffff, vert Excel #107c41.
   Les simulateurs Excel/code conservent leurs contrastes internes d'origine.
   ============================================================================ */

:root {
  --bg-dark: #f8fafc;
  --card-dark: #ffffff;
  --card-dark-alt: #f1f5f9;
  --emerald: #107c41;
  --emerald-hover: #0b5e31;
  --text-light: #0f172a;
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --bg: #f8fafc;
  --card: #ffffff;
  --muted: #475569;
  --border: #cbd5e1;
  --accent: #107c41;
  --primary: #107c41;
  --primary-hover: #0b5e31;
  --emerald-dark: #0b5e31;
  --ambre: #b45309;
  --amber: #b45309;
  --sky: #0369a1;
  --blue: #1d4ed8;
}

/* Fond général & typographie */
body {
  background: #f8fafc !important;
  color: #0f172a !important;
}
b, strong { color: #0f172a; }

/* En-tête unifié clair */
header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
header nav a { color: #334155 !important; }
header nav a:hover, header nav a.on { color: #107c41 !important; }
header nav a.nav-jev {
  background: #e6f4ea !important;
  color: #107c41 !important;
  border-color: #a7e0be !important;
}
.logo-brand { color: #0f172a !important; }
.logo-brand .accent { color: #107c41 !important; }
.logo-def, .logo-def-fr { color: #64748b !important; }

/* Boutons principaux Excel Pro : vert #107c41 + texte blanc */
.btn-header,
.btn-cta,
.btn-pay:not(.outline),
.btn-dl:not(.outline),
.btn-dl-primary,
.cta:not(.ghost),
.btn:not(.ghost) {
  background: #107c41 !important;
  color: #ffffff !important;
  border-color: #107c41 !important;
}
.btn-header:hover,
.btn-cta:hover,
.btn-pay:not(.outline):hover,
.btn-dl:not(.outline):hover,
.btn-dl-primary:hover,
.cta:not(.ghost):hover,
.btn:not(.ghost):hover {
  background: #0b5e31 !important;
  color: #ffffff !important;
}

/* Boutons secondaires */
.btn-secondary,
.btn-pay.outline,
.btn-dl.outline,
.btn-dl-zip,
.btn.ghost,
.cta.ghost {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
.btn-secondary:hover,
.btn-pay.outline:hover,
.btn-dl.outline:hover,
.btn-dl-zip:hover,
.btn.ghost:hover,
.cta.ghost:hover {
  border-color: #107c41 !important;
  color: #107c41 !important;
  background: #e6f4ea !important;
}

/* Menu mobile */
.menu-mobile > summary {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
.menu-mobile-panneau {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
}
.menu-mobile-panneau a { color: #334155 !important; }
.menu-mobile-panneau a:hover { background: #e6f4ea !important; color: #107c41 !important; }
.menu-mobile-panneau a.on { color: #107c41 !important; font-weight: 700; }

/* Fil d'Ariane & Hero */
.fil-ariane {
  background: transparent !important;
  border-bottom-color: #e2e8f0 !important;
  color: #64748b !important;
}
.hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, #f8fafc 100%),
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}
.eyebrow, .badge-new, .kicker, .download-badge, .pricing-badge:not(.neutral) {
  background: #e6f4ea !important;
  color: #107c41 !important;
  border: 1px solid #a7e0be !important;
}
.pricing-badge.neutral {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
.hero h1, .hero-title, .section-title { color: #0f172a !important; }
.hero h1 span, .hero-title span, .section-title span { color: #107c41 !important; }
.hero-desc, .hero-p, .hero .lead, .chapo, .section-lead { color: #334155 !important; }

/* Blocs de sections & cartes (overrides des fonds #0f172a / #1e293b en dur) */
.bloc, .bloc.sombre, .pricing, section[style*="rgba(15,23,42"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
.pricing-card,
.price-card,
.download-box,
.dl-card,
.dl-step-item,
.feat-card,
.problem-card,
.usecase-card,
.news-card,
.card,
.tarif,
.sommaire,
.sommaire-astuces a,
.synthese-ia,
.kpi-box,
.barre-filtres,
.astuce,
.carte-astuce-vedette,
.produit,
.faq details,
.faq-item,
.comparison-box,
.suite a,
.step,
.vs-col,
.incl,
.etape,
.sim-journal,
.guarantee-banner,
.order-bump,
.note,
.demarrer {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.pricing-card.featured,
.dl-card.primary,
.pack-card.best {
  background: #ffffff !important;
  border: 2px solid #107c41 !important;
  box-shadow: 0 12px 30px rgba(16, 124, 65, 0.12) !important;
}
.guarantee-banner,
.synthese-ia,
.produit,
.order-bump.active,
.dl-card.pro {
  background: #e6f4ea !important;
  border-color: #a7e0be !important;
}

/* Textes blancs codés en dur sur anciennes cartes sombres */
.pricing-card h3,
.price-card h3,
.download-box h2,
.dl-card h2,
.feat-card h3,
.problem-card h3,
.usecase-card h4,
.news-card h3,
.card h3,
.tarif h3,
.price,
.kpi-val,
.astuce h3,
.carte-astuce-vedette h3,
.produit h3,
.faq summary,
.faq-item summary,
.dl-step-text b,
.step h4,
.guarantee-title,
.order-bump-title {
  color: #0f172a !important;
}

.pricing-sub,
.pricing-features li,
.price-feat li,
.download-box p.lead,
.dl-card p,
.dl-card li,
.dl-step-text,
.feat-card p,
.problem-card p,
.usecase-card p,
.news-card p,
.article p,
.article li,
.astuce p,
.cav-sol-texte,
.cav-touches-gain,
.faq details p,
.faq-body,
.sommaire li,
.sommaire a,
.guarantee-text,
.order-bump-desc,
.stripe-badge,
.card-note,
.price-foot,
.comparison-table td,
.feuille td {
  color: #334155 !important;
}
.price span, .price small, .meta-article, .dl-meta { color: #64748b !important; }
.price small.launch, .launch-badge { color: #107c41 !important; }

/* Tableaux comparatifs & calendrier */
.comparison-table th, .feuille th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
.comparison-table th.highlight, .comparison-table td.highlight {
  background: #e6f4ea !important;
  color: #0f172a !important;
}
.feuille tr.total-row td { background: #e6f4ea !important; color: #0f172a !important; font-weight: 700; }

/* Astuces : champ recherche, niveaux, boutons vidéo */
.barre-filtres .champ input,
#demoEmail,
input[type="email"],
input[type="text"],
textarea,
select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
.niveaux button {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}
.niveaux button.on {
  background: #107c41 !important;
  color: #ffffff !important;
  border-color: #107c41 !important;
}
.cav-col-video {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
.cav-col-video .cav-video-pied {
  background: #ffffff !important;
  color: #475569 !important;
}

/* Simulateurs : garder l'aspect authentique lisible */
.demo-zone {
  background: #eef2f6 !important;
  border-color: #cbd5e1 !important;
}
.demo-mockup {
  background: #1e293b !important;
  border-color: #94a3b8 !important;
}
.demo-mockup .mockup-title { color: #cbd5e1 !important; }
.demo-mockup .mockup-panel {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
.demo-mockup .mockup-panel h4 { color: #34d399 !important; }
.demo-mockup .diag-result {
  background: #020617 !important;
  color: #e2e8f0 !important;
}
.demo-mockup .invoice-table th,
.demo-mockup .invoice-table td { color: #1e293b !important; }

/* Blocs de code VBA / formules restent sombres pour le contraste syntaxique */
pre, pre code, .code, .log {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}
code.enligne, p code, li code, td code, h3 code {
  background: #f1f5f9 !important;
  color: #0b5e31 !important;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 5px;
}
pre code, .code code {
  background: transparent !important;
  color: #e2e8f0 !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Sur-mesure / JEV / Tutoriel / Merci-efacture */
.panel, .result-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
.panel-head h3, .panel p.quoi b, .panel .comment b { color: #0f172a !important; }
.panel p.quoi, .panel .comment { color: #334155 !important; }
.step-chip {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
.step-chip:hover, .step-chip.active {
  background: #e6f4ea !important;
  border-color: #107c41 !important;
  color: #0f172a !important;
}
.step-chip.active b { background: #107c41 !important; color: #ffffff !important; }
.ref-table th { background: #e6f4ea !important; color: #107c41 !important; border-color: #cbd5e1 !important; }
.ref-table td { background: #ffffff !important; border-color: #cbd5e1 !important; color: #334155 !important; }
.ref-table td:first-child, .ref-table td:nth-child(2) { color: #0f172a !important; }
.ref-table tr.banner td { background: #107c41 !important; color: #ffffff !important; }
.xl-titlebar .t { color: #e8e8e8 !important; }
.xl-mini-bar { color: #ffffff !important; }
.sector-tab {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}
.sector-tab.active, .sector-tab:hover, .jev-tab[aria-selected="true"] {
  background: #107c41 !important;
  color: #ffffff !important;
  border-color: #107c41 !important;
}
.jev-tab {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}
.box-visio {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}
.box-visio h2, .box-visio p { color: #0f172a !important; }
.demarrer li { color: #334155 !important; }
.demarrer li b { color: #0f172a !important; }

/* Pied de page */
footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}
footer a, .link-btn { color: #475569 !important; }
footer a:hover, .link-btn:hover { color: #107c41 !important; }
