/* ============================================================================
   WAR THUNDER · TANK GUIDE — styles composants
   Basé sur le design system "TierForge" (WarThunder.design/colors_and_type.css
   = source unique des tokens). Ce fichier porte/adapte les composants du
   kit (nav, hero, statband, cartes véhicule "recon", jauges, footer) et
   ajoute ce qui est propre au guide (atouts/faiblesses, sections de rang,
   vue Avions). Images : CDN encyclopédie War Thunder.
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--fg-2);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--fg-inverse); }
img { display: block; }

.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-px); }

/* ---- Scroll reveal (signature Apple du kit) ------------------------------ */
.reveal { opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
/* will-change UNIQUEMENT tant que l'élément n'est pas révélé : la couche GPU
   est libérée dès que `.is-in` est posé -> plus de centaines de couches
   compositées permanentes qui saturent la mémoire graphique et font ramer. */
.reveal:not(.is-in) { will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; will-change: auto; }
.reveal[style*="--i"] { transition-delay: calc(var(--i, 0) * 55ms); }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none;} }

/* ============================ NAV ========================================= */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  /* Fond opaque plutôt que backdrop-filter : un blur sur une barre sticky est
     recalculé à CHAQUE frame de scroll (très cher sur GPU intégré). Le fond
     quasi-opaque donne le même rendu sur surface sombre, sans ce coût. */
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { width: 30px; height: 30px; display: block; }
.nav-mark { width: 34px; height: 34px; object-fit: contain; display: block;
  mix-blend-mode: screen; } /* efface le fond noir du PNG sur surface sombre */
.footer-brand .nav-mark { width: 38px; height: 38px; }
.nav-logo .wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  letter-spacing: .12em; color: var(--fg-1);
}
.nav-logo .tag {
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  color: var(--fg-3); letter-spacing: .18em; border: 1px solid var(--border-default);
  padding: 2px 5px; border-radius: var(--radius-xs); text-transform: uppercase;
}
.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--fg-3); padding: 8px 14px;
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--dur-fast) var(--ease-snap), background var(--dur-fast) var(--ease-snap);
}
.nav-link:hover { color: var(--fg-1); background: var(--bg-overlay); }
.nav-link.on { color: var(--fg-1); background: var(--accent-ghost); }
.nav-link.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.nav-spacer { flex: 1; }
.nav-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: .1em; text-transform: uppercase; }
.nav-meta b { color: var(--accent); font-weight: 600; }

/* ---- Recherche cross-nation ---- */
.nav-search { position: relative; flex: 1; max-width: 380px; margin-left: auto; display: flex; align-items: center; }
.nav-search .ns-icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--fg-4); pointer-events: none; }
#search-input {
  width: 100%; height: 38px; padding: 0 14px 0 36px;
  background: var(--bg-inset); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); color: var(--fg-1); font-size: 14px;
  font-family: inherit; outline: none;
  transition: border-color var(--dur-fast) var(--ease-snap), box-shadow var(--dur-fast) var(--ease-snap);
}
#search-input::placeholder { color: var(--fg-4); }
#search-input:focus { border-color: var(--border-accent); box-shadow: var(--glow-accent-sm, 0 0 0 3px var(--accent-ghost)); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--bg-raised); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md, 0 16px 40px rgba(0,0,0,.5)); max-height: 60vh; overflow-y: auto;
}
.sr-item { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border-subtle); }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.active { background: var(--accent-ghost); }
.sr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px;
  text-align: left; padding: 8px 4px 8px 12px; background: none; border: none; cursor: pointer; }
.sr-thumb { width: 42px; height: 28px; flex-shrink: 0; display: grid; place-items: center; }
.sr-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.sr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr-acts { display: flex; gap: 6px; padding-right: 10px; flex-shrink: 0; }
.sr-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--fg-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
/* boutons recherche révélés au survol de la ligne (souris) ; actif = visible ; tactile = toujours visibles */
@media (hover: hover) {
  .sr-acts .ca-btn { opacity: 0; transition: opacity var(--dur-fast) var(--ease-snap); }
  .sr-item:hover .sr-acts .ca-btn, .sr-item.active .sr-acts .ca-btn, .sr-item:focus-within .sr-acts .ca-btn { opacity: 1; }
  .sr-acts .ca-btn.on { opacity: 1; }
}

/* ============================ HERO ======================================== */
.hero { position: relative; padding: 84px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-glow); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: var(--dot-grid);
  background-size: var(--dot-grid-size); opacity: .6; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg,#000,transparent 82%); mask-image: linear-gradient(180deg,#000,transparent 82%); }
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-mono-sm); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display-xl);
  line-height: var(--lh-display); letter-spacing: var(--tracking-display); margin: 16px 0 0; }
.hero h1 .grad { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .amber { color: var(--accent); }
.hero-sub { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--fg-2);
  margin: 22px auto 0; max-width: 580px; }

/* ---- Stat band ---- */
.statband { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.statband-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.statcell { padding: 24px 22px; border-left: 1px solid var(--border-subtle); }
.statcell:first-child { border-left: none; }
.statcell .v { font-family: var(--font-mono); font-weight: 600; font-size: 28px; color: var(--fg-1);
  letter-spacing: -.01em; font-feature-settings:"tnum" 1; }
.statcell .k { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }

/* ============================ SUBNAV (Chars / Avions) ===================== */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  padding: 14px 0; margin-bottom: 8px;
  background: var(--bg-header); /* opaque, pas de blur par-frame (cf. .nav) */
  border-bottom: 1px solid var(--border-subtle);
}
.filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; color: var(--fg-2); background: var(--bg-overlay);
  border: 1px solid var(--border-default); padding: 9px 16px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
  transition: all var(--dur-fast) var(--ease-snap); }
.chip:hover { border-color: var(--border-strong); color: var(--fg-1); }
.chip.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-ghost); }
.chip svg { width: 14px; height: 14px; }
.filter-spacer { flex: 1; }

/* Liste des rangs cliquables (à droite de la barre) */
.rank-jump { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.rank-jump .rj-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: .1em; margin-right: 3px;
}
.rj-btn {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--fg-2); background: var(--bg-overlay);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  min-width: 30px; padding: 5px 7px; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-snap), border-color var(--dur-fast) var(--ease-snap), background var(--dur-fast) var(--ease-snap);
}
.rj-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-ghost); }
/* rang actif (position de scroll) */
.rj-btn.on {
  color: var(--fg-inverse); background: var(--accent);
  border-color: var(--accent); box-shadow: 0 0 10px rgba(255,106,31,.4);
}

/* ============================ CONTENT / RANK SECTIONS ===================== */
main { display: block; }
.view[hidden] { display: none; }
.ranks { padding: 22px 0 40px; }

/* Décale l'ancre sous les 2 barres collantes (nav 64 + subnav ~58) */
/* content-visibility : le navigateur saute layout+paint des sections hors
   écran (grosses images + ombres) -> scroll bien plus fluide. La taille
   intrinsèque évite les sauts de scrollbar ; `auto` mémorise la vraie taille. */
.rank-section { margin-top: 44px; scroll-margin-top: 128px;
  content-visibility: auto; contain-intrinsic-size: auto 900px; }
.rank-section:first-child { margin-top: 26px; }
.rank-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.rank-head .rank-eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: .16em; text-transform: uppercase; }
.rank-head h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2);
  letter-spacing: var(--tracking-tight); color: var(--fg-1); margin: 6px 0 0; }
.rank-head .rule { flex: 1; height: 1px; background: var(--border-subtle); margin-bottom: 10px; }
.rank-head .rank-count { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: .08em; margin-bottom: 9px; white-space: nowrap; }

