
.hn-steam-calendar{--bg:#050505;--panel:#101010;--panel2:#171717;--line:#343434;--text:#f5f5f5;--muted:#aaa;--red:#e50914;--red2:#a50009;color:var(--text);background:#000!important;border:1px solid #2c2c2c;border-radius:18px;overflow:hidden;padding:clamp(16px,3vw,30px);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:0 18px 50px rgba(0,0,0,.42)}
.hn-steam-calendar *{box-sizing:border-box}.hn-steam-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}.hn-steam-heading-main{min-width:0}.hn-steam-brand{display:inline-flex;align-items:center;max-width:100%;margin-bottom:8px}.hn-steam-logo{display:block;width:min(220px,100%);height:auto;max-width:100%;filter:drop-shadow(0 6px 18px rgba(0,0,0,.35))}.hn-steam-heading h2{margin:5px 0 7px;color:var(--red);font-size:clamp(1.45rem,3vw,2.2rem);line-height:1.12;text-shadow:0 0 22px rgba(229,9,20,.22)}.hn-steam-heading p{margin:0;color:var(--muted)}.hn-steam-count{min-width:84px;text-align:center;background:rgba(229,9,20,.08);border:1px solid rgba(229,9,20,.35);padding:10px 12px;border-radius:14px}.hn-steam-count strong{display:block;font-size:1.5rem;color:var(--red)}.hn-steam-count span{font-size:.75rem;color:var(--muted)}
.hn-steam-filters{display:grid;grid-template-columns:minmax(170px,1.5fr) repeat(5,minmax(125px,1fr));gap:10px;align-items:end;background:rgba(255,255,255,.025);border:1px solid var(--line);padding:12px;border-radius:14px;margin-bottom:18px}.hn-steam-filters label{display:grid;gap:5px}.hn-steam-filters label span{font-size:.72rem;color:#d2d2d2;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.hn-steam-filters input,.hn-steam-filters select,.hn-steam-reset{width:100%;min-width:0;border:1px solid #404040;border-radius:9px;background:#0d0d0d;color:#fff;padding:10px;font:inherit}.hn-steam-filters input:focus,.hn-steam-filters select:focus{outline:3px solid rgba(229,9,20,.18);border-color:var(--red)}.hn-steam-reset-row{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:2px}.hn-steam-reset{width:auto;min-width:210px;cursor:pointer;background:linear-gradient(90deg,var(--red2),var(--red));border-color:var(--red);font-weight:800}.hn-steam-reset:hover{filter:brightness(1.1)}
.hn-steam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hn-steam-card{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:15px;overflow:hidden;min-width:0;transition:.18s}.hn-steam-card:hover{transform:translateY(-2px);border-color:#7b1017;box-shadow:0 12px 26px rgba(0,0,0,.36)}.hn-steam-card.hn-steam-hidden{display:none!important}.hn-steam-media{position:relative;aspect-ratio:460/215;background:#080808;overflow:hidden}.hn-steam-media img{width:100%;height:100%;object-fit:cover;display:block}.hn-steam-placeholder{height:100%;display:flex;align-items:center;justify-content:center;font-weight:900;letter-spacing:.12em;color:#fff;background:radial-gradient(circle at 30% 20%,#5b0006,#090909)}.hn-steam-discount{position:absolute;right:10px;top:10px;background:var(--red);color:#fff;font-size:.85rem;font-weight:900;padding:6px 8px;border-radius:7px}.hn-steam-body{display:grid;grid-template-columns:66px minmax(0,1fr);gap:12px;padding:13px}.hn-steam-date{border-right:1px solid var(--line);padding-right:11px;text-align:center}.hn-steam-date strong{display:block;color:var(--red);font-size:1.65rem;line-height:1}.hn-steam-date span{display:block;color:var(--muted);font-size:.69rem;line-height:1.2;margin-top:5px;text-transform:uppercase}.hn-steam-main{min-width:0}.hn-steam-main h3{margin:0 0 8px;color:var(--red);font-size:1.05rem;line-height:1.25}.hn-steam-badges{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}.hn-steam-badges span{font-size:.66rem;border:1px solid #424242;background:#0b0b0b;color:#e8e8e8;padding:3px 6px;border-radius:999px}.hn-steam-badges .hn-console-badge{border-color:#7b1017;background:#240004;color:#ffdadd}.hn-steam-badges .hn-subgenre-badge{border-color:#5c2330;background:#1b1013;color:#f0c9d0}.hn-steam-description{margin:8px 0;color:#cacaca;font-size:.82rem;line-height:1.45}.hn-steam-studio{margin:7px 0;color:var(--muted);font-size:.76rem}.hn-steam-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin-top:11px}.hn-steam-price{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.hn-steam-price del{color:#777;font-size:.72rem}.hn-steam-price strong{color:#fff;font-size:.98rem}.hn-steam-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.hn-steam-actions a{color:#fff;text-decoration:none;font-size:.7rem;background:#500006;border:1px solid #8e1018;border-radius:7px;padding:6px 8px;font-weight:750}.hn-steam-actions a:hover{background:var(--red)}.hn-steam-empty{padding:30px 12px;text-align:center;color:var(--muted)}.hn-steam-empty[hidden]{display:none}.hn-steam-credit{margin:16px 0 0;color:#888;font-size:.69rem;line-height:1.4;text-align:center}
@media(max-width:1250px){.hn-steam-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.hn-steam-reset{min-height:42px}}
@media(max-width:980px){.hn-steam-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hn-steam-grid{grid-template-columns:1fr}}
@media(max-width:600px){.hn-steam-reset-row{justify-content:stretch}.hn-steam-reset{width:100%;min-width:0}.hn-steam-calendar{border-radius:12px;padding:13px}.hn-steam-heading{align-items:center}.hn-steam-logo{width:min(180px,100%)}.hn-steam-count{min-width:66px;padding:8px}.hn-steam-heading p{font-size:.82rem}.hn-steam-filters{grid-template-columns:1fr;gap:8px}.hn-steam-body{grid-template-columns:53px minmax(0,1fr);gap:9px;padding:10px}.hn-steam-date{padding-right:8px}.hn-steam-date strong{font-size:1.35rem}.hn-steam-bottom{display:grid;gap:8px}.hn-steam-actions{justify-content:flex-start}.hn-steam-actions a{font-size:.72rem}.hn-steam-main h3{font-size:.98rem}}

/* Version 1.1.3 : fond noir uniforme */
.hn-steam-calendar{background:#000!important;background-image:none!important;}
.hn-steam-calendar,.hn-steam-calendar .hn-steam-grid,.hn-steam-calendar .hn-steam-empty,.hn-steam-calendar .hn-steam-credit{background-color:#000;}
.hn-steam-calendar .hn-steam-filters{background:#080808;}
.hn-steam-calendar .hn-steam-card{background:linear-gradient(180deg,#171717,#0b0b0b);}

/* Classement chronologique : mois de l'année en cours, puis trimestres suivants */
.hn-steam-periods{display:grid;gap:26px;background:#000}
.hn-steam-period-group{min-width:0;background:#000}
.hn-steam-period-group.hn-steam-period-hidden{display:none!important}
.hn-steam-period-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:0 2px 10px;border-bottom:1px solid #4c0b10}
.hn-steam-period-heading h3{margin:0;color:var(--red);font-size:clamp(1.15rem,2.4vw,1.55rem);line-height:1.2;text-transform:capitalize;letter-spacing:.015em}
.hn-steam-period-count{flex:0 0 auto;color:#ddd;background:#140002;border:1px solid #671018;border-radius:999px;padding:5px 9px;font-size:.72rem;font-weight:800}
@media(max-width:600px){.hn-steam-periods{gap:21px}.hn-steam-period-heading{margin-bottom:9px}.hn-steam-period-heading h3{font-size:1.08rem}.hn-steam-period-count{font-size:.67rem;padding:4px 7px}}

/* Version 1.2.1 : périodes toujours visibles même sans jeu importé */
.hn-steam-period-empty{grid-column:1/-1;margin:0;padding:18px;border:1px dashed #4b2023;border-radius:12px;background:#080808;color:#aaa;text-align:center;font-size:.86rem}
.hn-steam-period-empty[hidden]{display:none!important}


/* Version 1.2.3 : isolation visuelle contre les styles du thème WordPress */
.hn-steam-calendar{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  clear:both!important;
  float:none!important;
  isolation:isolate!important;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  color:#f5f5f5!important;
  background:#000!important;
  background-image:none!important;
}
.hn-steam-calendar *,
.hn-steam-calendar *::before,
.hn-steam-calendar *::after{box-sizing:border-box!important}
.hn-steam-calendar *{font-family:inherit}
.hn-steam-calendar ::selection{background:#8b0009!important;color:#fff!important}
.hn-steam-calendar ::-moz-selection{background:#8b0009!important;color:#fff!important}

/* Neutralise les fonds, marges et flottements imposés par certains thèmes. */
.hn-steam-calendar .hn-steam-heading,
.hn-steam-calendar .hn-steam-heading>div,
.hn-steam-calendar .hn-steam-period-heading,
.hn-steam-calendar .hn-steam-main,
.hn-steam-calendar .hn-steam-bottom,
.hn-steam-calendar .hn-steam-price,
.hn-steam-calendar .hn-steam-actions{
  float:none!important;
  width:auto!important;
  max-width:none!important;
  background:transparent!important;
}
.hn-steam-calendar h2,
.hn-steam-calendar h3,
.hn-steam-calendar p,
.hn-steam-calendar label,
.hn-steam-calendar .hn-steam-date strong,
.hn-steam-calendar .hn-steam-date span,
.hn-steam-calendar .hn-steam-price strong,
.hn-steam-calendar .hn-steam-price del{
  float:none!important;
  clear:none!important;
  width:auto!important;
  max-width:none!important;
  padding-left:0!important;
  padding-right:0!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}

/* Grille adaptative basée sur la largeur du contenu, pas sur celle du navigateur. */
.hn-steam-calendar .hn-steam-filters{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(185px,100%),1fr))!important;
  grid-auto-flow:row!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  gap:12px!important;
  align-items:end!important;
  float:none!important;
  clear:both!important;
  background:#080808!important;
}
.hn-steam-calendar .hn-steam-filters>label{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:none!important;
  position:static!important;
  background:transparent!important;
}
.hn-steam-calendar .hn-steam-filters>label>span{
  display:block!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:none!important;
  background:transparent!important;
  color:#d2d2d2!important;
}
.hn-steam-calendar .hn-steam-filters input,
.hn-steam-calendar .hn-steam-filters select{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  margin:0!important;
  float:none!important;
  clear:none!important;
  background:#0d0d0d!important;
  color:#fff!important;
  border:1px solid #404040!important;
  -webkit-appearance:auto!important;
  appearance:auto!important;
}
.hn-steam-calendar .hn-steam-reset-row{
  display:flex!important;
  grid-column:1/-1!important;
  width:100%!important;
  margin:0!important;
  padding-top:2px!important;
  float:none!important;
  clear:both!important;
  justify-content:flex-end!important;
  background:transparent!important;
}
.hn-steam-calendar .hn-steam-reset{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:210px!important;
  max-width:100%!important;
  margin:0!important;
  float:none!important;
  clear:none!important;
  color:#fff!important;
  background:linear-gradient(90deg,#a50009,#e50914)!important;
  border:1px solid #e50914!important;
}

.hn-steam-calendar .hn-steam-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr))!important;
  width:100%!important;
  min-width:0!important;
}
.hn-steam-calendar .hn-steam-card{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  float:none!important;
  clear:none!important;
  background:linear-gradient(180deg,#171717,#0b0b0b)!important;
}
.hn-steam-calendar .hn-steam-card h3,
.hn-steam-calendar .hn-steam-description,
.hn-steam-calendar .hn-steam-studio{
  background:transparent!important;
}
.hn-steam-calendar .hn-steam-badges span{
  display:inline-flex!important;
  width:auto!important;
  margin:0!important;
  float:none!important;
}
.hn-steam-calendar .hn-steam-actions a{
  display:inline-flex!important;
  width:auto!important;
  margin:0!important;
  float:none!important;
  color:#fff!important;
  background:#500006!important;
}

@media(max-width:600px){
  .hn-steam-calendar .hn-steam-filters{grid-template-columns:1fr!important}
  .hn-steam-calendar .hn-steam-reset-row{justify-content:stretch!important}
  .hn-steam-calendar .hn-steam-reset{width:100%!important;min-width:0!important}
}

/* Version 1.2.4 : verrouillage renforcé contre les fonds du thème */
body .entry-content .hn-steam-calendar .hn-steam-filters,
body .site-content .hn-steam-calendar .hn-steam-filters,
body main .hn-steam-calendar .hn-steam-filters{
  background:#080808!important;
  background-color:#080808!important;
  background-image:none!important;
}
body .entry-content .hn-steam-calendar h2,
body .entry-content .hn-steam-calendar h3,
body .entry-content .hn-steam-calendar p,
body .entry-content .hn-steam-calendar label,
body .entry-content .hn-steam-calendar label>span,
body .site-content .hn-steam-calendar h2,
body .site-content .hn-steam-calendar h3,
body .site-content .hn-steam-calendar p,
body .site-content .hn-steam-calendar label,
body .site-content .hn-steam-calendar label>span{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}

/* Version 1.2.5 : isolation totale dans un Shadow DOM.
   Le thème WordPress ne peut plus atteindre le contenu du calendrier. */
:host{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;color-scheme:dark}
.hn-steam-calendar,
.hn-steam-calendar *{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-tap-highlight-color:transparent;
}
.hn-steam-calendar input,
.hn-steam-calendar select,
.hn-steam-calendar option,
.hn-steam-calendar button,
.hn-steam-calendar a{
  -webkit-user-select:auto!important;
  user-select:auto!important;
}
.hn-steam-calendar ::selection{background:#8b0009!important;color:#fff!important}
.hn-steam-calendar ::-moz-selection{background:#8b0009!important;color:#fff!important}



/* Version 1.2.6 : largeur calée sur la colonne réelle de l’article.
   Les container queries utilisent la largeur du composant, pas celle du navigateur. */
:host{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 auto!important;
  padding:0!important;
  box-sizing:border-box!important;
  flex:1 1 100%!important;
  align-self:stretch!important;
  grid-column:1/-1!important;
  container-type:inline-size;
  contain:style paint;
}
.hn-steam-calendar{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:clamp(14px,2.1cqw,28px)!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.hn-steam-calendar .hn-steam-filters{
  grid-template-columns:minmax(0,1fr)!important;
}
.hn-steam-calendar .hn-steam-grid{
  grid-template-columns:minmax(0,1fr)!important;
}
.hn-steam-calendar .hn-steam-card,
.hn-steam-calendar .hn-steam-media,
.hn-steam-calendar .hn-steam-body,
.hn-steam-calendar .hn-steam-main{
  min-width:0!important;
  max-width:100%!important;
}
.hn-steam-calendar .hn-steam-media img{
  max-width:100%!important;
}

@container (min-width:620px){
  .hn-steam-calendar .hn-steam-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .hn-steam-calendar .hn-steam-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@container (min-width:930px){
  .hn-steam-calendar .hn-steam-filters{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .hn-steam-calendar .hn-steam-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@container (min-width:1180px){
  .hn-steam-calendar .hn-steam-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@container (max-width:619px){
  .hn-steam-calendar .hn-steam-reset-row{
    justify-content:stretch!important;
  }
  .hn-steam-calendar .hn-steam-reset{
    width:100%!important;
    min-width:0!important;
  }
}

/* Repli pour les navigateurs sans container queries. */
@supports not (container-type:inline-size){
  .hn-steam-calendar .hn-steam-filters{
    grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))!important;
  }
  .hn-steam-calendar .hn-steam-grid{
    grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr))!important;
  }
}
