/* In Memory — thème inspiré de WoW: Forever (ciel peint, typo crème, accents sarcelle) */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --night: #05324b;
  --night-2: #06405e;
  --panel: rgba(2, 24, 38, .55);
  --panel-solid: #042a3f;
  --line: rgba(235, 214, 170, .16);
  --line-strong: rgba(235, 214, 170, .32);
  --cream: #f4e7c5;
  --gold: #e3c07a;
  --ink: #e6ebf4;
  --ink-2: #b8c3d6;
  --ink-3: #8f9bb2;
  --teal: #1f8a80;
  --teal-hi: #27a598;
  --teal-dark: rgba(9, 38, 44, .86);
  --good: #3fbf8f;
  --warn: #e8b04a;
  --bad: #e5604d;
  --radius: 14px;
  --display: 'Lora', Georgia, serif;
  --body: 'Inter', 'Segoe UI', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); }
button { font: inherit; }

/* ---------- Barre de navigation flottante ---------- */
.im-nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px)); z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 10px 8px 18px;
  background: var(--teal-dark);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 200, 190, .18);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.im-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--cream); text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.im-brand span { color: var(--gold); }
.im-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.im-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.im-links a:hover { background: rgba(255, 255, 255, .07); }
.im-links a[aria-current="page"] { color: var(--cream); background: rgba(255, 255, 255, .1); }
.im-cta { background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 8px; white-space: nowrap; border: 1px solid rgba(255,255,255,.12); }
.im-cta:hover { background: var(--teal-hi); }