.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.grid > .vcard { flex: 0 1 calc((100% - 36px) / 3); }
@media (max-width: 920px){ .grid > .vcard { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 600px){ .grid > .vcard { flex-basis: 100%; } }

/* ============================ VEHICLE CARD =============================== */
.vcard { background: var(--bg-raised); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.vcard:hover { border-color: var(--border-accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Recon frame (zone image) */
.recon { position: relative; height: 168px; background: var(--bg-inset);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border-default); overflow: hidden; }
.recon::before { content: ""; position: absolute; inset: 0; background-image: var(--dot-grid);
  background-size: 16px 16px; opacity: .5; }
.recon .wt-img { position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: contain; padding: 10px 12px 16px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.55));
  transition: transform var(--dur-base) var(--ease-out); }
.vcard:hover .recon .wt-img { transform: scale(1.045); }
.recon .glyph { width: 46px; height: 46px; color: var(--fg-4); position: relative; z-index: 1;
  transition: color var(--dur-base) var(--ease-out); }
.vcard:hover .recon .glyph { color: var(--fg-3); }
/* coins "recon" ambre */
.recon .tick { position: absolute; width: 11px; height: 11px; border: 1.5px solid var(--accent-line); z-index: 2; }
.recon .tl{top:10px;left:10px;border-right:none;border-bottom:none;}
.recon .tr{top:10px;right:10px;border-left:none;border-bottom:none;}
.recon .bl{bottom:10px;left:10px;border-right:none;border-top:none;}
.recon .br{bottom:10px;right:10px;border-left:none;border-top:none;}
.recon .rank-chip { position: absolute; top: 11px; right: 11px; z-index: 3;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: var(--fg-inverse);
  background: var(--accent); padding: 3px 9px; border-radius: var(--radius-sm); letter-spacing: .04em; }
.recon .caplabel { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: 9px; color: var(--fg-4); letter-spacing: .2em; }

/* Corps de carte */
.vcard-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.vcard-eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--accent);
  letter-spacing: .14em; text-transform: uppercase; }
.vcard-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--fg-1);
  letter-spacing: -.02em; margin: 5px 0 0; line-height: 1.15; }

/* Jauge de cote (étoiles → barre instrument) */
.gauge { margin-top: 13px; }
.gauge-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.gauge-name { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: .08em; text-transform: uppercase; }
.gauge-val { font-family: var(--font-mono); font-size: 13px; color: var(--fg-1); font-weight: 600; }
.gauge-val .u { color: var(--fg-3); font-size: 10px; }
.gauge-track { height: 6px; background: var(--bg-overlay-2); border-radius: var(--radius-pill); overflow: hidden; }
.gauge-fill { height: 100%; background: var(--accent); border-radius: var(--radius-pill);
  box-shadow: 0 0 10px rgba(255,106,31,.45); width: 0; transition: width 900ms var(--ease-out); }

/* Atouts / Faiblesses */
.pc-group { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.pc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pc li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-body-sm);
  line-height: 1.4; color: var(--fg-2); }
.pc li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.pc.pros li svg { color: var(--success); }
.pc.cons li svg { color: var(--danger); }

/* ============================ VUE AVIONS (à venir) ======================= */
.avions-wrap { padding: 40px 0 60px; }
.avions-panel { position: relative; border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  background: var(--bg-inset); overflow: hidden; padding: 72px 28px; text-align: center; }
.avions-panel::before { content: ""; position: absolute; inset: 0; background-image: var(--dot-grid);
  background-size: 22px 22px; opacity: .5; }
.avions-panel::after { content: ""; position: absolute; inset: 0; background: var(--grad-glow); }
.avions-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.avions-inner .glyph { width: 76px; height: 76px; color: var(--fg-4); }
.avions-inner h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2);
  color: var(--fg-1); letter-spacing: var(--tracking-tight); margin: 4px 0 0; }
.avions-inner .pill { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line);
  background: var(--accent-ghost); padding: 5px 12px; border-radius: var(--radius-pill); }
.avions-inner p { color: var(--fg-3); max-width: 460px; margin: 6px 0 0; font-size: 15px; line-height: 1.6; }
.avions-panel .tick { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--accent-line); z-index: 2; }
.avions-panel .tl{top:16px;left:16px;border-right:none;border-bottom:none;}
.avions-panel .tr{top:16px;right:16px;border-left:none;border-bottom:none;}
.avions-panel .bl{bottom:16px;left:16px;border-right:none;border-top:none;}
.avions-panel .br{bottom:16px;right:16px;border-left:none;border-top:none;}

/* ============================ FOOTER ===================================== */
.footer { border-top: 1px solid var(--border-subtle); background: var(--bg-inset);
  padding: 56px 0 36px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--fg-3); line-height: 1.7; max-width: 300px; margin: 0; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; font-weight: 500; }
.footer-col a, .footer-col span.dead { display: block; font-size: 14px; color: var(--fg-2);
  text-decoration: none; padding: 5px 0; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-snap); }
.footer-col a:hover { color: var(--accent); }
.footer-col span.dead { color: var(--fg-4); cursor: default; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 12px; }
.footer-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); letter-spacing: .04em; text-transform: uppercase; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 11px; color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; }
.footer-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.footer-copy { margin-top: 18px; text-align: center; font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-4); letter-spacing: .06em; }

/* ============================ RESPONSIVE ================================= */
@media (max-width: 860px){
  .statband-inner { grid-template-columns: 1fr 1fr; }
  .statcell:nth-child(3) { border-left: none; }
  .statcell:nth-child(3), .statcell:nth-child(4) { border-top: 1px solid var(--border-subtle); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-meta { display: none; }
}
@media (max-width: 520px){
  .nav-links .label-long { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   AJOUTS — Ground RB Optimizer : chips de type, teaser, résumé de rang, modale
   ========================================================================== */

/* Chip de type véhicule (sur l'image) */
.type-chip {
  position: absolute; top: 11px; left: 11px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--fg-1); background: rgba(13,15,17,.9);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 3px 8px;
}
.type-chip .ti { width: 12px; height: 12px; color: var(--accent); }

/* Carte cliquable */
.vcard { cursor: pointer; }
.vcard:focus-visible { outline: none; border-color: var(--border-accent); box-shadow: var(--glow-accent-sm); }

.status-pill {
  align-self: flex-start; margin-top: 2px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
  background: var(--success-bg); border-radius: var(--radius-xs); padding: 2px 7px;
}

.teaser {
  margin: 10px 0 0; font-size: var(--fs-body-sm); line-height: 1.45;
  color: var(--fg-2); flex: 1;
}

.details-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  transition: gap var(--dur-fast) var(--ease-snap);
}
.details-link .ar { width: 14px; height: 14px; }
.vcard:hover .details-link { gap: 9px; }

/* Résumé de rang (sous l'en-tête, vue chars) */
.rank-summary {
  display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px;
}
.rank-summary span {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-2);
  background: var(--bg-overlay); border: 1px solid var(--border-default);
  border-radius: var(--radius-pill); padding: 5px 12px; letter-spacing: .02em;
}
.rank-summary b {
  color: var(--accent); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 10px; margin-right: 5px;
}

/* Illustration de repli grande (modale) */
.glyph-lg { width: 90px; height: 90px; color: var(--fg-4); }

/* ---- Prix Silver Lions / Research Points ---- */
.price-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.pr {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--fg-1); background: var(--bg-overlay);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 4px 9px; letter-spacing: .01em;
}
.pr img { width: 15px; height: 15px; display: block; flex-shrink: 0; }
.pr.sl { color: #d9dee6; }
.pr.rp { color: #cfe0c0; }
/* dans la carte, la ligne prix se place avant le lien détails */
.vcard-body .price-row { margin-top: 10px; }
/* dans la modale */
.sheet-price { margin-top: 14px; }
.sheet-price .pr { font-size: 13px; padding: 6px 12px; }

/* ============================ MODALE (vehicle sheet) ===================== */
.scrim {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: var(--bg-scrim); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  justify-content: center; align-items: flex-start;
  padding: 56px 20px; overflow-y: auto;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.scrim.open { display: flex; }
.scrim.in { opacity: 1; }

.sheet {
  position: relative; /* ancre la croix .sheet-close sur la fiche, pas sur l'écran */
  width: 100%; max-width: 720px; background: var(--bg-raised);
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-xl);
  transform: translateY(18px) scale(.99);
  transition: transform var(--dur-base) var(--ease-out);
}
.scrim.in .sheet { transform: none; }

.sheet-hero {
  position: relative; height: 260px; background: var(--bg-inset);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-bottom: 1px solid var(--border-default); overflow: hidden;
}
.sheet-hero::before {
  content: ""; position: absolute; inset: 0; background-image: var(--dot-grid);
  background-size: 22px 22px; opacity: .5;
}
.sheet-hero .wt-img {
  position: relative; z-index: 1; max-width: 100%; max-height: 100%;
  object-fit: contain; padding: 16px 18px 22px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}
.sheet-hero.multi .wt-img { max-width: 50%; }
.sheet-hero .glyph-lg { position: relative; z-index: 1; }

.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(13,15,17,.7); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2); cursor: pointer; backdrop-filter: blur(4px);
  transition: all var(--dur-fast) var(--ease-snap);
}
.sheet-close svg { width: 18px; height: 18px; }
.sheet-close:hover { border-color: var(--border-accent); color: var(--accent); }

