/* TGSD Clair — palette claire uniforme, aucun panneau sombre */
:root{--bg:#f7f5f0;--panel:#fffefa;--panel2:#f0ede6;--text:#262a30;--muted:#555e68;--orange:#e66e1d;--line:#ded8cd;--pink:#c92e62;color-scheme:light}
html,body{background:#f7f5f0!important;color:#262a30!important}
body{background:linear-gradient(180deg,#fffefa 0,#f7f5f0 55%,#f2eee6 100%)!important}
.topbar{background:#fffefa!important;border-bottom:1px solid #ded8cd!important;box-shadow:0 4px 18px #3027190c}
.site-banner-shell{background:#f7f5f0!important;border-color:#ded8cd!important}
.site-banner-image{border-color:#ded8cd!important;box-shadow:0 6px 20px #30271912}
.brand,.topbar nav a,.theme-picker-button{color:#262a30}
.brand b,.eyebrow,.backlink{color:#c85b13!important}
.brand-mark{color:#fff!important}
.container,.section-head,.section-head h1,.section-head h2{color:#262a30}
.hero{background:linear-gradient(125deg,#fff4e8,#fffefa 58%,#f1f3f4)!important;border-color:#ead7c5!important;color:#262a30!important;box-shadow:0 8px 28px #3b2c1b0a}
.hero h1,.hero h2,.hero p,.hero strong{color:#262a30!important}
.hero p,.muted,.meta,.small{color:#555e68!important}
.panel,.form-card,.empty,.admin-links,.movie-card,.table-wrap{background:#fffefa!important;color:#262a30!important;border-color:#ded8cd!important}
.poster-wrap{background:#eee9df!important;border-color:#ded8cd!important}
.heart{background:#fffefaed!important;border-color:#ded8cd!important;color:#c92e62!important}
.tag{color:#93410e!important;background:#fff0e2!important;border-color:#f1c8a7!important}
label{color:#414852!important}
input,textarea,select{background:#fff!important;color:#262a30!important;border-color:#c9c4ba!important}
input::placeholder,textarea::placeholder{color:#777e87!important}
.button{background:#fffefa!important;color:#262a30!important;border-color:#d7d1c6!important}
.button:hover{background:#f5eee4!important}
.button.primary,

.nav-cta{
background: linear-gradient(135deg, #283c43, #d3ad94) !important;


color:#fff!important;border-color:#c95b12!important}
.nav-cta:hover,.button.primary:hover{filter:brightness(1.04)}
.synopsis{color:#3c424a!important}
table,thead,tbody,tr,td{background:transparent;color:#262a30}
th{color:#a94b0c!important}
th,td{border-bottom-color:#ded8cd!important}
.footer{background:#f7f5f0!important;color:#555e68!important;border-top-color:#ded8cd!important}
.notice{background:#eaf8ee!important;border-color:#9ed5ad!important;color:#175c2b!important}
.error{background:#fff0f0!important;border-color:#e7aaaa!important;color:#922b2b!important}
.registration-closed{background:#fff4e8!important;border-color:#e8bd9b!important;color:#713a18!important}
.registration-closed p{color:#684b38!important}
.theme-picker-button{background:#fffefa!important;border-color:#ded8cd!important;color:#262a30!important}
.theme-picker-menu{background:#fffefa!important;border-color:#ded8cd!important;box-shadow:0 14px 36px #30271924}
.theme-picker-menu button{background:#fffefa!important;color:#262a30!important}
.theme-picker-menu button:hover,.theme-picker-menu button.is-selected{background:#f5eee4!important;color:#bd5511!important}
a:hover{color:#bd5511}


/* Pages torrents : palette claire activée UNIQUEMENT avec le thème TGSD Clair.
   Les thèmes Orange et Cinéma conservent intégralement leurs couleurs. */
body.theme-tgsd-clair .ks-torrent-hero {
  background: radial-gradient(circle at 77% 15%,rgba(230,110,29,.09),transparent 33%),linear-gradient(115deg,#fffefa 0%,#f7f5f0 57%,#f0ede6 100%) !important;
  border-color:#ded8cd !important; box-shadow:0 12px 28px rgba(48,39,25,.08) !important;
}
body.theme-tgsd-clair .ks-torrent-hero h1,
body.theme-tgsd-clair .ks-upload-heading h1,
body.theme-tgsd-clair .ks-torrent-card h2,
body.theme-tgsd-clair .ks-torrent-card h2 a,
body.theme-tgsd-clair .ks-detail-main h1,
body.theme-tgsd-clair .ks-detail-panel h2,
body.theme-tgsd-clair .ks-detail-panel h3 { color:#262a30 !important; }
body.theme-tgsd-clair .ks-torrent-hero p,
body.theme-tgsd-clair .ks-upload-heading p,
body.theme-tgsd-clair .ks-torrent-safe-note,
body.theme-tgsd-clair .ks-torrent-results-line,
body.theme-tgsd-clair .ks-torrent-card-desc,
body.theme-tgsd-clair .ks-torrent-card-meta,
body.theme-tgsd-clair .ks-torrent-card-bottom,
body.theme-tgsd-clair .ks-detail-subtitle,
body.theme-tgsd-clair .ks-torrent-description,
body.theme-tgsd-clair .ks-field-help { color:#555e68 !important; }
body.theme-tgsd-clair .ks-torrent-eyebrow,
body.theme-tgsd-clair .ks-back-link { color:#c85b13 !important; }
body.theme-tgsd-clair .ks-torrent-toolbar,
body.theme-tgsd-clair .ks-torrent-card,
body.theme-tgsd-clair .ks-torrent-table-wrap,
body.theme-tgsd-clair .ks-torrent-empty,
body.theme-tgsd-clair .ks-detail-panel,
body.theme-tgsd-clair .ks-upload-aside-card,
body.theme-tgsd-clair .ks-upload-warning {
  background:#fffefa !important; color:#262a30 !important; border-color:#ded8cd !important;
  box-shadow:0 5px 16px rgba(48,39,25,.05) !important;
}
body.theme-tgsd-clair .ks-search-field,
body.theme-tgsd-clair .ks-torrent-filters select,
body.theme-tgsd-clair .ks-torrent-toolbar input,
body.theme-tgsd-clair .ks-upload-main input:not([type=checkbox]):not([type=radio]):not([type=file]),
body.theme-tgsd-clair .ks-upload-main select,
body.theme-tgsd-clair .ks-upload-main textarea {
  background:#fff !important; color:#262a30 !important; border-color:#c9c4ba !important;
}
body.theme-tgsd-clair .ks-search-field input::placeholder,
body.theme-tgsd-clair .ks-upload-main input::placeholder,
body.theme-tgsd-clair .ks-upload-main textarea::placeholder { color:#777e87 !important; }
body.theme-tgsd-clair .ks-torrent-cover,
body.theme-tgsd-clair .ks-list-torrent img,
body.theme-tgsd-clair .ks-list-no-cover { background:#eee9df !important; border-color:#ded8cd !important; }
body.theme-tgsd-clair .ks-cover-open { background:#fffefaed !important; color:#262a30 !important; border-color:#ded8cd !important; }
body.theme-tgsd-clair .ks-no-cover { background:linear-gradient(135deg,#fffefa,#f0ede6) !important; color:#c85b13 !important; }
body.theme-tgsd-clair .ks-torrent-category,
body.theme-tgsd-clair .ks-torrent-genre {
  color:#93410e !important; background:#fff0e2 !important; border-color:#f1c8a7 !important;
}
body.theme-tgsd-clair .ks-torrent-genre-text { color:#93410e !important; }
body.theme-tgsd-clair .ks-torrent-card h2 a { color:#245985 !important; }
body.theme-tgsd-clair .ks-torrent-card h2 a:hover { color:#bd5511 !important; }
body.theme-tgsd-clair .ks-torrent-card-meta,
body.theme-tgsd-clair .ks-torrent-card-bottom,
body.theme-tgsd-clair .ks-torrent-table td,
body.theme-tgsd-clair .ks-list-title,
body.theme-tgsd-clair .ks-list-torrent small { color:#334254 !important; }
body.theme-tgsd-clair .ks-torrent-card-meta,
body.theme-tgsd-clair .ks-torrent-card-bottom,
body.theme-tgsd-clair .ks-torrent-table td,
body.theme-tgsd-clair .ks-hash-line { border-color:#ded8cd !important; }
body.theme-tgsd-clair .ks-torrent-table th,
body.theme-tgsd-clair .ks-torrent-table thead th { background:#e9eef3 !important; color:#394b5e !important; }
body.theme-tgsd-clair .ks-torrent-table tbody tr td { background:#fffefa !important; color:#334254 !important; border-color:#ded8cd !important; }
body.theme-tgsd-clair .ks-torrent-table tbody tr:hover td { background:#f5f1e9 !important; }
body.theme-tgsd-clair .ks-torrent-pagination a,
body.theme-tgsd-clair .ks-torrent-pagination span { background:#fffefa !important; color:#334254 !important; border-color:#ded8cd !important; }
body.theme-tgsd-clair .ks-torrent-pagination [aria-current=page] { background:#e66e1d !important; color:#fff !important; border-color:#e66e1d !important; }
body.theme-tgsd-clair .ks-detail-stats div { background:#fffefa !important; border-color:#ded8cd !important; }
body.theme-tgsd-clair .ks-detail-stats strong { color:#c85b13 !important; }
body.theme-tgsd-clair .ks-detail-stats span { color:#555e68 !important; }
body.theme-tgsd-clair .ks-upload-section-head>span,
body.theme-tgsd-clair .ks-file-drop-icon { background:#fff0e2 !important; border-color:#f1c8a7 !important; color:#93410e !important; }
body.theme-tgsd-clair .ks-file-drop { background:#fffefa !important; border-color:#e1b58f !important; }
body.theme-tgsd-clair .ks-file-drop label,
body.theme-tgsd-clair .ks-upload-section-head h2,
body.theme-tgsd-clair .ks-upload-aside-card h2 { color:#262a30 !important; }
body.theme-tgsd-clair .ks-upload-aside-card ul { color:#555e68 !important; }
body.theme-tgsd-clair .ks-upload-warning { background:#fff4e8 !important; border-color:#e8bd9b !important; }
body.theme-tgsd-clair .ks-upload-warning strong { color:#713a18 !important; }
body.theme-tgsd-clair .ks-upload-warning p { color:#684b38 !important; }
body.theme-tgsd-clair .ks-torrent-card 

.ks-seeder-count { 
color: #08712e;
    background: 173324;
    border: 0px solid #24583b;
!important; 
}
body.theme-tgsd-clair .ks-torrent-card 

.ks-leecher-count { 
color: #eb2917;
    background: f1efef;
    border: px solid #6a3337; }
body.theme-tgsd-clair .ks-torrent-card .ks-tracker-status { color:#526071 !important; background:#f0f3f6 !important; border-color:#d8dfe7 !important; }


/* Correctifs ciblés du thème clair : donation, shoutbox, portail et en-tête du forum.
   Limité à body.theme-tgsd-clair pour ne pas toucher aux thèmes Orange/Cinéma. */
body.theme-tgsd-clair .donate-hero{
  background:radial-gradient(circle at 85% 15%,rgba(230,110,29,.13),transparent 32%),linear-gradient(135deg,#fff4e8,#fffefa 58%,#f3eee7)!important;
  border-color:#ead7c5!important;color:#262a30!important;box-shadow:0 8px 26px rgba(48,39,25,.07)!important
}
body.theme-tgsd-clair .donate-hero h1,
body.theme-tgsd-clair .donate-hero strong,
body.theme-tgsd-clair .donate-hero .muted{color:#262a30!important}
body.theme-tgsd-clair .donate-hero p{color:#454b53!important}
body.theme-tgsd-clair .donate-progress{background:#e8e1d7!important}
body.theme-tgsd-clair .donate-plan{background:#fffefa!important;color:#262a30!important;border-color:#ead7c5!important}
body.theme-tgsd-clair .donate-plan h2,
body.theme-tgsd-clair .donate-plan strong{color:#262a30!important}
body.theme-tgsd-clair .donate-plan p,
body.theme-tgsd-clair .donate-note{color:#555e68!important}
body.theme-tgsd-clair .donate-error{background:#fff0f0!important;color:#922b2b!important}

/* Shoutbox : le CSS original contient des fonds sombres définis en ligne. */
body.theme-tgsd-clair .tgsd-shout-messages{
  background:#fffefa!important;border:1px solid #ded8cd!important;color:#262a30!important
}
body.theme-tgsd-clair .tgsd-shout-message{border-bottom-color:#e5ded3!important;color:#262a30!important}
body.theme-tgsd-clair .tgsd-shout-message strong,
body.theme-tgsd-clair .tgsd-shout-text{color:#30363e!important}
body.theme-tgsd-clair .tgsd-shout-message .muted{color:#68717b!important}
body.theme-tgsd-clair .tgsd-shout-icon{background:#fff!important;color:#262a30!important;border-color:#d4ccbf!important}
body.theme-tgsd-clair .tgsd-shout-icon:hover{background:#f5eee4!important}
body.theme-tgsd-clair .tgsd-shout-inline-edit textarea{background:#fff!important;color:#262a30!important;border-color:#c9c4ba!important}
body.theme-tgsd-clair .tgsd-shout-form textarea{background:#fff!important;color:#262a30!important;border-color:#c9c4ba!important}

/* Portail : blocs et liens rapides assortis au fond clair. */
body.theme-tgsd-clair .portal-block{
  background:#fffefa!important;color:#262a30!important;border-color:#ded8cd!important;
  box-shadow:0 5px 18px rgba(48,39,25,.05)!important
}
body.theme-tgsd-clair .portal-block-title{background:#e8eef1!important;color:#b65312!important;border-bottom-color:#d8e0e4!important}
body.theme-tgsd-clair .portal-block-content{color:#262a30!important}
body.theme-tgsd-clair .portal-welcome h1,
body.theme-tgsd-clair .portal-welcome h2,
body.theme-tgsd-clair .portal-welcome strong{color:#262a30!important}
body.theme-tgsd-clair .portal-welcome p{color:#555e68!important}
body.theme-tgsd-clair .portal-main .portal-block-welcome .portal-block-content{
  background:linear-gradient(125deg,#fff4e8,#fffefa 60%,#f0ede6)!important
}
body.theme-tgsd-clair .portal-featured{background:#eee9df!important}
body.theme-tgsd-clair .portal-featured img{opacity:.9}
body.theme-tgsd-clair .portal-featured span{background:linear-gradient(transparent,rgba(255,254,250,.97))!important;color:#262a30!important}
body.theme-tgsd-clair .portal-featured strong,
body.theme-tgsd-clair .portal-featured small{color:#262a30!important}
body.theme-tgsd-clair .portal-links a{background:#fffefa!important;color:#334254!important;border-color:#ded8cd!important}
body.theme-tgsd-clair .portal-links a:hover{background:#fff0e2!important;color:#bd5511!important}

/* En-tête du forum uniquement : le tableau et les autres pages restent inchangés. */
body.theme-tgsd-clair .forum-hero{
  background:linear-gradient(120deg,#fff4e8,#fffefa 58%,#f0ede6)!important;
  border-color:#ead7c5!important;box-shadow:0 8px 26px rgba(48,39,25,.06)!important
}
body.theme-tgsd-clair .forum-hero h1{color:#262a30!important}
body.theme-tgsd-clair .forum-hero p{color:#454b53!important}


/* Administration : harmonisation des panneaux sombres avec le thème clair.
   Tous les sélecteurs sont limités à TGSD Clair ; aucun PHP ni aucune fonction ne change. */
body.theme-tgsd-clair .admin-dashboard,
body.theme-tgsd-clair .admin-page,
body.theme-tgsd-clair .admin-grid,
body.theme-tgsd-clair .admin-category,
body.theme-tgsd-clair .admin-group,
body.theme-tgsd-clair .admin-card,
body.theme-tgsd-clair .admin-section,
body.theme-tgsd-clair .admin-panel,
body.theme-tgsd-clair .admin-links,
body.theme-tgsd-clair .admin-tile,
body.theme-tgsd-clair .admin-module {
  background:#fffefa !important;
  color:#262a30 !important;
  border-color:#ded8cd !important;
  box-shadow:0 5px 18px rgba(48,39,25,.06) !important;
}
body.theme-tgsd-clair .admin-dashboard h1,
body.theme-tgsd-clair .admin-page h1,
body.theme-tgsd-clair .admin-category h2,
body.theme-tgsd-clair .admin-group h2,
body.theme-tgsd-clair .admin-card h2,
body.theme-tgsd-clair .admin-section h2,
body.theme-tgsd-clair .admin-panel h2,
body.theme-tgsd-clair .admin-tile h2,
body.theme-tgsd-clair .admin-module h2 {
  color:#262a30 !important;
}
body.theme-tgsd-clair .admin-dashboard p,
body.theme-tgsd-clair .admin-page p,
body.theme-tgsd-clair .admin-category p,
body.theme-tgsd-clair .admin-group p,
body.theme-tgsd-clair .admin-card p,
body.theme-tgsd-clair .admin-section p,
body.theme-tgsd-clair .admin-panel p,
body.theme-tgsd-clair .admin-tile p,
body.theme-tgsd-clair .admin-module p {
  color:#555e68 !important;
}
body.theme-tgsd-clair .admin-category h2,
body.theme-tgsd-clair .admin-group h2,
body.theme-tgsd-clair .admin-card h2,
body.theme-tgsd-clair .admin-section h2,
body.theme-tgsd-clair .admin-panel h2,
body.theme-tgsd-clair .admin-tile h2,
body.theme-tgsd-clair .admin-module h2 {
  color:#c85b13 !important;
}
body.theme-tgsd-clair .admin-dashboard a:not(.button):not(.btn),
body.theme-tgsd-clair .admin-page a:not(.button):not(.btn),
body.theme-tgsd-clair .admin-category a:not(.button):not(.btn),
body.theme-tgsd-clair .admin-group a:not(.button):not(.btn),
body.theme-tgsd-clair .admin-card a:not(.button):not(.btn),
body.theme-tgsd-clair .admin-section a:not(.button):not(.btn),
body.theme-tgsd-clair .admin-panel a:not(.button):not(.btn),
body.theme-tgsd-clair .admin-tile a:not(.button):not(.btn),
body.theme-tgsd-clair .admin-module a:not(.button):not(.btn) {
  color:#245985 !important;
}
body.theme-tgsd-clair .admin-dashboard .button,
body.theme-tgsd-clair .admin-page .button,
body.theme-tgsd-clair .admin-category .button,
body.theme-tgsd-clair .admin-group .button,
body.theme-tgsd-clair .admin-card .button,
body.theme-tgsd-clair .admin-section .button,
body.theme-tgsd-clair .admin-panel .button,
body.theme-tgsd-clair .admin-tile .button,
body.theme-tgsd-clair .admin-module .button,
body.theme-tgsd-clair .admin-dashboard .btn,
body.theme-tgsd-clair .admin-page .btn,
body.theme-tgsd-clair .admin-category .btn,
body.theme-tgsd-clair .admin-group .btn,
body.theme-tgsd-clair .admin-card .btn,
body.theme-tgsd-clair .admin-section .btn,
body.theme-tgsd-clair .admin-panel .btn,
body.theme-tgsd-clair .admin-tile .btn,
body.theme-tgsd-clair .admin-module .btn {
  background:#fffefa !important;
  color:#262a30 !important;
  border-color:#d7d1c6 !important;
}
body.theme-tgsd-clair .admin-dashboard .button.primary,
body.theme-tgsd-clair .admin-page .button.primary,
body.theme-tgsd-clair .admin-category .button.primary,
body.theme-tgsd-clair .admin-group .button.primary,
body.theme-tgsd-clair .admin-card .button.primary,
body.theme-tgsd-clair .admin-section .button.primary,
body.theme-tgsd-clair .admin-panel .button.primary,
body.theme-tgsd-clair .admin-tile .button.primary,
body.theme-tgsd-clair .admin-module .button.primary,
body.theme-tgsd-clair .admin-dashboard .btn-primary,
body.theme-tgsd-clair .admin-page .btn-primary,
body.theme-tgsd-clair .admin-category .btn-primary,
body.theme-tgsd-clair .admin-group .btn-primary,
body.theme-tgsd-clair .admin-card .btn-primary,
body.theme-tgsd-clair .admin-section .btn-primary,
body.theme-tgsd-clair .admin-panel .btn-primary,
body.theme-tgsd-clair .admin-tile .btn-primary,
body.theme-tgsd-clair .admin-module .btn-primary {
  background:linear-gradient(135deg,#ed873b,#c95b12) !important;
  color:#fff !important;
  border-color:#c95b12 !important;
}


/* Page détail torrent — thème TGSD Clair uniquement.
   Neutralise le fond cinématique sombre sans modifier les autres thèmes. */
body.theme-tgsd-clair .ks-detail-hero,
body.theme-tgsd-clair .ks-detail-hero.ks-tmdb-cinematic {
  background-color:#fffefa !important;
  background-image:linear-gradient(125deg,#fffefa 0%,#f7f5f0 62%,#f0ede6 100%) !important;
  color:#262a30 !important;
  border:1px solid #ded8cd !important;
  box-shadow:0 10px 28px rgba(48,39,25,.08) !important;
}
body.theme-tgsd-clair .ks-detail-hero.ks-tmdb-cinematic::before,
body.theme-tgsd-clair .ks-detail-hero.ks-tmdb-cinematic::after {
  background-image:none !important;
  background-color:transparent !important;
  opacity:0 !important;
}
body.theme-tgsd-clair .ks-detail-hero .ks-detail-main,
body.theme-tgsd-clair .ks-detail-hero .ks-detail-main h1,
body.theme-tgsd-clair .ks-detail-hero .ks-detail-main h2,
body.theme-tgsd-clair .ks-detail-hero .ks-detail-main strong,
body.theme-tgsd-clair .ks-detail-hero .ks-detail-main p {
  color:#262a30 !important;
  text-shadow:none !important;
}
body.theme-tgsd-clair .ks-detail-hero .ks-detail-subtitle,
body.theme-tgsd-clair .ks-detail-hero .ks-detail-subtitle strong,
body.theme-tgsd-clair .ks-detail-hero .ks-tmdb-tagline,
body.theme-tgsd-clair .ks-detail-hero .ks-tmdb-year {
  color:#555e68 !important;
}
body.theme-tgsd-clair .ks-detail-hero .ks-tmdb-rating {
  color:#262a30 !important;
}
body.theme-tgsd-clair .ks-detail-hero .ks-detail-stats > div {
  background:#fffefa !important;
  color:#262a30 !important;
  border:1px solid #ded8cd !important;
  box-shadow:0 3px 10px rgba(48,39,25,.04) !important;
}
body.theme-tgsd-clair .ks-detail-hero .ks-detail-stats strong {
  color:#c85b13 !important;
}
body.theme-tgsd-clair .ks-detail-hero .ks-detail-stats span {
  color:#555e68 !important;
}
body.theme-tgsd-clair .ks-detail-panel,
body.theme-tgsd-clair .ks-detail-panel.ks-tmdb-detail,
body.theme-tgsd-clair .ks-detail-panel.ks-torrent-technical {
  background:#fffefa !important;
  color:#262a30 !important;
  border-color:#ded8cd !important;
  box-shadow:0 5px 18px rgba(48,39,25,.05) !important;
}
body.theme-tgsd-clair .ks-detail-panel h2,
body.theme-tgsd-clair .ks-detail-panel h3,
body.theme-tgsd-clair .ks-detail-panel p,
body.theme-tgsd-clair .ks-detail-panel li,
body.theme-tgsd-clair .ks-detail-panel label,
body.theme-tgsd-clair .ks-detail-panel .muted {
  color:#262a30 !important;
}
body.theme-tgsd-clair .ks-detail-panel input,
body.theme-tgsd-clair .ks-detail-panel textarea,
body.theme-tgsd-clair .ks-detail-panel select {
  background:#fff !important;
  color:#262a30 !important;
  border-color:#c9c4ba !important;
}
body.theme-tgsd-clair .ks-detail-actions {
  color:#262a30 !important;
}
