/* ==========================================================================
   Pages « application » : connexion, compte, boutique, à propos.
   S'ajoute à site.css (mêmes variables).
   ========================================================================== */

body.app {
  background: radial-gradient(90% 60% at 80% -10%, rgba(217, 178, 92, 0.07), transparent 60%), var(--bg);
}
.app-main {
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 56px));
  padding-bottom: clamp(72px, 10vw, 140px);
  min-height: 80vh;
}

/* ---------- Formulaires ---------- */
.field {
  display: grid;
  gap: 8px;
}
.field + .field {
  margin-top: 20px;
}
.field label,
.label {
  font: 600 11.5px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.input,
.select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: 400 16px/1 var(--font-body);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input::placeholder {
  color: var(--mute);
}
.input:hover,
.select:hover {
  border-color: rgba(217, 178, 92, 0.3);
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(8, 11, 17, 0.95);
  box-shadow: 0 0 0 4px rgba(217, 178, 92, 0.12);
}
.input[aria-invalid="true"] {
  border-color: var(--bad);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='m1 1 5 5 5-5' fill='none' stroke='%23d9b25c' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.pw {
  position: relative;
}
.pw .input {
  padding-right: 52px;
}
.pw button {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--dim);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pw button:hover {
  color: var(--gold-hi);
}
.pw svg {
  width: 20px;
  height: 20px;
}
.hint {
  font-size: 13px;
  color: var(--mute);
}
.meter {
  height: 4px;
  border-radius: 4px;
  background: var(--hair);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bad);
  transition: width 0.3s, background 0.3s;
}
.form-msg {
  display: none;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  border: 1px solid;
}
.form-msg.is-show {
  display: block;
}
.form-msg--bad {
  color: #ffb7b2;
  background: rgba(229, 103, 95, 0.1);
  border-color: rgba(229, 103, 95, 0.4);
}
.form-msg--ok {
  color: #b5efcf;
  background: rgba(98, 208, 143, 0.1);
  border-color: rgba(98, 208, 143, 0.4);
}
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--dim);
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(8, 11, 17, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.checkbox input:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border: solid #1a1305;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}
.checkbox a {
  color: var(--gold-hi);
  border-bottom: 1px solid var(--line-strong);
}

/* ---------- Connexion / inscription ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.auth__art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(36px, 5vw, 80px);
  isolation: isolate;
}
.auth__art > img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  z-index: -2;
}
.auth__art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(8, 11, 17, 0.92) 0%, rgba(8, 11, 17, 0.35) 55%, rgba(8, 11, 17, 0.55) 100%), linear-gradient(90deg, transparent 60%, var(--bg) 100%);
}
.auth__art .logo {
  width: min(360px, 70%);
}
.auth__art ul {
  margin-top: 30px;
  display: grid;
  gap: 14px;
  max-width: 44ch;
}
.auth__art li {
  display: flex;
  gap: 12px;
  color: rgba(236, 231, 218, 0.9);
  font-size: 15px;
}
.auth__art li svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex: none;
  margin-top: 2px;
}
.auth__form {
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 56px;
}
.auth-card {
  width: min(100%, 460px);
}
.auth-card h1 {
  font: 600 clamp(28px, 3vw, 38px)/1.1 var(--font-title);
  letter-spacing: 0.02em;
}
.auth-card .sub {
  margin-top: 12px;
  color: var(--dim);
}
.seg {
  margin: 32px 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: rgba(8, 11, 17, 0.6);
}
.seg a {
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s, background 0.2s;
}
.seg a[aria-current="page"] {
  background: rgba(217, 178, 92, 0.14);
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.auth-card .btn {
  width: 100%;
  margin-top: 28px;
}
.auth-links {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--dim);
}
.auth-links a {
  color: var(--gold-hi);
}
.auth-links a:hover {
  text-decoration: underline;
}
@media (max-width: 960px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth__art {
    display: none;
  }
}

/* ---------- Compte ---------- */
.acc-head {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  isolation: isolate;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}
.acc-head > img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 35%;
  z-index: -2;
  filter: saturate(0.8) brightness(0.55);
}
.acc-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 12, 18, 0.96), rgba(9, 12, 18, 0.55) 60%, rgba(9, 12, 18, 0.8));
}
.acc-avatar {
  width: clamp(84px, 9vw, 120px);
  height: clamp(84px, 9vw, 120px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 30% 25%, #f5e2a0, #b98f33 70%);
  color: #1a1305;
  font: 700 clamp(34px, 4vw, 52px)/1 var(--font-title);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold), 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}