.sheet-body { padding: 22px 26px 28px; }
.sheet-eyebrow {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: .14em; text-transform: uppercase;
}
.sheet-title {
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  letter-spacing: -.02em; color: var(--fg-1); margin: 6px 0 0; line-height: 1.1;
}
.sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fg-2);
  background: var(--bg-overlay); border: 1px solid var(--border-default);
  border-radius: var(--radius-pill); padding: 5px 11px;
}
.chip-tag .ti { width: 13px; height: 13px; color: var(--accent); }
.chip-tag.tt { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }

.m-sec { margin-top: 18px; }
.m-sec-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px;
  padding-left: 14px; position: relative;
}
.m-sec-label::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 3px; height: 12px;
  border-radius: 2px; background: var(--fg-4);
}
.m-sec.pros .m-sec-label::before { background: var(--success); }
.m-sec.cons .m-sec-label::before { background: var(--danger); }
.m-sec.why  .m-sec-label::before { background: var(--accent); }
.m-sec.note .m-sec-label::before { background: var(--warning); }
.m-sec p { margin: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--fg-2); }
.m-sec.why p { color: var(--fg-1); }

/* Fiche technique (stats de combat) */
.m-stats-sec .m-sec-label::before { background: var(--accent); }
.ms-hint {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
  text-transform: none; color: var(--fg-4); margin-left: 6px;
}
.m-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border-default);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  overflow: hidden;
}
.m-stat {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 12px; background: var(--bg-base);
}
.ms-k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--fg-3); white-space: nowrap;
}
.ms-v {
  font-size: var(--fs-body); font-weight: var(--fw-semibold);
  color: var(--fg-1); text-align: right;
}
.m-stats-part + .m-stats-part { margin-top: 12px; }
.m-stats-part-name {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-3); margin-bottom: 5px;
}
/* Sections de la fiche avion (Performances, Cellule, Limites, Armement détaillé) */
.m-stats-group-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-4);
  margin: 14px 0 6px; padding-bottom: 4px;
  border-bottom: 1px solid var(--border-default);
}
.m-stats + .m-stats-group-label { margin-top: 16px; }
/* Armement détaillé : une carte par arme */
.m-wpns { display: grid; gap: 8px; }
.m-wpn {
  padding: 9px 12px; background: var(--bg-base);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
}
.m-wpn-name {
  font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--fg-1);
}
.m-wpn-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 2px;
}
.m-wpn-belts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.m-belt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em;
  color: var(--fg-2); background: var(--bg-elev-1, var(--bg-base));
  border: 1px solid var(--border-default); border-radius: 999px;
  padding: 2px 9px;
}
@media (max-width: 560px){
  .m-stats { grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .sheet-hero { height: 200px; }
  .sheet-title { font-size: 24px; }
}

/* ============================================================================
   VÉHICULES COMBINÉS (2 véhicules à la même place)
   ========================================================================== */
/* --- Carte : 2 mini-véhicules côte à côte --- */
.combo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border-default); border-bottom: 1px solid var(--border-default); }
.combo-col { background: var(--bg-inset); padding: 10px 10px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 7px; }
.combo-media { position: relative; width: 100%; height: 92px;
  display: flex; align-items: center; justify-content: center; }
.combo-media .wt-img { max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.combo-name { font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--fg-1); text-align: center; line-height: 1.1; letter-spacing: -.01em; }
.combo-col .price-row { margin-top: auto; justify-content: center; gap: 5px; }
.combo-col .pr { font-size: 11px; padding: 3px 6px; }
.combo-col .pr img { width: 13px; height: 13px; }
.vcard.is-combo:hover .combo-media .wt-img { transform: scale(1.05); transition: transform var(--dur-base) var(--ease-out); }

/* --- Modale : 2 colonnes (image + nom + prix) --- */
.sheet-combo { display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-inset); border-bottom: 1px solid var(--border-default); }
.sheet-combo .sc-col { padding: 22px 18px; display: flex; flex-direction: column;
  align-items: center; gap: 10px; position: relative; }
.sheet-combo .sc-col + .sc-col { border-left: 1px solid var(--border-default); }
.sheet-combo .sc-media { height: 150px; width: 100%;
  display: flex; align-items: center; justify-content: center; }
.sheet-combo .sc-media .wt-img { max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); }
.sheet-combo .sc-name { font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--fg-1); text-align: center; }
.sheet-combo .sc-col .price-row { justify-content: center; }

@media (max-width: 480px){
  .combo-name { font-size: 12px; }
  .combo-col .pr { font-size: 10px; }
}

/* ============================================================================
   LANDING / HOME (index.html)
   ========================================================================== */
.home-hero { padding: 92px 0 64px; }
.home-hero .hero-sub { max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px;
  border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700;
  font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-snap), background var(--dur-fast) var(--ease-snap), border-color var(--dur-fast) var(--ease-snap), box-shadow var(--dur-fast) var(--ease-snap); }
.btn .flag { font-size: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1a1006; box-shadow: 0 8px 24px rgba(255,90,31,.28); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255,90,31,.4); }
.btn-ghost { background: var(--bg-overlay); color: var(--fg-1); border-color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-ghost);
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px var(--accent-ghost); }

.home-main { padding-bottom: 40px; }
.home-sec { padding: 46px 0; }
.sec-head { margin-bottom: 26px; }
.sec-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sec-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -.01em; margin: 0; color: var(--fg-1); }
.sec-sub { color: var(--fg-3); font-size: 15px; margin: -14px 0 24px; }

/* ---- Choix nation ---- */
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nation-card { position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 26px 26px 22px; background: var(--bg-raised); border: 1px solid var(--accent);
  border-radius: var(--radius-lg); text-decoration: none; overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.nation-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--nat); opacity: .9; }
.nation-card:hover { transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0,0,0,.5), 0 0 0 1px var(--accent), 0 0 22px var(--accent-ghost); }
.nc-top { display: flex; align-items: center; gap: 12px; }
.nc-flag { font-size: 30px; line-height: 1; }
.nc-name { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--fg-1); }
.nc-blurb { color: var(--fg-2); font-size: 14.5px; line-height: 1.6; margin: 0; }
.nc-play { color: var(--fg-3); font-size: 13px; line-height: 1.55; margin: 0; }
.nc-play b { color: var(--nat); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.nc-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 4px;
  padding: 14px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.nc-v { font-family: var(--font-mono); font-weight: 600; font-size: 22px; color: var(--fg-1); }
.nc-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); margin-top: 3px; }
.nc-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--nat);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.nc-cta svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-snap); }
.nation-card:hover .nc-cta svg { transform: translateX(4px); }

/* ---- Value props ---- */
.vprops { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.vprop { padding: 22px; background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.vp-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--accent-ghost); color: var(--accent); margin-bottom: 14px; }
.vp-icon svg { width: 21px; height: 21px; }
.vprop h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--fg-1); margin: 0 0 8px; }
.vprop p { color: var(--fg-3); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* ---- Chiffres ---- */
.gstats { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); overflow: hidden; }
.gstat { padding: 26px 22px; border-left: 1px solid var(--border-subtle); background: var(--bg-inset); }
.gstat:first-child { border-left: none; }
.gs-v { font-family: var(--font-mono); font-weight: 600; font-size: 38px; color: var(--accent); letter-spacing: -.02em; }
.gs-l { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-1); margin-top: 6px; }
.gs-s { font-size: 12px; color: var(--fg-3); margin-top: 4px; }

