/* =======================================================================
   Finitions claires — formes, fiches et contenus
   - supprime les derniers fonds gris / gris foncé des contenus
   - applique la palette claire doré + bleu doux de l'image 2
   - adoucit la zone Compte / CC dans le header
   ======================================================================= */

/* 1) Header Compte : plus de pavé gris foncé derrière CC */
body.cc-atlas-theme .cc-header-actions .user-menu summary,
body.cc-atlas-theme .cc-header-actions .user-chip{
  background:#fffaf0!important;
  background-image:none!important;
  color:#253646!important;
  border:1px solid #e7c974!important;
  box-shadow:none!important;
}
body.cc-atlas-theme .cc-header-actions .user-menu summary:hover,
body.cc-atlas-theme .cc-header-actions .user-menu[open] summary{
  background:#fff3d9!important;
  border-color:#ddb65a!important;
}
body.cc-atlas-theme .cc-header-actions .user-chip span:last-child{
  color:#253646!important;
}
body.cc-atlas-theme .cc-universal-header .user-dot,
body.cc-atlas-theme .cc-header-actions .user-dot{
  background:#4b63ff!important;
  color:var(--cc-ui-surface, #ffffff)!important;
  border:0!important;
  box-shadow:none!important;
}

/* 2) Fiche carte : plus aucun grand bloc gris / gris foncé */
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-card-panel,.owned-variant-form,.owned-variant-list,.owned-price-compare,.card-offer-row,.card-actions-grid){
  background:var(--cc-ui-surface, #ffffff)!important;
  background-image:none!important;
  color:var(--cc-ui-ink, #263341)!important;
  border:1px solid #dbe5ee!important;
  box-shadow:0 6px 18px rgba(33,48,63,.06)!important;
}
body.cc-atlas-theme main .card-detail :is(.cc-pokemon-facts,.pokemon-facts,.pokemon-card-facts,.market-metrics,.ygo-card-facts,.magic-card-facts,.owned-price-compare)>div,
body.cc-atlas-theme main .card-detail :is(.cc-pokemon-attack,.pokemon-attack,.pokemon-attack-block,.owned-price-compare-row,.printing-chip,.card-offer-row)>div,
body.cc-atlas-theme main .card-detail :is(.cc-pokemon-attack,.pokemon-attack,.pokemon-attack-block,.owned-price-compare-row,.printing-chip){
  background:#f7fafd!important;
  background-image:none!important;
  border:1px solid #dde7f0!important;
  color:var(--cc-ui-ink, #263341)!important;
}
body.cc-atlas-theme main .card-detail :is(.price-box,.market-metrics,.cc-pokemon-facts,.cc-pokemon-attack,.card-history,.pokemon-facts,.pokemon-attack,.pokemon-card-facts,.pokemon-attack-block,.owned-card-panel,.owned-variant-form,.owned-variant-list,.owned-price-compare,.printing-panel,.ygo-card-facts,.magic-card-facts) :is(h2,h3,h4,b,strong){
  color:#253646!important;
}
body.cc-atlas-theme main .card-detail :is(.price-box,.market-metrics,.cc-pokemon-facts,.cc-pokemon-attack,.card-history,.pokemon-facts,.pokemon-attack,.pokemon-card-facts,.pokemon-attack-block,.owned-card-panel,.owned-variant-form,.owned-variant-list,.owned-price-compare,.printing-panel,.ygo-card-facts,.magic-card-facts) :is(p,small,span,label){
  color:#55697c!important;
  opacity:1!important;
}
body.cc-atlas-theme main .card-detail :is(.owned-card-panel,.owned-variant-form,.owned-variant-list,.card-actions-grid) :is(input:not([type=checkbox]),select,textarea){
  background:var(--cc-ui-surface, #ffffff)!important;
  color:var(--cc-ui-ink, #263341)!important;
  border:1px solid #cfdae5!important;
}

/* 3) Couleurs génériques de panneaux : gris foncé -> blanc / bleu très clair */
body.cc-atlas-theme main :is(.panel-muted,.surface-muted,.soft-panel,.market-search-panel,.market-filter-panel,.cc-market-search-panel,.cc-market-empty,.my-market-row,.cc-market-panel,.feature-strip){
  background:var(--cc-ui-surface, #ffffff)!important;
  background-image:none!important;
  color:var(--cc-ui-ink, #263341)!important;
  border:1px solid #dbe5ee!important;
}
body.cc-atlas-theme main :is(.panel-muted,.surface-muted,.soft-panel,.market-search-panel,.market-filter-panel,.cc-market-search-panel,.cc-market-empty,.my-market-row,.cc-market-panel,.feature-strip) :is(h2,h3,h4,b,strong){
  color:#253646!important;
}
body.cc-atlas-theme main :is(.panel-muted,.surface-muted,.soft-panel,.market-search-panel,.market-filter-panel,.cc-market-search-panel,.cc-market-empty,.my-market-row,.cc-market-panel,.feature-strip) :is(p,small,span,label){
  color:#576b7e!important;
}

/* 4) Harmonisation accent image 2 : boutons/filtres secondaires plus doux */
body.cc-atlas-theme main :is(.btn-secondary,.btn-ghost,.btn-quiet,.chip,.tab,.filter-chip,.btn-chip):not(.active):not([aria-pressed=true]){
  background:var(--cc-ui-surface, #ffffff)!important;
  color:#274056!important;
  border:1px solid #cad8e6!important;
}
body.cc-atlas-theme main :is(.btn-secondary,.btn-ghost,.btn-quiet,.chip,.tab,.filter-chip,.btn-chip):not(.active):not([aria-pressed=true]):hover{
  background:#eef5ff!important;
  color:#165dad!important;
  border-color:#bcd2ea!important;
}

/* 5) Guides : encore un peu plus d'air */
body.cc-atlas-theme main .guide-article-head{
  margin:0 auto 30px!important;
  padding:clamp(34px,4.5vw,58px) clamp(24px,3.6vw,54px) clamp(28px,3.2vw,42px)!important;
}
body.cc-atlas-theme main .guide-article-layout{
  gap:clamp(24px,3.8vw,46px)!important;
  padding:0 0 82px!important;
}
body.cc-atlas-theme main .guide-content{
  padding:clamp(28px,3.8vw,54px)!important;
}
body.cc-atlas-theme main .guide-content>section{margin:0 0 46px!important;}
body.cc-atlas-theme main .guide-content h2{margin:0 0 22px!important;}
body.cc-atlas-theme main .guide-content p,
body.cc-atlas-theme main .guide-content li{line-height:1.86!important;}
body.cc-atlas-theme main .guide-summary{padding:28px 30px!important;margin-bottom:42px!important;}
body.cc-atlas-theme main .guide-toc{padding:26px 22px!important;}

@media(max-width:620px){
  body.cc-atlas-theme main .guide-article-head{padding:26px 20px!important;}
  body.cc-atlas-theme main .guide-content{padding:24px 18px!important;}
  body.cc-atlas-theme main .guide-summary{padding:22px!important;}
}

/* =======================================================================
   Finitions ciblées — bordures et annotations historiques
   - retire le contour du bouton Compte
   - retire les traits / bordures dans la zone valeur du marché
   - retire le petit // CardCairn au-dessus des titres de collection
   ======================================================================= */

/* 1) Compte : plus de trait autour du bouton */
body.cc-atlas-theme .cc-header-actions .user-menu summary,
body.cc-atlas-theme .cc-header-actions .user-chip,
body.cc-atlas-theme .cc-header-actions .user-menu summary:hover,
body.cc-atlas-theme .cc-header-actions .user-menu[open] summary{
  border:0!important;
  outline:none!important;
  box-shadow:none!important;
}

/* 2) Zone valeur du marché : enlever les traits / cadres trop visibles */
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2,
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,
body.cc-atlas-theme main .cc-activation-mini,
body.cc-atlas-theme main .collection-library-stats>div{
  border-color:transparent!important;
  box-shadow:0 6px 18px rgba(33,48,63,.045)!important;
}
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 .cc-quality-note{
  border-left:0!important;
}

/* 3) Retirer le // CardCairn au-dessus des pages collection */
body.cc-atlas-theme main .collection-library-head>.shell>small,
body.cc-atlas-theme main .series-library-head>.shell>small,
body.cc-atlas-theme main .collection-library-shell>.shell>small{
  display:none!important;
}