.acc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acc-avatar .lvl {
  position: absolute;
  bottom: -2px;
  left: 50%;
  translate: -50% 0;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--gold-hi);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.08em;
  white-space: nowrap;
  border: 1px solid var(--gold);
}
.acc-id h1 {
  font: 600 clamp(26px, 3.4vw, 42px)/1.1 var(--font-title);
  letter-spacing: 0.02em;
}
.acc-id .real {
  color: var(--dim);
  margin-top: 4px;
}
.acc-id .badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.xp {
  margin-top: 18px;
  max-width: 440px;
}
.xp__top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 8px;
}
.bar {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b98f33, #f5e2a0);
  box-shadow: 0 0 14px rgba(245, 226, 160, 0.5);
}
.acc-rank {
  text-align: right;
}
.acc-rank .n {
  font: 700 clamp(30px, 4vw, 48px)/1 var(--font-title);
  color: var(--gold-hi);
}
.acc-rank small {
  display: block;
  margin-top: 6px;
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.acc-layout {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.acc-nav {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 4px;
}
.acc-nav button,
.acc-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--dim);
  font: 500 15px/1 var(--font-body);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.acc-nav svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.acc-nav button:hover,
.acc-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.acc-nav [aria-selected="true"] {
  color: var(--gold-hi);
  background: rgba(217, 178, 92, 0.1);
  box-shadow: inset 2px 0 0 var(--gold);
}
.acc-nav .lock {
  margin-left: auto;
  width: 15px;
  height: 15px;
  opacity: 0.6;
}
.acc-nav hr {
  border: 0;
  height: 1px;
  background: var(--hair);
  margin: 10px 8px;
}
@media (max-width: 980px) {
  .acc-head {
    grid-template-columns: auto 1fr;
  }
  .acc-rank {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 14px;
  }
  .acc-rank small {
    margin: 0;
  }
  .acc-layout {
    grid-template-columns: 1fr;
  }
  .acc-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .acc-nav button,
  .acc-nav a {
    flex: none;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }
  .acc-nav [aria-selected="true"] {
    box-shadow: inset 0 -2px 0 var(--gold);
  }
  .acc-nav hr {
    display: none;
  }
}
@media (max-width: 560px) {
  .acc-head {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .acc-id .badges {
    justify-content: center;
  }
  .xp {
    margin-inline: auto;
  }
  .acc-rank {
    justify-content: center;
  }
}

.tab {
  display: none;
}
.tab.is-active {
  display: block;
  animation: tabIn 0.45s var(--ease);
}
@keyframes tabIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.tab-title {
  font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--font-title);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.tab-sub {
  color: var(--dim);
  margin-bottom: 32px;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}
.panel {
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(22, 29, 42, 0.7), rgba(14, 19, 29, 0.7));
}
.panel + .panel,
.grid + .panel,
.panel + .grid {
  margin-top: 18px;
}
.grid > .panel {
  margin-top: 0 !important;
}
.panel h3 {
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel h3 .more {
  margin-left: auto;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--dim);
}
.stat .k {
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.stat .v {
  margin-top: 14px;
  font: 600 clamp(26px, 2.6vw, 34px)/1 var(--font-title);
  color: var(--text);
}
.stat .v small {
  font: 500 14px var(--font-body);
  color: var(--dim);
  margin-left: 4px;
}
.stat .d {
  margin-top: 10px;
  font-size: 13px;
  color: var(--mute);
}
.wallet-list {
  display: grid;
  gap: 12px;
}
.wallet__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(8, 11, 17, 0.5);
  border: 1px solid var(--hair);
}
.wallet__row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.wallet__row b {
  margin-left: auto;
  font: 600 20px/1 var(--font-title);
}
.wallet__row span {
  color: var(--dim);
  font-size: 14px;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--mute);
  border: 1px dashed var(--hair);
  border-radius: 12px;
  font-size: 14.5px;
}
.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart text {
  fill: var(--mute);
  font: 500 11px var(--font-body);
}
.chart .grid-l {
  stroke: var(--hair);
  stroke-width: 1;
}
.chart .area {
  fill: url(#areaG);
}
.chart .line {
  fill: none;
  stroke: var(--gold-hi);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .pt {
  fill: var(--bg);
  stroke: var(--gold-hi);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.15s;
}
.chart .pt.is-on {
  opacity: 1;
}
.chart .hit {
  fill: transparent;
  cursor: pointer;
}
.chart-tip {
  position: absolute;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(8, 11, 17, 0.96);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  white-space: nowrap;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 3;
}
.chart-tip.is-on {
  opacity: 1;
}
.chart-wrap {
  position: relative;
}
.split-bar {
  display: flex;
  height: 12px;
  border-radius: 12px;
  overflow: hidden;
  gap: 2px;
}
.split-bar i {
  display: block;
  height: 100%;
}
.legend {
  margin-top: 14px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}
.legend b {
  color: var(--text);
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
}
.rows {
  display: grid;
  gap: 12px;
}
.row-bar {
  display: grid;
  grid-template-columns: 150px 1fr 56px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.row-bar .bar {
  height: 6px;
}
.row-bar span:last-child {
  text-align: right;
  color: var(--dim);
}
.row-bar .nm {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-bar .nm img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
@media (max-width: 520px) {
  .row-bar {
    grid-template-columns: 110px 1fr 44px;
  }
}
.best {
  display: flex;
  gap: 22px;
  align-items: center;
}
.best .ec-card {
  width: 148px;
  flex: none;
}
.best h4 {
  font: 600 20px/1.2 var(--font-title);
}
.best p {
  color: var(--dim);
  font-size: 14px;
  margin-top: 6px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.tbl th {
  text-align: left;
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 14px 14px;
}
.tbl td {
  padding: 15px 14px;
  border-top: 1px solid var(--hair);
}
.tbl td:last-child,
.tbl th:last-child {
  text-align: right;
}
.tbl td:first-child,
.tbl td:last-child {
  white-space: nowrap;
}
.tbl td:first-child,
.tbl td:last-child {
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font: 600 11px/1.2 var(--font-body);
  letter-spacing: 0.06em;
  border: 1px solid var(--hair);
  color: var(--dim);
}
.pill--win,
.pill--ok {
  color: var(--ok);
  border-color: rgba(98, 208, 143, 0.4);
  background: rgba(98, 208, 143, 0.08);
}
.pill--loss,
.pill--bad {
  color: var(--bad);
  border-color: rgba(229, 103, 95, 0.4);
  background: rgba(229, 103, 95, 0.08);
}
.pill--draw {
  color: var(--warn);
  border-color: rgba(240, 178, 74, 0.4);
  background: rgba(240, 178, 74, 0.08);
}

/* Amis */
.friend {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: rgba(8, 11, 17, 0.45);
  transition: border-color 0.2s;
}
.friend + .friend {
  margin-top: 10px;
}
.friend:hover {
  border-color: var(--line);
}
.friend .avatar {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: visible;
}
.dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #0d121b;
  background: var(--mute);
}
.dot--online {
  background: var(--ok);
}
.dot--menu {
  background: var(--ok);
}
.dot--match {
  background: var(--warn);
}
.dot--launcher {
  background: #ff9f2e;
}
.dot--offline {
  background: #5d5a50;
}
.friend .who b {
  display: block;
  font-weight: 600;
}
.friend .who small {
  color: var(--dim);
  font-size: 13px;
}
.friend-add {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}
.friend-add .input {
  height: 46px;
}
.msgbox {
  display: none;
  margin-top: 12px;
  grid-column: 1 / -1;
  gap: 10px;
}
.msgbox.is-open {
  display: flex;
}
.msgbox .input {
  height: 42px;
}

/* Collection */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.toolbar .input,
.toolbar .select {
  height: 46px;
  width: auto;
  min-width: 190px;
  flex: 1 1 190px;
}
.toolbar .input--grow {
  flex: 2 1 240px;
}
.coll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.coll-count {
  color: var(--dim);
  margin-bottom: 18px;
  font-size: 14px;
}
.coll-count b {
  color: var(--gold-hi);
}
.progress-ring {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Reglages */
.danger {
  border-color: rgba(229, 103, 95, 0.3);
}
.danger h3 {
  color: var(--bad);
}
.set-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 0;
}
.set-row + .set-row {
  border-top: 1px solid var(--hair);
}
.set-row p {
  color: var(--dim);
  font-size: 14px;
  max-width: 52ch;
}
.set-row b {
  display: block;
  margin-bottom: 4px;
}
.set-form {
  display: none;
  gap: 12px;
  margin-top: 6px;
  flex-direction: column;
  width: 100%;
}
.set-form.is-open {
  display: flex;
}
.set-form .btn {
  align-self: flex-start;
}

/* ---------- Boutique ---------- */
.shop-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.shop-head h1 {
  font: 600 clamp(32px, 4.4vw, 56px)/1.05 var(--font-title);
  letter-spacing: 0.02em;
}
.shop-wallet {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-wallet .wallet__row {
  padding: 8px 16px 8px 10px;
}
.shop-wallet .wallet__row img {
  width: 28px;
  height: 28px;
}
.shop-wallet .wallet__row b {
  font-size: 18px;
  margin-left: 6px;
}
.shop-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.shop-tabs button {
  height: 44px;
  padding: 0 22px;
  border-radius: 99px;
  border: 1px solid var(--hair);
  background: none;
  color: var(--dim);
  font: 600 12.5px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.shop-tabs button:hover {
  color: var(--text);
  border-color: var(--line);
}
.shop-tabs button[aria-selected="true"] {
  color: #1a1305;
  background: linear-gradient(180deg, #f3dc94, #d9b25c);
  border-color: transparent;
}
.weekly {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(60% 140% at 0% 50%, rgba(217, 178, 92, 0.16), transparent 70%), linear-gradient(135deg, #151c29, #0d1119);
  margin-bottom: clamp(36px, 5vw, 64px);
  overflow: hidden;
}
.weekly .ec-card {
  width: clamp(130px, 16vw, 190px);
}
.weekly h2 {
  font: 600 clamp(24px, 2.8vw, 34px)/1.15 var(--font-title);
}
.weekly p {
  margin-top: 10px;
  color: var(--dim);
  max-width: 48ch;
}
.weekly .buy {
  text-align: center;
}
@media (max-width: 800px) {
  .weekly {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: 18px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(22, 29, 42, 0.75), rgba(13, 18, 28, 0.75));
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.product:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}
.product__img {
  height: 210px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  position: relative;
}
.product__img::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(closest-side, rgba(217, 178, 92, 0.2), transparent);
  filter: blur(16px);
}
.product__img img {
  position: relative;
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.6));
  transition: transform 0.6s var(--ease);
}
.product:hover .product__img img {
  transform: scale(1.06) rotate(-2deg);
}
.product__img .stack {
  display: grid;
  height: 100%;
  place-items: center;
}
.product__img .stack img {
  grid-area: 1 / 1;
  max-height: 100%;
}
.product__img .stack img:first-child {
  transform: translateX(-9%) rotate(-5deg) scale(0.94);
}
.product__img .stack img + img {
  transform: translateX(9%) rotate(5deg) scale(0.94);
  z-index: 1;
}
.product:hover .product__img .stack img:first-child {
  transform: translateX(-13%) rotate(-8deg) scale(0.96);
}
.product:hover .product__img .stack img + img {
  transform: translateX(13%) rotate(8deg) scale(0.96);
}
.product h3 {
  font: 600 17px/1.25 var(--font-title);
  letter-spacing: 0.03em;
}
.product p {
  margin-top: 10px;
  color: var(--dim);
  font-size: 14px;
  flex: 1;
}
.product__foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 20px/1 var(--font-title);
}
.price img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.price small {
  font: 500 13px var(--font-body);
  color: var(--dim);
}
.tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}
.tag--disc {
  color: #1a1305;
  background: var(--gold);
  border-color: transparent;
}
.packs-eur {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.pack-eur {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  padding: 34px 22px 26px;
  border-radius: 18px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(22, 29, 42, 0.75), rgba(13, 18, 28, 0.75));
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.pack-eur:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}
.pack-eur[aria-pressed="true"] {
  border-color: var(--gold);
  background: radial-gradient(80% 80% at 50% 0%, rgba(217, 178, 92, 0.16), transparent 70%), linear-gradient(180deg, rgba(30, 38, 54, 0.9), rgba(15, 20, 30, 0.9));
  box-shadow: 0 0 0 1px var(--gold), 0 20px 40px -20px rgba(217, 178, 92, 0.4);
}
.pack-eur img {
  height: 78px;
  width: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}
.pack-eur b {
  font: 600 26px/1 var(--font-title);
}
.pack-eur small {
  display: block;
  color: var(--dim);
  margin-top: 6px;
}
.pack-eur .eur {
  font: 600 18px/1 var(--font-body);
  color: var(--gold-hi);
}
.consent {
  margin-top: 40px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: rgba(8, 11, 17, 0.5);
  display: grid;
  gap: 14px;
}
.gate {
  max-width: 640px;
  margin: clamp(20px, 6vw, 80px) auto 0;
  text-align: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 29, 42, 0.7), rgba(13, 18, 28, 0.7));
}
.gate svg {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin: 0 auto 22px;
}
.gate h1,
.gate h2 {
  font: 600 clamp(24px, 3vw, 34px)/1.15 var(--font-title);
}
.gate p {
  margin-top: 16px;
  color: var(--dim);
}
.gate .btn {
  margin-top: 30px;
}

/* ---------- Hotel des ventes ---------- */
.auc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}
.auc-item {
  display: grid;
  gap: 14px;
}
.auc-item .meta {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--dim);
}
.auc-item .meta b {
  color: var(--text);
  font-weight: 600;
}
.auc-item .btns {
  display: flex;
  gap: 8px;
}
.auc-item .btns .btn {
  flex: 1;
  padding: 0 10px;
}