/* ---- Étapes ---- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step { position: relative; padding: 24px; background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.st-n { font-family: var(--font-mono); font-weight: 700; font-size: 30px; color: var(--accent); opacity: .9; margin-bottom: 10px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--fg-1); margin: 0 0 6px; }
.step p { color: var(--fg-3); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ---- Têtes d'affiche ---- */
.featured { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.pick-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; text-decoration: none;
  background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.pick-card:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.pk-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.pk-flag { font-size: 14px; }
.pk-name { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--fg-1); }
.pk-note { color: var(--fg-3); font-size: 13.5px; line-height: 1.55; margin: 0; }

@media (max-width: 860px){
  .picker, .vprops, .gstats, .steps, .featured { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .picker, .vprops, .gstats, .steps, .featured { grid-template-columns: 1fr; }
  .home-hero { padding: 64px 0 44px; }
}

/* ============================================================================
   POLISH UI/UX (accessibilité + finition) — passe ui-ux-pro-max
   ========================================================================== */
/* --- Focus visible cohérent (clavier) --- */
:where(a, button, input, [tabindex], .vcard, .nation-card, .pick-card, .sr-item):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Skip-link (caché jusqu'au focus clavier) --- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--accent); color: #1a1006; font-family: var(--font-display);
  font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: var(--radius-sm);
  text-decoration: none; transition: top var(--dur-fast) var(--ease-snap);
}
.skip-link:focus { top: 12px; }

/* --- Chiffres tabulaires : prix et stats alignés, zéro décalage --- */
.pr, .nc-v, .gs-v, .statcell .v, .st-n, .rank-count, .rank-numeral {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}

/* --- Ancres : ne pas passer sous la nav sticky --- */
.home-sec, .rank-section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* --- Reduced motion : neutralise toutes les transitions/animations --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ============================================================================
   FEATURES — skeleton, actions carte, toolbar (filtres/tri/favoris),
   comparateur (tray + sheet)
   ========================================================================== */
/* --- Skeleton images : fondu à l'arrivée + shimmer pendant le chargement --- */
.wt-img { opacity: 0; transition: opacity .35s var(--ease-out); }
.wt-img.is-loaded { opacity: 1; }
.recon, .combo-media, .sc-media, .cmp-media { position: relative; overflow: hidden; }
/* Shimmer animé en transform (composité GPU) et non en background-position
   (qui repeint à chaque frame) -> aucun coût de paint pendant le scroll. */
.recon::after, .combo-media::after, .sc-media::after, .cmp-media::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%;
  z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.06), transparent);
  animation: tf-shimmer 1.25s linear infinite;
}
.recon:has(.wt-img.is-loaded)::after, .combo-media:has(.wt-img.is-loaded)::after,
.sc-media:has(.wt-img.is-loaded)::after, .cmp-media:has(.wt-img.is-loaded)::after { display: none; }
@keyframes tf-shimmer { to { transform: translateX(370%); } }

/* --- Actions sur la carte (favori / comparer) — en bas de carte --- */
.vcard { position: relative; }
.vcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; }
.card-actions { display: flex; gap: 6px; }
/* Étoile favori à gauche du rang (eyebrow) */
.fav-flag { display: none; }
.vcard.is-fav .fav-flag { display: inline-flex; align-items: center; }
.fav-flag .ff { width: 11px; height: 11px; color: var(--accent); fill: var(--accent); margin-right: 3px; vertical-align: -1px; }
.ca-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--border-default); background: rgba(9,11,15,.88); color: var(--fg-2);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-snap), border-color var(--dur-fast) var(--ease-snap), background var(--dur-fast) var(--ease-snap); }
.ca-btn:hover { color: var(--fg-1); border-color: var(--border-accent); }
.ca-btn .cai { width: 16px; height: 16px; }
.ca-fav.on { color: var(--accent); border-color: var(--accent); }
.ca-fav.on .cai { fill: var(--accent); }
.ca-cmp.on { color: var(--accent); border-color: var(--accent); background: var(--accent-ghost); }

/* --- Toolbar (filtres type + tri + Ma ligne) --- */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border-subtle); }
.tb-types { display: flex; gap: 6px; flex-wrap: wrap; }
.tb-type { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2);
  background: var(--bg-overlay); border: 1px solid var(--border-default);
  padding: 7px 13px; border-radius: var(--radius-pill); cursor: pointer;
  transition: color var(--dur-fast) var(--ease-snap), border-color var(--dur-fast) var(--ease-snap), background var(--dur-fast) var(--ease-snap); }
.tb-type:hover { color: var(--fg-1); }
.tb-type.on { color: var(--accent); border-color: var(--accent); background: var(--accent-ghost); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-sort { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.tb-sort select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); cursor: pointer;
  border: 1px solid var(--border-default); border-radius: var(--radius-pill);
  padding: 7px 32px 7px 14px;
  background: var(--bg-overlay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767D89' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  background-size: 13px;
  transition: color var(--dur-fast) var(--ease-snap), border-color var(--dur-fast) var(--ease-snap); }
.tb-sort select:hover { color: var(--fg-1); border-color: var(--border-accent); }
.tb-fav { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; color: var(--fg-2); background: var(--bg-overlay);
  border: 1px solid var(--border-default); padding: 7px 13px; border-radius: var(--radius-pill);
  cursor: pointer; transition: color var(--dur-fast) var(--ease-snap), border-color var(--dur-fast) var(--ease-snap), background var(--dur-fast) var(--ease-snap); }
.tb-fav .tbi { width: 15px; height: 15px; }
.tb-fav:hover { color: var(--fg-1); }
.tb-fav.on { color: var(--accent); border-color: var(--accent); background: var(--accent-ghost); }
.tb-fav.on .tbi { fill: var(--accent); }
.tb-favn { font-weight: 700; }

/* la barre sticky est plus haute (2 lignes) → décaler les ancres */
.rank-section { scroll-margin-top: 190px; }
.view-empty { text-align: center; color: var(--fg-3); font-size: 15px; padding: 60px 20px; }

/* --- Compare tray (barre flottante) --- */
.compare-tray { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 160%);
  z-index: 120; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px;
  background: var(--bg-raised); border: 1px solid var(--border-accent); border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px rgba(0,0,0,.55); transition: transform var(--dur-base) var(--ease-out);
  max-width: calc(100vw - 24px); flex-wrap: wrap; }
.compare-tray.show { transform: translate(-50%, 0); }
/* Le tray flottant ne doit jamais chevaucher une modale ouverte (sinon il
   recouvre la fiche de comparaison, surtout sur petit écran). */
body:has(#modal.open) .compare-tray { display: none; }
.ct-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-1);
  background: var(--bg-overlay); border: 1px solid var(--border-default); padding: 5px 6px 5px 11px; border-radius: var(--radius-pill); }
.ct-chip button { border: none; background: none; color: var(--fg-3); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.ct-chip button:hover { color: var(--accent); }
.ct-go { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #1a1006;
  background: var(--accent); border: none; border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer; }
.ct-go:disabled { opacity: .45; cursor: not-allowed; }
.ct-clear { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-default); background: none; color: var(--fg-3); cursor: pointer; }
.ct-clear:hover { color: var(--accent); border-color: var(--border-accent); }
.ct-clear .tbi { width: 15px; height: 15px; }

/* --- Compare sheet --- */
/* Comparaison : large mais jamais plus que l'écran ; min-width:0 laisse les
   colonnes rétrécir (sinon la grille déborde et overflow:hidden coupe la droite) */
.sheet-compare { max-width: min(1080px, 100%); }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-col { padding: 24px 20px; min-width: 0; }
.cmp-col + .cmp-col { border-left: 1px solid var(--border-default); }
/* Dans les comparaisons : stats sur UNE colonne par véhicule -> chaque ligne a
   la place de s'afficher et les lignes se font face entre les deux véhicules */
.sheet-compare .m-stats, .sheet-tree-compare .m-stats { grid-template-columns: 1fr; }
.sheet-compare .ms-k, .sheet-tree-compare .ms-k { white-space: normal; }
.sheet-compare .ms-v, .sheet-tree-compare .ms-v { overflow-wrap: anywhere; }
/* Cadre héro : fond clair + bordure pour détacher l'image du sombre de la modale */
.cmp-media {
  height: 176px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--bg-inset); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 10px;
}
.cmp-media .wt-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.cmp-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--fg-1); text-align: center; }
.cmp-tags { display: flex; gap: 6px; justify-content: center; margin: 8px 0; flex-wrap: wrap; }
.cmp-price { display: flex; justify-content: center; margin-bottom: 10px; }

