/* =========================================================
   Boutique de mods DayZ
   Palette « Chernarus » : mousse, os, fusée éclairante
   ========================================================= */

@font-face { font-family: 'Anton'; src: url('../fonts/Anton.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans.woff') format('woff'); font-weight: 100 1000; font-display: swap; }

:root {
  --ground: #131417;
  --ground-2: #1b1c20;
  --ground-3: #23252a;
  --line: #2d3036;
  --line-strong: #40444c;
  --bone: #eceae4;
  --bone-dim: #9a9ea6;
  --flare: #f2c14e;
  --flare-hover: #f7d27a;
  --flare-ink: #241c08;
  --teal: #7fa8d8;
  --teal-ink: #0d1726;
  --danger: #e8735c;
  --ok: #8fc79a;

  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius-sm: 4px;
  --radius: 8px;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .86em; background: rgba(255, 255, 255, .06); padding: .1em .4em; border-radius: 3px; }
::selection { background: var(--flare); color: var(--flare-ink); }

:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--bone-dim); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--flare); color: var(--flare-ink); padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.icon { flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .6rem 1.15rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--flare); color: var(--flare-ink); }
.btn--primary:hover { background: var(--flare-hover); }
.btn--teal { background: var(--teal); color: var(--teal-ink); }
.btn--teal:hover { background: #a3c1e6; }
.btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone-dim); background: rgba(235, 231, 218, .05); }
.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: rgba(227, 120, 95, .12); }
.btn--sm { min-height: 38px; padding: .4rem .85rem; font-size: .9375rem; }
.btn--lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--bone-dim); cursor: pointer; }
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.link-strong { font-weight: 600; text-decoration: underline; text-decoration-color: var(--flare); text-underline-offset: .3em; text-decoration-thickness: 2px; }
.link-strong:hover { color: var(--flare); }
.link-danger { background: none; border: 0; padding: 0; color: var(--danger); cursor: pointer; font-size: .9375rem; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(19, 20, 23, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; color: var(--flare); }
.brand__name { white-space: nowrap; font-family: var(--display); font-size: 1.45rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link { padding: .5rem .75rem; text-decoration: none; color: var(--bone-dim); font-weight: 500; border-radius: var(--radius-sm); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--bone); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--flare); border-radius: 0; }
.nav__icon-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--bone-dim); border-radius: var(--radius-sm); }
.nav__icon-link:hover { color: var(--bone); }
.nav__badge { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--flare); color: var(--flare-ink); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.nav .btn { margin-left: .35rem; }
@media (max-width: 640px) {
  .nav__link--hide-sm, .hide-sm { display: none; }
  .brand__name { font-size: 1.15rem; }
  .nav { gap: 0; }
  .nav .btn { min-width: 44px; padding: .4rem .6rem; }
}
@media (max-width: 380px) { .brand__name { display: none; } }