/* ---------- Solde, modes d'affichage, popin de confirmation ---------- */
.fr-ico {
  width: 16px;
  height: 16px;
  display: inline;
  vertical-align: -3px;
}
.wallet {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px auto;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(9, 12, 18, 0.9);
  backdrop-filter: blur(6px);
  font-size: 14px;
}
.wallet__k {
  color: var(--dim);
}
.wallet__v {
  color: var(--gold-hi);
  font-weight: 600;
  font-size: 17px;
}
.wallet .fr-ico {
  width: 20px;
  height: 20px;
  vertical-align: -5px;
}
.view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.view-toggle button {
  width: 46px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  border: 0;
  cursor: pointer;
}
.view-toggle button + button {
  border-left: 1px solid var(--line);
}
.view-toggle button:hover {
  color: var(--text);
}
.view-toggle button[aria-pressed="true"] {
  background: rgba(217, 178, 92, 0.2);
  color: var(--gold-hi);
}
.view-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.coll.view-small {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}
.auc.view-small {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.auc.view-small .meta {
  font-size: 12px;
  gap: 3px;
}
.auc.view-small .btns {
  flex-direction: column;
}
.coll.view-list,
.auc.view-list {
  grid-template-columns: 1fr;
  gap: 8px;
}
.lrow {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.lrow:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.lrow__thumb .ec-card {
  filter: none;
}
.lrow__main {
  min-width: 0;
}
.lrow__main b {
  color: var(--text);
}
.lrow__sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--dim);
}
.lrow__qty {
  font-weight: 600;
  color: var(--gold-hi);
  font-size: 16px;
}
.rtag {
  font-weight: 600;
  color: var(--r-commune);
}
.rtag[data-r="Rare"] { color: var(--r-rare); }
.rtag[data-r="Epique"] { color: var(--r-epique); }
.rtag[data-r="Legendaire"] { color: var(--r-legendaire); }
.rtag[data-r="Mythique"] { color: var(--r-mythique); }
.rtag[data-r="Secret"] { color: var(--r-secret); }
.rtag--foil {
  font-size: 12px;
  color: var(--info);
}
.auc-item.lrow {
  grid-template-columns: 56px minmax(120px, 1fr) minmax(0, 2.2fr) auto;
}
.auc-item.lrow .meta {
  font-size: 13px;
  gap: 2px;
}
.auc-item.lrow .btns {
  flex-direction: column;
  min-width: 130px;
}
.dlg-ov {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(3px);
}
.dlg {
  width: min(480px, 100%);
  display: grid;
  gap: 14px;
}
.dlg h3 {
  margin: 0;
  color: var(--gold-hi);
}
.dlg__body {
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--dim);
}
.dlg__body p {
  margin: 0;
}
.dlg__body b {
  color: var(--text);
}
.dlg__body .dim {
  font-size: 13px;
}
.dlg__bal {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
}
.dlg__bal span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.dlg__bal span:last-child b {
  color: var(--gold-hi);
}
.dlg__btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .auc-item.lrow {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .auc-item.lrow .meta,
  .auc-item.lrow .btns {
    grid-column: 1 / -1;
  }
  .auc-item.lrow .btns {
    flex-direction: row;
  }
  .wallet {
    margin-inline: 0;
    width: 100%;
  }
}