@media (max-width: 720px){
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-col + .cmp-col { border-left: none; border-top: 1px solid var(--border-default); }
  .toolbar { gap: 10px; }
  .tb-right { width: 100%; }
}

/* ============================================================================
   MOBILE — nav 2 lignes (logo+liens / recherche), barres allégées
   ========================================================================== */
@media (max-width: 640px) {
  .nav { height: auto; }
  .nav-inner { flex-wrap: wrap; padding: 9px 0; row-gap: 10px; column-gap: 12px; }
  .nav .tag { display: none; }
  .nav-spacer { display: none; }
  .nav-links { margin-left: auto; }
  .nav-search { order: 9; flex-basis: 100%; max-width: none; margin-left: 0; }
  /* nav devient multi-lignes → subnav ne peut plus se caler dessus proprement */
  .subnav { position: static; }
  .rank-section { scroll-margin-top: 84px; }
  .toolbar { gap: 10px; }
  .tb-right { width: 100%; justify-content: space-between; }
}

/* --- Bouton "comparer" par sous-véhicule (cartes combinées) --- */
.combo-cmp { position: absolute; top: 7px; right: 7px; z-index: 4; width: 28px; height: 28px; }
.combo-cmp .cai { width: 15px; height: 15px; }

/* --- Tag nation dans le tray de comparaison (cross-nation) --- */
.ct-nat { font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border-accent); border-radius: var(--radius-xs); padding: 1px 4px; margin-right: 2px; }

/* --- Actions carte (dans .vcard) révélées au survol ; tactile = toujours visibles ;
       un favori/comparé actif reste visible. Hors carte (recherche) : toujours visibles. --- */
@media (hover: hover) {
  .vcard .ca-btn { opacity: 0; transition: opacity var(--dur-fast) var(--ease-snap); }
  .vcard:hover .ca-btn, .vcard:focus-within .ca-btn { opacity: 1; }
  /* seul "comparé" reste visible hors survol ; le favori est indiqué par l'étoile au rang */
  .vcard .ca-cmp.on { opacity: 1; }
}

/* --- Fenêtre de synchro des favoris --- */
.sheet-sync { max-width: 560px; }
.sheet-sync .sheet-title { margin-bottom: 8px; }
.sync-p { color: var(--fg-2); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.sync-row { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 16px; }
.sync-row textarea { flex: 1; resize: vertical; font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-1); background: var(--bg-inset); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); padding: 9px 11px; line-height: 1.4; word-break: break-all; }
.sync-row textarea:focus { outline: none; border-color: var(--border-accent); }
.sync-row .btn { white-space: nowrap; }
.sync-msg { min-height: 18px; font-size: 13px; color: var(--accent); margin: 2px 0 0; }
.sync-uid { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); margin: 16px 0 0; }
.sync-uid code { color: var(--fg-3); }

/* ===== Arbre technologique (TEST aviation FR) ===== */
.wt-tree-sec { margin: 6px 0 30px; }
.wt-tree-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fg-2);
}
.wtt-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
  color: var(--accent); border: 1px solid var(--border-accent, var(--accent));
  border-radius: 999px; padding: 2px 9px; text-transform: none;
}
.wt-tree-scroll { overflow-x: auto; padding-bottom: 6px; }
.wt-tree { min-width: 700px; }
.wtt-rank { margin-bottom: 20px; }
.wtt-rank-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-3);
  border-bottom: 1px solid var(--border-default); padding-bottom: 5px; margin-bottom: 14px;
}
.wtt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 14px; align-items: start; }
.wtt-col { position: relative; display: flex; flex-direction: column; gap: 30px; }
/* flèche entre rangs : remonte dans l'espace inter-rang vers le rang précédent */
.wtt-rank-arrow {
  position: absolute; top: -54px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 42px; background: var(--accent); z-index: 1;
}
.wtt-rank-arrow::after {
  content: ""; position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--accent);
}
.wtt-cell { position: relative; }
.wtt-cell.is-folder { cursor: pointer; }
/* Dossier : cover (image group) par défaut. Au clic, la liste s'ouvre en
   MINI-FENÊTRE superposée (position absolue) : elle ne décale PAS l'arbre,
   les avions tombent pile sur les cases du dessous (gap = gap de .wtt-col)
   donc la flèche existante reste visible entre eux. */
.wtt-folder-list { display: none; }
.wtt-cell.is-folder.is-open > .wtt-folder-list {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: -8px; left: 0; width: 100%; z-index: 20;
  padding: 8px; border-radius: 14px;
  background: var(--bg-inset); border: 1px solid var(--border-default);
  box-shadow: 0 14px 34px rgba(0,0,0,.6);
}
.wtt-cell.is-folder.is-open > .wtt-folder-list .wtt-plane { box-shadow: 0 6px 16px rgba(0,0,0,.4); }
/* flèche entre avions dépliés (élément dédié, non rognée) */
.wtt-folder-arrow { position: relative; height: 26px; flex: none; }
.wtt-folder-arrow::before {
  content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 14px; background: var(--accent);
}
.wtt-folder-arrow::after {
  content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid var(--accent);
}
/* flèche entre cellules (ligne + pointe), style wiki — un peu plus grosse */
.wtt-cell + .wtt-cell::before {
  content: ""; position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 19px; background: var(--accent); opacity: 1;
}
.wtt-cell + .wtt-cell::after {
  content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 11px solid var(--accent); opacity: 1;
}
/* carte avion : plus petite, nom haut-droite, BR bas-droite, image centrée un peu à gauche */
.wtt-plane {
  position: relative; height: 56px; overflow: hidden; cursor: pointer;
  background: var(--bg-elev-1, var(--bg-base)); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); transition: border-color .15s ease, transform .15s ease;
}
.wtt-plane:hover, .wtt-plane:focus-visible,
.wtt-cell.is-folder:hover > .wtt-plane { border-color: var(--accent); transform: translateY(-1px); outline: none; }
.wtt-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 40% center; transform: scale(.9);
  opacity: 0; transition: opacity .2s ease;
}
.wtt-img.is-loaded { opacity: 1; }
.wtt-noimg { opacity: 1; background: var(--bg-base); }
.wtt-name {
  position: absolute; top: 4px; right: 7px; max-width: 66%; text-align: right;
  font-size: 11px; font-weight: var(--fw-semibold); color: var(--fg-1); line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}
.wtt-br {
  position: absolute; bottom: 4px; right: 7px;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent-3);
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}
/* bouton « Arbre » dans le filtre */
.tb-type.tb-tree.on { color: var(--accent); border-color: var(--accent); }
@media (max-width: 560px) {
  .wt-tree { min-width: 600px; }
  .wtt-grid { gap: 20px 10px; }
}