/* ---------- Messages ---------- */
.flash { margin: 1rem 0; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); border-left-width: 4px; background: var(--ground-2); font-size: .975rem; }
.flash--success { border-left-color: var(--ok); }
.flash--error { border-left-color: var(--danger); }
.flash--info { border-left-color: var(--teal); }
.flash--warn { border-left-color: var(--flare); }
main > .wrap > .flash { margin-top: 1.25rem; margin-bottom: 0; }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__map { position: absolute; inset: 0; }
.hero__map img { width: 100%; height: 100%; object-fit: cover; }
.hero__map::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 20, 23, .96) 0%, rgba(19, 20, 23, .82) 42%, rgba(19, 20, 23, .25) 100%); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: center; gap: 3rem; min-height: min(80vh, 760px); padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3rem, 7.6vw, 6.8rem); line-height: 1.2; letter-spacing: .005em;
  max-width: 10ch; text-wrap: balance;
}
.hero__lead { margin-top: 1.75rem; max-width: 34rem; font-size: 1.1875rem; color: var(--bone-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Repère de carte qui pointe vers le mod à la une */
.waypoint { position: relative; display: block; text-decoration: none; justify-self: end; width: min(100%, 400px); padding-left: 64px; padding-top: 64px; }
.waypoint__pin { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border: 2px solid var(--flare); border-radius: 50%; }
.waypoint__pin::before { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: var(--flare); }
.waypoint__pin::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--flare); animation: ping 2.4s ease-out 1s 3; opacity: 0; }
.waypoint::before { content: ''; position: absolute; left: 21px; top: 44px; width: 44px; height: 44px; border-left: 2px dashed var(--flare); border-bottom: 2px dashed var(--flare); opacity: .8; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.waypoint__card { display: block; background: var(--ground-2); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); transition: border-color .15s; }
.waypoint:hover .waypoint__card { border-color: var(--flare); }
.waypoint__card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.waypoint__body { display: grid; gap: .3rem; padding: 1rem 1.15rem 1.15rem; }
.waypoint__label { font-size: .875rem; color: var(--flare); font-weight: 600; }
.waypoint__title { font-family: var(--display); font-size: 1.9rem; text-transform: uppercase; line-height: 1; letter-spacing: .01em; }
.waypoint__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.waypoint__meta strong { font-size: 1.125rem; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero__map::after { background: linear-gradient(180deg, rgba(19, 20, 23, .9), rgba(19, 20, 23, .7)); }
  .waypoint { justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tight { padding: 2.5rem 0 5rem; }
.section--alt { background: var(--ground-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.16; letter-spacing: .01em; }
.section__lead { margin-top: 1rem; max-width: 40rem; color: var(--bone-dim); font-size: 1.125rem; }

.page-head { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--line); background: var(--ground-2); }
.page-head--compact { padding: 2.5rem 0 0; }
.page-head__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.16; letter-spacing: .01em; }
.page-head__lead { margin-top: .6rem; color: var(--bone-dim); }
.page-head--compact .page-head__title { margin-bottom: 1.5rem; }

/* ---------- Cartes de mods ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.5rem; }
.mod-card { display: flex; flex-direction: column; text-decoration: none; background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.mod-card:hover { border-color: var(--line-strong); }
.mod-card:hover .mod-card__title { color: var(--flare); }
.mod-card__cover { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ground-3); }
.mod-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.mod-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.25rem; }
.mod-card__cat { font-size: .875rem; color: var(--bone-dim); }
.mod-card__title { margin-top: .15rem; font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; transition: color .15s; }
.mod-card__tagline { margin-top: .5rem; color: var(--bone-dim); font-size: .975rem; line-height: 1.5; flex: 1; }
.mod-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.mod-card__price { font-weight: 700; font-size: 1.1875rem; white-space: nowrap; }
.mod-card__owned { display: inline-flex; align-items: center; gap: .3rem; color: var(--ok); font-weight: 600; font-size: .9375rem; }
.mod-card__owned .icon { width: 18px; height: 18px; }

.packs { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.pack { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .5rem .18rem .4rem; border-radius: 3px; font-size: .8125rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.pack .icon { width: 15px; height: 15px; }
.pack--client { color: var(--bone); border-color: var(--line-strong); }
.pack--server { color: var(--teal); border-color: rgba(127, 168, 216, .45); }

/* ---------- Ce que tu télécharges ---------- */
.crates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.crate { background: var(--ground); border: 1px solid var(--line); border-top: 3px solid var(--bone-dim); border-radius: var(--radius-sm); padding: 1.5rem; }
.crate--server { border-top-color: var(--teal); }
.crate__head { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.crate__head .icon { width: 24px; height: 24px; color: var(--bone-dim); }
.crate--server .crate__head .icon { color: var(--teal); }
.crate__head h3 { font-size: 1.25rem; }
.crate p { color: var(--bone-dim); }
.crate__list { list-style: none; margin: 1.1rem 0; padding: 0; display: grid; gap: .5rem; }
.crate__list li { padding-left: 1.1rem; position: relative; }
.crate__list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--line-strong); }
.crate--server .crate__list li::before { background: var(--teal); }
.crate__foot { padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .9375rem; }

/* ---------- Étapes (un vrai parcours) ---------- */
.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 1.6rem; left: 2rem; right: 2rem; border-top: 2px dashed var(--line-strong); }
.step { counter-increment: step; position: relative; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1.25rem;
  background: var(--ground); border: 2px solid var(--flare); border-radius: 50%;
  font-family: var(--display); font-size: 1.5rem; color: var(--flare); position: relative;
}
.step h3 { font-size: 1.1875rem; margin-bottom: .4rem; }
.step p { color: var(--bone-dim); font-size: .975rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps::before { top: 1rem; bottom: 1rem; left: 1.55rem; right: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .step { padding-left: 4.5rem; min-height: 3.2rem; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font-weight: 600; font-size: 1.0625rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--flare); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 1.25rem; color: var(--bone-dim); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Catalogue ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .45rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--bone-dim); }
.chip:hover { color: var(--bone); border-color: var(--bone-dim); }
.chip[aria-current="true"] { background: var(--bone); border-color: var(--bone); color: var(--ground); }
.search { display: flex; align-items: center; gap: .5rem; padding: 0 .85rem; min-height: 44px; min-width: min(100%, 300px); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--ground); color: var(--bone-dim); }
.search:focus-within { border-color: var(--flare); }
.search input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; padding: .55rem 0; }
.search input::placeholder { color: var(--bone-dim); }

