/* Site des skins : charte « Patine », reprise telle quelle de clan.deadland.org (clansite/app/static/style.css).
   Pensé téléphone d'abord (360 px), une colonne ; cibles tactiles >= 44 px ; saisies en 16 px (pas de zoom iOS). */
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Arimo; src: url("/static/fonts/Arimo.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
:root { --charbon: #1C2021; --panneau: #292E30; --kaki: #343E2D; --olive: #56604B; --acier: #667075; --ivoire: #E5DFCE;
  --orange: #D66B2B; --sable: #C4AE8A; --rouge: #A8432F; --display: "Barlow Condensed", Impact, sans-serif;
  --body: Arimo, Arial, sans-serif; --tap: 44px; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--charbon); color: var(--ivoire); font: 16px/1.5 var(--body);
  overflow-x: hidden; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--panneau); }
.logo { height: auto; width: 130px; }
main { max-width: 760px; margin: 0 auto; padding: 16px 12px 48px; display: flex; flex-direction: column; gap: 22px; }
h1 { font: 700 34px/1 var(--display); letter-spacing: .03em; margin: 0; text-transform: uppercase; overflow-wrap: anywhere; }
h2 { font: 700 24px/1 var(--display); letter-spacing: .05em; margin: 0 0 10px; text-transform: uppercase; color: var(--sable); }
p { margin: 0; }
code { font-size: 14px; background: var(--panneau); padding: 1px 5px; }
section.center { display: flex; flex-direction: column; gap: 18px; text-align: center; max-width: 420px; margin: 32px auto 0; width: 100%; }
section.head { display: flex; flex-direction: column; gap: 10px; }
.lead { color: var(--sable); font: 700 20px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.hint { color: var(--acier); font-size: 14px; }
.cards-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cards-row .card { flex: 1; min-width: 140px; }
.card { background: var(--panneau); border-left: 3px solid var(--orange); padding: 8px 14px; display: flex; flex-direction: column; text-align: left; }
.card span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--acier); overflow-wrap: anywhere; }
.card b { font: 700 22px/1.2 var(--display); color: var(--sable); overflow-wrap: anywhere; }
.card-item { background: var(--panneau); padding: 12px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tag { background: var(--kaki); color: var(--ivoire); padding: 4px 8px; font-size: 13px; text-transform: uppercase;
  letter-spacing: .06em; white-space: nowrap; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--acier); font-size: 14px; }

/* champs et boutons : pleine largeur et 44 px au doigt */
input, select { width: 100%; min-height: var(--tap); background: var(--charbon); color: var(--ivoire);
  border: 1px solid var(--acier); padding: 8px 10px; font: 16px var(--body); border-radius: 0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sable) 50%),
  linear-gradient(135deg, var(--sable) 50%, transparent 50%); background-position: right 16px center, right 10px center;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, button:focus-visible, .upload:focus-within { outline: 2px solid var(--orange); outline-offset: 1px; }
button, .btn { cursor: pointer; border: 0; min-height: var(--tap); padding: 10px 16px; font: 700 17px/1 var(--display);
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: var(--orange); color: var(--charbon); }
button.wide { width: 100%; }
.btn { display: flex; align-items: center; justify-content: center; padding: 14px; font-size: 20px; }
.btn.discord { background: #5865F2; color: #fff; }
.btn.off { opacity: .45; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--ivoire); border: 1px solid var(--acier); }
.flash { margin: 0; padding: 12px 14px; background: var(--kaki); border-left: 3px solid var(--olive); }
.flash.err { background: #3A2622; border-left-color: var(--rouge); }

/* import : le bouton ouvre le sélecteur de fichier, le choix l'envoie */
.upload { position: relative; font-size: 22px; min-height: 56px; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }

/* aperçus : pixels nets */
.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.views { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.views figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.views img { width: 112px; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
figcaption { font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--acier); }
.actions { display: flex; flex-direction: column; gap: 8px; }

/* outils du mode local : jamais en ligne (LOCAL_TOOLS) */
.local { border: 1px dashed var(--acier); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.local h2 { margin: 0; color: var(--acier); font-size: 20px; }
.local p { color: var(--acier); font-size: 14px; }
.local-form { display: flex; flex-direction: column; gap: 8px; }

@media (min-width: 700px) {
  header { padding: 14px 24px; }
  .logo { width: 160px; }
  main { padding: 28px 16px 64px; gap: 28px; }
  h1 { font-size: 42px; }
  section.head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  section.head .cards-row { flex: none; }
  .card-item { padding: 18px; }
  .views img { width: 140px; }
    .actions { flex-direction: row-reverse; }
  .actions form { flex: 1; }
  .local-form { flex-direction: row; }
  .local-form button { flex: none; }
}
