/* Dark theme — activated via html.theme-dark */
html.theme-dark {
    color-scheme: dark;
}

html.theme-dark body.sibio-body {
    background:
        radial-gradient(circle at top, rgba(132, 204, 22, 0.08), transparent 28%),
        linear-gradient(180deg, #0a1610 0%, #0f1f17 100%);
    color: #d7e8dc;
}

html.theme-dark .sibio-ticker {
    background: #122118;
    color: #bbf7d0;
    border-bottom-color: rgba(163, 230, 53, 0.12);
}

html.theme-dark .sibio-breadcrumb {
    background: #101c15;
    color: #a7bcae;
    border-bottom-color: rgba(163, 230, 53, 0.1);
}

html.theme-dark .sibio-breadcrumb a {
    color: #d9f99d;
}

html.theme-dark .sibio-dropdown-menu {
    background: rgba(20, 40, 30, 0.98);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

html.theme-dark .sibio-dropdown-menu a {
    color: #ecfccb !important;
}

html.theme-dark .sibio-dropdown-menu a:hover {
    background: #3f6212 !important;
    color: white !important;
}

html.theme-dark .bg-white,
html.theme-dark .bg-white\/90 {
    background-color: #16261d !important;
}

html.theme-dark .bg-sibio-cream {
    background-color: #0f1a14 !important;
}

html.theme-dark .text-sibio-forest,
html.theme-dark .text-sibio-dark {
    color: #ecfccb !important;
}

html.theme-dark .text-sibio-muted {
    color: #9db0a4 !important;
}

html.theme-dark .border-sibio-forest\/10 {
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .bg-sibio-forest\/10 {
    background-color: rgba(163, 230, 53, 0.1) !important;
}

html.theme-dark .bg-sibio-lime\/20 {
    background-color: rgba(132, 204, 22, 0.16) !important;
}

html.theme-dark .from-\[\#f5fbf6\],
html.theme-dark .from-\[\#ebf7ee\] {
    --tw-gradient-from: #101c15 !important;
}

html.theme-dark .to-\[\#ebf6ef\],
html.theme-dark .to-\[\#dbeee2\] {
    --tw-gradient-to: #0a1610 !important;
}

html.theme-dark .text-\[\#1f3b2f\],
html.theme-dark .text-\[\#365949\],
html.theme-dark .text-\[\#1f6b40\] {
    color: #c8dccf !important;
}

html.theme-dark .text-\[\#145c3a\] {
    color: #d9f99d !important;
}

html.theme-dark footer {
    background: linear-gradient(135deg, #101c15, #0a1610) !important;
}

html.theme-dark .shadow-xl,
html.theme-dark .shadow-lg,
html.theme-dark .shadow-md {
    --tw-shadow-color: rgba(0, 0, 0, 0.35);
}

/* Custom sections — light backgrounds */
html.theme-dark .sibio-intro,
html.theme-dark .sibio-exp,
html.theme-dark .fapbio-overview,
html.theme-dark .fapbio-pillars {
    background: linear-gradient(180deg, #0e1812 0%, #101c15 100%) !important;
}

html.theme-dark .sibio-intro-heading,
html.theme-dark .sibio-exp-heading,
html.theme-dark .fapbio-overview-heading,
html.theme-dark .fapbio-pillars-heading {
    color: #ecfccb !important;
}

html.theme-dark .sibio-intro-lead,
html.theme-dark .sibio-exp-lead,
html.theme-dark .fapbio-overview-lead {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-intro-highlights li:hover,
html.theme-dark .sibio-intro-highlights li.is-active,
html.theme-dark .fapbio-overview-panels li:hover,
html.theme-dark .fapbio-overview-panels li.is-active {
    background: rgba(22, 38, 29, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.18) !important;
}

html.theme-dark .sibio-intro-highlight-copy strong,
html.theme-dark .fapbio-overview-panel-copy strong {
    color: #ecfccb !important;
}

html.theme-dark .sibio-intro-highlight-copy span,
html.theme-dark .fapbio-overview-panel-copy span {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-intro-shot,
html.theme-dark .sibio-exp-card,
html.theme-dark .fapbio-pillar,
html.theme-dark .fapbio-overview-visual-card,
html.theme-dark .fapbio-home-base-visual-card {
    background: #142820 !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-overview-logo-wrap,
html.theme-dark .fapbio-overview-badges li {
    background: rgba(20, 40, 30, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.2) !important;
    color: #d9f99d !important;
}

html.theme-dark .fapbio-overview,
html.theme-dark .fapbio-pillars,
html.theme-dark .fapbio-home-base-card {
    background: rgba(22, 38, 29, 0.94) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-home-base-eyebrow {
    background: rgba(132, 204, 22, 0.14) !important;
    color: #d9f99d !important;
}

html.theme-dark .fapbio-home-base-heading,
html.theme-dark .fapbio-home-base-panel-copy strong {
    color: #ecfccb !important;
}

html.theme-dark .fapbio-home-base-lead,
html.theme-dark .fapbio-home-base-panel-copy span {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-home-base-panels li:hover,
html.theme-dark .fapbio-home-base-panels li.is-active {
    background: rgba(15, 30, 22, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.16) !important;
}

html.theme-dark .fapbio-home-base-btn {
    background: rgba(163, 230, 53, 0.1) !important;
    border-color: rgba(163, 230, 53, 0.16) !important;
    color: #ecfccb !important;
}

html.theme-dark .fapbio-home-base-btn.is-primary {
    background: linear-gradient(135deg, #65a30d, #84cc16) !important;
    border-color: transparent !important;
    color: #0f2e1f !important;
}

html.theme-dark .fapbio-home-base-caption {
    background: linear-gradient(135deg, rgba(10, 22, 16, 0.96), rgba(20, 83, 45, 0.88)) !important;
}

html.theme-dark .fapbio-home-base-logo-wrap,
html.theme-dark .fapbio-home-base-stats li {
    background: rgba(20, 40, 30, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.2) !important;
}

html.theme-dark .fapbio-home-base-stats strong {
    color: #d9f99d !important;
}

html.theme-dark .fapbio-home-base-stats span {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-team {
    background:
        radial-gradient(circle at 85% 10%, rgba(101, 163, 13, 0.1), transparent 34%),
        linear-gradient(180deg, #0e1812 0%, #101c15 55%, #0f1a14 100%) !important;
}

html.theme-dark .fapbio-team-eyebrow {
    background: rgba(132, 204, 22, 0.14) !important;
    color: #d9f99d !important;
}

html.theme-dark .fapbio-team-heading,
html.theme-dark .fapbio-team-president-name,
html.theme-dark .fapbio-team-card-name {
    color: #ecfccb !important;
}

html.theme-dark .fapbio-team-lead,
html.theme-dark .fapbio-team-president-bio,
html.theme-dark .fapbio-team-card-bio {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-team-president,
html.theme-dark .fapbio-team-card {
    background: rgba(22, 38, 29, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-team-president-roles li {
    background: rgba(163, 230, 53, 0.12) !important;
    border-color: rgba(163, 230, 53, 0.2) !important;
    color: #d9f99d !important;
}

html.theme-dark .fapbio-team-nav button {
    background: rgba(20, 40, 30, 0.88) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #c8dccf !important;
}

html.theme-dark .fapbio-team-nav button.is-active {
    background: linear-gradient(135deg, #3f6212, #65a30d) !important;
    color: #ecfccb !important;
}

html.theme-dark .fapbio-team-card-role {
    background: rgba(15, 30, 22, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #d9f99d !important;
}

html.theme-dark .fapbio-team-president-photo,
html.theme-dark .fapbio-team-card-photo {
    border-color: rgba(163, 230, 53, 0.28) !important;
}

html.theme-dark .fapbio-regions-card,
html.theme-dark .fapbio-regions-map {
    background: rgba(22, 38, 29, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-regions-eyebrow {
    background: rgba(132, 204, 22, 0.14) !important;
    color: #d9f99d !important;
}

html.theme-dark .fapbio-regions-heading {
    color: #ecfccb !important;
}

html.theme-dark .fapbio-regions-lead,
html.theme-dark .fapbio-regions-empty {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-regions-stats li,
html.theme-dark .fapbio-regions-tag {
    background: rgba(15, 30, 22, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #d9f99d !important;
}

html.theme-dark .fapbio-regions-stats span {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-regions-search input {
    background: rgba(15, 30, 22, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #ecfccb !important;
}

html.theme-dark .sibio-exp-title,
html.theme-dark .fapbio-pillar-title {
    color: #ecfccb !important;
}

html.theme-dark .sibio-exp-text,
html.theme-dark .fapbio-pillar-text,
html.theme-dark .fapbio-pillar-points li {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-participate,
html.theme-dark .fapbio-bridge {
    background:
        radial-gradient(circle at 20% 30%, rgba(101, 163, 13, 0.12), transparent 40%),
        linear-gradient(135deg, #101c15 0%, #0f2419 100%) !important;
}

html.theme-dark .sibio-participate-heading,
html.theme-dark .sibio-participate-card-copy strong,
html.theme-dark .fapbio-bridge-heading {
    color: #ecfccb !important;
}

html.theme-dark .sibio-participate-lead,
html.theme-dark .sibio-participate-card-copy span,
html.theme-dark .fapbio-bridge-lead {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-participate-card,
html.theme-dark .fapbio-bridge-btn {
    background: rgba(22, 38, 29, 0.88) !important;
    border-color: rgba(163, 230, 53, 0.16) !important;
    color: #ecfccb !important;
}

html.theme-dark .fapbio-bridge-btn.is-primary {
    background: linear-gradient(135deg, #65a30d, #84cc16) !important;
    border-color: transparent !important;
    color: #0f2e1f !important;
}

html.theme-dark .sibio-floating-btn.is-white {
    background: #1a2e22;
    color: #fde68a;
    border: 1px solid rgba(163, 230, 53, 0.2);
}

/* Footer */
html.theme-dark .sibio-footer {
    color: #c8dccf;
}

html.theme-dark .sibio-footer-heading {
    color: #d9f99d;
}

html.theme-dark .sibio-footer-text,
html.theme-dark .sibio-footer-bottom,
html.theme-dark .sibio-footer-links a {
    color: #9db0a4;
}

html.theme-dark .sibio-footer-links a:hover,
html.theme-dark .sibio-footer-links a.is-active {
    color: #d9f99d;
}

html.theme-dark .sibio-footer-bottom {
    border-top-color: rgba(163, 230, 53, 0.14);
}

/* ============================================================
   SIBIO Marketplace — boutique, panier, commande, connexion
   ============================================================ */

/* Intro de page */
html.theme-dark .sibio-shop-hero-eyebrow {
    background: rgba(132, 204, 22, 0.14) !important;
    border-color: rgba(163, 230, 53, 0.22) !important;
    color: #d9f99d !important;
}

html.theme-dark .sibio-shop-hero-title {
    color: #ecfccb !important;
}

html.theme-dark .sibio-shop-hero-lead {
    color: #9db0a4 !important;
}

/* Boutons */
html.theme-dark .sibio-btn--ghost {
    background: rgba(22, 38, 29, 0.85) !important;
    border-color: rgba(163, 230, 53, 0.16) !important;
    color: #ecfccb !important;
}

html.theme-dark .sibio-btn--ghost:hover:not(:disabled) {
    border-color: rgba(163, 230, 53, 0.4) !important;
    background: rgba(63, 98, 18, 0.4) !important;
}

/* Champs de formulaire */
html.theme-dark .sibio-field-label {
    color: #d9f99d !important;
}

html.theme-dark .sibio-field input,
html.theme-dark .sibio-field select,
html.theme-dark .sibio-field textarea {
    background: rgba(15, 30, 22, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #ecfccb !important;
}

html.theme-dark .sibio-field input:focus,
html.theme-dark .sibio-field select:focus,
html.theme-dark .sibio-field textarea:focus {
    background: rgba(15, 30, 22, 1) !important;
    border-color: rgba(163, 230, 53, 0.4) !important;
}

html.theme-dark .sibio-field input::placeholder,
html.theme-dark .sibio-field textarea::placeholder {
    color: #6b8479 !important;
}

html.theme-dark .sibio-field-hint {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-field-error {
    color: #fca5a5 !important;
}

html.theme-dark .sibio-field.has-error input:not([type="hidden"]),
html.theme-dark .sibio-field.has-error select:not([type="hidden"]),
html.theme-dark .sibio-field.has-error textarea:not([type="hidden"]) {
    border-color: rgba(248, 113, 113, 0.45) !important;
}

/* Barre d'outils boutique */
html.theme-dark .sibio-shop-toolbar {
    background: rgba(16, 28, 21, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.1) !important;
}

html.theme-dark .sibio-shop-search input,
html.theme-dark .sibio-shop-toolbar select {
    background-color: rgba(15, 30, 22, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #ecfccb !important;
}

html.theme-dark .sibio-shop-toolbar select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23d9f99d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

html.theme-dark .sibio-shop-search input::placeholder {
    color: #6b8479 !important;
}

html.theme-dark .sibio-shop-search-icon {
    color: #a3e635 !important;
}

/* Grille & cartes produits */
html.theme-dark .sibio-shop-card {
    background: rgba(22, 38, 29, 0.85) !important;
    border-color: rgba(163, 230, 53, 0.1) !important;
}

html.theme-dark .sibio-shop-card-media {
    background: rgba(15, 30, 22, 0.6) !important;
}

html.theme-dark .sibio-shop-card-title {
    color: #ecfccb !important;
}

html.theme-dark .sibio-shop-card-meta {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-shop-card-meta strong {
    color: #d9f99d !important;
}

html.theme-dark .sibio-shop-card-price {
    color: #fde68a !important;
}

html.theme-dark .sibio-shop-card-price small {
    color: #6b8479 !important;
}

html.theme-dark .sibio-shop-card-cart-btn {
    background: rgba(63, 98, 18, 0.35) !important;
    border-color: rgba(163, 230, 53, 0.2) !important;
    color: #d9f99d !important;
}

html.theme-dark .sibio-shop-card-cart-btn.is-active {
    background: linear-gradient(135deg, #a3e635, #84cc16) !important;
    color: #0f2e1f !important;
}

html.theme-dark .sibio-shop-empty {
    background: rgba(132, 204, 22, 0.08) !important;
    border-color: rgba(163, 230, 53, 0.2) !important;
    color: #d9f99d !important;
}

/* Modales */
html.theme-dark .sibio-modal {
    background: #16261d !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55) !important;
}

html.theme-dark .sibio-modal-header,
html.theme-dark .sibio-modal-actions {
    border-color: rgba(163, 230, 53, 0.1) !important;
}

html.theme-dark .sibio-modal-header h3 {
    color: #ecfccb !important;
}

html.theme-dark .sibio-modal-header p {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-modal-close {
    background: rgba(63, 98, 18, 0.35) !important;
    color: #ecfccb !important;
}

html.theme-dark .sibio-modal-summary {
    background: rgba(15, 30, 22, 0.85) !important;
    border-color: rgba(163, 230, 53, 0.1) !important;
    color: #c8dccf !important;
}

html.theme-dark .sibio-modal-summary strong {
    color: #ecfccb !important;
}

html.theme-dark .sibio-shop-upload {
    background: rgba(15, 30, 22, 0.6) !important;
    border-color: rgba(163, 230, 53, 0.2) !important;
    color: #9db0a4 !important;
}

html.theme-dark .sibio-shop-upload.is-dragover {
    background: rgba(132, 204, 22, 0.12) !important;
    border-color: rgba(163, 230, 53, 0.5) !important;
}

/* Panier */
html.theme-dark .sibio-cart-item,
html.theme-dark .sibio-cart-summary {
    background: rgba(22, 38, 29, 0.85) !important;
    border-color: rgba(163, 230, 53, 0.1) !important;
}

html.theme-dark .sibio-cart-item-media {
    background: rgba(15, 30, 22, 0.6) !important;
}

html.theme-dark .sibio-cart-item-name,
html.theme-dark .sibio-cart-summary h2,
html.theme-dark .sibio-cart-qty span {
    color: #ecfccb !important;
}

html.theme-dark .sibio-cart-item-meta {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-cart-qty {
    background: rgba(15, 30, 22, 0.85) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .sibio-cart-qty button {
    color: #d9f99d !important;
}

html.theme-dark .sibio-cart-qty button:hover {
    background: rgba(132, 204, 22, 0.18) !important;
}

html.theme-dark .sibio-cart-remove {
    background: rgba(127, 29, 29, 0.35) !important;
    border-color: rgba(248, 113, 113, 0.25) !important;
    color: #fca5a5 !important;
}

html.theme-dark .sibio-cart-remove:hover {
    background: rgba(127, 29, 29, 0.5) !important;
}

html.theme-dark .sibio-cart-empty {
    background: rgba(132, 204, 22, 0.08) !important;
    border-color: rgba(163, 230, 53, 0.2) !important;
    color: #d9f99d !important;
}

html.theme-dark .sibio-cart-empty a {
    color: #a3e635 !important;
}

html.theme-dark .sibio-cart-summary-line {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-cart-summary-line strong {
    color: #ecfccb !important;
}

html.theme-dark .sibio-cart-summary-total {
    color: #d9f99d !important;
    border-top-color: rgba(163, 230, 53, 0.15) !important;
}

html.theme-dark .sibio-cart-summary-note {
    color: #fde68a !important;
}

/* Fenêtre de confirmation */
html.theme-dark .sibio-confirm-modal {
    background: #16261d !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55) !important;
}

html.theme-dark .sibio-confirm-modal h3 {
    color: #ecfccb !important;
}

html.theme-dark .sibio-confirm-modal p {
    color: #9db0a4 !important;
}

/* Page commande */
html.theme-dark .sibio-checkout-card {
    background: #16261d !important;
    border-color: rgba(163, 230, 53, 0.1) !important;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .sibio-checkout-hero {
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.08), rgba(15, 30, 22, 0.6)) !important;
}

html.theme-dark .sibio-checkout-label {
    background: rgba(202, 138, 4, 0.16) !important;
    border-color: rgba(202, 138, 4, 0.3) !important;
    color: #fde68a !important;
}

html.theme-dark .sibio-checkout-name {
    color: #ecfccb !important;
}

html.theme-dark .sibio-checkout-origin {
    background: rgba(132, 204, 22, 0.14) !important;
    color: #d9f99d !important;
}

html.theme-dark .sibio-checkout-meta-item {
    background: rgba(15, 30, 22, 0.55) !important;
}

html.theme-dark .sibio-checkout-meta-label {
    color: #a3e635 !important;
}

html.theme-dark .sibio-checkout-meta-value {
    color: #ecfccb !important;
}

html.theme-dark .sibio-checkout-desc {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-checkout-badges {
    background: rgba(15, 30, 22, 0.6) !important;
    border-color: rgba(163, 230, 53, 0.08) !important;
}

html.theme-dark .sibio-checkout-badge {
    background: rgba(22, 38, 29, 0.9) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #d9f99d !important;
}

html.theme-dark .sibio-checkout-section-label {
    color: #fde68a !important;
}

html.theme-dark .sibio-checkout-section-label::after {
    background: rgba(163, 230, 53, 0.12) !important;
}

html.theme-dark .sibio-checkout-qty-row {
    background: rgba(15, 30, 22, 0.55) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .sibio-checkout-qty-label {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-checkout-total-label {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-checkout-total-amount {
    color: #d9f99d !important;
}

html.theme-dark .sibio-checkout-total-amount span {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-checkout-status {
    background: rgba(132, 204, 22, 0.1) !important;
    border-color: rgba(163, 230, 53, 0.25) !important;
    color: #d9f99d !important;
}

html.theme-dark .sibio-checkout-status.is-warning {
    background: rgba(202, 138, 4, 0.12) !important;
    border-color: rgba(202, 138, 4, 0.3) !important;
    color: #fde68a !important;
}

html.theme-dark .sibio-checkout-status.is-error {
    background: rgba(127, 29, 29, 0.18) !important;
    border-color: rgba(248, 113, 113, 0.3) !important;
    color: #fca5a5 !important;
}

html.theme-dark .sibio-checkout-summary {
    background: rgba(15, 30, 22, 0.55) !important;
    border-color: rgba(163, 230, 53, 0.1) !important;
}

html.theme-dark .sibio-checkout-summary-item {
    background: rgba(22, 38, 29, 0.9) !important;
    border-color: rgba(163, 230, 53, 0.08) !important;
}

html.theme-dark .sibio-checkout-summary-item strong {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-checkout-summary-item span {
    color: #ecfccb !important;
}

html.theme-dark .sibio-checkout-success {
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.14), rgba(132, 204, 22, 0.06)) !important;
    border-color: rgba(163, 230, 53, 0.25) !important;
}

html.theme-dark .sibio-checkout-success-title {
    color: #d9f99d !important;
}

html.theme-dark .sibio-checkout-success-sub {
    color: #9db0a4 !important;
}

/* Connexion / inscription */
html.theme-dark .sibio-auth-card {
    background: rgba(22, 38, 29, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.1) !important;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45) !important;
}

html.theme-dark .sibio-auth-tabs {
    background: rgba(15, 30, 22, 0.7) !important;
}

html.theme-dark .sibio-auth-tab {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-auth-tab.is-active {
    background: rgba(63, 98, 18, 0.5) !important;
    color: #ecfccb !important;
}

html.theme-dark .sibio-auth-message.is-error {
    background: rgba(127, 29, 29, 0.18) !important;
    border-color: rgba(248, 113, 113, 0.3) !important;
    color: #fca5a5 !important;
}

html.theme-dark .sibio-auth-message.is-success {
    background: rgba(132, 204, 22, 0.12) !important;
    border-color: rgba(163, 230, 53, 0.25) !important;
    color: #d9f99d !important;
}

html.theme-dark .sibio-auth-foot {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-auth-foot a {
    color: #a3e635 !important;
}

html.theme-dark .sibio-auth-demo {
    background: rgba(15, 30, 22, 0.6) !important;
    border-color: rgba(163, 230, 53, 0.2) !important;
    color: #9db0a4 !important;
}

html.theme-dark .sibio-auth-demo strong {
    color: #d9f99d !important;
}

/* ============================================================
   FAP-BIO — Annuaire des régions (region.php)
   ============================================================ */
html.theme-dark .fapbio-regions-toolbar,
html.theme-dark .fapbio-regions-list,
html.theme-dark .fapbio-regions-detail,
html.theme-dark .fapbio-rep-card,
html.theme-dark .fapbio-regions-diaspora {
    background: rgba(22, 38, 29, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-regions-detail-title,
html.theme-dark .fapbio-regions-detail-empty h2,
html.theme-dark .fapbio-regions-item-name,
html.theme-dark .fapbio-rep-name,
html.theme-dark .fapbio-regions-diaspora-copy strong {
    color: #ecfccb !important;
}

html.theme-dark .fapbio-regions-detail-empty,
html.theme-dark .fapbio-regions-detail-empty p,
html.theme-dark .fapbio-regions-list-empty,
html.theme-dark .fapbio-regions-item-zone,
html.theme-dark .fapbio-rep-bio,
html.theme-dark .fapbio-regions-detail-breadcrumb,
html.theme-dark .fapbio-regions-no-rep,
html.theme-dark .fapbio-regions-diaspora-copy span,
html.theme-dark .fapbio-regions-detail-box p,
html.theme-dark .fapbio-regions-detail-count,
html.theme-dark .fapbio-rep-detail {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-regions-detail-breadcrumb strong {
    color: #d9f99d !important;
}

html.theme-dark .fapbio-rep-detail strong {
    color: #bef264 !important;
}

html.theme-dark .fapbio-regions-filter {
    background: rgba(20, 40, 30, 0.88) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #c8dccf !important;
}

html.theme-dark .fapbio-regions-filter:hover {
    color: #ecfccb !important;
}

html.theme-dark .fapbio-regions-filter.is-active {
    background: linear-gradient(135deg, #3f6212, #65a30d) !important;
    color: #ecfccb !important;
}

html.theme-dark .fapbio-regions-item:hover {
    background: rgba(132, 204, 22, 0.1) !important;
}

html.theme-dark .fapbio-regions-item.is-active {
    background: linear-gradient(135deg, #3f6212, #65a30d) !important;
}

html.theme-dark .fapbio-regions-item-badge {
    background: rgba(202, 138, 4, 0.18) !important;
    border-color: rgba(202, 138, 4, 0.35) !important;
    color: #fde68a !important;
}

html.theme-dark .fapbio-regions-detail-chip,
html.theme-dark .fapbio-rep-lang {
    background: rgba(15, 30, 22, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #d9f99d !important;
}

html.theme-dark .fapbio-regions-detail-box {
    background: rgba(132, 204, 22, 0.08) !important;
    border-color: rgba(163, 230, 53, 0.18) !important;
}

html.theme-dark .fapbio-regions-detail-box h3,
html.theme-dark .fapbio-regions-detail-section-head h3 {
    color: #d9f99d !important;
}

html.theme-dark .fapbio-regions-detail-tag {
    background: rgba(15, 30, 22, 0.85) !important;
    border-color: rgba(163, 230, 53, 0.22) !important;
    color: #bef264 !important;
}

html.theme-dark .fapbio-regions-detail-section-head {
    border-bottom-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-regions-no-rep {
    background: rgba(15, 30, 22, 0.5) !important;
    border-color: rgba(163, 230, 53, 0.18) !important;
}

html.theme-dark .fapbio-rep-photo-placeholder {
    background: rgba(15, 30, 22, 0.92) !important;
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-rep-role-badge {
    background: rgba(8, 20, 14, 0.75) !important;
}

html.theme-dark .fapbio-rep-awards {
    border-top-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-rep-awards-title {
    color: #fcd34d !important;
}

html.theme-dark .fapbio-rep-award-year {
    color: #facc15 !important;
}

html.theme-dark .fapbio-regions-diaspora-icon {
    background: rgba(132, 204, 22, 0.14) !important;
}

html.theme-dark .fapbio-regions-diaspora svg {
    color: #a3e635 !important;
}

html.theme-dark .fapbio-bio-toggle summary {
    color: #d9f99d !important;
}

html.theme-dark .fapbio-bio-toggle summary::before {
    background: rgba(163, 230, 53, 0.16) !important;
}

html.theme-dark .fapbio-bio-toggle-content {
    color: #9db0a4 !important;
}

/* FAP-BIO — Activités (activite.php) */
html.theme-dark .fapbio-activities-hero-intro {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-activity-card {
    background: #142820 !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-activity-title {
    color: #ecfccb !important;
}

html.theme-dark .fapbio-activity-text {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-activity-status {
    background: rgba(202, 138, 4, 0.18) !important;
    color: #fde68a !important;
}

html.theme-dark .fapbio-activities-note {
    background: rgba(202, 138, 4, 0.08) !important;
    border-color: rgba(202, 138, 4, 0.22) !important;
    color: #dcc9a8 !important;
}

html.theme-dark .fapbio-activities-note-icon {
    background: rgba(202, 138, 4, 0.18) !important;
    color: #fcd34d !important;
}

/* ============================================================
   FAP-BIO / SIBIO — Programme & Éditions (programme-editions.php)
   ============================================================ */

/* Section backgrounds (light panels -> dark panels) */
html.theme-dark .fapbio-programme-days,
html.theme-dark .fapbio-programme-divider,
html.theme-dark .fapbio-edition,
html.theme-dark .fapbio-ambiance,
html.theme-dark .fapbio-faq {
    background: #101c15 !important;
}

html.theme-dark .fapbio-programme-highlights,
html.theme-dark .fapbio-edition--alt,
html.theme-dark .fapbio-videos {
    background: linear-gradient(180deg, #0e1812 0%, #101c15 100%) !important;
}

/* Section intro copy */
html.theme-dark .fapbio-programme-intro {
    color: #9db0a4 !important;
}

/* Cards: programme days, highlights, people, stats, content, FAQ */
html.theme-dark .fapbio-day-card,
html.theme-dark .fapbio-highlight-card,
html.theme-dark .fapbio-person-card,
html.theme-dark .fapbio-stat-card,
html.theme-dark .fapbio-content-card,
html.theme-dark .fapbio-faq-item {
    background: #142820 !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-day-title,
html.theme-dark .fapbio-highlight-title,
html.theme-dark .fapbio-person-name,
html.theme-dark .fapbio-content-card h3,
html.theme-dark .fapbio-faq-item summary {
    color: #ecfccb !important;
}

html.theme-dark .fapbio-day-text,
html.theme-dark .fapbio-highlight-text,
html.theme-dark .fapbio-person-role,
html.theme-dark .fapbio-stat-card p,
html.theme-dark .fapbio-content-card p,
html.theme-dark .fapbio-faq-item p {
    color: #9db0a4 !important;
}

/* Day theme label */
html.theme-dark .fapbio-day-theme {
    color: #fcd34d !important;
}

/* Highlight time pill */
html.theme-dark .fapbio-highlight-time {
    background: rgba(163, 230, 53, 0.16) !important;
    color: #ecfccb !important;
}

/* Person avatar icon circle */
html.theme-dark .fapbio-person-avatar {
    background: rgba(163, 230, 53, 0.16) !important;
}

html.theme-dark .fapbio-person-avatar svg {
    color: #a3e635 !important;
}

/* FAQ accordion marker */
html.theme-dark .fapbio-faq-item summary::before {
    background: rgba(163, 230, 53, 0.16) !important;
}

/* Edition copy (2022 / 2024 panels) */
html.theme-dark .fapbio-edition-text {
    color: #c8dccf !important;
}

html.theme-dark .fapbio-edition-text strong {
    color: #d9f99d !important;
}

/* Gradient accent text (stat numbers + edition year accent + section heading accents) */
html.theme-dark .fapbio-stat-number,
html.theme-dark .fapbio-regions-heading-accent,
html.theme-dark .fapbio-overview-heading-accent,
html.theme-dark .fapbio-pillars-heading span,
html.theme-dark .fapbio-bridge-heading span {
    background: linear-gradient(90deg, #65a30d, #a3e635 55%, #fcd34d) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Programme note (Label Bio) */
html.theme-dark .fapbio-programme-note {
    background: rgba(202, 138, 4, 0.08) !important;
    border-color: rgba(202, 138, 4, 0.22) !important;
    color: #dcc9a8 !important;
}

html.theme-dark .fapbio-programme-note-icon {
    background: rgba(202, 138, 4, 0.18) !important;
    color: #fcd34d !important;
}

/* ============================================================
   FAP-BIO / SIBIO — Partenaires & Sponsoring (exposants-partenaires.php)
   ============================================================ */

html.theme-dark .fapbio-partner-card {
    background: #142820 !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-partner-name {
    color: #ecfccb !important;
}

/* .fapbio-partner-logo keeps its white backing in both themes so
   white-background partner logos stay legible on the dark card. */

/* ============================================================
   FAP-BIO / SIBIO — Réservation & Infos pratiques (reservation-salon-bio-abidjan.php)
   ============================================================ */

html.theme-dark .fapbio-content-card ol,
html.theme-dark .fapbio-content-card ul {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-content-card strong {
    color: #d9f99d !important;
}

/* ============================================================
   FAP-BIO / SIBIO — Prix Adama Diawara (prix_adama_diawara_sibio2026.php)
   ============================================================ */

html.theme-dark .fapbio-consent-item {
    background: rgba(163, 230, 53, 0.05) !important;
    border-color: rgba(163, 230, 53, 0.16) !important;
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-consent-item:hover {
    background: rgba(163, 230, 53, 0.09) !important;
    border-color: rgba(163, 230, 53, 0.4) !important;
}

html.theme-dark .fapbio-consent-item strong {
    color: #d9f99d !important;
}

/* ============================================================
   FAP-BIO / SIBIO — Projet Carbon (projet_carbon.php)
   ============================================================ */

html.theme-dark .fapbio-calculator {
    background: #142820 !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    box-shadow: none !important;
}

html.theme-dark .fapbio-calc-field label {
    color: #ecfccb !important;
}

html.theme-dark .fapbio-calc-field input[type="range"] {
    background: linear-gradient(90deg, #3f6212, #a3e635) !important;
}

html.theme-dark .fapbio-calc-field input[type="range"]::-moz-range-track {
    background: linear-gradient(90deg, #3f6212, #a3e635) !important;
}

html.theme-dark .fapbio-calc-field input[type="range"]::-webkit-slider-thumb {
    background: #101c15 !important;
    border-color: #a3e635 !important;
}

html.theme-dark .fapbio-calc-field input[type="range"]::-moz-range-thumb {
    background: #101c15 !important;
    border-color: #a3e635 !important;
}

html.theme-dark .fapbio-calc-range-row,
html.theme-dark .fapbio-calc-range-val,
html.theme-dark .fapbio-calc-result-label,
html.theme-dark .fapbio-calc-result-sub,
html.theme-dark .fapbio-form-note {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-calc-range-val strong {
    color: #a3e635 !important;
}

html.theme-dark .fapbio-calc-result {
    background: linear-gradient(180deg, #0e1812, #101c15) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
}

html.theme-dark .fapbio-calc-result-value {
    color: #a3e635 !important;
}

html.theme-dark .fapbio-calc-result-value--gold {
    color: #fcd34d !important;
}

/* ============================================================
   FAP-BIO / SIBIO — Lecteurs de documents (dossier-sponsoring.php, rapport-lecture.php)
   ============================================================ */
html.theme-dark .fapbio-viewer-title {
    color: #ecfccb !important;
}

html.theme-dark .fapbio-viewer-frame-wrap {
    background: #142820 !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    box-shadow: none !important;
}

html.theme-dark .fapbio-viewer-frame {
    background: #142820 !important;
}

html.theme-dark .fapbio-viewer-note {
    color: #9db0a4 !important;
}

html.theme-dark .fapbio-viewer-note a {
    color: #a3e635 !important;
}

/* ============================================================
   FAP-BIO / SIBIO — Super admin (superAdmin.php)
   ============================================================ */
html.theme-dark .sibio-admin-empty {
    background: rgba(15, 30, 22, 0.6) !important;
    border-color: rgba(163, 230, 53, 0.2) !important;
    color: #9db0a4 !important;
}

html.theme-dark .sibio-admin-stat,
html.theme-dark .sibio-admin-seller-card {
    background: #142820 !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    box-shadow: none !important;
}

html.theme-dark .sibio-admin-stat strong,
html.theme-dark .sibio-admin-seller-name {
    color: #ecfccb !important;
}

html.theme-dark .sibio-admin-stat span,
html.theme-dark .sibio-admin-seller-meta,
html.theme-dark .sibio-admin-seller-details > div {
    color: #9db0a4 !important;
}

html.theme-dark .sibio-admin-seller-details strong {
    color: #a3e635 !important;
}

html.theme-dark .sibio-admin-filter {
    background: rgba(15, 30, 22, 0.92) !important;
    border-color: rgba(163, 230, 53, 0.14) !important;
    color: #d9f99d !important;
}

html.theme-dark .sibio-admin-filter:hover {
    border-color: rgba(163, 230, 53, 0.4) !important;
}

html.theme-dark .sibio-admin-filter.is-active {
    background: linear-gradient(135deg, #a3e635, #84cc16) !important;
    color: #0f2e1f !important;
}

html.theme-dark .sibio-btn--danger {
    background: rgba(248, 113, 113, 0.14) !important;
    border-color: rgba(248, 113, 113, 0.32) !important;
    color: #fca5a5 !important;
}

html.theme-dark .sibio-btn--danger:hover:not(:disabled) {
    background: rgba(248, 113, 113, 0.22) !important;
}

html.theme-dark .fapbio-admin-badge.is-pending {
    background: rgba(252, 211, 77, 0.14) !important;
    border-color: rgba(252, 211, 77, 0.35) !important;
    color: #fcd34d !important;
}

html.theme-dark .fapbio-admin-badge.is-approved {
    background: rgba(163, 230, 53, 0.14) !important;
    border-color: rgba(163, 230, 53, 0.3) !important;
    color: #a3e635 !important;
}

html.theme-dark .fapbio-admin-badge.is-suspended,
html.theme-dark .fapbio-admin-badge.is-rejected {
    background: rgba(248, 113, 113, 0.14) !important;
    border-color: rgba(248, 113, 113, 0.32) !important;
    color: #fca5a5 !important;
}
