/* Final light-theme contrast pass. Keep this file loaded after overrides.css. */
body.light-theme{background:radial-gradient(circle at 72% 0,rgba(0,124,166,.1),transparent 34%),linear-gradient(180deg,#e7f0f5 0%,#dde9f0 48%,#d4e3eb 100%);scrollbar-color:#86a5b4 #dbe8ef}
body.light-theme::-webkit-scrollbar{width:10px;height:10px}
body.light-theme::-webkit-scrollbar-track{background:#dbe8ef}
body.light-theme::-webkit-scrollbar-thumb{background:#86a5b4;border:2px solid #dbe8ef;border-radius:999px}
body.light-theme .topbar{background:rgba(238,247,251,.96)!important;border-bottom-color:#b9cdd7!important;box-shadow:0 12px 32px rgba(38,65,78,.1)!important}
body.light-theme .page{color:#12222c}
body.light-theme .brand,body.light-theme .brand-name,body.light-theme .header-links a:hover,body.light-theme .header-auth a:hover{color:#0a1720!important}
body.light-theme .search-trigger,body.light-theme .search-panel,body.light-theme .stats,body.light-theme .patch-card,body.light-theme .category-card,body.light-theme .team-card,body.light-theme .home-update-card,body.light-theme .home-update-preview,body.light-theme .admin-panel,body.light-theme .media-card,body.light-theme .gb-cards>article{background:linear-gradient(145deg,#f2f8fb,#e5f0f6)!important;border-color:#adc5d1!important;color:#12222c!important;box-shadow:0 14px 36px rgba(38,65,78,.1)!important}
body.light-theme #mainContent:has(.home-page-background) .article-header,body.light-theme #mainContent:has(.home-page-background) .rule-section,body.light-theme #mainContent:has(.home-page-background) .patch-card,body.light-theme #mainContent:has(.home-page-background) .team-card,body.light-theme #mainContent:has(.home-page-background) .category-card,body.light-theme #mainContent:has(.home-page-background) .home-update-card,body.light-theme #mainContent:has(.home-page-background) .admin-panel,body.light-theme #mainContent:has(.home-page-background) .team-empty{background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(233,242,247,.91))!important;border-color:#9fbeca!important;color:#10202a!important;box-shadow:0 16px 42px rgba(38,65,78,.16),inset 0 1px 0 rgba(255,255,255,.85)!important;backdrop-filter:blur(2px)}
body.light-theme #mainContent:has(.home-page-background) .article-header,body.light-theme #mainContent:has(.home-page-background) .rule-section{border-left-color:#007ca6!important}
body.light-theme .category-card:hover,body.light-theme .patch-card:hover,body.light-theme .team-card:hover,body.light-theme .media-card:hover{background:linear-gradient(145deg,#f7fbfd,#dfedf4)!important;border-color:#7fb6cd!important;box-shadow:0 18px 42px rgba(38,65,78,.14)!important}
body.light-theme .search-panel,body.light-theme .search-input-wrap,body.light-theme .search-results,body.light-theme .search-hint{background:#eef6fa!important;border-color:#c2d5de!important}
body.light-theme .result,body.light-theme .search-result-group .result{color:#172832!important}
body.light-theme .result:hover,body.light-theme .result.selected,body.light-theme .search-result-group .result:hover,body.light-theme .search-result-group .result.selected{background:#d7e7ef!important;color:#0d1f29!important}
body.light-theme .sidebar{background:linear-gradient(180deg,#e4eef4,#d9e8f0)!important;border-right:1px solid #abc3cf!important;box-shadow:10px 0 24px rgba(38,65,78,.08)!important}
body.light-theme .sidebar-scroll{scrollbar-color:#86a5b4 #dbe8ef!important}
body.light-theme .sidebar-scroll::-webkit-scrollbar{width:9px}
body.light-theme .sidebar-scroll::-webkit-scrollbar-track{background:#dbe8ef!important}
body.light-theme .sidebar-scroll::-webkit-scrollbar-thumb{background:#86a5b4!important;border:2px solid #dbe8ef!important;border-radius:999px}
body.light-theme .side-nav a,body.light-theme .group-label,body.light-theme .nav-group .group-label,body.light-theme .sidebar-item-title{color:#334954!important}
body.light-theme .side-nav a:hover,body.light-theme .side-nav a.active,body.light-theme .nav-group.open>.group-label,body.light-theme .nav-group .group-label:hover{background:#cfdee7!important;color:#0c2733!important}
body.light-theme .nav-icon,body.light-theme .chevron{color:#5c7380!important}
body.light-theme .nav-divider{background:#bfd0d9!important}
body.light-theme .admin-row,body.light-theme .sidebar-action-menu button,body.light-theme .profile-dropdown button,body.light-theme .site-modal-panel button:not(.btn):not(.primary),body.light-theme .diff-bulk button,body.light-theme .block-overlay-btn,body.light-theme .detail-edit-menu button,body.light-theme .gb-tab-item-controls button{background:#edf5f8!important;border-color:#b9ced8!important;color:#243a45!important}
body.light-theme .admin-row small,body.light-theme .profile-dropdown button small,body.light-theme .diff-webhook-field small,body.light-theme .diff-webhook-note,body.light-theme .toc-empty{color:#5c727e!important}
body.light-theme .admin-row:hover,body.light-theme .sidebar-action-menu button:hover,body.light-theme .profile-dropdown button:hover,body.light-theme .profile-dropdown button[aria-checked="true"],body.light-theme .block-overlay-btn:hover,body.light-theme .detail-edit-menu button:hover,body.light-theme .gb-tab-item-controls button:hover{background:#d9eaf1!important;border-color:#7ebdd2!important;color:#005f81!important}
body.light-theme .gb-tab-item-controls button[data-tab-remove]{background:#fdebed!important;border-color:#e1a9b2!important;color:#b3273f!important}
body.light-theme .gb-tab-item-controls button[data-tab-remove]:hover{background:#f4c3ca!important;border-color:#c9475d!important;color:#8d1e33!important}
body.light-theme .site-modal-panel,body.light-theme .profile-dropdown,body.light-theme .diff-panel,body.light-theme .update-preview-panel,body.light-theme .selection-mini-toolbar,body.light-theme .section-context-toolbar{background:linear-gradient(145deg,#f2f8fb,#e5f0f6)!important;border-color:#adc5d1!important;color:#12222c!important}
body.light-theme .profile-dropdown:before{border-color:#adc5d1!important}
body.light-theme input,body.light-theme select,body.light-theme textarea,body.light-theme .diff-webhook-field input,body.light-theme .diff-text input[type=text]{background:#f6fbfd!important;color:#10202a!important;border-color:#abc3cf!important}
body.light-theme input::placeholder,body.light-theme textarea::placeholder{color:#718692!important}
body.light-theme .article-header p,body.light-theme .hero p,body.light-theme .category-card p,body.light-theme .patch-title p,body.light-theme .rule-section p,body.light-theme .rule-section li,body.light-theme .rule-body,body.light-theme .rule-body p,body.light-theme .rich-content,body.light-theme .rich-content p,body.light-theme .pretty-list,body.light-theme .change,body.light-theme .patch-change-text{color:#314954!important}
body.light-theme .rule-body strong,body.light-theme .rich-content strong,body.light-theme .rule-body .sanction,body.light-theme .sanction-lines p,body.light-theme .inline-sanction,body.light-theme .template-block h3,body.light-theme .icon-picker-preview strong,body.light-theme .diff-head h2{color:#08161e!important}
body.light-theme .rule-body mark,body.light-theme .rich-content mark{background:#ffe68c!important;color:#2c2400!important}
body.light-theme .template-warning{background:linear-gradient(90deg,#fff2cf,#edf5f8)!important}
body.light-theme .template-sanction,body.light-theme .template-forbidden{background:linear-gradient(90deg,#fde5ea,#edf5f8)!important}
body.light-theme .template-allowed{background:linear-gradient(90deg,#e2f6ec,#edf5f8)!important}
body.light-theme .template-discord{background:linear-gradient(90deg,#eceefe,#edf5f8)!important}
body.light-theme #mainContent:has(.home-page-background) .gb-tabs[data-tabs-ready],body.light-theme #mainContent:has(.home-page-background) .gb-tabs details,body.light-theme #mainContent:has(.home-page-background) .rule-body details,body.light-theme #mainContent:has(.home-page-background) .rich-content details,body.light-theme #mainContent:has(.home-page-background) .rule-body table,body.light-theme #mainContent:has(.home-page-background) .rich-content table,body.light-theme #mainContent:has(.home-page-background) .template-block,body.light-theme #mainContent:has(.home-page-background) .template-penalty-table{background:rgba(255,255,255,.94)!important;border-color:#a9c3ce!important}
body.light-theme #mainContent:has(.home-page-background) .gb-tabs-nav{background:#e6f0f5!important}
body.light-theme #mainContent:has(.home-page-background) .gb-tabs-panels{background:rgba(250,253,254,.92)!important}
body.light-theme .image-lightbox{background:rgba(206,222,232,.92)!important}
body.light-theme .image-lightbox img{background:#edf5f8!important;border:1px solid #adc5d1}
body.light-theme .danger,body.light-theme button.danger,body.light-theme .block-overlay-btn.danger{color:#9b2237!important}
body.light-theme button.danger:hover,body.light-theme .block-overlay-btn.danger:hover{background:#fdebed!important;border-color:#c9475d!important;color:#7d1629!important}
/* Darker accent for readable links on light surfaces. */
body.light-theme{--cyan:#005f7d;--cyan-2:#004b63}
body.light-theme h1 em,body.light-theme .label,body.light-theme .section-kicker,body.light-theme .toc a:hover,body.light-theme .copy-link:hover,body.light-theme .diff-eyebrow,body.light-theme .profile-dropdown p,body.light-theme .gb-tabs-editor-controls span,body.light-theme .gb-tab-edit-toolbar:before{color:#005f7d!important}
body.light-theme .label:before{background:#005f7d!important}
body.light-theme .rule-body a:not(.content-button),body.light-theme .rich-content a:not(.content-button),body.light-theme .rule-body .hover-gif-link,body.light-theme .rich-content .hover-gif-link{color:#006684!important;border-bottom-color:rgba(0,102,132,.45)!important;font-weight:800;text-decoration:none;text-shadow:none}
body.light-theme .rule-body a:not(.content-button):hover,body.light-theme .rich-content a:not(.content-button):hover,body.light-theme .rule-body .hover-gif-link:hover,body.light-theme .rich-content .hover-gif-link:hover{color:#003f55!important;border-bottom-color:rgba(0,63,85,.65)!important}
body.light-theme .btn.primary,body.light-theme .version,body.light-theme .new-pill{background:#006b8f!important;border-color:#006b8f!important;color:#fff!important;box-shadow:0 10px 24px rgba(0,95,125,.16)!important}
/* Idem theme clair : les boutons aux couleurs choisies gardent leur style inline. */
body.light-theme .rule-body .content-button:not(.button-custom),body.light-theme .rich-content .content-button:not(.button-custom){background:#006b8f!important;border-color:#006b8f!important;color:#fff!important;box-shadow:0 10px 24px rgba(0,95,125,.16)!important}
body.light-theme .rule-body .content-button.button-custom,body.light-theme .rich-content .content-button.button-custom{box-shadow:0 10px 24px rgba(0,95,125,.16)}
body.light-theme .card-icon,body.light-theme .cover-placeholder,body.light-theme .callout,body.light-theme .rich-content blockquote,body.light-theme .team-empty,body.light-theme .modal-tag-preview{color:#005f7d!important}
body.light-theme .side-nav a.active{box-shadow:inset 0 0 0 1.5px rgba(0,95,125,.6),0 0 14px rgba(0,95,125,.12)!important}
/* Persistent sidebar active state for the current page/category : CADRE BLEU complet
   (page active + bouton de categorie deroulante active ou ouverte). */
.side-nav>a.active,
.nav-group.open>.group-label,
.nav-group.has-active>.group-label,
.nav-group:has(.group-items a.active)>.group-label,
.nav-group:has(.group-items a.active)>.nav-group-head>.group-label{background:rgba(88,216,255,.08)!important;color:#eafaff!important;box-shadow:inset 0 0 0 1.5px rgba(88,216,255,.75),0 0 16px rgba(88,216,255,.14)!important}
.nav-group:has(.group-items a.active)>.group-label:before,
.nav-group:has(.group-items a.active)>.nav-group-head>.group-label:before{width:0!important}
.nav-group.open>.group-label .nav-icon,
.nav-group.has-active>.group-label .nav-icon,
.nav-group.open>.group-label .chevron,
.nav-group.has-active>.group-label .chevron,
.nav-group:has(.group-items a.active)>.group-label .nav-icon,
.nav-group:has(.group-items a.active)>.nav-group-head>.group-label .nav-icon,
.nav-group:has(.group-items a.active)>.group-label .chevron,
.nav-group:has(.group-items a.active)>.nav-group-head>.group-label .chevron{color:var(--cyan)!important}
.nav-group .group-items a.active{background:linear-gradient(90deg,rgba(88,216,255,.2),rgba(88,216,255,.055))!important;color:#eafaff!important;box-shadow:inset 2px 0 var(--cyan)!important}
.nav-group .group-items a.active .sidebar-item-title,
.nav-group .group-items a.active .sub-icon{color:#eafaff!important}
body.light-theme .side-nav>a.active,
body.light-theme .nav-group.open>.group-label,
body.light-theme .nav-group.has-active>.group-label,
body.light-theme .nav-group:has(.group-items a.active)>.group-label,
body.light-theme .nav-group:has(.group-items a.active)>.nav-group-head>.group-label{background:#dcebf2!important;color:#0c2733!important;box-shadow:inset 0 0 0 1.5px rgba(0,95,125,.6),0 0 14px rgba(0,95,125,.12)!important}
body.light-theme .nav-group.open>.group-label .nav-icon,
body.light-theme .nav-group.has-active>.group-label .nav-icon,
body.light-theme .nav-group.open>.group-label .chevron,
body.light-theme .nav-group.has-active>.group-label .chevron,
body.light-theme .nav-group:has(.group-items a.active)>.group-label .nav-icon,
body.light-theme .nav-group:has(.group-items a.active)>.nav-group-head>.group-label .nav-icon,
body.light-theme .nav-group:has(.group-items a.active)>.group-label .chevron,
body.light-theme .nav-group:has(.group-items a.active)>.nav-group-head>.group-label .chevron{color:#005f7d!important}
body.light-theme .nav-group .group-items a.active{background:linear-gradient(90deg,#cfe4ee,#e3f0f5)!important;color:#0f2732!important;box-shadow:inset 2px 0 #005f7d!important}
body.light-theme .nav-group .group-items a.active .sidebar-item-title,
body.light-theme .nav-group .group-items a.active .sub-icon{color:#0f2732!important}
/* Page avec sous-pages active : le cadre bleu englobe TOUTE la ligne,
   y compris le bouton chevron (la "pastille") a droite. */
.side-nav .sidebar-item-row.has-subpages:has(> a.active){border-radius:8px;background:rgba(88,216,255,.08)!important;box-shadow:inset 0 0 0 1.5px rgba(88,216,255,.75),0 0 16px rgba(88,216,255,.14)!important}
.side-nav .sidebar-item-row.has-subpages:has(> a.active) > a.active{background:transparent!important;box-shadow:none!important;animation:none!important}
.side-nav .sidebar-item-row.has-subpages:has(> a.active) > .subpage-toggle{color:var(--cyan)!important}
body.light-theme .side-nav .sidebar-item-row.has-subpages:has(> a.active){background:#dcebf2!important;box-shadow:inset 0 0 0 1.5px rgba(0,95,125,.6),0 0 14px rgba(0,95,125,.12)!important}
body.light-theme .side-nav .sidebar-item-row.has-subpages:has(> a.active) > a.active{background:transparent!important;box-shadow:none!important}
body.light-theme .side-nav .sidebar-item-row.has-subpages:has(> a.active) > .subpage-toggle{color:#005f7d!important}
/* Survol d'une page a sous-pages (non active) : le highlight englobe TOUTE la ligne,
   chevron (pastille) inclus - meme logique que l'etat actif, en plus leger. */
.side-nav .sidebar-item-row.has-subpages:hover:not(:has(> a.active)){border-radius:8px;background:rgba(88,216,255,.075)!important;box-shadow:inset 0 0 0 1px rgba(88,216,255,.3)!important}
.side-nav .sidebar-item-row.has-subpages:hover:not(:has(> a.active)) > a{background:transparent!important;transform:none!important;box-shadow:none!important;color:#fff!important}
.side-nav .sidebar-item-row.has-subpages:hover:not(:has(> a.active)) > .subpage-toggle{color:var(--cyan)!important}
body.light-theme .side-nav .sidebar-item-row.has-subpages:hover:not(:has(> a.active)){background:#e4f1f6!important;box-shadow:inset 0 0 0 1px rgba(0,95,125,.25)!important}
body.light-theme .side-nav .sidebar-item-row.has-subpages:hover:not(:has(> a.active)) > a{background:transparent!important;transform:none!important;color:#0c2733!important}
body.light-theme .side-nav .sidebar-item-row.has-subpages:hover:not(:has(> a.active)) > .subpage-toggle{color:#005f7d!important}
/* Keep wheel/touch scrolling contained inside the sidebar. */
.sidebar,
.sidebar-scroll{overscroll-behavior:contain;overscroll-behavior-y:contain}

/* Editeur moderne contextuel - thème clair */
body.light-theme .editor-toolbar{background:rgba(255,255,255,.94)!important;border-color:#b9ccd6!important;color:#12222c!important;box-shadow:0 18px 48px rgba(38,65,78,.16)!important}
body.light-theme .editor-toolbar .rbn-quickbar{border-color:#d5e1e7!important}
body.light-theme .editor-toolbar .rbn-menu{background:rgba(255,255,255,.45)!important;border-color:#d5e1e7!important}
body.light-theme .editor-toolbar .rbn-menu summary{background:rgba(232,242,247,.9)!important;border-color:#c5d8e0!important;color:#243a45!important}
body.light-theme .editor-toolbar .rbn-menu summary:hover,body.light-theme .editor-toolbar .rbn-menu[open] summary{background:#dceef5!important;border-color:#7ebdd2!important;color:#005f81!important}
body.light-theme .editor-toolbar .rbn-menu summary i{color:#007ca6!important}
body.light-theme.editor-toolbar-horizontal .editor-toolbar .rbn-menu-panel{background:rgba(255,255,255,.98)!important;border-color:#b9ccd6!important;box-shadow:0 22px 56px rgba(38,65,78,.2)!important}
body.light-theme .editor-toolbar .rbn-group{background:rgba(244,248,250,.92)!important;border-color:#d5e1e7!important}
body.light-theme .editor-toolbar .rbn-group-name{color:#607783!important}
body.light-theme .editor-toolbar .rbn-btn,body.light-theme .editor-toolbar .rbn-btn.rbn-wide,body.light-theme .editor-toolbar .rbn-size,body.light-theme .editor-toolbar .rbn-color{background:#f7fbfc!important;border-color:#c9d8df!important;color:#263c47!important}
body.light-theme .editor-toolbar .rbn-btn:hover,body.light-theme .editor-toolbar .rbn-size:hover,body.light-theme .editor-toolbar .rbn-color:hover{background:#e2f1f6!important;border-color:#007ca6!important;color:#004f6a!important}
body.light-theme .editor-toolbar .rbn-btn.is-active{background:#d6ecf5!important;border-color:#007ca6!important;color:#00405a!important;box-shadow:0 0 0 1px rgba(0,124,166,.25)}
body.light-theme .editor-toolbar .rbn-size select{background:transparent!important;color:inherit!important;border:0!important}

/* === Menu d'actions de la barre laterale (engrenage) — theme clair ==============
   Place en fin de fichier pour l'emporter, par ordre de cascade, sur la regle
   generique plus haut qui remplissait chaque bouton d'un fond gris. Memes lignes
   fantomes qu'en theme sombre : transparent au repos, teinte au survol. */
body.light-theme .sidebar-edit-actions.menu-open .sidebar-gear-button{background:#e2f1f6!important;border-color:#007ca6!important;color:#005f81!important}
body.light-theme .sidebar-action-menu{background:linear-gradient(180deg,#ffffff,#f3f8fb)!important;border-color:#c7d7e0!important;box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 24px 48px -16px rgba(38,65,78,.24),0 8px 18px -10px rgba(38,65,78,.16)!important}
body.light-theme .sidebar-action-menu button{background:transparent!important;border-color:transparent!important;color:#3a5260!important}
body.light-theme .sidebar-action-menu button i{color:#6f8794!important}
body.light-theme .sidebar-action-menu button:hover:not(:disabled),body.light-theme .sidebar-action-menu button:focus-visible:not(:disabled){background:rgba(0,124,166,.1)!important;border-color:rgba(0,124,166,.24)!important;color:#005f81!important}
body.light-theme .sidebar-action-menu button:hover:not(:disabled) i,body.light-theme .sidebar-action-menu button:focus-visible:not(:disabled) i{color:#007ca6!important}
body.light-theme .sidebar-action-menu button[data-delete-page],body.light-theme .sidebar-action-menu button[data-delete-category],body.light-theme .sidebar-action-menu button[data-delete-category-group]{color:#b3344a!important}
body.light-theme .sidebar-action-menu button[data-delete-page] i,body.light-theme .sidebar-action-menu button[data-delete-category] i,body.light-theme .sidebar-action-menu button[data-delete-category-group] i{color:#c9475d!important}
body.light-theme .sidebar-action-menu button[data-delete-page]::before,body.light-theme .sidebar-action-menu button[data-delete-category]::before,body.light-theme .sidebar-action-menu button[data-delete-category-group]::before{background:linear-gradient(90deg,transparent,rgba(38,65,78,.16),transparent)!important}
body.light-theme .sidebar-action-menu button[data-delete-page]:hover,body.light-theme .sidebar-action-menu button[data-delete-category]:hover,body.light-theme .sidebar-action-menu button[data-delete-category-group]:hover,body.light-theme .sidebar-action-menu button[data-delete-page]:focus-visible,body.light-theme .sidebar-action-menu button[data-delete-category]:focus-visible,body.light-theme .sidebar-action-menu button[data-delete-category-group]:focus-visible{background:rgba(201,71,93,.12)!important;border-color:rgba(201,71,93,.3)!important;color:#9b2237!important}
body.light-theme .sidebar-action-menu button[data-delete-page]:hover i,body.light-theme .sidebar-action-menu button[data-delete-category]:hover i,body.light-theme .sidebar-action-menu button[data-delete-category-group]:hover i{color:#c9475d!important}

/* Poignee de bloc (↕) et son menu Monter/Descendre — theme clair */
body.light-theme .detail-edit-handle{background:#eef7fb!important;border-color:#b9d9e4!important;color:#007ca6!important}
body.light-theme .detail-edit-handle:hover,body.light-theme .detail-edit-handle.active{background:#58d8ff!important;border-color:#58d8ff!important;color:#06202b!important}
body.light-theme .detail-edit-menu{background:linear-gradient(180deg,#ffffff,#f3f8fb)!important;border-color:#c7d7e0!important;box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 18px 38px -14px rgba(38,65,78,.2)!important}
body.light-theme .detail-edit-menu button{background:transparent!important;border-color:transparent!important;color:#3a5260!important}
body.light-theme .detail-edit-menu button:hover{background:rgba(0,124,166,.1)!important;border-color:rgba(0,124,166,.24)!important;color:#005f81!important}

/* Modal "Etablir la reference" (baseline) — theme clair */
body.light-theme .baseline-toolbar{background:#eef7fb!important;border-color:#c7d7e0!important}
body.light-theme .baseline-select-all{color:#204050!important}
body.light-theme .baseline-count{color:#5f7682!important}
body.light-theme .baseline-group-title{color:#607783!important}
body.light-theme .baseline-row{background:#f4f8fb!important;border-color:#c7d7e0!important}
body.light-theme .baseline-row:hover{background:#e6f1f6!important;border-color:#7ebdd2!important}
body.light-theme .baseline-row-title{color:#1f3a47!important}
body.light-theme .baseline-row-status.has{color:#1c7a4f!important;background:rgba(28,122,79,.1)!important;border-color:rgba(28,122,79,.28)!important}
body.light-theme .baseline-row-status.none{color:#9a6a12!important;background:rgba(201,138,20,.12)!important;border-color:rgba(201,138,20,.3)!important}

/* Effets de texte — theme clair : les variantes sombres (texte clair, degrades pales)
   seraient illisibles sur fond blanc. On assombrit couleurs et degrades. */
body.light-theme .fx-grad-gold{background-image:linear-gradient(100deg,#e0952a,#c9731b 48%,#b85a12)}
body.light-theme .fx-grad-fire{background-image:linear-gradient(100deg,#e8992b,#e0431f 52%,#c81049)}
body.light-theme .fx-grad-cyan{background-image:linear-gradient(100deg,#1f9fd6,#1569c9 50%,#3b49d0)}
body.light-theme .fx-grad-violet{background-image:linear-gradient(100deg,#9a5de0,#7b3ff0 50%,#d64aa6)}
body.light-theme .fx-grad-rainbow{background-image:linear-gradient(100deg,#e04b5d,#e09422,#2faa6a,#1f9fd6,#9a5de0)}
body.light-theme .fx-glow-cyan{color:#0b7fa8;text-shadow:0 0 5px rgba(88,216,255,.5)}
body.light-theme .fx-glow-pink{color:#c13c86;text-shadow:0 0 5px rgba(255,105,180,.4)}
body.light-theme .fx-glow-green{color:#1b8f5e;text-shadow:0 0 5px rgba(83,223,161,.4)}
body.light-theme .fx-glow-gold{color:#b57912;text-shadow:0 0 5px rgba(255,185,83,.42)}
body.light-theme .fx-glow-red{color:#cf3b4c;text-shadow:0 0 5px rgba(255,107,125,.42)}
body.light-theme .fx-shimmer{background-image:linear-gradient(100deg,#5a7180 18%,#0e1f28 38%,#1f9fd6 52%,#5a7180 72%)}
body.light-theme .fx-pulse{color:#0b7fa8;text-shadow:0 0 5px rgba(31,159,214,.4)}
body.light-theme .fx-mark-soft{background:rgba(31,105,201,.16)}
body.light-theme .fx-boxed{border-color:rgba(70,100,115,.55)}
/* La regle generique "body.light-theme .editor-toolbar button/label{background:#f4f8fa}"
   ecrasait la couleur des pastilles : on la restaure a specificite superieure. */
body.light-theme .editor-toolbar .rbn-swatch{background:var(--sw,#888)!important;border-color:rgba(0,0,0,.16)!important}
body.light-theme .editor-toolbar .rbn-swatch-custom{background:conic-gradient(from 0deg,#ff6b7d,#ffb953,#53dfa1,#58d8ff,#c792ea,#ff6b7d)!important}
body.light-theme .editor-toolbar .rbn-swatch:hover{box-shadow:0 0 0 2px rgba(0,124,166,.35)!important}
body.light-theme .editor-toolbar .rbn-palette.ready{border-color:rgba(0,124,166,.2)!important}

/* Trait d'insertion du glisser-deposer — theme clair */
body.light-theme .sidebar-drop-line{border-top-color:#007ca6;box-shadow:0 0 8px rgba(0,124,166,.4)}
body.light-theme .sidebar-drop-line::before{background:#007ca6;box-shadow:0 0 8px rgba(0,124,166,.5)}
body.light-theme .sidebar-drop-line.is-nested{border-top-color:#1b8f5e;box-shadow:0 0 8px rgba(27,143,94,.4)}
body.light-theme .sidebar-drop-line.is-nested::before{background:#1b8f5e;box-shadow:0 0 8px rgba(27,143,94,.5)}
body.light-theme .sidebar-drag-ghost{background:#ffffff;box-shadow:0 16px 44px rgba(38,65,78,.26),0 0 0 1px rgba(0,124,166,.45)}

/* Refonte barre d'edition — theme clair */
body.light-theme .editor-toolbar .rbn-qsep{background:linear-gradient(180deg,transparent,rgba(0,124,166,.32),transparent)}
body.light-theme .editor-toolbar .rbn-group-name{color:#5f7682!important;border-bottom-color:rgba(0,124,166,.18)}
body.light-theme .editor-toolbar .rbn-fx-family-name{color:#6a7f8a}
body.light-theme.editor-toolbar-side .editor-toolbar .rbn-menu summary{background:linear-gradient(90deg,rgba(0,124,166,.1),rgba(0,124,166,.02))}