/* ---------- A propos ---------- */
.about-hero {
  text-align: center;
  padding-block: clamp(20px, 4vw, 48px) clamp(56px, 8vw, 110px);
}
.about-hero img {
  width: clamp(150px, 20vw, 230px);
  margin: 0 auto 36px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(56px, 8vw, 100px);
}
.about-grid .panel {
  padding: 34px 28px;
}
.about-grid h3 {
  font: 600 18px/1.2 var(--font-title);
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 12px;
  display: block;
}
.about-grid p {
  color: var(--dim);
  font-size: 15px;
}
.about-grid svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: 20px;
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.contact {
  margin-top: clamp(64px, 9vw, 120px);
  text-align: center;
}
.contact a.link {
  font-size: 18px;
}

/* ---------- Pages juridiques ---------- */
.legal {
  max-width: 780px;
  margin-inline: auto;
}
.legal h1 {
  font: 600 clamp(30px, 4vw, 46px)/1.1 var(--font-title);
  margin-bottom: 36px;
}
.legal h2 {
  font: 600 20px/1.3 var(--font-title);
  color: var(--gold-hi);
  margin: 40px 0 12px;
}
.legal p,
.legal li {
  color: var(--dim);
  margin-top: 12px;
}
.legal ul {
  list-style: disc;
  padding-left: 22px;
}
.legal a {
  color: var(--gold-hi);
  border-bottom: 1px solid var(--line-strong);
}
.legal .todo {
  background: rgba(217, 178, 92, 0.12);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 1px 6px;
  color: #ffe9a8;
}
.legal h3 {
  font: 600 16px/1.3 var(--font-title);
  color: var(--text);
  margin: 28px 0 8px;
}
.legal code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}
.about-hero + .about-grid {
  margin-top: 0;
}
@media (max-width: 560px) {
  .coll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .toolbar .input,
  .toolbar .select {
    min-width: 140px;
    flex-basis: 140px;
  }
  .toolbar .input--grow {
    flex-basis: 100%;
  }
  .weekly .buy {
    width: 100%;
  }
}