/* ============ Arbre : line-up BR, progression, comparateur (2026-07-02) ============ */
.wtt-brsel {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
  color: var(--fg-2); text-transform: none;
}
.wtt-brsel select {
  background: var(--bg-overlay); color: var(--fg-1);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  font: inherit; padding: 3px 6px; cursor: pointer;
}
.wtt-progress {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
  color: var(--success, #7bd88f); border: 1px solid color-mix(in srgb, var(--success, #7bd88f) 40%, transparent);
  border-radius: 999px; padding: 2px 9px; text-transform: none; white-space: nowrap;
}
.wtt-plane.wtt-dim { opacity: .22; filter: grayscale(.85); }
.wtt-plane.wtt-owned::after {
  content: "\2713"; position: absolute; top: 3px; left: 5px; z-index: 2;
  font-size: 11px; line-height: 1; font-weight: 700;
  color: var(--success, #7bd88f);
  text-shadow: 0 0 4px rgba(0,0,0,.9);
}
.wtt-plane.wtt-cmp-pending { outline: 2px solid var(--accent); outline-offset: 1px; }
.wtt-own-btn, .wtt-cmp-btn { cursor: pointer; }
.wtt-own-btn.on { color: var(--success, #7bd88f); border-color: color-mix(in srgb, var(--success, #7bd88f) 45%, transparent); }
.sheet-tree-compare { max-width: 980px; }
.sheet-tree-compare { max-width: min(1080px, 100%); }
.tcmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.tcmp-col { min-width: 0; }
.tcmp-col .sheet-hero {
  height: 176px; position: relative; padding: 10px;
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
}
.tcmp-name { margin: 10px 0 4px; font-size: 17px; }
@media (max-width: 720px) { .tcmp-grid { grid-template-columns: 1fr; } }
.sheet-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border-default);
}
.sheet-actions .chip-tag { padding: 7px 14px; }
.acct-row input {
  flex: 1; min-width: 0; background: var(--bg-overlay); color: var(--fg-1);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  font: inherit; padding: 9px 12px;
}
.acct-row input:focus { outline: none; border-color: var(--border-accent, var(--accent)); }
.nav-account {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-2); cursor: pointer;
  background: var(--bg-overlay); border: 1px solid var(--border-default);
  border-radius: 999px; padding: 7px 14px; white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.nav-account:hover { border-color: var(--border-accent, var(--accent)); color: var(--accent); }
.nav-account.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
/* Feuille compte : petite boîte centrée à l'écran, contenu centré */
.sheet-sync { margin: auto; max-width: 480px; text-align: center; }
.sheet-sync .sheet-title { font-size: 24px; }
.sheet-sync .sync-row { justify-content: center; }

/* ============================================================================
   LANDING v2 (index.html) — visuel, rendus de chars WT (2026-07-05)
   ========================================================================== */
.home .nav { border-bottom: 1px solid var(--border-subtle); }

/* ---- Hero ---- */
.lp-hero {
  position: relative; overflow: hidden;
  min-height: 66vh; display: flex; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(90% 120% at 78% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    var(--bg-base);
}
.lp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--dot-grid); background-size: 24px 24px; opacity: .35;
}
.lp-hero-tank {
  position: absolute; right: -5%; bottom: -8%; z-index: 0;
  width: min(62%, 940px); height: auto; object-fit: contain;
  filter: drop-shadow(0 34px 46px rgba(0,0,0,.65));
  -webkit-mask-image: linear-gradient(to left, #000 62%, transparent 100%);
          mask-image: linear-gradient(to left, #000 62%, transparent 100%);
}
.lp-hero-inner { position: relative; z-index: 1; max-width: 640px; }
.lp-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.lp-title {
  font-family: var(--font-display); font-weight: 800; margin: 0;
  font-size: clamp(40px, 6.4vw, 76px); line-height: .96; letter-spacing: -.03em;
  color: var(--fg-1); text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.lp-title .amber { color: var(--accent); }
.lp-lead {
  margin: 20px 0 0; max-width: 470px; color: var(--fg-2);
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6;
}
.lp-lead b { color: var(--fg-1); }
.lp-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.lp-quick a {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em;
  color: var(--fg-1); text-decoration: none; padding: 9px 15px;
  background: var(--bg-overlay); border: 1px solid var(--border-default);
  border-radius: 999px; transition: border-color .15s, color .15s, transform .15s;
}
.lp-quick a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---- Nations (2×2 gros visuels) ---- */
.lp-main { padding: 40px 0 20px; }
.lp-nations { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.natx {
  position: relative; overflow: hidden; text-decoration: none;
  min-height: 240px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background:
    radial-gradient(120% 120% at 100% 108%, color-mix(in srgb, var(--nat) 30%, transparent), transparent 58%),
    var(--bg-raised);
  transition: transform .22s var(--ease-out), border-color .22s, box-shadow .22s;
}
.natx::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--nat); z-index: 3; }
.natx:hover {
  transform: translateY(-5px); border-color: var(--nat);
  box-shadow: 0 22px 54px rgba(0,0,0,.55), 0 0 0 1px var(--nat),
              0 0 34px color-mix(in srgb, var(--nat) 34%, transparent);
}
.natx-tank {
  position: absolute; right: -4%; bottom: -6%; z-index: 1;
  width: 66%; max-width: 470px; height: auto; object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.6));
  transition: transform .3s var(--ease-out);
}
.natx:hover .natx-tank { transform: translate(-6px, -6px) scale(1.05); }
.natx-info { position: absolute; left: 26px; top: 24px; right: 30%; z-index: 2; }
.natx-flag { font-size: 32px; line-height: 1; }
.natx-name {
  display: block; margin-top: 8px; font-family: var(--font-display);
  font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.02em; color: var(--fg-1);
}
.natx-sub {
  display: block; margin-top: 8px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3);
}
.natx-go {
  position: absolute; left: 26px; bottom: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--nat);
}
.natx-go svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-snap); }
.natx:hover .natx-go svg { transform: translateX(5px); }

/* ---- Bande légendes ---- */
.lp-hall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 22px; }
.hallcard {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  aspect-ratio: 4 / 3; padding: 12px; text-decoration: none; overflow: hidden;
  background: var(--bg-inset); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  transition: border-color .18s, transform .18s;
}
.hallcard img {
  position: absolute; inset: 8px 8px 22px; width: calc(100% - 16px); height: calc(100% - 30px);
  object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55));
  transition: transform .25s var(--ease-out);
}
.hallcard:hover { border-color: var(--accent); transform: translateY(-3px); }
.hallcard:hover img { transform: scale(1.06); }
.hall-n {
  position: relative; z-index: 1; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2);
}

@media (max-width: 860px) {
  .lp-nations { grid-template-columns: 1fr; }
  .lp-hall { grid-template-columns: repeat(3, 1fr); }
  .lp-hero-tank { width: 74%; opacity: .5;
    -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 96%);
            mask-image: linear-gradient(to left, #000 40%, transparent 96%); }
}
@media (max-width: 520px) {
  .lp-hero { min-height: 56vh; }
  .lp-hall { grid-template-columns: repeat(2, 1fr); }
  .natx-info { right: 24%; }
}

/* ---- Hero : chasseur en vol (combiné air-sol) ---- */
.lp-hero-plane {
  position: absolute; right: 4%; top: 6%; z-index: 0;
  width: min(38%, 560px); height: auto; object-fit: contain;
  transform: rotate(-7deg);
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.55));
  opacity: .96; pointer-events: none;
}

/* ---- Libellé de bande (mono, discret) ---- */
.lp-band-label {
  display: flex; align-items: center; gap: 12px; margin: 34px 0 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3);
}
.lp-band-label::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.lp-band-label::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }

@media (max-width: 860px) {
  .lp-hero-plane { width: 52%; top: 4%; right: 2%; opacity: .4;
    -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%);
            mask-image: linear-gradient(to left, #000 45%, transparent 100%); }
}

/* ============================================================================
   LANDING v3 — SCÈNES CINÉMATIQUES plein écran (index.html, 2026-07-05)
   ========================================================================== */
.home { background: #05060a; }
/* Nav en overlay transparent au-dessus du hero (comme le site officiel WT) :
   le hero peut ainsi faire 100vh pleins et la barre nation tombe pile en bas. */
.nav--home {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  /* Bloc sombre semi-transparent (50%) du haut de l'écran jusqu'à la ligne,
     pour que logo, nations et Connexion restent lisibles sur l'image */
  background: rgba(4,6,11,.5);
  border-bottom: 1px solid var(--border-subtle);
}

.scene {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; isolation: isolate;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
/* Ciel teinté nation + source de lumière */
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(78% 62% at 74% 16%, color-mix(in srgb, var(--nat) 42%, transparent), transparent 58%),
    radial-gradient(60% 50% at 20% 90%, color-mix(in srgb, var(--nat) 16%, transparent), transparent 60%),
    linear-gradient(180deg, #0a0c11 0%, color-mix(in srgb, var(--nat) 10%, #0a0c11) 46%, #04050a 100%);
}
/* Vignette cinéma */
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 40%, transparent 52%, rgba(0,0,0,.6) 100%);
  box-shadow: inset 0 -120px 120px -40px rgba(0,0,0,.7), inset 0 90px 90px -50px rgba(0,0,0,.5);
}
.scene-fog {
  position: absolute; left: 0; right: 0; bottom: 20%; height: 30%; z-index: -2;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--nat) 20%, #0a0c11) 70%, transparent);
  filter: blur(34px); opacity: .75;
}
.scene-ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55) 55%, rgba(0,0,0,.9));
}
.scene-grain {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Véhicule posé + ombre de contact */
.scene-tank {
  position: absolute; z-index: 1; right: 1%; bottom: 8%;
  width: min(62%, 900px); height: auto; object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.7));
}
.scene-shadow {
  position: absolute; z-index: 0; right: 6%; bottom: 10%;
  width: 52%; max-width: 760px; height: 70px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.72), transparent 72%);
  filter: blur(14px);
}
.scene-plane {
  position: absolute; z-index: 0; right: 6%; top: 13%;
  width: min(28%, 400px); height: auto; transform: rotate(-8deg);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.5)); opacity: .92;
}

