/* Repris à l'identique de l'ancien pages/tendances.php */
.pm-trends-page{
  display:block !important;
  width:min(calc(100% - 30px),1420px);
  margin:0 auto;
  padding:26px 0 56px;
}
.pm-trends-hero{
  position:relative;
  overflow:hidden;
  padding:30px 28px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  background:
    radial-gradient(circle at 85% 10%,rgba(249,115,22,.15),transparent 32%),
    radial-gradient(circle at 10% 90%,rgba(109,94,252,.14),transparent 34%),
    rgba(255,255,255,.025);
}
.pm-trends-hero h1{
  display:flex;
  align-items:center;
  gap:11px;
  margin:0 0 8px;
  font-size:clamp(1.9rem,4vw,3rem);
  font-weight:950;
  letter-spacing:-.03em;
}
.pm-trends-hero h1 i{color:#fb923c}
.pm-trends-hero p{
  max-width:830px;
  margin:0;
  color:#a5adb8;
  line-height:1.55;
}
.pm-trends-periods{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:19px;
}
.pm-trends-period{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:68px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  color:#bdc4cd;
  background:rgba(255,255,255,.03);
  text-decoration:none;
  font-size:.76rem;
  font-weight:900;
}
.pm-trends-period.active{
  color:#fff;
  border-color:rgba(249,115,22,.45);
  background:rgba(249,115,22,.15);
}
.pm-trends-filter{
  display:grid;
  grid-template-columns:1.1fr 1.5fr 1.2fr 1.5fr auto;
  gap:10px;
  margin:18px 0 20px;
  padding:14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:rgba(255,255,255,.025);
}
.pm-trends-field{
  display:grid;
  gap:5px;
  min-width:0;
}
.pm-trends-field label{
  color:#9099a5;
  font-size:.66rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.pm-trends-field select{
  min-width:0;
  width:100%;
  height:40px;
  padding:0 32px 0 10px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:9px;
  color:#eef1f4;
  background:#22262d;
}
.pm-trends-submit{
  align-self:end;
  height:40px;
  padding:0 16px;
  border:0;
  border-radius:9px;
  color:#fff;
  background:#f97316;
  font-weight:900;
}
.pm-trends-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 15px;
}
.pm-trends-summary strong{font-size:1rem}
.pm-trends-method{
  color:#858e9a;
  font-size:.7rem;
  line-height:1.4;
}
.pm-trends-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:start;
  gap:28px 22px;
}
.pm-trends-slot{
  position:relative;
  display:flex;
  justify-content:center;
  min-width:0;
}
.pm-trends-rank{
  position:absolute;
  z-index:5;
  top:-10px;
  left:max(0px,calc(50% - 155px));
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:10px;
  color:#fff;
  background:#1f232a;
  box-shadow:0 7px 18px rgba(0,0,0,.22);
  font-size:.74rem;
  font-weight:950;
}
.pm-trends-rank.is-top{
  color:#1d1206;
  border-color:#f59e0b;
  background:#fbbf24;
}
.pm-trends-slot .masonry-item{
  width:min(100%,330px)!important;
  max-width:330px!important;
  --rotate:0deg!important;
}
.pm-trends-slot .basic-card,
.pm-trends-slot .mod-card,
.pm-trends-slot .small-card{
  transform:rotate(0deg)!important;
}
.pm-trends-taxonomy{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:28px;
}
.pm-trends-tax-box{
  padding:15px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(255,255,255,.022);
}
.pm-trends-tax-box h2{
  margin:0 0 10px;
  font-size:.92rem;
  font-weight:900;
}
.pm-trends-chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.pm-trends-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 9px;
  border:1px solid rgba(109,94,252,.22);
  border-radius:999px;
  color:#c9c7ff;
  background:rgba(109,94,252,.08);
  text-decoration:none;
  font-size:.7rem;
  font-weight:800;
}
.pm-trends-chip small{
  color:#8992a0;
  font-size:.61rem;
}
.pm-trends-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
  padding-top:17px;
  border-top:1px solid rgba(255,255,255,.07);
}
.pm-trends-per-page{
  display:flex;
  align-items:center;
  gap:7px;
  color:#8f98a4;
  font-size:.72rem;
}
.pm-trends-per-page select{
  padding:6px 27px 6px 8px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:8px;
  color:#fff;
  background:#22262d;
}
.pm-trends-pages{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.pm-trends-page-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:32px;
  padding:0 9px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:8px;
  color:#c0c7d0;
  background:rgba(255,255,255,.03);
  text-decoration:none;
  font-size:.7rem;
  font-weight:850;
}
.pm-trends-page-btn.active{
  color:#fff;
  border-color:rgba(249,115,22,.42);
  background:rgba(249,115,22,.15);
}
.pm-trends-empty{
  padding:36px 20px;
  color:#98a1ad;
  text-align:center;
  border:1px dashed rgba(255,255,255,.10);
  border-radius:14px;
}
@media(max-width:1180px){
  .pm-trends-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pm-trends-filter{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pm-trends-submit{align-self:auto}
}
@media(max-width:850px){
  .pm-trends-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pm-trends-taxonomy{grid-template-columns:1fr}
}
@media(max-width:600px){
  .pm-trends-page{width:min(calc(100% - 18px),420px);padding-top:18px}
  .pm-trends-hero{padding:22px 18px}
  .pm-trends-filter{grid-template-columns:1fr}
  .pm-trends-grid{grid-template-columns:1fr}
  .pm-trends-footer{align-items:stretch;flex-direction:column}
  .pm-trends-per-page,.pm-trends-pages{justify-content:center}
}