/* ---------- Héros peint ---------- */
.hero {
  position: relative; min-height: 560px; padding: 150px 16px 110px; text-align: center; isolation: isolate; overflow: hidden;
}
/* Anthracite patiné : taches claires diffuses + vignettage (en-tête et bandeau d'analyse) */
.hero, .band-anthracite {
  background:
    radial-gradient(ellipse 38% 30% at 62% 48%, rgba(255,255,255,.055), transparent 70%),
    radial-gradient(ellipse 30% 26% at 30% 62%, rgba(255,255,255,.04), transparent 70%),
    radial-gradient(ellipse 45% 35% at 50% 30%, rgba(255,255,255,.035), transparent 70%),
    radial-gradient(ellipse 110% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%),
    #1c1c1c;
}
.hero::before, .band-anthracite::before { /* grain de texture (bruit fractal) */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .9; mix-blend-mode: overlay;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.9'/%3E%3C/svg%3E") center / cover;
}
.hero::after { /* liseré métallique sombre en haut + léger fondu en bas */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, #3a3a38 0, #0d0d0d 3px, rgba(0,0,0,.35) 4px, transparent 60px),
    linear-gradient(0deg, rgba(0,0,0,.35), transparent 120px);
}
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,.5); margin: 0 0 10px; }
.hero h1 { font-family: var(--display); font-weight: 600; color: var(--cream); font-size: clamp(40px, 7vw, 72px); line-height: 1.05; margin: 0 0 18px; text-shadow: 0 3px 24px rgba(10, 10, 40, .55); }
.hero p.lead { max-width: 640px; margin: 0 auto; font-size: 17px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid rgba(255,255,255,.14); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hi); }
.btn-ghost { background: rgba(8, 20, 40, .55); color: var(--cream); }
.btn-ghost:hover { background: rgba(8, 20, 40, .75); }
.countdown { margin-top: 26px; font-size: 14px; color: var(--cream); opacity: .9; }
.countdown b { font-family: var(--body); font-size: 18px; font-weight: 700; color: #fff; }

/* ---------- Sections ---------- */
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0 8px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .eyebrow { color: var(--gold); text-shadow: none; }
.section-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); color: var(--cream); margin: 0 0 8px; }
.section-head p { color: var(--ink-2); max-width: 680px; margin: 0 auto; }
.divider { height: 1px; margin: 8px auto 0; width: 120px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.panel h3 { font-family: var(--display); font-weight: 600; color: var(--cream); font-size: 20px; margin: 0 0 4px; }
.panel .sub { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* KPI */
.kpi { padding: 18px 20px; }
.kpi .label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.kpi .value { font-family: var(--body); font-weight: 700; letter-spacing: -.02em; font-size: 40px; color: var(--cream); line-height: 1.1; margin: 6px 0 2px; }
.kpi .note { font-size: 13px; color: var(--ink-3); }

/* Badges de statut (toujours avec texte, jamais la couleur seule) */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.status.good { color: var(--good); } .status.warn { color: var(--warn); } .status.bad { color: var(--bad); }

/* Pastille de classe */
.cls-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* Tooltip commun */
.tip { position: fixed; pointer-events: none; z-index: 100; background: #0a1426; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 11px; font-size: 13px; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.45); opacity: 0; transition: opacity .12s; max-width: 260px; }
.tip b { color: var(--cream); }

/* Tableaux */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

.source-note { text-align: center; color: var(--ink-3); font-size: 13px; padding: 40px 16px 60px; }
.source-note .live { color: var(--good); font-weight: 700; }
.source-note .snap { color: var(--warn); font-weight: 700; }

footer.im-footer { border-top: 1px solid var(--line); text-align: center; padding: 26px 16px; color: var(--ink-3); font-size: 13px; }
footer.im-footer .im-brand { font-size: 18px; }

@media (max-width: 640px) {
  .im-nav { gap: 8px; padding-left: 12px; }
  .im-brand { font-size: 17px; }
  .im-links { margin-left: 0; gap: 0; }
  .im-links a { padding: 7px 7px; font-size: 13px; }
  .im-cta { display: none; }
  .hero { padding-top: 120px; min-height: 480px; }
}

/* Icônes de classe WoW */
.cls-icon { width: 22px; height: 22px; border-radius: 5px; flex: none; vertical-align: middle; object-fit: cover;
  box-shadow: 0 0 0 1px var(--c, rgba(255,255,255,.25)), 0 2px 6px rgba(0,0,0,.4); }
.cls-icon.sm { width: 18px; height: 18px; border-radius: 4px; }
.cls-icon.lg { width: 48px; height: 48px; border-radius: 9px; box-shadow: 0 0 0 2px var(--c), 0 4px 14px rgba(0,0,0,.5); }

/* Icônes de rôle WoW */
.role-ic { width: 26px; height: 26px; border-radius: 50%; flex: none; vertical-align: middle; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.role-ic.sm { width: 20px; height: 20px; }

/* =========================================================
   Bandeaux façon WoW: Forever — pétrole, sarcelle, parchemin
   ========================================================= */
:root {
  --gold-edge: #cdb58f;
  --gold-edge-dark: #7d6645;
  --petrol: #05324b;
  --petrol-2: #06425f;
  --teal-band: #0b5a70;
  --parchment: #6b5a3c;
}
body { background: linear-gradient(180deg, var(--petrol) 0%, var(--petrol-2) 100%); }

.band { position: relative; padding: 64px 0 72px; isolation: isolate; }
.band > .wrap { position: relative; z-index: 1; }

/* Filets dorés épais en haut/bas de bandeau */
.gold-edge { border-top: 9px solid var(--gold-edge); border-bottom: 9px solid var(--gold-edge);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.35), inset 0 -1px 0 rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.35), 0 -6px 14px rgba(0,0,0,.35); }
.gold-top { border-top: 9px solid var(--gold-edge); box-shadow: 0 -6px 14px rgba(0,0,0,.35); }

/* Bleu pétrole uni, légère profondeur */
.band-blue { background:
  radial-gradient(ellipse 80% 50% at 50% 0%, rgba(20,110,150,.25), transparent 70%),
  linear-gradient(180deg, #04344e 0%, #054563 100%); }

/* Sarcelle avec bokeh lumineux */
.band-teal { background:
  radial-gradient(circle at 12% 30%, rgba(130,220,255,.16) 0 26px, transparent 27px),
  radial-gradient(circle at 18% 72%, rgba(130,220,255,.10) 0 40px, transparent 41px),
  radial-gradient(circle at 34% 18%, rgba(180,240,255,.35) 0 2px, transparent 3px),
  radial-gradient(circle at 63% 64%, rgba(180,240,255,.30) 0 2px, transparent 3px),
  radial-gradient(circle at 88% 36%, rgba(180,240,255,.45) 0 2.5px, transparent 3.5px),
  radial-gradient(circle at 80% 80%, rgba(130,220,255,.10) 0 34px, transparent 35px),
  radial-gradient(ellipse 70% 90% at 30% 40%, rgba(40,150,180,.35), transparent 70%),
  linear-gradient(180deg, #0a5c74 0%, #084a61 100%); }

/* Parchemin brun texturé */
.band-parchment {
  --ink: #f4ead4; --ink-2: #e2d3b3; --ink-3: #c6b48f;
  --line: rgba(240, 220, 180, .22); --line-strong: rgba(240, 220, 180, .4);
  --panel: rgba(42, 30, 14, .42); --panel-solid: #4a3b24;
  --bad: #ff8c75; --warn: #ffd27a; --good: #8fe6be;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.06 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 40% at 25% 20%, rgba(255,235,190,.12), transparent 70%),
    radial-gradient(ellipse 50% 45% at 80% 75%, rgba(40,25,5,.30), transparent 70%),
    linear-gradient(180deg, #5c4c31 0%, #6f5d3f 40%, #726041 100%);
}
.band-parchment .section-head .eyebrow { color: #f6dfa4; }
.band-parchment .divider { background: linear-gradient(90deg, transparent, #f1dca8, transparent); }

/* Ornement doré en coin (volutes) */
.ornate::before { content: ''; position: absolute; top: -9px; left: 0; width: min(440px, 70vw); aspect-ratio: 440 / 90;
  background: url('ornament-corner.svg') no-repeat left top / contain; z-index: 2; pointer-events: none; }
.ornate.ornate-right::before { left: auto; right: 0; transform: scaleX(-1); }

/* Panneaux : liseré doré discret */
.band .panel { border-color: rgba(205, 181, 143, .35); }
.band-blue .panel, .band-teal .panel { background: rgba(2, 22, 36, .5); }

/* Héros : fondu vers le pétrole puis filet doré */
.hero { border-bottom: 9px solid var(--gold-edge); box-shadow: 0 6px 14px rgba(0,0,0,.35); }

.source-note { margin: 0; background: #04283d; }
footer.im-footer { background: #031f30; border-top: 9px solid var(--gold-edge); }

/* Bandeau anthracite : même texture que l'en-tête */
.band-anthracite { overflow: hidden; }
.band-anthracite .section-head .eyebrow { color: var(--gold); }

/* Logo plus présent */
.im-brand img { width: 48px; height: 48px; margin: -6px 0; }
@media (max-width: 640px) { .im-brand img { width: 40px; height: 40px; margin: -4px 0; } }