/* Version miroir (véhicule à gauche, texte à droite) */
.scene--flip .scene-tank { left: 1%; right: auto; }
.scene--flip .scene-shadow { left: 6%; right: auto; }
.scene--flip .scene-plane { left: 6%; right: auto; transform: rotate(8deg) scaleX(-1); }
.scene--flip .scene-copy { margin-left: auto; margin-right: clamp(24px, 7vw, 120px); text-align: right; }
.scene--flip .scene-flag { justify-content: flex-end; }

/* Texte — placé à gauche (défaut) / à droite (miroir) dans la scène plein écran */
.scene-copy {
  position: relative; z-index: 6; box-sizing: border-box; width: 100%;
  max-width: min(560px, 48vw);
  margin-left: clamp(24px, 7vw, 120px); margin-right: auto;
}
.scene-flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--nat) 60%, #fff); margin-bottom: 12px;
}
.scene-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.scene-title {
  font-family: var(--font-display); font-weight: 800; margin: 0;
  font-size: clamp(46px, 8vw, 108px); line-height: .9; letter-spacing: -.03em;
  color: #fff; text-shadow: 0 6px 46px rgba(0,0,0,.6);
}
.scene-title .hl { color: var(--accent); }
.scene-sub {
  margin: 22px 0 0; max-width: 460px; color: var(--fg-2);
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6;
}
.scene--flip .scene-sub { margin-left: auto; }
.scene-btn, .scene-down {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  transition: transform .16s var(--ease-snap), box-shadow .16s, background .16s;
}
.scene-btn {
  background: var(--nat); color: #fff;
  box-shadow: 0 12px 34px -6px color-mix(in srgb, var(--nat) 65%, transparent);
}
.scene-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -6px color-mix(in srgb, var(--nat) 75%, transparent); }
.scene-btn svg, .scene-down svg { width: 18px; height: 18px; }
.scene-down {
  background: transparent; color: var(--fg-2); border: 1px solid var(--border-default); padding: 12px 22px;
}
.scene-down:hover { color: #fff; border-color: var(--accent); }
.scene-down svg { animation: bob 1.8s var(--ease-out) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(4px); } }

/* Intro : texte + véhicule centrés bas */
.scene-tank--c { right: 50%; transform: translateX(50%); bottom: 4%; width: min(58%, 820px); }
.scene-shadow--c { right: 50%; transform: translateX(50%); bottom: 7%; width: 46%; }
.scene-copy--c { max-width: 720px; margin: 0 auto; text-align: center; padding-bottom: 26vh; }
.scene-copy--c .scene-sub { margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
  .scene { min-height: 88vh; }
  .scene-tank { width: 84%; right: -6%; bottom: 6%; opacity: .5; }
  .scene--flip .scene-tank { left: -6%; right: auto; }
  .scene-plane { width: 50%; opacity: .32; }
  .scene-shadow { width: 80%; }
  .scene-copy, .scene--flip .scene-copy { max-width: none; text-align: left; margin: 0; padding: 0 clamp(20px, 6vw, 40px); }
  .scene--flip .scene-sub { margin-left: 0; }
  .scene--flip .scene-flag { justify-content: flex-start; }
  .scene-tank--c { right: 50%; width: 92%; bottom: 2%; opacity: .5; }
  .scene-copy--c { text-align: left; margin: 0; padding-left: clamp(20px, 6vw, 40px); padding-right: clamp(20px, 6vw, 40px); padding-bottom: 12vh; }
}

/* ============================================================================
   LANDING v4 — HERO plein écran + barre 4 nations (char+avion) (2026-07-05)
   ========================================================================== */
.hero2 {
  position: relative; min-height: 100vh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
/* Ciel crépusculaire */
.hero2-sky {
  position: absolute; inset: 0; z-index: -5;
  background: linear-gradient(180deg,
    #0b1526 0%, #16233b 30%, #2c3e58 52%, #5b6274 64%,
    #9a7d6c 71%, #c68a53 76%, #7a5238 80%, #241a1a 88%, #0a0a10 100%);
}
.hero2-sun {
  position: absolute; inset: 0; z-index: -4; pointer-events: none;
  background:
    radial-gradient(28% 22% at 66% 62%, rgba(255,226,168,.75), rgba(255,190,120,.18) 45%, transparent 70%),
    radial-gradient(120% 60% at 66% 66%, rgba(255,150,80,.20), transparent 60%);
}
/* Collines en silhouette (2 plans pour la profondeur) */
.hero2-hills {
  position: absolute; left: -2%; right: -2%; z-index: -3; pointer-events: none;
}
.hero2-hills.far {
  bottom: 22%; height: 16%; background: #10141f; opacity: .7; filter: blur(1px);
  clip-path: polygon(0 100%,0 55%,10% 42%,20% 60%,31% 34%,43% 56%,54% 30%,66% 54%,77% 36%,88% 58%,100% 44%,100% 100%);
}
.hero2-hills.near {
  bottom: 12%; height: 20%; background: #070a12; opacity: .96;
  clip-path: polygon(0 100%,0 62%,14% 48%,26% 66%,38% 44%,52% 68%,64% 46%,76% 70%,90% 52%,100% 66%,100% 100%);
}
.hero2-haze {
  position: absolute; left: 0; right: 0; bottom: 20%; height: 20%; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(210,180,150,.22) 55%, transparent);
  filter: blur(26px);
}
/* Sol sombre au premier plan */
.hero2::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(4,6,11,.7) 55%, #04060b);
}
/* Vignette cinéma */
.hero2::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 92% at 50% 38%, transparent 50%, rgba(0,0,0,.62) 100%);
  box-shadow: inset 0 -110px 120px -40px rgba(0,0,0,.7);
}
.hero2-grain {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Chasseurs lointains dans le ciel */
.hero2-plane { position: absolute; z-index: -2; height: auto; object-fit: contain; opacity: .5;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); pointer-events: none; }
.hero2-plane.p1 { width: min(18%, 240px); top: 15%; left: 12%; transform: rotate(-6deg); }
.hero2-plane.p2 { width: min(15%, 200px); top: 24%; right: 16%; transform: rotate(7deg) scaleX(-1); opacity: .38; }

/* Titre centré */
.hero2-copy { position: relative; z-index: 5; text-align: center; max-width: 820px; padding: 0 24px; margin-top: -6vh; }
.hero2-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, #fff); margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.hero2-title {
  font-family: var(--font-display); font-weight: 800; margin: 0;
  font-size: clamp(42px, 7vw, 96px); line-height: .94; letter-spacing: -.03em;
  color: #fff; text-shadow: 0 6px 40px rgba(0,0,0,.7);
}
.hero2-title .hl { color: var(--accent); }
.hero2-sub {
  margin: 22px auto 0; max-width: 560px; color: #d7dbe2;
  font-size: clamp(15px, 1.6vw, 19px); line-height: 1.6; text-shadow: 0 2px 14px rgba(0,0,0,.7);
}

