/* ==========================================================================
   BailleurZen — Thème clair / sombre partagé (pages secondaires)
   Utilisé par : articles, articles individuels, simulateur, conditions, merci.
   Le mode sombre est le rendu d'origine ; tout ce qui suit s'applique
   uniquement quand <html> porte la classe "light".
   ========================================================================== */

/* ---------- Bouton de bascule (inséré par theme.js dans l'en-tête) ---------- */
.bz-theme-toggle {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #cbd5e1;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.bz-theme-toggle:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.bz-theme-toggle:active { transform: scale(.96); }
.bz-theme-toggle .material-symbols-outlined { font-size: 20px; }
html:not(.light) .bz-ic-moon { display: none; }
html.light .bz-ic-sun { display: none; }

/* ---------- Thème clair ---------- */
html.light .bz-theme-toggle { background: #ffffff; border-color: rgba(15,23,42,.14); color: #334155; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
html.light .bz-theme-toggle:hover { background: #f1f5fb; border-color: rgba(15,23,42,.25); }
html.light { color-scheme: light; }
html.light body { background-color: #f6f8fc; color: #0f172a; }

/* Surfaces */
html.light [class*="bg-[#070d1e]"] { background-color: #f6f8fc; }
html.light header[class*="bg-[#070d1e]"] { background-color: rgba(246,248,252,.88); }
html.light [class*="bg-[#09142e]"],
html.light [class*="bg-[#070e20]"],
html.light [class*="bg-[#091124]"] { background-color: #edf1f9; }
html.light [class*="bg-[#0d1730]"],
html.light [class*="bg-[#0c1633]"],
html.light [class*="bg-[#0e1b3d]"] { background-color: #ffffff; }
html.light [class*="hover:bg-[#111f44]"]:hover { background-color: #ffffff; }
html.light [class*="from-[#070d1e]"],
html.light [class*="via-[#0b1536]"] { background-image: linear-gradient(to bottom, #f6f8fc, #e6eefc); }
html.light [class*="from-blue-900"],
html.light [class*="to-indigo-900"] { background-image: linear-gradient(135deg, rgba(37,99,235,.10), rgba(99,102,241,.06)); }
html.light [class*="bg-blue-900"] { background-color: rgba(37,99,235,.08); }
html.light [class*="bg-emerald-900"] { background-color: rgba(5,150,105,.08); }
html.light [class^="bg-white/"], html.light [class*=" bg-white/"] { background-color: rgba(15,23,42,.045); }

/* Bordures */
html.light [class^="border-white/"], html.light [class*=" border-white/"] { border-color: rgba(15,23,42,.1); }
html.light [class*="border-blue-900"] { border-color: rgba(37,99,235,.25); }
html.light [class*="divide-white"] > :not([hidden]) ~ :not([hidden]) { border-color: rgba(15,23,42,.1); }

/* Textes */
html.light [class~="text-white"] { color: #0f172a; }
html.light [class*="text-slate-"] { color: #475569; }
html.light [class*="text-slate-100"], html.light [class*="text-slate-200"], html.light [class*="text-slate-300"] { color: #334155; }
html.light [class*="text-slate-500"] { color: #64748b; }
html.light [class*="hover:text-white"]:hover { color: #0f172a; }
html.light [class~="text-blue-200"] { color: #1e40af; }
html.light [class~="text-blue-300"], html.light [class~="text-blue-400"] { color: #1d4ed8; }
html.light [class~="text-sky-300"], html.light [class~="text-sky-400"] { color: #0369a1; }
html.light [class~="text-indigo-300"], html.light [class~="text-indigo-400"] { color: #4338ca; }
html.light [class~="text-violet-300"], html.light [class~="text-violet-400"] { color: #6d28d9; }
html.light [class~="text-amber-200"], html.light [class~="text-amber-300"] { color: #b45309; }
html.light [class~="text-emerald-200"], html.light [class~="text-emerald-300"] { color: #047857; }
html.light [class~="text-rose-300"], html.light [class~="text-rose-400"] { color: #be123c; }
html.light [class*="text-[#4edea3]"] { color: #047857; }
html.light [class*="placeholder-slate"]::placeholder { color: #94a3b8; }

/* Ombres moins lourdes */
html.light [class*="shadow-blue-9"], html.light [class*="shadow-blue-950"], html.light [class*="shadow-emerald-900"],
html.light [class*="shadow-black"] { box-shadow: 0 20px 44px -24px rgba(15,23,42,.32) !important; }
html.light [class~="shadow-xl"] { box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 16px 36px -22px rgba(15,23,42,.28); }

/* Grille décorative */
html.light .nordic-grid {
  background-image:
    linear-gradient(to right, rgba(15,23,42,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.06) 1px, transparent 1px);
}

/* Éléments pleins (boutons) : le texte reste blanc */
html.light :is(.bg-blue-600, .bg-blue-500, .bg-blue-700, .bg-primary, .bg-primary-container, .bg-emerald-500, .bg-emerald-600),
html.light :is(.bg-blue-600, .bg-blue-500, .bg-blue-700, .bg-primary, .bg-primary-container, .bg-emerald-500, .bg-emerald-600) [class~="text-white"],
html.light :is(.bg-blue-600, .bg-blue-500, .bg-blue-700, .bg-primary, .bg-primary-container, .bg-emerald-500, .bg-emerald-600) [class*="text-blue-"] { color: #ffffff; }

html.light :focus-visible { outline-color: #2563eb; }

/* Pied de page : reste sombre en thème clair */
html.light footer[class] { background-color: #0b1220; color: #94a3b8; border-color: rgba(255,255,255,.1); }
html.light footer [class~="text-white"] { color: #ffffff; }
html.light footer [class*="text-slate-"] { color: #94a3b8; }
html.light footer [class*="hover:text-white"]:hover { color: #ffffff; }
html.light footer [class~="text-blue-400"] { color: #60a5fa; }
html.light footer [class*="text-[#4edea3]"] { color: #4edea3; }
html.light footer [class^="border-white/"], html.light footer [class*=" border-white/"] { border-color: rgba(255,255,255,.1); }

/* ==========================================================================
   En-tête et pied de page partagés (alignés sur la page d'accueil)
   CSS autonome (préfixe bz-) : ne dépend pas de la config Tailwind des pages.
   ========================================================================== */
.bz-header, .bz-footer, .bz-header *, .bz-footer * { box-sizing: border-box; }
.bz-header { position: sticky; top: 0; z-index: 50; width: 100%; background: rgba(7,13,30,.72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); font-family: 'Inter', sans-serif; color: #e2e8f0; }
.bz-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .bz-wrap { padding: 0 32px; } }
.bz-header .bz-wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.bz-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.bz-brand img { width: 36px; height: 36px; border-radius: 12px; object-fit: contain; transition: transform .2s; }
.bz-brand:hover img { transform: scale(1.05); }
.bz-brand span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.bz-brand span b { color: #4edea3; font-weight: 800; }
.bz-nav { display: none; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; white-space: nowrap; }
@media (min-width: 1024px) { .bz-nav { display: flex; } }
@media (min-width: 1280px) { .bz-nav { gap: 28px; } }
.bz-nav a { color: #cbd5e1; text-decoration: none; transition: color .15s; }
.bz-nav a:hover { color: #fff; }
.bz-nav a.is-active { color: #4edea3; font-weight: 600; }
.bz-actions { display: flex; align-items: center; gap: 8px; }
.bz-link { display: none; padding: 8px 14px; font-size: 13px; font-weight: 600; color: #cbd5e1; text-decoration: none; white-space: nowrap; }
.bz-link:hover { color: #fff; }
@media (min-width: 1280px) { .bz-link { display: inline-flex; } }
.bz-cta { display: none; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #fff !important; text-decoration: none; white-space: nowrap; cursor: pointer; background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 8px 20px -8px rgba(37,99,235,.7); transition: transform .15s, box-shadow .15s; }
.bz-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(37,99,235,.8); }
.bz-cta .material-symbols-outlined { font-size: 16px; color: #fff; }
@media (min-width: 640px) { .bz-cta { display: inline-flex; } }
.bz-mnav { position: relative; }
@media (min-width: 1024px) { .bz-mnav { display: none; } }
.bz-mnav summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #cbd5e1; }
.bz-mnav summary::-webkit-details-marker { display: none; }
.bz-mnav-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 256px; padding: 8px; border-radius: 16px; background: #0d1730; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 50px -12px rgba(0,0,0,.6); display: flex; flex-direction: column; font-size: 14px; }
.bz-mnav-panel a { padding: 10px 12px; border-radius: 8px; color: #e2e8f0; text-decoration: none; }
.bz-mnav-panel a:hover { background: rgba(255,255,255,.06); }
.bz-mnav-panel hr { border: 0; height: 1px; background: rgba(255,255,255,.1); margin: 8px 0; }
.bz-mnav-panel .bz-m-free { color: #4edea3; font-weight: 600; }
.bz-mnav-panel .bz-m-buy { margin-top: 4px; text-align: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); }

html.light .bz-header { background: rgba(246,248,252,.85); border-bottom-color: rgba(15,23,42,.1); color: #0f172a; }
html.light .bz-header .bz-brand span { color: #0f172a; }
html.light .bz-header .bz-brand span b { color: #047857; }
html.light .bz-nav a, html.light .bz-link { color: #334155; }
html.light .bz-nav a:hover, html.light .bz-link:hover { color: #0f172a; }
html.light .bz-nav a.is-active { color: #047857; }
html.light .bz-mnav summary { background: #fff; border-color: rgba(15,23,42,.14); color: #334155; }
html.light .bz-mnav-panel { background: #fff; border-color: rgba(15,23,42,.12); box-shadow: 0 24px 50px -16px rgba(15,23,42,.3); }
html.light .bz-mnav-panel a { color: #1e293b; }
html.light .bz-mnav-panel a:hover { background: rgba(15,23,42,.05); }
html.light .bz-mnav-panel hr { background: rgba(15,23,42,.1); }
html.light .bz-mnav-panel .bz-m-free { color: #047857; }
html.light .bz-mnav-panel .bz-m-buy { color: #fff; }

/* Pied de page (reste sombre dans les deux thèmes) */
.bz-footer { background: #040814; border-top: 1px solid rgba(255,255,255,.07); color: #94a3b8; font-family: 'Inter', sans-serif; }
.bz-footer .bz-wrap { padding-top: 64px; padding-bottom: 40px; }
.bz-fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (min-width: 768px) { .bz-fgrid { grid-template-columns: 5fr 2fr 3fr 2fr; } }
.bz-fbrand { grid-column: span 2; }
@media (min-width: 768px) { .bz-fbrand { grid-column: auto; } }
.bz-footer .bz-brand span { font-size: 18px; }
.bz-footer p { font-size: 14px; line-height: 1.6; max-width: 384px; margin: 16px 0 0; }
.bz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bz-chips span { padding: 4px 10px; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.bz-footer h4 { margin: 0; font-size: 14px; font-weight: 600; color: #fff; }
.bz-footer ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bz-footer ul a { color: #94a3b8; text-decoration: none; transition: color .15s; }
.bz-footer ul a:hover { color: #fff; }
.bz-fbottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #64748b; text-align: center; }
@media (min-width: 768px) { .bz-fbottom { flex-direction: row; text-align: left; } }
.bz-fbottom .material-symbols-outlined { font-size: 15px; vertical-align: -3px; margin-right: 4px; }

html.light [class*="bg-[#09142e]"],
html.light [class*="bg-[#070e20]"],
html.light [class*="bg-[#091124]"] { background-color: #edf1f9; }
html.light [class*="from-blue-950"],
html.light [class*="to-indigo-950"] { background-image: none !important; background-color: #ffffff !important; }
