/* =======================================================================
   Surfaces claires — gabarits génériques et pages spécialisées
   Remplace les surfaces de contenu héritées du thème gaming par des cartes
   claires et contrastées. Aucun style n'altère les images des cartes.
   Chargé APRES gamer-v20, atlas, V2 et V3 via harmonie-2026.
   ======================================================================= */
body.cc-atlas-theme {
  --bg:var(--cc-ui-bg, #f5f7fb); --panel:var(--cc-ui-surface, #ffffff); --panel2:#f4f7fb;
  --line:var(--cc-ui-stroke, #dbe3ec); --text:var(--cc-ui-ink, #263341); --muted:#5d6d7c;
  --cc-obsidian:var(--cc-ui-surface, #ffffff); --cc-night:var(--cc-ui-surface, #ffffff); --cc-night2:#f2f6fb;
  --cc-title:var(--cc-ui-ink, #263341); --cc-muted:#526477; --cc-stroke:var(--cc-ui-stroke, #dbe3ec);
  --cc-shadow:0 6px 22px rgba(38,51,65,.075);
  background:var(--cc-ui-bg, #f5f7fb)!important;color:var(--cc-ui-ink, #263341)!important;
}
body.cc-atlas-theme main {background:var(--cc-ui-bg, #f5f7fb)!important;color:var(--cc-ui-ink, #263341)!important;}
body.cc-atlas-theme main :is(h1,h2,h3,h4,h5){color:#243443!important;text-shadow:none!important;}
body.cc-atlas-theme main :is(.meta,.muted,.helper-text,.subtitle){color:#596b7d!important;}
/* Navigation : crème/blanc au lieu du bleu nuit, lecture à haut contraste */
body.cc-atlas-theme .cc-universal-header{
  background:var(--cc-ui-surface, #ffffff)!important;color:var(--cc-ui-ink, #263341)!important;
  border-bottom:1px solid #d8e1eb!important;box-shadow:0 4px 18px rgba(29,44,59,.07)!important;
}
body.cc-atlas-theme .cc-universal-header :is(.brand-word,.cc-nav-links a,.cc-nav-links summary,.cc-login-link,.user-menu summary,.user-chip span){color:var(--cc-ui-ink, #263341)!important;}
body.cc-atlas-theme .cc-universal-header .cc-brand .brand-word b{color:var(--cc-ui-ink, #263341)!important;text-shadow:none!important;}
body.cc-atlas-theme .cc-universal-header .cc-brand-copy small{color:#886014!important;}
body.cc-atlas-theme .cc-universal-header .cc-nav-links a.active{color:#155fbc!important;background:#eaf3ff!important;}
body.cc-atlas-theme .cc-universal-header .cc-nav-links :is(a,summary):hover{background:#f0f5fb!important;color:#155fbc!important;}
body.cc-atlas-theme .cc-header-search{background:#f6f9fd!important;border:1px solid #d3dfec!important;}
body.cc-atlas-theme .cc-header-search input{color:var(--cc-ui-ink, #263341)!important;}
body.cc-atlas-theme .cc-header-search input::placeholder{color:#6b7b8c!important;}
body.cc-atlas-theme .cc-header-actions .notification-bell{background:#f5f8fc!important;color:#6b5525!important;border-color:#dce4eb!important;}
body.cc-atlas-theme .cc-header-actions .user-menu summary{background:var(--cc-ui-surface, #ffffff)!important;border-color:#dce4eb!important;}
body.cc-atlas-theme .cc-compact-navigation{background:var(--cc-ui-surface, #ffffff)!important;border-bottom:1px solid var(--cc-ui-stroke, #dbe3ec)!important;color:var(--cc-ui-ink, #263341)!important;}
body.cc-atlas-theme .cc-compact-links a{color:#32485f!important;}
body.cc-atlas-theme .cc-compact-links a:hover{color:#155fbc!important;background:#edf5ff!important;}
body.cc-atlas-theme .cc-mobile-menu>summary{background:#f1f5fb!important;border:1px solid #dbe5ee!important;}
body.cc-atlas-theme .cc-mobile-menu>summary span{background:#2b3e51!important;}
/* Uniformité des cartes génériques (accueil / catalogue / outils) */
body.cc-atlas-theme main :is(.tcg-card,.cc-recent-grid .tcg-card,.guide-card,.guide-tool-grid a,.guide-reference-grid a,.set-card,.market-card,.card-tile,.feature,.panel,.stats-panel,.table-card,.cc-hub-game,.cc-kpi-card,.cc-info-card,.metric-card,.stat,.stats-metric){
  background:var(--cc-ui-surface, #ffffff)!important;background-image:none!important;color:var(--cc-ui-ink, #263341)!important;
  border:1px solid #dbe4ee!important;box-shadow:0 6px 18px rgba(30,45,60,.075)!important;
}
body.cc-atlas-theme main :is(.tcg-card,.set-card,.market-card,.guide-card,.panel,.feature) :is(h2,h3,h4,b,strong,.card-name,.price){color:#253646!important;opacity:1!important;}
body.cc-atlas-theme main :is(.tcg-card,.set-card,.market-card,.guide-card,.panel,.feature) :is(.card-game,.meta,.card-set,.card-rarity,small,p){color:#53697d!important;opacity:1!important;}
body.cc-atlas-theme main .cc-recent-grid .tcg-card{border-radius:15px!important;overflow:hidden;}
body.cc-atlas-theme main .cc-recent-grid .tcg-card a{color:#243443!important;}
body.cc-atlas-theme main .cc-recent-grid .tcg-card :is(h3,.price){font-size:clamp(13px,1.2vw,17px);color:#1c3b53!important;}
body.cc-atlas-theme main :is(.tcg-card,.set-card,.market-card):hover{border-color:#d4ad50!important;}
body.cc-atlas-theme main :is(.card-img,.market-image,.detail-image){background:#f1f4f8!important;}
/* Premier accueil / indicateurs / progression de collection */
body.cc-atlas-theme main .cc-game-command-center .cc-dashboard-head,
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2,
body.cc-atlas-theme main :is(.cc-market-overview,.cc-action-tile,.set-hero,.cc-activation-mini,.cc-overview,.cc-hero-card){
  background:var(--cc-ui-surface, #ffffff)!important;background-image:none!important;
  color:#253646!important;border:1px solid #d9e3ec!important;
  box-shadow:0 9px 25px rgba(37,52,67,.07)!important;
}
body.cc-atlas-theme main .cc-game-command-center .cc-dashboard-head:after{display:none!important;}
body.cc-atlas-theme main .cc-game-command-center .cc-dashboard-head :is(h1,h2,h3,b,strong,p,span,small),
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 :is(h1,h2,h3,b,strong,span,small,p),
body.cc-atlas-theme main :is(.cc-activation-mini,.cc-market-overview,.cc-action-tile,.set-hero) :is(h1,h2,h3,h4,strong,b){color:#253646!important;opacity:1!important;}
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 .cc-value-number{color:#1365ae!important;}
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 :is(.cc-value-label,.cc-quality-note,p,small),
body.cc-atlas-theme main :is(.cc-activation-mini,.cc-market-overview,.cc-action-tile,.set-hero) :is(p,small,span){color:#516778!important;opacity:1!important;}
body.cc-atlas-theme main .cc-dashboard :is(.cc-value-quick>div,.cc-coverage-block),
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 .cc-quality-note{
  background:#f1f6fc!important;border:1px solid #d6e3ef!important;color:#2b475f!important;
}
body.cc-atlas-theme main .cc-dashboard :is(.cc-value-quick>div,.cc-coverage-block) :is(b,strong,small,span){color:#2d4357!important;}
body.cc-atlas-theme main .cc-activation-mini :is(strong,h2,small,p){color:#263849!important;opacity:1!important;}
body.cc-atlas-theme main .cc-activation-mini .eyebrow{color:#1264b6!important;background:#ebf5ff!important;}
/* Fiches détaillées : infos techniques, Pokémon, attaques, formes */
body.cc-atlas-theme main .card-detail :is(.price-box,.market-metrics,.cc-pokemon-facts,.cc-pokemon-attack,.cc-price-caveat,.card-history,.pokemon-facts,.pokemon-attack,.pokemon-card-facts,.pokemon-attack-block,.ygo-card-facts,.magic-card-facts,.magic-legality,.magic-print-ref,.printing-panel,.owned-price-compare){
  background:var(--cc-ui-surface, #ffffff)!important;background-image:none!important;color:var(--cc-ui-ink, #263341)!important;
  border:1px solid var(--cc-ui-stroke, #dbe3ec)!important;border-radius:12px!important;
}
body.cc-atlas-theme main .card-detail :is(.market-metrics,.cc-pokemon-facts,.pokemon-facts,.pokemon-card-facts,.ygo-card-facts,.magic-card-facts)>div,
body.cc-atlas-theme main .card-detail :is(.cc-pokemon-attack,.pokemon-attack,.pokemon-attack-block,.owned-price-compare-row,.printing-chip){
  background:#f7f9fc!important;background-image:none!important;border-color:#dce5ee!important;color:var(--cc-ui-ink, #263341)!important;
}
body.cc-atlas-theme main .card-detail :is(.market-metrics,.cc-pokemon-facts,.cc-pokemon-attack,.pokemon-facts,.pokemon-card-facts,.pokemon-attack,.pokemon-attack-block,.ygo-card-facts,.magic-card-facts,.printing-panel,.owned-price-compare) :is(h2,h3,h4,b,strong){color:#273849!important;opacity:1!important;}
body.cc-atlas-theme main .card-detail :is(.market-metrics,.cc-pokemon-facts,.cc-pokemon-attack,.pokemon-facts,.pokemon-card-facts,.pokemon-attack,.pokemon-attack-block,.ygo-card-facts,.magic-card-facts,.printing-panel,.owned-price-compare) :is(p,small,span){color:#53687c!important;opacity:1!important;}
body.cc-atlas-theme main :is(.owned-card-panel,.owned-variant-form,.owned-variant-list,.card-actions-grid,.owned-price-compare){background:var(--cc-ui-surface, #ffffff)!important;background-image:none!important;color:var(--cc-ui-ink, #263341)!important;border-color:#dce4ec!important;}
body.cc-atlas-theme main :is(.owned-card-panel,.owned-variant-form,.owned-variant-list) :is(h2,h3,b,strong){color:#273949!important;}
body.cc-atlas-theme main :is(.owned-card-panel,.owned-variant-form,.owned-variant-list) :is(p,small,span){color:#52687a!important;}
body.cc-atlas-theme main .owned-variant-form :is(input,select,textarea),
body.cc-atlas-theme main .card-actions-grid :is(input,select,textarea){background:var(--cc-ui-surface, #ffffff)!important;color:#253849!important;border:1px solid #cddbe8!important;}
/* Collection sur tous les jeux, listes de blocs et checklists */
body.cc-atlas-theme main :is(.collection-browser-panel,.collection-library-stats>div,.collection-block-tile,.collection-series-tile,.collection-check-card,.collection-series-search,.collection-browser-panel .searchbar){background:var(--cc-ui-surface, #ffffff)!important;background-image:none!important;color:var(--cc-ui-ink, #263341)!important;border-color:#dbe3ed!important;}
body.cc-atlas-theme main .collection-browser-panel :is(h2,h3,strong,b,span,p,small),
body.cc-atlas-theme main :is(.collection-block-tile,.collection-series-tile,.collection-check-card) :is(h2,h3,b,strong){color:#263849!important;opacity:1!important;}
body.cc-atlas-theme main :is(.collection-block-tile,.collection-series-tile,.collection-check-card) :is(small,p,span){color:#536a7c!important;opacity:1!important;}
/* Profil / paramètres / formulaires */
body.cc-atlas-theme main :is(.social-settings-form,.social-privacy-master,.social-settings-side .panel,.social-toggle-grid .toggle-card,.social-stat-grid>div,.collector-kpis>div,.collector-deck,.collector-badge,.collector-list-card,.collector-reputation>span){background:var(--cc-ui-surface, #ffffff)!important;color:var(--cc-ui-ink, #263341)!important;border:1px solid #dce5ed!important;}
body.cc-atlas-theme main :is(.social-settings-form,.social-privacy-master,.social-settings-side,.collector-page) :is(h2,h3,b,strong){color:#293949!important;}
body.cc-atlas-theme main :is(.social-settings-form,.social-privacy-master,.social-settings-side,.collector-page) :is(p,small,span){color:#586a7c!important;}
body.cc-atlas-theme main :is(.social-settings-form,.social-privacy-master,.social-settings-side) :is(input:not([type=checkbox]),select,textarea){background:var(--cc-ui-surface, #ffffff)!important;color:var(--cc-ui-ink, #263341)!important;border:1px solid #cbd8e6!important;}
/* Recherche : supprime aussi les fonds bleus de la barre et du terminal */
body.cc-atlas-theme main .cc-game-terminal .cc-terminal-bar,
body.cc-atlas-theme main .cc-game-terminal .cc-main-search,
body.cc-atlas-theme main :is(.collection-browser-panel,.collection-series-search,.cc-search-panel){background:var(--cc-ui-surface, #ffffff)!important;background-image:none!important;color:#293b4b!important;border-color:#d8e3ee!important;}
body.cc-atlas-theme main .cc-game-terminal .cc-terminal-bar :is(span,b,strong){color:#375269!important;}
body.cc-atlas-theme main .cc-game-terminal .cc-main-search input{color:#233647!important;background:var(--cc-ui-surface, #ffffff)!important;}
body.cc-atlas-theme main .cc-game-terminal .cc-main-search input::placeholder{color:#667a8b!important;}
/* GUIDE : vrais espaces de respiration sans casser la colonne sommaire */
body.cc-atlas-theme main .guide-breadcrumb{padding-block:28px 10px!important;padding-inline:clamp(15px,2.7vw,34px)!important;}
body.cc-atlas-theme main article.guide-article{margin-top:12px;padding-bottom:50px;}
body.cc-atlas-theme main .guide-article-head{
  width:min(1140px,calc(100% - 32px));max-width:1140px!important;
  padding:clamp(32px,4vw,54px) clamp(22px,3.4vw,48px) clamp(26px,3vw,38px)!important;
  margin:0 auto 24px;background:var(--cc-ui-surface, #ffffff)!important;border-radius:20px;border:1px solid #dce5ee;
}
body.cc-atlas-theme main .guide-article-head h1{font-size:clamp(30px,4vw,52px)!important;line-height:1.12!important;letter-spacing:-1.1px!important;margin:18px 0 20px!important;}
body.cc-atlas-theme main .guide-article-head>p{color:#465d70!important;line-height:1.7!important;max-width:850px;margin-bottom:20px!important;}
body.cc-atlas-theme main .guide-article-head .guide-meta{padding-top:14px!important;border-top:1px solid #e7edf4;}
body.cc-atlas-theme main .guide-article-head .guide-meta a{color:#175eac!important;}
body.cc-atlas-theme main .guide-article-layout{
  width:min(1140px,calc(100% - 32px));max-width:1140px!important;
  grid-template-columns:minmax(190px,236px) minmax(0,1fr);gap:clamp(20px,3.4vw,42px)!important;
  align-items:start;padding:0 0 70px!important;
}
body.cc-atlas-theme main .guide-toc{background:var(--cc-ui-surface, #ffffff)!important;border:1px solid #dce5ee!important;padding:24px 20px!important;top:112px;}
body.cc-atlas-theme main .guide-toc>a,body.cc-atlas-theme main .guide-toc nav a{color:#4e6477!important;}
body.cc-atlas-theme main .guide-toc nav a:hover{background:#eef5ff!important;color:#165cad!important;}
body.cc-atlas-theme main .guide-content{
  background:var(--cc-ui-surface, #ffffff)!important;border:1px solid #dce5ee!important;border-radius:20px;
  padding:clamp(24px,3.3vw,48px)!important;min-width:0;
}
body.cc-atlas-theme main .guide-content>section{margin:0 0 40px!important;padding-top:3px;}
body.cc-atlas-theme main .guide-content h2{margin:0 0 20px!important;line-height:1.25!important;}
body.cc-atlas-theme main .guide-content p{margin:0 0 19px!important;color:#455c6e!important;line-height:1.82!important;}
body.cc-atlas-theme main .guide-summary{background:#f3f8ff!important;border:1px solid #d8e6f6!important;padding:25px 28px!important;margin-bottom:38px!important;}
body.cc-atlas-theme main .guide-summary :is(b,strong){color:#263b50!important;}
body.cc-atlas-theme main .guide-summary li{color:#40596d!important;line-height:1.7!important;margin-bottom:9px;}
body.cc-atlas-theme main .guide-cta{background:#fff9ec!important;border-color:#f3dfb7!important;padding:24px!important;margin:40px 0!important;}
body.cc-atlas-theme main .guide-cta :is(h2,p){color:#2e3f4e!important;}
body.cc-atlas-theme main .guide-faq details,
body.cc-atlas-theme main .guide-related-grid a,
body.cc-atlas-theme main .guide-source-list a{background:var(--cc-ui-surface, #ffffff)!important;border:1px solid #dce5ee!important;color:#293b49!important;padding:16px 18px!important;}
body.cc-atlas-theme main .guide-faq details p{color:#536a7e!important;}
body.cc-atlas-theme main .guide-card :is(h2,a,.guide-card-link){color:#263949!important;}
body.cc-atlas-theme main .guide-card-link{color:#1668b6!important;}
body.cc-atlas-theme main .guide-hub,.cc-atlas-theme main .guide-tools{padding-inline:clamp(8px,2.2vw,28px)!important;}
/* Boutons de filtre inactifs, lisibles et cohérents */
body.cc-atlas-theme main :is(.chip,.tab,.filter-chip,.btn-chip):not(.active):not([aria-pressed=true]){background:#f6f8fc!important;color:#2c4459!important;border:1px solid #cdd9e6!important;}
body.cc-atlas-theme main :is(.chip,.tab,.filter-chip,.btn-chip):is(.active,[aria-pressed=true]){background:var(--cc-ui-blue, #2563eb)!important;color:var(--cc-ui-surface, #ffffff)!important;border:1px solid #1d4ed8!important;}
/* Les mini-boutons conservent leur accessibilité */
body.cc-atlas-theme :is(a,button,input,select,summary):focus-visible{outline:3px solid #1d72d2!important;outline-offset:3px;}
@media(max-width:900px){
 body.cc-atlas-theme main .guide-article-layout{grid-template-columns:1fr!important;gap:20px!important;}
 body.cc-atlas-theme main .guide-toc{position:static!important;}
 body.cc-atlas-theme main .guide-toc nav{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px){
 body.cc-atlas-theme main .guide-article-head{width:calc(100% - 22px);padding:24px 20px!important;}
 body.cc-atlas-theme main .guide-article-layout{width:calc(100% - 22px);}
 body.cc-atlas-theme main .guide-content{padding:22px 18px!important;}
 body.cc-atlas-theme main .guide-toc{padding:20px!important;}
 body.cc-atlas-theme main .guide-toc nav{grid-template-columns:1fr;}
 body.cc-atlas-theme main .guide-summary{padding:20px!important;}
 body.cc-atlas-theme main .guide-article-head h1{font-size:clamp(27px,7vw,38px)!important;}
 body.cc-atlas-theme main .guide-related-grid{grid-template-columns:1fr!important;}
}
/* Priorités élevées : anciens panneaux V2 qui forçaient encore #102c43 */
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 .cc-coverage-block,
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 .cc-quality-note,
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 .cc-value-quick>div{
 background:#f2f7fc!important;background-image:none!important;
 border:1px solid #d7e5f0!important;color:#2b465b!important;
}
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 :is(.cc-coverage-block,.cc-quality-note,.cc-value-quick>div) :is(span,b,strong,small){color:#2d465a!important;opacity:1!important;}
/* Dernières zones de formulaires 'gaming' : champs toujours clairs */
body.cc-atlas-theme main :is(.owned-card-panel,.owned-variant-form,.social-settings-form,.panel) :is(input:not([type=checkbox]),select,textarea){background:var(--cc-ui-surface, #ffffff)!important;color:var(--cc-ui-ink, #263341)!important;border:1px solid #cddae7!important;}
/* Navigation secondaire : aucun volet bleu nuit ne subsiste */
body.cc-atlas-theme .cc-universal-header .nav-popover,
body.cc-atlas-theme .cc-mobile-menu>nav{
 background:var(--cc-ui-surface, #ffffff)!important;color:#293a4a!important;
 border:1px solid #d7e2ed!important;box-shadow:0 16px 40px rgba(35,49,63,.16)!important;
}
body.cc-atlas-theme .cc-universal-header .nav-popover :is(a,a span,a small){color:#344b5e!important;}
body.cc-atlas-theme .cc-universal-header .nav-popover a:hover{background:#eff6ff!important;color:#145da8!important;}
body.cc-atlas-theme .cc-universal-header .nav-popover-label{color:#8d641c!important;}
body.cc-atlas-theme .cc-mobile-menu>nav>a{color:#344b5e!important;border-bottom-color:#e2e9f0!important;}
body.cc-atlas-theme .cc-mobile-menu>nav>a:hover{background:#eff6ff!important;color:#125ca7!important;}
body.cc-atlas-theme .cc-mobile-menu form input{background:#f5f8fc!important;color:var(--cc-ui-ink, #263341)!important;border:1px solid #d6e1eb!important;}