/* ---- Barre des 4 nations (char + avion) ---- */
.natbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.1);
}
.nbcard {
  position: relative; display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: linear-gradient(180deg, rgba(10,13,20,.35), rgba(6,8,13,.9));
  transition: background .2s;
}
.nbcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--nat); opacity: .85; z-index: 3; }
.nbcard:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--nat) 18%, rgba(10,13,20,.5)), rgba(6,8,13,.92)); }
.nb-scene { position: relative; height: 170px; }
.nb-scene::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 90% at 60% 100%, color-mix(in srgb, var(--nat) 26%, transparent), transparent 62%);
}
.nb-plane {
  position: absolute; top: 12px; right: 8%; width: 46%; height: auto; z-index: 1;
  transform: rotate(-7deg); opacity: .9;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); transition: transform .3s var(--ease-out);
}
.nb-tank {
  position: absolute; bottom: 6px; left: 4%; width: 74%; height: auto; z-index: 2;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.6)); transition: transform .3s var(--ease-out);
}
.nbcard:hover .nb-tank { transform: translateY(-3px) scale(1.04); }
.nbcard:hover .nb-plane { transform: rotate(-7deg) translate(-6px,-4px); }
.nb-foot {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 9px;
  padding: 13px 20px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff;
  border-top: 1px solid rgba(255,255,255,.06);
}
.nb-flag { font-size: 19px; line-height: 1; }
.nb-foot svg { width: 17px; height: 17px; margin-left: auto; color: var(--nat); transition: transform var(--dur-fast) var(--ease-snap); }
.nbcard:hover .nb-foot svg { transform: translateX(5px); }

@media (max-width: 820px) {
  .hero2 { min-height: 100vh; justify-content: flex-start; }
  .hero2-copy { margin-top: 150px; }             /* dégage la nav (2 lignes en mobile) */
  .natbar { position: static; margin-top: auto; grid-template-columns: repeat(2, 1fr); }
  .hero2-plane.p1 { width: 34%; top: 9%; }
  .hero2-plane.p2 { display: none; }
  .nb-scene { height: 128px; }
}
@media (max-width: 440px) {
  .nb-foot { font-size: 14px; padding: 11px 12px; }
  .nb-foot svg { display: none; }
}

/* ============================================================================
   LANDING v5 — SIMPLE : fond aléatoire + titre 3 lignes + 4 nations 2×2 (2026-07-05)
   ========================================================================== */
.acc-hero {
  position: relative; min-height: 66vh; display: flex; align-items: center; justify-content: center;
  background: #0a0d14 center / cover no-repeat;
  border-bottom: 1px solid var(--border-subtle);
}
/* Fond sombre par défaut si aucune image (léger dégradé, pas du noir plat) */
.acc-hero:not(.has-bg) {
  background:
    radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    linear-gradient(180deg, #0e131d, #06080e);
}
.acc-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,6,11,.72) 0%, rgba(4,6,11,.15) 26%, rgba(4,6,11,.35) 62%, rgba(4,6,11,.82) 100%),
    radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(0,0,0,.55) 100%);
}
/* Fondu flouté progressif en bas de l'image : 6 couches très fines à +1px de flou
   chacune — chaque couche refloute le résultat de la précédente, donc le flou
   s'accumule vers le bas en rampe continue, sans palier visible.
   Pas de mask ici : mask + backdrop-filter est cassé sur Safari iOS. */
.acc-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; pointer-events: none; z-index: 1; }
.acc-fade i {
  position: absolute; left: 0; right: 0; bottom: 0; display: block;
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
.acc-fade i:nth-child(1) { height: 36px; }
.acc-fade i:nth-child(2) { height: 30px; }
.acc-fade i:nth-child(3) { height: 24px; }
.acc-fade i:nth-child(4) { height: 18px; }
.acc-fade i:nth-child(5) { height: 12px; }
.acc-fade i:nth-child(6) { height: 6px; }
/* Léger voile dégradé vers le fond de page pour finir la transition */
.acc-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 36px;
  pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(5,6,10,0), #05060a);
}
.acc-title {
  position: relative; z-index: 1; margin: 0; text-align: center;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  text-transform: uppercase; color: #fff; line-height: .96;
  text-shadow: 0 4px 34px rgba(0,0,0,.75);
}
.acc-title span { display: block; }
.acc-title span:first-child { font-size: clamp(38px, 7.5vw, 92px); }
.acc-title .sm { font-size: clamp(20px, 3vw, 34px); font-weight: 700; color: var(--fg-2); margin: 6px 0; letter-spacing: .12em; }
.acc-title .hl { font-size: clamp(46px, 9vw, 116px); color: var(--accent); }

/* ---- 4 nations 2×2 (char + chasseur) ---- */
.acc-main { padding: 44px 0 24px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acc-nat {
  position: relative; overflow: hidden; text-decoration: none;
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 100% 106%, color-mix(in srgb, var(--nat) 26%, transparent), transparent 58%),
    var(--bg-raised);
  transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s;
}
.acc-nat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--nat); z-index: 3; }
.acc-nat:hover {
  transform: translateY(-4px); border-color: var(--nat);
  box-shadow: 0 20px 48px rgba(0,0,0,.5), 0 0 0 1px var(--nat), 0 0 30px color-mix(in srgb, var(--nat) 32%, transparent);
}
.acc-imgs { position: relative; height: 210px; }
.acc-plane {
  position: absolute; top: 16px; right: 5%; width: 52%; height: auto; z-index: 1; transform: rotate(-7deg);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.5)); transition: transform .3s var(--ease-out);
}
.acc-tank {
  position: absolute; bottom: 8px; left: 3%; width: 66%; height: auto; z-index: 2;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.6)); transition: transform .3s var(--ease-out);
}
.acc-nat:hover .acc-tank { transform: translateY(-4px) scale(1.05); }
.acc-nat:hover .acc-plane { transform: rotate(-7deg) translate(-6px,-5px); }
.acc-name {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 15px 22px; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff;
  border-top: 1px solid rgba(255,255,255,.06);
}
.acc-name .flag { font-size: 22px; line-height: 1; }
.acc-name svg { width: 18px; height: 18px; margin-left: auto; color: var(--nat); transition: transform var(--dur-fast) var(--ease-snap); }
.acc-nat:hover .acc-name svg { transform: translateX(5px); }

@media (max-width: 720px) {
  /* La nav overlay passe sur 2 lignes en mobile : le hero doit démarrer dessous */
  .acc-hero {
    min-height: 52vh; box-sizing: border-box;
    padding: 104px 16px 36px;
  }
  /* Titre plus compact : il ne doit plus masquer l'image de fond */
  .acc-title span:first-child { font-size: clamp(24px, 7.5vw, 34px); }
  .acc-title .sm { font-size: 14px; margin: 4px 0; }
  .acc-title .hl { font-size: clamp(30px, 10vw, 46px); }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-imgs { height: 180px; }
}

/* Nav accueil en mobile : logo + Connexion sur la ligne 1, nations sur la ligne 2 */
@media (max-width: 640px) {
  .nav--home .nav-account { margin-left: auto; }
  .nav--home .nav-links {
    order: 5; flex-basis: 100%; margin-left: 0;
    justify-content: center; gap: 2px;
  }
}

/* ---- Localisation dans l'arbre (bouton « Voir dans l'arbre » des fiches) ---- */
.chip-tag.goto-tree { cursor: pointer; }
.chip-tag.goto-tree:hover { color: var(--accent-2); border-color: var(--accent-2); }
.wtt-plane.wtt-locate { animation: wtt-locate 2.6s ease; }
@keyframes wtt-locate {
  0%, 55% { outline: 2px solid var(--accent); outline-offset: 3px;
            box-shadow: 0 0 18px var(--accent-ghost), 0 0 10px rgba(255, 106, 31, 0.5); }
  100% { outline: 2px solid transparent; outline-offset: 3px; box-shadow: none; }
}

/* ---- Fiche technique : bascule De base / Amélioré + comparaison ---- */
.ms-modes { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.ms-mode-btn {
  font: inherit; font-size: 10.5px; letter-spacing: .02em; padding: 2px 9px;
  border-radius: 999px; cursor: pointer; background: transparent;
  color: var(--fg-3); border: 1px solid var(--border-default);
}
.ms-mode-btn:hover { color: var(--fg-1, #fff); border-color: var(--border-strong); }
.ms-mode-btn.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-ghost); }
/* mode « De base » : masque la flèche + la valeur améliorée ; « Amélioré » : inverse */
.sheet.ms-stock .ms-v .v-up, .sheet.ms-stock .ms-v .v-arr { display: none; }
.sheet.ms-up .ms-v .v-stock, .sheet.ms-up .ms-v .v-arr { display: none; }
/* comparaison : la meilleure valeur des deux passe en vert */
.ms-v.ms-best { color: var(--success); font-weight: 700; }
.ms-v.ms-best::after { content: " ✓"; font-size: .85em; }