.empty { text-align: center; padding: 4rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty__icon { width: 40px; height: 40px; color: var(--bone-dim); margin: 0 auto 1rem; }
.empty h2 { font-size: 1.375rem; }
.empty p { color: var(--bone-dim); margin: .5rem auto 1.5rem; max-width: 36rem; }

/* ---------- Fiche mod ---------- */
.crumbs { display: flex; gap: .6rem; padding: 1.5rem 0 1.25rem; font-size: .9375rem; color: var(--bone-dim); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--bone); text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 3rem; align-items: start; padding-bottom: 5rem; }
.gallery__stage { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ground-2); }
.gallery__stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery__thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: none; opacity: .65; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { border-color: var(--flare); opacity: 1; }

.prose { margin-top: 2.5rem; max-width: 68ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.85rem; letter-spacing: .01em; margin-top: 2.25rem; line-height: 1.05; }
.prose h3, .prose h4 { font-size: 1.1875rem; margin-top: 1.75rem; }
.prose p, .prose li { color: #d4d3cd; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose ul li::marker { color: var(--flare); }
.prose a { color: var(--flare); }
.prose strong { color: var(--bone); }
.prose--legal { margin-top: 0; }
.prose--legal h2 { font-size: 1.5rem; }
.changelog { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.changelog > h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; }
.changelog .prose { margin-top: 1rem; }
.changelog .prose h2 { font-family: var(--body); font-weight: 700; font-size: 1.0625rem; text-transform: none; letter-spacing: 0; margin-top: 1.25rem; }

/* Bordereau d'achat */
.product__side { position: sticky; top: 92px; }
.manifest { background: var(--ground-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.6rem; }
.manifest__cat { font-size: .875rem; color: var(--bone-dim); }
.manifest__title { margin-top: .2rem; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.6rem; line-height: 1.02; letter-spacing: .01em; }
.manifest__tagline { margin-top: .75rem; color: var(--bone-dim); }
.manifest__price { margin: 1.4rem 0 1.1rem; font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--flare); }
.buy { display: grid; gap: .6rem; }
.buy form { display: contents; }
.buy__owned { display: flex; align-items: center; gap: .5rem; color: var(--ok); font-weight: 600; margin-bottom: .25rem; }
.manifest__tear { position: relative; height: 0; margin: 1.6rem -1.6rem; border-top: 2px dashed var(--line-strong); }
.manifest__tear::before, .manifest__tear::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ground); border: 1px solid var(--line-strong); }
.manifest__tear::before { left: -12px; clip-path: inset(0 0 0 50%); }
.manifest__tear::after { right: -12px; clip-path: inset(0 50% 0 0); }
.manifest__sub { font-size: 1rem; margin-bottom: .75rem; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.file { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground); }
.file .icon { width: 22px; height: 22px; color: var(--bone-dim); }
.file--server .icon { color: var(--teal); }
.file span { display: grid; min-width: 0; }
.file strong { font-size: .975rem; }
.file small { color: var(--bone-dim); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specs { margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.specs dt { color: var(--bone-dim); }
.specs dd { margin: 0; text-align: right; font-weight: 500; }
.assurances { list-style: none; margin: 1.4rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .9375rem; color: var(--bone-dim); }
.assurances li { display: flex; align-items: center; gap: .55rem; }
.assurances .icon { width: 18px; height: 18px; color: var(--flare); }
@media (max-width: 960px) {
  .product { grid-template-columns: 1fr; gap: 2rem; }
  .product__side { position: static; order: -1; }
  .product__main { display: contents; }
  .gallery { order: -2; }
}

/* ---------- Panier ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; align-items: start; }
.cart__items { display: grid; gap: .75rem; }
.cart__items .flash { margin: 0; }
.cart-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto auto; align-items: center; gap: 1.1rem; padding: .85rem; background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-row img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.cart-row__info { display: grid; gap: .4rem; justify-items: start; }
.cart-row__title { font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; line-height: 1; text-decoration: none; letter-spacing: .01em; }
.cart-row__title:hover { color: var(--flare); }
.cart-row__price { font-weight: 700; font-size: 1.125rem; }
.summary { position: sticky; top: 92px; background: var(--ground-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.summary__title { font-size: 1.25rem; }
.summary__lines { margin: 0; display: grid; gap: .5rem; }
.summary__lines div { display: flex; justify-content: space-between; gap: 1rem; color: var(--bone-dim); font-size: .975rem; }
.summary__lines dd { margin: 0; white-space: nowrap; }
.summary__total { padding-top: .85rem; margin-top: .35rem; border-top: 1px dashed var(--line-strong); color: var(--bone) !important; font-weight: 700; font-size: 1.1875rem !important; }
.summary__note { color: var(--bone-dim); font-size: .975rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: var(--bone-dim); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--flare); }
.consent a { color: var(--bone); }
.paypal-zone { min-height: 56px; transition: opacity .2s; }
.paypal-zone.is-locked #paypal-buttons { opacity: .4; }
.paypal-zone__hint { color: var(--bone-dim); font-size: .875rem; text-align: center; padding: .5rem 0; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
#paypal-buttons:not(:empty) + .paypal-zone__hint { border: 0; padding-top: .25rem; }
.paypal-zone__error { color: var(--danger); font-size: .9375rem; }
@media (max-width: 900px) {
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .cart-row img { width: 88px; }
  .cart-row__price { grid-column: 2; }
  .cart-row form { grid-row: 1; grid-column: 3; }
}

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field__label { font-weight: 600; font-size: .9375rem; }
.field__hint { color: var(--bone-dim); font-size: .85rem; }
.field input, .field select, .field textarea, .copy-input {
  width: 100%; min-height: 46px; padding: .65rem .85rem;
  background: var(--ground); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; font-family: var(--mono); font-size: .9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--flare); box-shadow: 0 0 0 3px rgba(242, 193, 78, .18); }
.field input:disabled { opacity: .6; }
.field--narrow { max-width: 180px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.check { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .975rem; }
.check input { width: 20px; height: 20px; accent-color: var(--flare); }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }

/* ---------- Connexion / inscription ---------- */
.auth { position: relative; min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 3rem var(--gutter); overflow: hidden; }
.auth__map { position: absolute; inset: 0; opacity: .7; }
.auth__map img { width: 100%; height: 100%; object-fit: cover; }
.auth__card { position: relative; width: min(100%, 440px); background: var(--ground-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 2rem; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.auth__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.4rem; line-height: 1; letter-spacing: .01em; margin-bottom: 1.5rem; }
.auth__text { color: var(--bone-dim); margin-bottom: 1.25rem; }
.auth__alt { margin-top: 1rem; text-align: center; font-size: .9375rem; color: var(--bone-dim); }
.auth__alt a { color: var(--bone); }
.auth .flash { margin-top: 0; }

/* ---------- Compte ---------- */
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.account-head__actions { display: flex; gap: .5rem; }
.page-head--compact .account-head .page-head__title { margin-bottom: .25rem; }
.page-head--compact .account-head { margin-bottom: 1.5rem; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; }
.tabs__link { padding: .8rem 1rem; text-decoration: none; color: var(--bone-dim); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs__link:hover { color: var(--bone); }
.tabs__link[aria-current="page"] { color: var(--bone); border-bottom-color: var(--flare); }

.library { display: grid; gap: 1rem; }
.lib-item { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 340px); gap: 1.5rem; align-items: center; padding: 1rem; background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); }
.lib-item__cover img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.lib-item__title { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.75rem; line-height: 1; letter-spacing: .01em; }
.lib-item__title a { text-decoration: none; }
.lib-item__title a:hover { color: var(--flare); }
.lib-item__meta { margin-top: .4rem; color: var(--bone-dim); font-size: .9375rem; }
.lib-item__actions { display: grid; gap: .5rem; }
.tag { font-family: var(--body); font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 3px; letter-spacing: 0; text-transform: none; }
.tag--new { background: var(--flare); color: var(--flare-ink); }
.dl { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); text-decoration: none; background: var(--ground); transition: border-color .15s; }
.dl:hover { border-color: var(--flare); }
.dl > .icon:first-child { width: 22px; height: 22px; color: var(--bone-dim); }
.dl--server > .icon:first-child { color: var(--teal); }
.dl--server:hover { border-color: var(--teal); }
.dl span { display: grid; flex: 1; min-width: 0; }
.dl strong { font-size: .975rem; }
.dl small { color: var(--bone-dim); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl__arrow { width: 20px; height: 20px; color: var(--flare); }
.dl--server .dl__arrow { color: var(--teal); }
@media (max-width: 960px) {
  .lib-item { grid-template-columns: 140px minmax(0, 1fr); }
  .lib-item__cover img { width: 140px; }
  .lib-item__actions { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .lib-item { grid-template-columns: 1fr; }
  .lib-item__cover img { width: 100%; }
}

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.5rem; align-items: start; }
.panel { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel__title { font-size: 1.1875rem; margin-bottom: 1rem; }
.form .panel__title { margin-bottom: 0; }
.panel__title--spaced { margin-top: 2rem; }
.panel--danger { border-color: rgba(227, 120, 95, .35); }
.panel--danger .muted { margin-bottom: 1rem; font-size: .9375rem; }

/* ---------- Tableaux et statuts ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground-2); }
.panel .table-wrap { border: 0; background: none; margin: 0 -.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th { text-align: left; font-weight: 600; color: var(--bone-dim); padding: .85rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: .875rem; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table--compact th, .table--compact td { padding: .6rem .5rem; }
.table a { text-decoration: none; }
.table a:hover { color: var(--flare); text-decoration: underline; }
.table__strong { font-weight: 600; }
.table__thumb img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.table .pack { margin: .1rem 0; }
.mono-ish { font-family: var(--mono); font-size: .8rem; }
.status { display: inline-block; padding: .18rem .55rem; border-radius: 3px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.status--ok { background: rgba(150, 197, 140, .15); color: var(--ok); }
.status--wait { background: rgba(242, 193, 78, .14); color: var(--flare); }
.status--off { background: rgba(168, 175, 162, .14); color: var(--bone-dim); }

/* ---------- Admin ---------- */
.page-head--admin { background: var(--ground-3); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.stat__label { color: var(--bone-dim); font-size: .9375rem; }
.stat__value { font-family: var(--display); font-size: 2.3rem; line-height: 1.1; margin-top: .35rem; }
.stat__sub { color: var(--bone-dim); font-size: .875rem; margin-top: .2rem; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.admin-cols--form { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.admin-side { display: grid; gap: 1.5rem; }
@media (max-width: 960px) { .admin-cols, .admin-cols--form { grid-template-columns: 1fr; } }
.ranking { margin: 0; padding-left: 1.4rem; display: grid; gap: .6rem; }
.ranking li { padding-left: .25rem; }
.ranking li::marker { color: var(--flare); font-weight: 700; }
.ranking li { display: list-item; }
.ranking span { float: right; color: var(--bone-dim); font-size: .9375rem; }
.ranking a { text-decoration: none; font-weight: 500; }
.chips--admin { margin-bottom: 1.25rem; }
.search--admin { margin-bottom: 1.25rem; max-width: 420px; }

.upload { padding: 1.1rem 0; border-top: 1px solid var(--line); display: grid; gap: .75rem; justify-items: start; }
.panel__title + .upload { border-top: 0; padding-top: 0; }
.upload__head { display: flex; gap: .75rem; align-items: flex-start; }
.upload__head .icon { width: 22px; height: 22px; color: var(--bone-dim); margin-top: .1rem; }
.upload[data-kind="server"] .upload__head .icon { color: var(--teal); }
.upload__head h3 { font-size: 1rem; }
.upload__head p { font-size: .875rem; }
.upload__current { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; word-break: break-all; }
.upload__current .icon { color: var(--ok); width: 18px; height: 18px; }
.upload__current--empty { color: var(--bone-dim); }
.upload__pick { cursor: pointer; }
.upload__progress { width: 100%; display: flex; align-items: center; gap: .75rem; }
.upload__progress[hidden] { display: none; }
.upload__bar { flex: 1; height: 8px; border-radius: 4px; background: var(--ground); overflow: hidden; position: relative; }
.upload__bar::after { content: ''; position: absolute; inset: 0; width: var(--p, 0%); background: var(--flare); transition: width .2s; }
.upload__pct { font-size: .875rem; font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.upload__preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.upload__error { color: var(--danger); font-size: .9rem; }
.gallery-admin { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: 100%; }
.gallery-admin__item { position: relative; }
.gallery-admin__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.gallery-admin__item .icon-btn { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; background: rgba(19, 20, 23, .85); }
.license-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; }
.license-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.license-list li span { display: grid; }
.license-list li small { font-size: .85rem; }
.license-list .is-revoked { opacity: .55; }
.inline-form { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.inline-form .field { flex: 1; min-width: 200px; }
.specs--panel { margin: 0 0 1.25rem; }
.copy-input { margin-top: .5rem; font-family: var(--mono); font-size: .85rem; }

/* ---------- Erreurs ---------- */
.error-page { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.error-page__code { font-family: var(--display); font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--flare); }
.error-page p { color: var(--bone-dim); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0e0f11; padding: 3.5rem 0 2rem; font-size: .9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.site-footer__brand p { margin-top: .75rem; color: var(--bone-dim); max-width: 28ch; }
.site-footer nav { display: grid; gap: .5rem; align-content: start; }
.site-footer nav a { color: var(--bone-dim); text-decoration: none; }
.site-footer nav a:hover { color: var(--bone); text-decoration: underline; }
.site-footer__title { font-size: .9375rem; font-weight: 700; margin-bottom: .25rem; }
.site-footer__bottom { position: relative; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; color: var(--bone-dim); font-size: .85rem; }

.site-footer__bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Installation et compléments admin ---------- */
.auth__card--wide { width: min(100%, 560px); }
.install__step { font-size: .9rem; color: var(--bone-dim); font-weight: 600; }
.install__bar { height: 6px; border-radius: 3px; background: var(--ground-3); overflow: hidden; margin: .5rem 0 1.5rem; }
.install__bar i { display: block; height: 100%; background: var(--flare); }
.auth .form-row { gap: .9rem; }
.mini-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; font-size: .9375rem; color: var(--bone-dim); }
.mini-steps li::marker { color: var(--flare); font-weight: 700; }
.mini-steps strong { color: var(--bone); }
.upload__note { margin-top: .9rem; font-size: .875rem; }
.field select { appearance: auto; }
button[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Téléchargements ---------- */
.nav__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: .4rem; padding: 0 6px; border-radius: 10px; background: var(--flare); color: var(--flare-ink); font-size: .75rem; font-weight: 700; vertical-align: 1px; }
.nav__link .show-xs .icon { width: 20px; height: 20px; vertical-align: -5px; }
.show-xs { display: none; }
@media (max-width: 640px) { .hide-xs { display: none; } .show-xs { display: inline; } }

.dl-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.chip { cursor: pointer; background: transparent; font: inherit; font-size: .9375rem; }
.chip[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--ground); }
.chip__n { margin-left: .3rem; opacity: .7; font-variant-numeric: tabular-nums; }
.chip--update { border-color: rgba(242, 193, 78, .55); color: var(--flare); }
.chip--update[aria-pressed="true"] { background: var(--flare); border-color: var(--flare); color: var(--flare-ink); }

.dl-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground-2); overflow: hidden; }
.dl-head, .dl-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 1.15rem; }
.dl-head { padding-top: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); color: var(--bone-dim); font-size: .875rem; font-weight: 600; background: var(--ground-3); }
.dl-row { border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 transparent; }
.dl-row:last-of-type { border-bottom: 0; }
.dl-row.has-update { box-shadow: inset 3px 0 0 var(--flare); background: linear-gradient(90deg, rgba(242, 193, 78, .06), transparent 40%); }
.dl-row__mod { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; }
.dl-row__thumb { flex: none; }
.dl-row__thumb img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.dl-row__info { min-width: 0; }
.dl-row__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.45rem; line-height: 1.1; letter-spacing: .01em; }
.dl-row__title a { text-decoration: none; }
.dl-row__title a:hover { color: var(--flare); }
.dl-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .3rem; font-size: .875rem; color: var(--bone-dim); }
.dl-row__req { margin-top: .25rem; font-size: .8125rem; color: var(--bone-dim); }
.dl-row__notes { margin-top: .4rem; font-size: .875rem; }
.dl-row__notes summary { cursor: pointer; color: var(--bone-dim); width: fit-content; }
.dl-row__notes summary:hover { color: var(--bone); }
.dl-row__notes .prose { margin-top: .5rem; font-size: .875rem; }
.dl-row__notes .prose h2 { font-family: var(--body); text-transform: none; font-size: .9375rem; font-weight: 700; letter-spacing: 0; margin-top: .75rem; }
.src { padding: .1rem .45rem; border-radius: 3px; font-size: .75rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--bone); }
.src--free { color: var(--ok); border-color: rgba(143, 199, 154, .45); }
.src--gift { color: var(--teal); border-color: rgba(127, 168, 216, .45); }

