/* TrueLife RP – feuille de style du site.
   Couleurs du logo (bleu nuit, bleu TrueLife), Rajdhani du HUD pour les titres, Inter du F4 pour le texte.
   Signature : les coupes à 45° du monogramme (haut-gauche du T, bas-droit du L) sur les images et les boutons. */

@font-face { font-family: "TL Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TL Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "TL Rajdhani"; src: url("fonts/rajdhani-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --nuit: #0B1120;          /* fond, rond du monogramme */
  --nuit-2: #111A2D;        /* surfaces levées */
  --trait: #24314A;         /* séparations */
  --bleu: #3B8AF5;          /* L du monogramme : marques, numéros */
  --bleu-btn: #2C6FDB;      /* bleu des boutons (texte blanc lisible) */
  --bleu-btn-h: #2560C2;
  --bleu-lien: #79AFFA;
  --craie: #EEF2F8;         /* texte */
  --brume: #9AA7BE;         /* texte secondaire */
  --vert: #4ADE80;          /* serveur en ligne */
  --discord: #5865F2;

  --display: "TL Rajdhani", "Rajdhani", "Arial Narrow", sans-serif;
  --text: "TL Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --cut: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--craie);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu-lien); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 1.6rem + 5vw, 5.75rem); line-height: 0.94; }
h2 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1; }
h3 { font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.35rem); line-height: 1.02; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--craie); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--craie); color: var(--nuit); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Coupe TrueLife : haut-gauche et bas-droit */
.cut, .btn {
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.cut { --c: var(--cut); }

/* Boutons */
.btn {
  --c: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.8rem 1.4rem;
  font: 600 1rem/1.1 var(--text); text-decoration: none; color: #fff;
  border: 0; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.btn-sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.95rem; --c: 8px; }
.btn-primary { background: var(--bleu-btn); }
.btn-primary:hover { background: var(--bleu-btn-h); }
.btn-ghost { background: rgba(238, 242, 248, 0.1); }
.btn-ghost:hover { background: rgba(238, 242, 248, 0.17); }
.btn-discord { background: var(--discord); }
.btn-discord:hover { background: #4752C4; }

/* En-tête */
.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color 0.25s ease, border-color 0.25s ease; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(11, 17, 32, 0.92); border-bottom-color: var(--trait); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: block; flex: none; }
.brand img { width: 175px; height: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { color: var(--craie); text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.86; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.nav a[aria-current] { opacity: 1; color: #fff; text-decoration: underline; text-decoration-color: var(--bleu); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; height: 64px; }
  .brand img { width: 140px; }
}

/* Héros */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 17, 32, 0.94) 0%, rgba(11, 17, 32, 0.78) 34%, rgba(11, 17, 32, 0.2) 68%, rgba(11, 17, 32, 0.05) 100%),
    linear-gradient(0deg, var(--nuit) 0%, rgba(11, 17, 32, 0) 32%),
    linear-gradient(180deg, rgba(11, 17, 32, 0.7) 0%, rgba(11, 17, 32, 0) 18%);
}
.hero-in { padding-top: 140px; padding-bottom: clamp(4rem, 9vh, 7.5rem); }
/* Bloc titre : accroche, titre en capitales sur deux lignes (la seconde en bleu), texte */
.eyebrow { margin-bottom: clamp(1.75rem, 1rem + 3vh, 3.25rem); font: 600 clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem)/1.2 var(--text); text-transform: uppercase; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.5rem); line-height: 1; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 .accent { background: linear-gradient(90deg, #5CB6FF 0%, var(--bleu) 65%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { max-width: 40rem; margin-top: 1.5rem; font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); color: #D5DDEA; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.status { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; font-weight: 600; font-size: 0.95rem; color: var(--craie); }
.status .dot { width: 9px; height: 9px; background: var(--brume); clip-path: polygon(3px 0, 100% 0, 100% 6px, 6px 100%, 0 100%, 0 3px); }
.status.is-online .dot { background: var(--vert); }
@media (max-width: 760px) {
  .hero { min-height: 92svh; }
  .hero-img img { object-position: 70% 50%; }
  .hero::before {
    background:
      linear-gradient(0deg, var(--nuit) 0%, rgba(11, 17, 32, 0.86) 45%, rgba(11, 17, 32, 0.35) 100%);
  }
}

/* Entrée de page : un seul mouvement */
@media (prefers-reduced-motion: no-preference) {
  .hero-img img { animation: settle 1.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-in > * { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-in > :nth-child(2) { animation-delay: 0.08s; }
  .hero-in > :nth-child(3) { animation-delay: 0.16s; }
  .hero-in > :nth-child(4) { animation-delay: 0.24s; }
  .hero-in > :nth-child(5) { animation-delay: 0.32s; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Têtes de section */
.section-head { max-width: 40rem; }
.section-head p { margin-top: 1rem; color: var(--brume); font-size: 1.1rem; }

/* Exclusivités */
.excl { padding-top: var(--section); }
.excl > .section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.excl > .section-head p { max-width: 36rem; }

.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.facts li { position: relative; padding-left: 1.6rem; color: #D5DDEA; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--bleu);
  clip-path: polygon(3px 0, 100% 0, 100% 7px, 7px 100%, 0 100%, 0 3px);
}

/* Bande large : la salle d'exposition */
.band { position: relative; }
.band-img { position: relative; display: block; }
/* Fondus haut et bas : l'image sort du fond de la page et y retourne */
.band-img::before { content: ""; position: absolute; inset: 0 0 auto; height: 24%; background: linear-gradient(180deg, var(--nuit) 0%, rgba(11, 17, 32, 0)); pointer-events: none; }
.band-img::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, var(--nuit) 4%, rgba(11, 17, 32, 0)); pointer-events: none; }
.band-img img { width: 100%; aspect-ratio: 2.56; object-fit: cover; }
.band-in {
  position: relative; margin-top: clamp(-7rem, -6vw, -2.5rem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end;
}
.band-text p { margin-top: 1rem; color: #D5DDEA; max-width: 30rem; }
.band-in .facts { margin: 0; }
@media (max-width: 900px) {
  .band-in { grid-template-columns: 1fr; gap: 0; }
  .band-in .facts { margin-top: 1.5rem; }
}
@media (max-width: 760px) {
  .band-img img { aspect-ratio: 16 / 10; object-position: 48% 50%; }
  .band-in { margin-top: -2rem; }
}

/* Scènes : texte + capture */
.scene { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; margin-top: var(--section); }
.section-head + .scene { margin-top: 0; }
.scene-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.scene-flip .scene-text { order: 2; }
.scene-text p { margin-top: 1rem; color: #D5DDEA; max-width: 30rem; }
.scene-img { margin: 0; }
.scene-img picture { display: block; }
.scene-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--nuit-2); }
/* Gendarmerie : tenue de cérémonie en incrustation, cadre bleu nuit qui suit la coupe */
.duo { position: relative; padding-bottom: 22%; }
.duo-inset { position: absolute; right: -5%; bottom: 0; width: 44%; padding: 6px; background: var(--nuit); --c: 16px; }
.duo-inset img { --c: 12px; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
@media (max-width: 900px) {
  .scene { grid-template-columns: 1fr; gap: 1.75rem; }
  .scene-flip .scene-text { order: 0; }
  .scene-img { order: -1; }
  .cut { --c: 18px; }
  .duo { padding-bottom: 26%; }
  .duo-inset { right: 0; width: 52%; --c: 12px; }
}

/* Engagements */
/* FAQ : questions repliables (details/summary), séparées par un filet */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); padding-block: var(--section); }
.faq-head p { margin-top: 1rem; color: var(--brume); max-width: 22rem; }
.faq-list { border-top: 1px solid var(--trait); }
.faq-list details { border-bottom: 1px solid var(--trait); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.15;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--bleu); border-bottom: 2px solid var(--bleu);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list summary:hover { color: #fff; }
.faq-list summary:focus-visible { outline-offset: 4px; }
.faq-list details p { padding-bottom: 1.25rem; max-width: 40rem; color: var(--brume); }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
}

/* Rejoindre */
.join { padding-block: var(--section); background: var(--nuit-2); border-block: 1px solid var(--trait); }
.steps { list-style: none; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); counter-reset: step; }
.step { counter-increment: step; display: flex; flex-direction: column; align-items: flex-start; }
.step::before {
  content: counter(step); font-family: var(--display); font-weight: 700; font-size: 4.5rem; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px var(--bleu); margin-bottom: 1.25rem;
}
.step p { margin-top: 0.75rem; color: var(--brume); }
.step .btn { margin-top: auto; }
.step > p:last-of-type { margin-bottom: 1.5rem; }
.step [data-connect] { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.step [data-connect][hidden], .step [hidden] { display: none; }
.addr { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.addr code { font: 600 1.05rem/1 var(--text); font-variant-numeric: tabular-nums; color: var(--craie); background: var(--nuit); padding: 0.7rem 0.85rem; border: 1px solid var(--trait); }
.copy { font: 600 0.9rem/1 var(--text); color: var(--craie); background: transparent; border: 1px solid var(--trait); padding: 0.7rem 0.9rem; cursor: pointer; }
.copy:hover { border-color: var(--brume); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step .btn { margin-top: 0; }
}

/* Boutique */
.shop { padding-block: var(--section); }
.shop-in {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); background: linear-gradient(110deg, #13203A 0%, #111A2D 60%);
}
.shop-in p { margin-top: 0.9rem; color: var(--brume); max-width: 36rem; }

/* Pied de page : présentation + 3 colonnes de liens, puis ligne légale */
.foot { position: relative; background: #080D19; border-top: 1px solid var(--trait); padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 1rem + 2vw, 3rem); }
.foot-brand::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: 1.5rem; background: var(--bleu); }
.foot-brand img { width: 160px; }
.foot-brand p { margin-top: 1rem; max-width: 22rem; color: var(--brume); font-size: 0.95rem; }
.foot-brand .btn { margin-top: 1.5rem; }
.foot-col h2 { font-size: 1.15rem; line-height: 1.2; }
.foot-col ul { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.foot-col a { color: var(--brume); text-decoration: none; font-size: 0.95rem; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--craie); }
.foot-col a:hover { text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--trait); color: var(--brume); font-size: 0.85rem; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Pages de texte (mentions légales, confidentialité) */
.doc { padding-block: 128px var(--section); }
.doc-in { max-width: calc(46rem + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.6rem); }
.doc-date { margin-top: 0.75rem; color: var(--brume); font-size: 0.95rem; }
.doc h2 { margin-top: 2.75rem; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.8rem); }
.doc h2 + p, .doc h2 + ul { margin-top: 0.85rem; }
.doc p + p { margin-top: 0.85rem; }
.doc-date + p { margin-top: 2rem; }
.doc p, .doc li { color: #D5DDEA; }
.doc-links, .doc-list { margin: 0.85rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.doc-list + p { margin-top: 1rem; }

/* Page simple (404) */
.soon { min-height: 100svh; display: flex; align-items: center; padding-block: 120px 80px; }
.soon p { margin-top: 1.25rem; max-width: 34rem; color: var(--brume); font-size: 1.1rem; }

/* Boutique : catalogue (/boutique/) et panier (/boutique/panier/) */
.shop-page { padding-top: 128px; }
.shop-head { max-width: 40rem; }
.shop-head h1 { font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4rem); }
.shop-head p { margin-top: 1rem; color: var(--brume); font-size: 1.1rem; }
.shop-layout { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.shop-empty { color: var(--brume); }

/* En-tête boutique : logo | catégories Tebex au centre | Panier et Se connecter */
.top-shop { display: grid; grid-template-columns: 1fr auto 1fr; }
.top-shop .brand { justify-self: start; }
.top-shop .top-actions { justify-self: end; }
.shop-nav { display: flex; gap: 0.25rem; }
.shop-nav a { position: relative; padding: 0.55rem 0.95rem; color: var(--brume); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.shop-nav a:hover { color: var(--craie); }
.shop-nav a[aria-current] { color: #fff; background: rgba(238, 242, 248, 0.07); }
.shop-nav a[aria-current]::after { content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.3rem; height: 2px; background: var(--bleu); }
@media (max-width: 760px) {
  .top-shop { display: flex; }
  .shop-nav { display: none; }
}

/* En-tête boutique : Panier (avec le nombre de grades) et Se connecter / pseudo Steam */
.top-actions { display: flex; gap: 0.5rem; flex: none; margin-left: auto; }
.cart-link, .login-link { gap: 0.6rem; }
.cart-link svg, .login-link svg { width: 18px; height: 18px; flex: none; }
.login-link .btn-label { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .top-actions .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top-actions .btn { padding-inline: 0.8rem; }
}
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font: 700 0.8rem/1 var(--text); color: #fff; background: var(--bleu-btn); clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); }

.pkg-cat + .pkg-cat { margin-top: 3rem; }
.pkg-cat > h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 1.25rem; }
.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pkg-grid { grid-template-columns: 1fr; } }
.pkg { --c: 22px; display: flex; flex-direction: column; background: var(--nuit-2); }
.pkg-img { aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 50% 100%, #1B2C4C 0%, #111A2D 70%); display: flex; align-items: center; justify-content: center; }
.pkg-img img { height: 88%; width: auto; object-fit: contain; }
.pkg-img-site img { width: 100%; height: 100%; }   /* rendus TrueLife déjà au format de la carte */
.pkg-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.pkg-body h3 { font-size: clamp(1.3rem, 1.15rem + 0.4vw, 1.55rem); line-height: 1.1; }
.pkg-price { margin-top: 0.6rem; color: var(--brume); }
.pkg-price strong { font: 700 2.1rem/1 var(--display); color: var(--craie); }
.pkg-note { margin-top: 0.3rem; font-size: 0.85rem; color: var(--brume); }
/* avantages : l'emoji de tête de chaque ligne Tebex devient une icône dans une pastille coupée */
.perks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; line-height: 1.4; }
.perks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: center; color: #D5DDEA; }
.perk-ico {
  --c: 6px; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; font-size: 0.95rem; line-height: 1;
  background: rgba(59, 138, 245, 0.13);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.perk-dot::before { content: ""; width: 9px; height: 9px; background: var(--bleu); clip-path: polygon(3px 0, 100% 0, 100% 6px, 6px 100%, 0 100%, 0 3px); }
.perks strong, .pkg-cond strong { font-weight: 600; color: var(--craie); }
.pkg-text { margin-top: 1rem; font-size: 0.95rem; color: var(--brume); }
/* condition (🔒 une fois par compte…) : encadrée sous la liste */
.pkg-cond { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: center; margin-top: 1rem; padding: 0.65rem 0.85rem; font-size: 0.88rem; line-height: 1.4; color: var(--brume); border: 1px solid var(--trait); }
.pkg-cond .perk-ico { width: auto; height: auto; background: none; }

/* produit seul dans sa catégorie (Starter Pack) : grande carte, image à gauche */
.pkg-grid-feature { grid-template-columns: minmax(0, 1fr); }
.pkg-feature { --c: 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-width: 1080px; }
.pkg-feature .pkg-img { aspect-ratio: auto; min-height: 320px; }
.pkg-feature .pkg-img img { width: 88%; height: auto; max-height: 90%; }
.pkg-feature .pkg-body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.pkg-feature .pkg-body h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem); }
.pkg-feature .pkg-price strong { font-size: 2.6rem; }
.pkg-feature .perks { margin-top: 1.5rem; gap: 0.8rem; font-size: 1.02rem; }
.pkg-feature .perk-ico { --c: 8px; width: 2.4rem; height: 2.4rem; font-size: 1.2rem; }
.pkg-feature .pkg-cond { align-self: flex-start; }
.pkg-feature .pkg-act { min-width: 260px; align-self: flex-start; }
@media (max-width: 820px) {
  .pkg-feature { grid-template-columns: minmax(0, 1fr); }
  .pkg-feature .pkg-img { aspect-ratio: 16 / 10; min-height: 0; }
  .pkg-feature .pkg-act { align-self: stretch; }
}
/* bouton calé en bas de chaque carte, même hauteur sur toute la ligne */
.pkg-act { margin-top: auto; }
.pkg-add { width: 100%; }

/* quantité des produits cumulables : − N + */
.qty {
  --c: 10px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; min-height: 48px;
  background: rgba(238, 242, 248, 0.1);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.qty-btn { border: 0; padding: 0; background: none; color: #fff; font: 600 1.35rem/1 var(--text); cursor: pointer; transition: background-color 0.15s ease; }
.qty-btn:hover:not(:disabled) { background: rgba(238, 242, 248, 0.1); }
.qty-btn:disabled { color: rgba(238, 242, 248, 0.3); cursor: default; }
.qty-btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.qty-val { display: grid; place-items: center; font: 600 1rem/1.1 var(--text); text-align: center; }
.qty-sm { --c: 7px; display: inline-grid; grid-template-columns: 36px 2.4rem 36px; min-height: 36px; }
.qty-sm .qty-btn { font-size: 1.15rem; }
.pkg-body > :nth-last-child(2) { margin-bottom: 1.5rem; }

/* Barre « Voir le panier » du catalogue, dès qu'un grade est choisi */
.cart-bar:not([hidden]) {
  position: fixed; right: 24px; bottom: 24px; z-index: 15; min-width: 300px;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 0.95rem 1.2rem; color: #fff; text-decoration: none; font-weight: 600;
  background: var(--bleu-btn); --c: 10px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.cart-bar:hover { background: var(--bleu-btn-h); }
.cart-bar strong { font: 700 1.25rem/1 var(--display); }

/* Page panier : récapitulatif à gauche, total et paiement à droite */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; color: var(--brume); }
.crumbs a { color: var(--brume); text-decoration: none; }
.crumbs a:hover { color: var(--craie); text-decoration: underline; }
.crumbs [aria-current] { color: var(--craie); }
.basket-page h1 { margin-top: 1.25rem; font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.6rem); }
.basket { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-items: start; margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); }
@media (max-width: 960px) { .basket { grid-template-columns: 1fr; } }

.basket-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.basket-item { --c: 16px; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.1rem 1.25rem; background: var(--nuit-2); }
.basket-thumb { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% 100%, #1B2C4C 0%, #0D1526 75%); }
.basket-thumb img { width: 84%; height: 84%; object-fit: contain; }
.basket-item h2 { font-size: 1.35rem; line-height: 1.15; }
.basket-type { margin-top: 0.3rem; font-size: 0.88rem; color: var(--brume); }
.basket-price { text-align: right; }
.basket-price strong { display: block; font: 700 1.6rem/1 var(--display); color: #79AFFA; }
.basket-price span { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: var(--brume); }
.link-btn { background: none; border: 0; padding: 0; margin-top: 0.6rem; color: var(--bleu-lien); font: inherit; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.basket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 0.6rem; }
.basket-actions .link-btn { margin-top: 0; }
.link-btn:hover { color: var(--craie); }
.basket-renew { margin-top: 1rem; padding: 0.9rem 1.1rem; font-size: 0.92rem; color: var(--brume); border: 1px solid var(--trait); }
.basket-empty { padding: 2rem; background: var(--nuit-2); color: var(--brume); }
.basket-empty .btn { margin-top: 1.25rem; }
@media (max-width: 560px) {
  .basket-item { grid-template-columns: 64px minmax(0, 1fr); }
  .basket-thumb { width: 64px; height: 64px; }
  .basket-price { grid-column: 2; text-align: left; }
}

.summary { --c: 22px; position: sticky; top: 96px; padding: 1.5rem; background: var(--nuit-2); }
@media (max-width: 960px) { .summary { position: static; } }
.summary-account { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--trait); }
.summary-account small { display: block; font-size: 0.78rem; color: var(--brume); }
.summary-account strong { display: block; margin-top: 0.15rem; }
.summary-account .link-btn { margin-top: 0; }
.summary h2 { margin-top: 1.5rem; font-size: 1.6rem; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.9rem; color: var(--brume); }
.summary-total { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--trait); color: var(--craie); font-weight: 600; }
.summary-total strong { font: 700 2rem/1 var(--display); color: #79AFFA; }
.code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; margin-top: 0.9rem; }
.code-form input, .field input { width: 100%; padding: 0.75rem 0.85rem; font: 400 1rem/1.2 var(--text); color: var(--craie); background: var(--nuit); border: 1px solid var(--trait); }
.code-form input:focus-visible, .field input:focus-visible { outline: 2px solid var(--bleu); outline-offset: 0; border-color: var(--bleu); }
.code-form .btn { min-height: 0; }
.code-ok { margin-top: 0.5rem; font-size: 0.88rem; color: #B9F5CF; }
.code-ok .link-btn { margin: 0 0 0 0.5rem; }
.code-err { margin-top: 0.5rem; font-size: 0.88rem; color: #FFB4B4; }
.field { margin-top: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; }
.field input { margin-top: 0.5rem; font-variant-numeric: tabular-nums; }
.field-hint { margin-top: 0.5rem; font-size: 0.82rem; line-height: 1.5; color: var(--brume); }
.form-error { margin-top: 1rem; padding: 0.75rem 0.9rem; font-size: 0.92rem; color: #FFD7D7; background: rgba(220, 60, 60, 0.14); border-left: 3px solid #E5484D; }
.summary-pay { width: 100%; margin-top: 1.25rem; min-height: 54px; font-size: 1.05rem; }
.summary-pay:disabled { opacity: 0.5; cursor: not-allowed; }
.summary-secure { margin-top: 0.8rem; text-align: center; font-size: 0.85rem; color: var(--brume); }
.pay-methods { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; }
.pay-methods li { display: inline-flex; align-items: center; gap: 0.3rem; height: 30px; padding: 0 0.45rem; font-size: 0.76rem; font-weight: 600; color: var(--craie); background: rgba(238, 242, 248, 0.07); border: 1px solid var(--trait); }
.pay-methods svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.pay-methods li:has(> svg + .sr-only) svg:not(.pm-wide) { width: 24px; height: 24px; }
.pay-methods svg.pm-wide { width: 34px; height: 22px; }

.notice { margin-top: 1.5rem; padding: 0.9rem 1.1rem; max-width: 40rem; }
.notice-ok { color: #D9FBE6; background: rgba(74, 222, 128, 0.12); border-left: 3px solid var(--vert); }
.notice-err { color: #FFD7D7; background: rgba(220, 60, 60, 0.14); border-left: 3px solid #E5484D; }

/* Page de connexion Steam */
.login-page { min-height: 100svh; padding-bottom: 4rem; display: flex; align-items: center; }
.login-card { --c: 24px; max-width: 520px; margin-inline: auto; padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); text-align: center; background: var(--nuit-2); }
.login-badge { width: 84px; height: 84px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; color: var(--bleu); background: radial-gradient(circle at 50% 40%, #16264A 0%, #0D1526 80%); border: 1px solid #2A4A85; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.login-badge svg { width: 44px; height: 44px; fill: currentColor; }
.login-card h1 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); }
.login-lede { margin-top: 0.9rem; color: var(--brume); }
.login-lede strong { color: var(--craie); }
.login-steam { width: 100%; min-height: 54px; margin-top: 1.75rem; font-size: 1.05rem; gap: 0.6rem; }
.login-steam svg { width: 20px; height: 20px; fill: currentColor; }
.login-points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; text-align: left; }
.login-points li { position: relative; padding: 1rem 1.1rem 1rem 2.6rem; border: 1px solid var(--trait); }
.login-points li::before { content: ""; position: absolute; left: 1.1rem; top: 1.35rem; width: 10px; height: 10px; background: var(--bleu); clip-path: polygon(3px 0, 100% 0, 100% 7px, 7px 100%, 0 100%, 0 3px); }
.login-points h2 { font-size: 1.15rem; line-height: 1.2; }
.login-points p { margin-top: 0.3rem; font-size: 0.9rem; color: var(--brume); }
.login-foot { margin-top: 1.5rem; font-size: 0.9rem; color: var(--brume); }
.login-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.75rem; }
.login-out { margin-top: 1.25rem; }
.login-card .form-error { text-align: left; }

/* Bas des pages boutique : trois garanties, puis la mention Tebex */
.shop-trust { margin-top: var(--section); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); background: var(--nuit-2); border-top: 1px solid var(--trait); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 1rem + 2vw, 3rem); }
.trust-grid h2 { position: relative; padding-left: 1.4rem; font-size: 1.3rem; line-height: 1.2; }
.trust-grid h2::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 10px; height: 10px; background: var(--bleu);
  clip-path: polygon(3px 0, 100% 0, 100% 7px, 7px 100%, 0 100%, 0 3px);
}
.trust-grid p { margin-top: 0.6rem; padding-left: 1.4rem; color: var(--brume); font-size: 0.95rem; }
.trust-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.75rem 2rem; font-size: 0.85rem; color: var(--brume); }
.trust-grid + .trust-legal { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--trait); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-legal p { max-width: 46rem; }
.trust-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
@media (max-width: 760px) {
  .cart-bar:not([hidden]) { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
  .shop-trust { padding-bottom: 96px; }   /* place pour la barre du panier */
}

/* Règlement : sommaire collant, règles marquées par type (interdit, autorisé, condition, à savoir) */
.regl { padding-block: 128px var(--section); }
.regl-head { max-width: 46rem; }
.regl-head h1 { font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.6rem); }
.regl-lede { margin-top: 1rem; font-size: 1.1rem; color: #D5DDEA; }
.regl-legend { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; font-size: 0.92rem; color: var(--brume); }
.regl-legend li { position: relative; padding-left: 2rem; line-height: 1.35rem; }
.regl-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.regl-toc { position: sticky; top: 96px; }
.regl-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.regl-toc a { display: block; padding: 0.5rem 0.9rem; border-left: 2px solid var(--trait); color: var(--brume); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: color 0.15s ease, border-color 0.15s ease; }
.regl-toc a:hover { color: var(--craie); }
.regl-toc a[aria-current] { color: var(--craie); border-left-color: var(--bleu); }
.regl-sec { scroll-margin-top: 96px; }
.regl-sec + .regl-sec { margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.regl-sec > h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.regl-sec h3 { margin-top: 2rem; font-size: 1.3rem; line-height: 1.2; }
.regl-sec h3 small { font: 400 0.85rem/1 var(--text); color: var(--brume); margin-left: 0.4rem; }
.regl code { font: 600 0.88em/1 var(--text); color: var(--craie); background: rgba(238, 242, 248, 0.08); padding: 0.15em 0.4em; }

/* marqueur commun : pastille coupée à 45°, une icône par type */
.rules li::before, .terms li::before, .regl-legend li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1.35rem; height: 1.35rem;
  background: rgba(59, 138, 245, 0.14) center / 0.8rem no-repeat;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}
.regl .no::before { background-color: rgba(248, 113, 113, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F87171' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.regl .ok::before { background-color: rgba(74, 222, 128, 0.13); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ADE80' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.regl .must::before { background-color: rgba(245, 179, 36, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5B324' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 5v9M12 19.5h.01'/%3E%3C/svg%3E"); }
.regl .info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233B8AF5' d='M9 5h10v10l-4 4H5V9z'/%3E%3C/svg%3E"); background-size: 0.6rem; }

.rules { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.rules li { position: relative; padding-left: 2.1rem; color: #D5DDEA; line-height: 1.55; }
.rules li::before { top: 0.12em; }
.rules b { color: var(--craie); }

/* règles de base : un terme par carte */
.terms { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.terms li { --c: 12px; position: relative; padding: 1rem 1.15rem 1.05rem 3.15rem; background: var(--nuit-2);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.terms li::before { left: 1.05rem; top: 1.05rem; }
.terms b { display: block; font: 700 1.2rem/1.2 var(--display); color: var(--craie); }
.terms span { display: block; margin-top: 0.3rem; font-size: 0.95rem; line-height: 1.5; color: #C3CCDA; }

/* braquages et métiers : cartes */
.regl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.regl-card { --c: 16px; padding: 1.35rem 1.4rem 1.5rem; background: var(--nuit-2);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.regl-card h3 { margin-top: 0; }
.regl-card .rules { margin-top: 0.9rem; font-size: 0.97rem; }
.regl-card-wide { grid-column: 1 / -1; }
.ransom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.ransom div { padding: 0.8rem 1rem; background: rgba(238, 242, 248, 0.05); border: 1px solid var(--trait); }
.ransom span { display: block; font-size: 0.85rem; color: var(--brume); }
.ransom strong { display: block; margin-top: 0.15rem; font: 700 1.6rem/1.1 var(--display); color: var(--craie); }
.regl-example { margin-top: 1rem; font-size: 0.92rem; color: var(--brume); }
.regl-end { margin-top: 2rem; font: 700 1.3rem/1.3 var(--display); color: var(--craie); }

@media (max-width: 1000px) {
  .regl-layout { grid-template-columns: minmax(0, 1fr); }
  .regl-toc { position: static; }
  .regl-toc ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .regl-toc a { border-left: 0; padding: 0.45rem 0.8rem; background: var(--nuit-2); }
  .regl-toc a[aria-current] { box-shadow: inset 0 -2px 0 var(--bleu); }
}
@media (max-width: 720px) {
  .terms, .regl-cards, .ransom { grid-template-columns: minmax(0, 1fr); }
}
