/* ==============================================================
   CardCairn V3 / 22 oct 2026
   Revue des sous-pages : collection par jeu / bloc / série / cartes.
   Cette couche est placée après tous les styles historiques ; elle
   ne touche ni aux actions JS, ni aux données, ni au routage PHP.
   ============================================================== */

/* A. Hiérarchie des collections — en-têtes et statistiques publiques/privées */
body.cc-atlas-theme main .collection-library-head {
  background:linear-gradient(135deg,#f4f8fd 0%,#e8f2fd 56%,#f7faff 100%)!important;
  border-bottom:1px solid #d9e7f3!important;
  color:#17344c!important;
}
body.cc-atlas-theme main .collection-library-head .collection-library-breadcrumb,
body.cc-atlas-theme main .collection-library-head .collection-library-breadcrumb b{color:#4e6580!important}
body.cc-atlas-theme main .collection-library-head .collection-library-breadcrumb a{color:#1b60af!important;text-decoration:none}
body.cc-atlas-theme main .collection-library-head .collection-library-breadcrumb a:hover{text-decoration:underline;color:#123e76!important}
body.cc-atlas-theme main .collection-library-head h1{color:#132e47!important;letter-spacing:-.04em}
body.cc-atlas-theme main .collection-library-head .eyebrow{color:#1c61b7!important}
body.cc-atlas-theme main .collection-library-head p,
body.cc-atlas-theme main .collection-library-head>.shell>small{color:#516e86!important}
body.cc-atlas-theme main .collection-library-stats,
body.cc-atlas-theme main .collection-library-stats.compact {
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;
}
body.cc-atlas-theme main .collection-library-stats.compact{grid-template-columns:repeat(4,minmax(0,1fr))}
body.cc-atlas-theme main .series-library-head .collection-library-stats.compact{grid-template-columns:repeat(5,minmax(0,1fr))}
body.cc-atlas-theme main .collection-library-stats>div,
body.cc-atlas-theme main .magic-collection-kpis>div{
 background:#fff!important;color:#163650!important;
 border:1px solid #d6e3ef!important;border-radius:14px!important;
 box-shadow:0 5px 16px rgba(13,39,65,.055)!important;
 padding:15px 17px!important;min-width:0;
}
body.cc-atlas-theme main .collection-library-stats b,
body.cc-atlas-theme main .magic-collection-kpis b{
 color:#102e47!important;font-size:clamp(18px,1.65vw,25px)!important;
 font-weight:850!important;letter-spacing:-.02em;overflow-wrap:anywhere;
}
body.cc-atlas-theme main .collection-library-stats span,
body.cc-atlas-theme main .magic-collection-kpis :is(span,small){
 color:#5e748a!important;font-size:12px!important;line-height:1.4!important;opacity:1!important;
}
body.cc-atlas-theme main .collection-library-progress,
body.cc-atlas-theme main .collection-mini-progress{background:#d7e5f2!important;border-radius:999px}
body.cc-atlas-theme main .collection-library-progress i,
body.cc-atlas-theme main .collection-mini-progress i{background:linear-gradient(90deg,#2866f0,#24a4ed,#11b89a)!important}
body.cc-atlas-theme main .magic-collection-overview :is(.magic-collection-variantbar,.magic-collection-rule){
 background:#fff!important;border:1px solid #d6e3ef!important;color:#314e66!important;border-radius:14px;
}
body.cc-atlas-theme main .magic-collection-overview :is(.magic-collection-variantbar,.magic-collection-rule) :is(b,strong){color:#173751!important}

/* B. Recherches et sélecteurs au niveau jeu/bloc/série */
body.cc-atlas-theme main .collection-library-shell{padding-top:24px;padding-bottom:34px}
body.cc-atlas-theme main .collection-browser-panel,
body.cc-atlas-theme main .collection-series-search{
 background:linear-gradient(135deg,#11263e,#172f4a)!important;
 border:1px solid #38536e!important;border-radius:17px!important;
 box-shadow:0 12px 28px rgba(15,36,57,.14)!important;
 padding:17px 18px!important;color:#fff!important;
}
body.cc-atlas-theme main .collection-browser-panel-head b{color:#fff!important;font-size:16px!important}
body.cc-atlas-theme main .collection-browser-panel-head small,
body.cc-atlas-theme main .collection-browser-panel-meta,
body.cc-atlas-theme main .collection-browser-panel-meta :is(small,span),
body.cc-atlas-theme main .collection-series-search>small{color:#c5d5e8!important;opacity:1!important}
body.cc-atlas-theme main :is(.collection-browser-panel,.collection-series-search) .collection-search-field{
 border:1px solid #b8cbe0!important;border-radius:11px!important;
 background:#fff!important;box-shadow:none!important;color:#1c3851!important;
}
body.cc-atlas-theme main :is(.collection-browser-panel,.collection-series-search) .collection-search-field input{
 color:#193a55!important;background:transparent!important;
 font-size:14px!important;opacity:1!important;
}
body.cc-atlas-theme main :is(.collection-browser-panel,.collection-series-search) .collection-search-field input::placeholder{color:#6d829a!important;opacity:1!important}
body.cc-atlas-theme main :is(.collection-browser-panel,.collection-series-search) .collection-search-field>span{color:#3774c0!important}
body.cc-atlas-theme main :is(.collection-browser-panel,.collection-series-search) [data-collection-search-clear]{color:#315776!important}
body.cc-atlas-theme main .collection-browser-pills .btn.btn-chip,
body.cc-atlas-theme main .collection-series-actions .set-view-filter .chip{
 background:#243c57!important;color:#ecf5ff!important;border:1px solid #506a8a!important;
 border-radius:9px!important;min-height:38px;padding:8px 13px!important;
 box-shadow:none!important;text-shadow:none!important;
}
body.cc-atlas-theme main .collection-browser-pills .btn.btn-chip.active,
body.cc-atlas-theme main .collection-series-actions .set-view-filter .chip.active{
 background:#2563eb!important;color:#fff!important;border-color:#6d9dff!important;
 box-shadow:0 3px 12px rgba(37,99,235,.16)!important;
}
body.cc-atlas-theme main .collection-series-actions .set-view-filter .chip:not(.active){
 background:#fff!important;color:#1e4965!important;border-color:#b9cede!important;
}
body.cc-atlas-theme main .collection-series-actions .set-view-filter .chip:hover,
body.cc-atlas-theme main .collection-browser-pills .btn.btn-chip:hover{
 border-color:#ffd475!important;filter:brightness(1.1)!important;
}
body.cc-atlas-theme main .collection-search-empty{color:#b5cadb!important}

/* C. Jeu -> blocs : vraie tuile de catalogue, pas de texte bleu nuit sur bleu nuit */
body.cc-atlas-theme main .collection-block-grid{gap:15px}
body.cc-atlas-theme main a.collection-block-tile.cardified,
body.cc-atlas-theme main a.collection-block-tile.cardified.is-unstarted{
 background:linear-gradient(142deg,#fff 0%,#f1f7ff 100%)!important;
 color:#203d56!important;
 border:1px solid #d5e3f0!important;
 border-radius:17px!important;
 box-shadow:0 8px 23px rgba(16,42,72,.08)!important;
 min-height:184px!important;
 text-decoration:none!important;
}
body.cc-atlas-theme main a.collection-block-tile.cardified.has-owned{border-left:4px solid #14a985!important}
body.cc-atlas-theme main a.collection-block-tile.cardified.is-unstarted{border-left:4px solid #cbd5e1!important}
body.cc-atlas-theme main a.collection-block-tile.cardified:before,
body.cc-atlas-theme main a.collection-series-tile.clean:before{display:none!important}
body.cc-atlas-theme main .collection-block-tile .game-pill{color:#2d669f!important;font-size:10px!important}
body.cc-atlas-theme main .collection-block-tile :is(h2,strong,b){color:#173b57!important;text-shadow:none!important}
body.cc-atlas-theme main .collection-block-tile h2{font-size:19px!important;line-height:1.25!important}
body.cc-atlas-theme main .collection-block-tile :is(p,small),
body.cc-atlas-theme main .collection-block-tile-bottom span{color:#536e84!important;opacity:1!important}
body.cc-atlas-theme main .collection-block-tile-bottom{border-top:1px solid #e3ecf4!important;margin-top:13px;padding-top:12px!important}
body.cc-atlas-theme main .collection-block-tile-bottom b{color:#1262bf!important;font-size:14px!important}
body.cc-atlas-theme main a.collection-block-tile.cardified:hover{border-color:#e0b857!important;transform:translateY(-2px)}

/* D. Bloc -> séries : lisibilité des titres, badges et couvertures */
body.cc-atlas-theme main .collection-series-grid{gap:14px}
body.cc-atlas-theme main a.collection-series-tile.clean,
body.cc-atlas-theme main a.collection-series-tile.clean.is-unstarted,
body.cc-atlas-theme main a.collection-series-tile.clean.is-complete{
 background:#fff!important;color:#183650!important;border:1px solid #d8e5f0!important;
 border-radius:16px!important;box-shadow:0 8px 22px rgba(16,42,72,.075)!important;
 text-decoration:none!important;
}
body.cc-atlas-theme main a.collection-series-tile.clean.has-owned{border-left:4px solid #18ab84!important}
body.cc-atlas-theme main a.collection-series-tile.clean.is-complete{border-left:4px solid #e0ac35!important}
body.cc-atlas-theme main a.collection-series-tile.clean.is-unstarted{border-left:4px solid #cbd5e1!important}
body.cc-atlas-theme main .series-code-chip,
body.cc-atlas-theme main .series-owned-chip{
 background:#eef5ff!important;border:1px solid #cbdcf1!important;
 color:#244d74!important;opacity:1!important;
}
body.cc-atlas-theme main .collection-series-mark{
 background:linear-gradient(135deg,#e9f2fc,#f7fbff)!important;border:1px solid #d7e6f4!important;
 border-radius:11px!important;overflow:hidden;
}
body.cc-atlas-theme main .collection-series-mark.no-cover>span{color:#37659b!important}
body.cc-atlas-theme main .collection-series-tile.clean :is(h2,b,strong){color:#163c57!important;text-shadow:none!important}
body.cc-atlas-theme main .collection-series-tile.clean h2{font-size:17px!important;line-height:1.28}
body.cc-atlas-theme main .collection-series-tile.clean :is(p,small),
body.cc-atlas-theme main .collection-series-bottom span{color:#60758a!important;opacity:1!important}
body.cc-atlas-theme main .collection-series-bottom{border-top:1px solid #e3ebf4!important;padding-top:10px!important}
body.cc-atlas-theme main .collection-series-bottom b{color:#155db5!important}
body.cc-atlas-theme main a.collection-series-tile.clean:hover{border-color:#dfb459!important;transform:translateY(-2px)}

/* E. Série -> checklist : lisible sur mobile, prix, possédées/manquantes */
body.cc-atlas-theme main .series-library-head .collection-series-search{margin-top:22px!important}
body.cc-atlas-theme main .series-library-head .collection-price-load,
body.cc-atlas-theme main .series-library-head .collection-price-load>span{color:#50708b!important}
body.cc-atlas-theme main .collection-series-actions{gap:10px;margin-top:15px}
body.cc-atlas-theme main .collection-series-actions>.btn{font-size:12px!important;line-height:1.4}
body.cc-atlas-theme main .collection-full-checklist{gap:13px}
body.cc-atlas-theme main article.collection-check-card,
body.cc-atlas-theme main article.collection-check-card.is-missing,
body.cc-atlas-theme main article.collection-check-card.is-owned{
 background:#fff!important;border:1px solid #d6e3ef!important;
 color:#15364f!important;border-radius:13px!important;
 box-shadow:0 6px 19px rgba(14,37,60,.07)!important;
}
body.cc-atlas-theme main article.collection-check-card.is-owned{border-color:#67cbb0!important}
body.cc-atlas-theme main article.collection-check-card.is-missing{border-color:#dbe3ec!important}
body.cc-atlas-theme main .collection-check-image{background:linear-gradient(120deg,#e9f1fa,#f6faff)!important}
body.cc-atlas-theme main article.collection-check-card.is-missing .collection-check-image img{filter:grayscale(1)!important;opacity:.68!important}
body.cc-atlas-theme main article.collection-check-card.is-owned .collection-check-image img{filter:none!important;opacity:1!important}
body.cc-atlas-theme main .collection-check-info :is(b,strong){color:#18384f!important}
body.cc-atlas-theme main .collection-check-info b{font-size:12px!important;line-height:1.3!important;min-height:0}
body.cc-atlas-theme main .collection-check-info :is(small,span){color:#5a7489!important;opacity:1!important}
body.cc-atlas-theme main .collection-check-info [data-collection-price]{color:#0c6d56!important;font-weight:800}
body.cc-atlas-theme main .collection-check-state{background:rgba(11,26,43,.92)!important;color:#fff!important;border:1px solid #53718d!important}
body.cc-atlas-theme main .collection-check-card.is-owned .collection-check-state{color:#9af1d1!important}
body.cc-atlas-theme main .collection-check-card.is-missing .collection-check-state{color:#ffd3d9!important}

/* F. Familles transversales encore basées sur d'anciens fonds sombres */
body.cc-atlas-theme main :is(.stat,.stats-metric,.cc-kpi-card,.cc-info-card,.metric-card){
 background:#fff!important;color:#193750!important;border:1px solid #dae5f0!important;
 border-radius:13px;box-shadow:0 5px 18px rgba(14,42,65,.065);
}
body.cc-atlas-theme main :is(.stat,.stats-metric,.cc-kpi-card,.cc-info-card,.metric-card) :is(b,strong,.stat-value,h2,h3){color:#17354d!important}
body.cc-atlas-theme main :is(.stat,.stats-metric,.cc-kpi-card,.cc-info-card,.metric-card) :is(.stat-label,.stat-sub,p,small){color:#597187!important}
/* Exceptions : les zones premium à fond sombre restent sombres avec texte clair. */
body.cc-atlas-theme main :is(.cc-dashboard .cc-value-card-v2,.cc-market-overview,.cc-action-tile,.set-hero){
 background:linear-gradient(135deg,#0f293e,#1b4561)!important;
 color:#fff!important;
}
body.cc-atlas-theme main :is(.cc-dashboard .cc-value-card-v2,.cc-market-overview,.cc-action-tile,.set-hero) :is(h1,h2,h3,b,strong){color:#fff!important}
body.cc-atlas-theme main :is(.cc-dashboard .cc-value-card-v2,.cc-market-overview,.cc-action-tile,.set-hero) :is(p,small){color:#d0dfed!important}
body.cc-atlas-theme main .cc-dashboard .cc-value-card-v2 .cc-value-number{color:#ffdc83!important}
body.cc-atlas-theme main .cc-dashboard :is(.cc-value-quick>div,.cc-coverage-block){background:#0f2b45!important}
body.cc-atlas-theme main .cc-dashboard :is(.cc-value-quick>div,.cc-coverage-block) :is(b,strong,small,span){color:#eaf2fa!important}
/* Accès clavier et textes de navigation. */
body.cc-atlas-theme main a:focus-visible,
body.cc-atlas-theme main button:focus-visible{outline:3px solid #3b82f6!important;outline-offset:2px!important}

@media(max-width:1100px){
 body.cc-atlas-theme main .collection-library-stats,
 body.cc-atlas-theme main .collection-library-stats.compact,
 body.cc-atlas-theme main .series-library-head .collection-library-stats.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 body.cc-atlas-theme main .collection-library-stats,
 body.cc-atlas-theme main .collection-library-stats.compact,
 body.cc-atlas-theme main .series-library-head .collection-library-stats.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.cc-atlas-theme main .collection-library-stats>div{padding:12px!important}
 body.cc-atlas-theme main .collection-library-stats b{font-size:18px!important}
 body.cc-atlas-theme main .collection-browser-panel{padding:15px!important}
 body.cc-atlas-theme main .collection-browser-panel-meta{gap:6px}
 body.cc-atlas-theme main .collection-full-checklist{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.cc-atlas-theme main .collection-series-actions>.btn{flex:1 1 100%;justify-content:center}
}
@media(max-width:480px){
 body.cc-atlas-theme main .collection-library-head h1{font-size:clamp(27px,8vw,35px)!important}
 body.cc-atlas-theme main .collection-library-stats,
 body.cc-atlas-theme main .collection-library-stats.compact,
 body.cc-atlas-theme main .series-library-head .collection-library-stats.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.cc-atlas-theme main .collection-library-stats>div:last-child:nth-child(odd){grid-column:1/-1}
 body.cc-atlas-theme main .collection-browser-pills{width:100%;display:flex;gap:7px}
 body.cc-atlas-theme main .collection-browser-pills .btn.btn-chip{flex:1}
 body.cc-atlas-theme main .collection-block-grid,
 body.cc-atlas-theme main .collection-series-grid{grid-template-columns:1fr}
 body.cc-atlas-theme main .collection-full-checklist{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.cc-atlas-theme main .collection-check-info{padding:8px}
 body.cc-atlas-theme main .collection-check-info b{font-size:11px!important}
}