/* ===== Compte de TEST (staging) : avertissements en rouge ===== */
.env-strip {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 300;
  padding: 10px 16px;
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
  color: #f3e9d2;
  background: repeating-linear-gradient(45deg, #3a2a08, #3a2a08 16px, #4a3610 16px, #4a3610 32px);
  border-top: 3px solid #f5a524;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}
.env-strip b {
  color: #f5a524;
  letter-spacing: 0.12em;
}
body[data-test="1"] {
  padding-bottom: 56px;
}
body[data-test="1"] .demo-ribbon {
  bottom: 64px;
}
.env-box {
  max-width: 1040px;
  margin: calc(var(--header-h, 76px) + 24px) auto 0;
  padding: 22px 26px;
  text-align: center;
  color: #f3e9d2;
  background: repeating-linear-gradient(45deg, #3a2a08, #3a2a08 16px, #4a3610 16px, #4a3610 32px);
  border: 2px solid #f5a524;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(245, 165, 36, 0.22);
}
.env-box strong {
  display: block;
  font: 700 clamp(24px, 4vw, 38px) / 1.15 var(--font-title, inherit);
  letter-spacing: 0.04em;
  color: #f5a524;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
.env-box p {
  margin: 10px 0 0;
  font-size: clamp(16px, 2vw, 19px);
}
.env-box b {
  color: #fff;
}
.env-box + .container {
  margin-top: 8px;
}

.badge.badge--test {
  color: #1a1200;
  background: #f5a524;
  border: 1px solid #ffc861;
  font-weight: 700;
}

.avatar-ctl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.avatar-ctl [hidden] {
  display: none !important;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Profil Steam : nom du profil dans l'en-tete du compte, logo + nom Steam sous un ami, section « Amis Steam ». */
.badge.badge--steam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge.badge--steam .ic-steam {
  width: 14px;
  height: 14px;
}
.friend .steam-sub {
  display: flex !important;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: #8fb4d8;
}
.friend .steam-sub .ic-steam {
  width: 12px;
  height: 12px;
  flex: none;
}
.steam-note {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 14px;
}
.panel h3 .ic-steam {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* Blocage / signalement */
.friend-tools {
  margin: -6px 0 16px;
}
.report-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.report-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  cursor: pointer;
}
.report-opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(217, 178, 92, 0.1);
}
.report-text {
  width: 100%;
  resize: none;
}

/* Page Annonces : annonces et notes de patch du launcher et du jeu. */
.news-hero { text-align: center; padding: clamp(36px, 6vw, 72px) 0 clamp(22px, 3vw, 36px); }
.news-hero .lead { max-width: 640px; margin: 18px auto 0; }
.news-box { padding-bottom: 80px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 22px; margin-top: 26px; }
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(22, 29, 42, 0.78), rgba(12, 17, 27, 0.82));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-3px); border-color: rgba(217, 178, 92, 0.45); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), 0 0 26px rgba(217, 178, 92, 0.12); }
.news-card--featured { flex-direction: row; border-color: rgba(217, 178, 92, 0.4); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45), 0 0 40px rgba(217, 178, 92, 0.1); }
.news-media { position: relative; aspect-ratio: 16 / 9; background: #0b0f18; overflow: hidden; }
.news-card--featured .news-media { flex: 1 1 52%; aspect-ratio: auto; min-height: 280px; }
.news-media img, .news-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-media--none { background: radial-gradient(ellipse at 50% 40%, rgba(217, 178, 92, 0.28), rgba(0, 0, 0, 0) 62%), linear-gradient(160deg, #1c1430, #0b0f18); }
.news-media--none span { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: #05060b; box-shadow: 0 0 0 5px rgba(217, 178, 92, 0.55), 0 0 40px rgba(255, 214, 120, 0.5); }
.news-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.2vw, 28px); flex: 1 1 48%; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); letter-spacing: 0.04em; }
.news-meta time { margin-left: auto; }
.news-kind, .news-pin { padding: 3px 10px; border-radius: 999px; font: 600 11px/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.news-kind { color: #d6e8ff; background: rgba(60, 110, 220, 0.28); border: 1px solid rgba(120, 170, 255, 0.4); }
.news-kind--patch { color: #e2ccff; background: rgba(120, 70, 210, 0.3); border-color: rgba(180, 140, 255, 0.45); }
.news-pin { color: #2a1606; background: linear-gradient(90deg, var(--gold), var(--gold-hi), var(--gold)); }
.news-title { font-family: var(--font-title); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.18; color: var(--text); letter-spacing: 0.01em; }
.news-card--featured .news-title { font-size: clamp(26px, 3vw, 40px); }
.news-text { color: #d8d3c2; font-size: 15px; line-height: 1.65; }
.news-text p { margin: 0 0 10px; }
.news-text h4 { margin: 16px 0 6px; font: 600 12px/1.2 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.news-text ul { margin: 0 0 8px; padding: 0; list-style: none; }
.news-text li { position: relative; padding-left: 20px; margin: 5px 0; }
.news-text li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); opacity: 0.85; }
.news-text.is-clamped { max-height: 7.4em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.news-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
@media (max-width: 860px) {
  .news-card--featured { flex-direction: column; }
  .news-card--featured .news-media { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card, .news-media img { transition: none; }
  .news-card:hover { transform: none; }
}

/* Annonces : liens de la vignette, lecteur video, page de lecture d'une annonce. */
.news-media-link { display: block; color: inherit; }
.news-card--featured .news-media-link { flex: 1 1 52%; display: flex; }
.news-card--featured .news-media-link .news-media { flex: 1; }
.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: var(--gold-hi); }
.news-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(5, 6, 11, 0.7); box-shadow: 0 0 0 2px rgba(245, 226, 160, 0.8); pointer-events: none; }
.news-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 17px solid #f5e2a0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.news-back { display: inline-block; margin: clamp(26px, 4vw, 48px) 0 18px; color: var(--dim); font: 500 14px/1 var(--font-body); letter-spacing: 0.04em; text-decoration: none; }
.news-back:hover { color: var(--gold-hi); }
.news-solo { max-width: 860px; margin: 0 auto; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(217, 178, 92, 0.35); background: linear-gradient(180deg, rgba(22, 29, 42, 0.82), rgba(12, 17, 27, 0.86)); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.news-media--solo { aspect-ratio: auto; background: #070a10; }
.news-media--solo img, .news-media--solo video { position: static; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.news-solo-body { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3.4vw, 44px); }
.news-solo-title { font-family: var(--font-title); font-weight: 600; font-size: clamp(28px, 4vw, 46px); line-height: 1.14; color: var(--text); }
.news-text--full { font-size: 16px; line-height: 1.75; }

/* Annonces : boutons d'une meme rangee a la meme hauteur (le cadre de pierre du bouton « line » depassait de 6 px en haut et en bas). */
.news-actions { align-items: center; }
.news-actions .btn { --h: 40px; min-height: 40px; height: 40px; box-sizing: border-box; padding-block: 0; }
.news-actions .btn--line { --bw: 11px; border-image-outset: 3px 0; }

/* Page de lecture : l'image devient un bandeau (hauteur fixe, recadre sur le haut), de plus en plus flou et fondu vers le bas, jusqu'a disparaitre derriere le titre. */
.news-solo { --news-bg: #0d121b; }
.news-media--solo:not(.news-media--video) {
  position: relative;
  height: clamp(240px, 38vw, 400px);
  max-height: none;
  overflow: hidden;
  background: var(--news-bg);
}
.news-media--solo:not(.news-media--video) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(#000 0%, #000 45%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 45%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
}
/* Flou progressif : trois couches de plus en plus floues, chacune visible un peu plus bas. */
.news-media--solo:not(.news-media--video)::before,
.news-media--solo:not(.news-media--video)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.news-media--solo:not(.news-media--video)::before {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(transparent 38%, #000 68%);
  mask-image: linear-gradient(transparent 38%, #000 68%);
}
.news-media--solo:not(.news-media--video)::after {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: linear-gradient(transparent 55%, var(--news-bg) 100%);
  -webkit-mask-image: linear-gradient(transparent 60%, #000 88%);
  mask-image: linear-gradient(transparent 60%, #000 88%);
}
.news-solo:has(.news-media--solo:not(.news-media--video)) .news-solo-body {
  position: relative;
  z-index: 2;
  margin-top: clamp(-140px, -14vw, -90px);
  padding-top: 0;
}
.news-solo:has(.news-media--solo:not(.news-media--video)) .news-solo-title { text-shadow: 0 2px 18px rgba(5, 8, 14, 0.9); }

/* Parallaxe : l'image est plus haute que son cadre (30 % cache en bas), collee en haut, et MONTE dans le cadre quand on fait defiler la page (elle revele son bas) ;
   tout le cadre (image + flou) se fond vers le bas, derriere le titre. */
.news-media--solo:not(.news-media--video) {
  height: clamp(300px, 46vw, 520px);
  -webkit-mask-image: linear-gradient(#000 0%, #000 50%, rgba(0, 0, 0, 0.5) 78%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 50%, rgba(0, 0, 0, 0.5) 78%, transparent 100%);
}
.news-media--solo:not(.news-media--video) img {
  inset: auto;
  left: 0;
  top: 0;
  width: 100%;
  height: 130%;
  object-position: 50% 50%;
  -webkit-mask-image: none;
  mask-image: none;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.news-media--solo:not(.news-media--video)::after { background: none; }