.dlc { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 58px; padding: .6rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--ground); text-decoration: none; transition: border-color .15s; }
.dlc > .icon:first-child { width: 22px; height: 22px; color: var(--bone-dim); flex: none; }
.dlc--server > .icon:first-child { color: var(--teal); }
.dlc > span { display: grid; flex: 1; min-width: 0; }
.dlc strong { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9375rem; }
.dlc small { color: var(--bone-dim); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dlc:hover { border-color: var(--flare); }
a.dlc--server:hover { border-color: var(--teal); }
.dlc__arrow { width: 20px; height: 20px; color: var(--flare); flex: none; }
.dlc--server .dlc__arrow { color: var(--teal); }
.dlc.is-update { border-color: rgba(242, 193, 78, .6); }
.dlc--none { border-style: dashed; opacity: .55; }
.tag--update { background: var(--flare); color: var(--flare-ink); }
.tag--fresh { background: transparent; color: var(--ok); border: 1px solid rgba(143, 199, 154, .5); padding: .1rem .4rem; }
.dl-empty { padding: 2rem; text-align: center; color: var(--bone-dim); }
.check--sm { font-size: .875rem; color: var(--bone-dim); }
.check--sm input { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .dl-head { display: none; }
  .dl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dl-row__mod { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .dl-row { grid-template-columns: 1fr; }
  .dl-row__thumb img { width: 84px; }
}
.nav__link { display: inline-flex; align-items: center; }
@media (max-width: 640px) {
  .nav__link { padding: .5rem .45rem; }
  .nav__link--hide-sm { display: none; }
  .nav__count { margin-left: .2rem; min-width: 18px; height: 18px; font-size: .7rem; }
  .nav__icon-link { width: 40px; }
}
@media (max-width: 400px) { .brand__name { font-size: 1rem; } }

/* ---------- Vidéo YouTube ---------- */
.gallery__stage { position: relative; }
.yt { position: absolute; inset: 0; background: #000; }
.yt[hidden] { display: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.yt__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt__play:hover img, .yt__play:focus-visible img { opacity: 1; }
.yt__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); transition: transform .15s; }
.yt__play:hover .yt__btn { transform: translate(-50%, -50%) scale(1.08); }
.yt__note { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .9rem; font-size: .8125rem; color: var(--bone-dim); background: linear-gradient(transparent, rgba(0, 0, 0, .8)); text-align: left; }
.gallery__thumb--video { position: relative; }
.gallery__thumb--video span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--flare); font-size: 1.1rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); background: rgba(0, 0, 0, .25); }
.yt-preview { display: flex; align-items: center; gap: .75rem; margin-top: .6rem; font-size: .875rem; color: var(--ok); }
.yt-preview[hidden] { display: none; }
.yt-preview img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* ---------- Mise en page des descriptions ---------- */
.prose h4 { font-size: 1.0625rem; margin-top: 1.5rem; }
.prose hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 2rem 0; }
.prose mark { background: rgba(242, 193, 78, .25); color: var(--bone); padding: 0 .2em; border-radius: 2px; }
.prose s { color: var(--bone-dim); }
.prose blockquote { margin: 1.25rem 0; padding: .25rem 0 .25rem 1.1rem; border-left: 3px solid var(--line-strong); color: var(--bone-dim); font-style: italic; }
.prose blockquote p { color: inherit; }
.prose ol li::marker { color: var(--flare); font-weight: 700; }
.prose .md-check { list-style: none; display: flex; gap: .6rem; align-items: flex-start; margin-left: -1.25rem; }
.prose .md-check::marker { content: ''; }
.md-check__box { flex: none; width: 18px; height: 18px; margin-top: .2em; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 4px; font-size: .75rem; font-weight: 700; color: var(--flare-ink); }
.md-check.is-done .md-check__box { background: var(--ok); border-color: var(--ok); }
.md-check.is-done { color: var(--bone-dim); }
.md-code { margin: 1.25rem 0; padding: 1rem 1.1rem; background: #0d0e10; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; }
.md-code code { background: none; padding: 0; font-size: .875rem; line-height: 1.6; color: #dcdad3; white-space: pre; }
.md-table { margin: 1.25rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.md-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.md-table th { text-align: left; background: var(--ground-3); color: var(--bone); font-weight: 600; padding: .65rem .85rem; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.md-table td { padding: .6rem .85rem; border-bottom: 1px solid var(--line); color: #d4d3cd; vertical-align: top; }
.md-table tr:last-child td { border-bottom: 0; }
.md-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.md-figure { margin: 1.5rem 0; }
.md-figure img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.md-figure figcaption { margin-top: .5rem; font-size: .875rem; color: var(--bone-dim); text-align: center; }
.md-img { display: inline-block; max-height: 1.6em; vertical-align: middle; border-radius: 3px; }
.callout { margin: 1.25rem 0; padding: .9rem 1.1rem; border: 1px solid; border-left-width: 4px; border-radius: var(--radius-sm); }
.callout > * + * { margin-top: .5rem; }
.callout__title { font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.callout__title::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.callout--info { border-color: rgba(127, 168, 216, .45); background: rgba(127, 168, 216, .08); }
.callout--info .callout__title { color: var(--teal); }
.callout--tip { border-color: rgba(143, 199, 154, .45); background: rgba(143, 199, 154, .08); }
.callout--tip .callout__title { color: var(--ok); }
.callout--warn { border-color: rgba(232, 115, 92, .5); background: rgba(232, 115, 92, .08); }
.callout--warn .callout__title { color: var(--danger); }
.callout ul, .callout ol { margin: .4rem 0 0; }

/* Éditeur */
.editor { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--ground); }
.editor:focus-within { border-color: var(--flare); box-shadow: 0 0 0 3px rgba(242, 193, 78, .18); }
.editor textarea { display: block; width: 100%; min-height: 260px; padding: .85rem; border: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: transparent; resize: vertical; outline: none; font-family: var(--mono); font-size: .9rem; line-height: 1.6; color: var(--bone); }
.editor--small textarea { min-height: 140px; }
.editor__bar { position: sticky; top: 68px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; flex-wrap: nowrap; padding: .35rem; border-bottom: 1px solid var(--line); background: var(--ground-2); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.editor__tools { position: relative; flex: 1; display: flex; flex-wrap: wrap; gap: .25rem; min-width: 0; }
.editor__tools.is-disabled { opacity: .35; pointer-events: none; }
.editor__group { display: flex; gap: 1px; padding-right: .3rem; margin-right: .05rem; border-right: 1px solid var(--line); }
.editor__group:last-child { border-right: 0; }
.editor__btn { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .35rem; border: 0; border-radius: 4px; background: transparent; color: var(--bone-dim); cursor: pointer; font-size: 1rem; line-height: 1; }
.editor__btn:hover, .editor__btn:focus-visible { background: var(--ground-3); color: var(--bone); }
.editor__btn--menu::after { content: ''; margin-left: 2px; border: 3px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.editor__btn--menu { display: inline-flex; align-items: center; gap: 1px; }
.editor__tabs { flex: none; display: flex; gap: 2px; padding: 2px; border-radius: 6px; background: var(--ground); }
.editor__tab { min-height: 30px; padding: 0 .75rem; border: 0; border-radius: 4px; background: transparent; color: var(--bone-dim); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.editor__tab[aria-pressed="true"] { background: var(--ground-3); color: var(--bone); }
.editor__menu { position: absolute; top: calc(100% + 6px); z-index: 10; min-width: 190px; max-width: 320px; padding: .4rem; background: var(--ground-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); }
.editor__menu-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .6rem; border: 0; border-radius: 4px; background: transparent; color: var(--bone); font: inherit; font-size: .9375rem; text-align: left; cursor: pointer; }
.editor__menu-item:hover, .editor__menu-item:focus-visible { background: var(--ground-3); }
.editor__menu-note { padding: .3rem .4rem .5rem; font-size: .8125rem; color: var(--bone-dim); }
.editor__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.editor__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; overflow: hidden; }
.editor__thumbs button:hover, .editor__thumbs button:focus-visible { border-color: var(--flare); }
.editor__thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--info { background: var(--teal); }
.dot--tip { background: var(--ok); }
.dot--warn { background: var(--danger); }
.editor__preview { margin: 0; max-width: none; padding: .5rem 1.1rem 1rem; overflow: auto; }
.editor__preview > :first-child { margin-top: .5rem; }
.md-help { font-size: .9rem; }
.md-help summary { cursor: pointer; color: var(--bone-dim); width: fit-content; }
.md-help summary:hover { color: var(--bone); }
.md-help__grid { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin-top: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground); align-items: center; }
.md-help__grid span { color: var(--bone-dim); }
.md-help__grid mark { background: rgba(242, 193, 78, .25); color: var(--bone); padding: 0 .2em; }

/* ---------- Discord ---------- */
.nav__discord:hover, .nav__discord:focus-visible { color: #8b95ff; }
.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; }
.btn--discord .icon { width: 20px; height: 20px; }
.site-footer__discord { margin-top: 1rem; }
.community { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.75rem 2rem; border: 1px solid rgba(88, 101, 242, .45); border-radius: var(--radius); background: linear-gradient(110deg, rgba(88, 101, 242, .16), rgba(88, 101, 242, .03) 60%); }
.community__logo { width: 56px; height: 56px; color: #8b95ff; }
.community__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: .01em; }
.community__text p { margin-top: .35rem; color: var(--bone-dim); max-width: 56ch; }
@media (max-width: 760px) {
  .community { grid-template-columns: 1fr; text-align: left; padding: 1.5rem; }
  .community .btn { justify-self: start; }
}
.discord-help { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .8rem .9rem; border: 1px solid rgba(88, 101, 242, .4); border-radius: var(--radius-sm); background: rgba(88, 101, 242, .08); text-decoration: none; transition: border-color .15s, background-color .15s; }
.discord-help:hover { border-color: #5865f2; background: rgba(88, 101, 242, .14); }
.discord-help__logo { width: 26px; height: 26px; color: #8b95ff; flex: none; }
.discord-help span { display: grid; flex: 1; min-width: 0; }
.discord-help strong { font-size: .9375rem; }
.discord-help small { color: var(--bone-dim); font-size: .8125rem; }
.discord-help__arrow { width: 18px; height: 18px; color: #8b95ff; flex: none; }
.dl-help { margin-top: 1.25rem; max-width: 560px; }
@media (max-width: 440px) { .site-header .brand__name { display: none; } }
.product > *, .product__main > * { min-width: 0; }
@media (max-width: 960px) { .product { grid-template-columns: minmax(0, 1fr); } }
