/* ==========================================================================
   Rise of Something Else — design tokens
   ========================================================================== */
/* Inter est heberge par nos soins : aucune requete vers Google, et la
   politique de securite peut se limiter a 'self'. Police variable : un seul
   fichier couvre les graisses 100 a 900. */
@font-face{
  font-family:'Inter';
  src:url('../assets/fonts/inter-latin-var.woff2') format('woff2');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
/* Silkscreen (SIL OFL 1.1, voir Silkscreen-OFL.txt a cote du fichier).
   Elle est plus petite a taille egale : les tailles qui l utilisent sont
   multipliees par 1,25, comme pour l en-tete du wiki. */
@font-face{
  font-family:'Silkscreen';
  src:url('../assets/fonts/Silkscreen-Regular.ttf') format('truetype');
  font-display:swap;
}
@font-face{
  font-family:'Dogica';
  src:url('../assets/fonts/dogicapixelbold.ttf') format('truetype');
  font-display:swap;
}

:root{
  /* near-black ground, matching the wiki */
  --bg:            #050505;
  --bg-soft:       #0a0908;
  --panel:         #101010;
  --panel-2:       #191513;
  --border:        rgba(255,138,40,.14);
  --border-strong: rgba(255,150,54,.28);

  --text:          #f3ece4;
  --text-dim:      #a89e92;
  --text-faint:    #6f675e;

  /* orange — primary action colour */
  --gold:          #ef6c00;
  --gold-bright:   #ff9838;
  --gold-dim:      rgba(239,108,0,.2);

  /* amber — secondary accent for labels, stats and links */
  --cyan:          #ffb02e;
  --cyan-bright:   #ffcf8a;
  --cyan-dim:      rgba(255,176,46,.16);

  /* bright orange — eyebrows and inline links */
  --ember:         #ff8c21;
  --ember-bright:  #ffb866;

  --rarity-common:    #8d857c;
  --rarity-uncommon:  #d9a441;
  --rarity-rare:      #ff8c21;
  --rarity-epic:      #ff5e1a;
  --rarity-legendary: #ffd166;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.7);
  --shadow-md: 0 14px 40px -12px rgba(0,0,0,.6);

  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* Same pixel font as the nav tabs (The World / Features / ...), for a
   consistent look between the menu and the body titles. */
h1,h2,h3{
  font-family:'Dogica','Inter',monospace;
  font-weight:400;
  margin:0;
  letter-spacing:.02em;
}

p{ margin:0; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input{ font-family:inherit; }

::selection{ background:var(--gold-dim); color:var(--gold-bright); }

.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.bg-noise{
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(255,138,40,.07), transparent 40%),
    radial-gradient(circle at 85% 18%, rgba(255,90,10,.06), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(255,176,46,.04), transparent 45%);
}

.section-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
  position:relative;
  z-index:1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:13px 24px;
  border-radius:999px;
  font-family:'Dogica','Inter',monospace;
  font-size:.78rem; letter-spacing:.03em;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-lg{ padding:16px 32px; font-size:.86rem; }

.btn-primary{
  background:linear-gradient(135deg,var(--gold-bright),var(--gold));
  color:#1a0b00;
  box-shadow:0 12px 30px -10px rgba(239,108,0,.5);
}
.btn-primary:hover{ box-shadow:0 16px 36px -8px rgba(239,108,0,.68); }

.btn-outline{
  border-color:var(--border-strong);
  color:var(--text);
  background:rgba(255,255,255,.02);
}
.btn-outline:hover{ border-color:var(--gold); color:var(--gold-bright); }

.btn-ghost{
  color:var(--text-dim);
  padding:10px 16px;
}
.btn-ghost:hover{ color:var(--gold-bright); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(6,5,4,.6);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:background .25s ease, border-color .25s ease;
}
.site-header.scrolled{
  background:rgba(6,5,4,.9);
  border-bottom-color:var(--border);
}

.header-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:10px 28px;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}

/* min-width:0 lets this flex item shrink below its content size instead of
   forcing the row wider than the viewport; header-actions stays flex-shrink:0
   (below) so the nav controls never get squeezed off-screen — any pressure
   is absorbed by the brand name truncating with an ellipsis instead. */
.brand{ display:flex; align-items:center; gap:10px; min-width:0; flex-shrink:1; }
.brand-mark{
  flex-shrink:0;
  /* le logo est plus large que haut : on fixe la largeur et on laisse la
     hauteur suivre, sinon un carre le reduit a sa hauteur et il devient minuscule */
  width:40px; height:auto; object-fit:contain;
  filter:drop-shadow(0 0 8px rgba(255,176,46,.5));
}
.header-inner .brand-mark{ width:64px; height:auto; }
.brand-name{
  font-family:'Silkscreen','Inter',sans-serif; letter-spacing:.1em;
  font-size:1.3rem; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  min-width:70px;
}
/* Larger wordmark; line-height stays under the 44px logo mark so the
   header band keeps exactly the same height. */
.site-header .brand-name{ color:var(--text); font-size:1.95rem; line-height:1.2; }

.main-nav{ display:flex; align-items:center; gap:26px; }
.nav-social{ display:none; }
.main-nav a{
  font-family:'Dogica','Inter',monospace;
  font-size:.86rem; letter-spacing:.02em; color:var(--text-dim);
  white-space:nowrap;
  position:relative; padding:4px 0;
  transition:color .18s ease;
}
.main-nav a:hover{ color:var(--text); }
.main-nav a::after{
  content:''; position:absolute; left:0; right:100%; bottom:-4px; height:1px;
  background:var(--gold); transition:right .2s ease;
}
.main-nav a:hover::after{ right:0; }
.main-nav a.is-current{ color:var(--gold-bright); }
.main-nav a.is-current::after{ right:0; }

/* Bandeau sur DEUX niveaux (proposition 1, Occikat, 20 nov.) :
   en haut le nom et le menu, en dessous une bande fine avec l accroche du jeu
   a gauche et les reseaux a droite. Plus rien ne se serre, et le nom du jeu
   s affiche toujours en entier. */
.header-bas{
  max-width:var(--container);
  margin:0 auto;
  padding:7px 28px;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--border);
  background:rgba(255,138,40,.035);
}
.header-accroche{
  font-family:'Dogica','Inter',monospace;
  font-size:.62rem; letter-spacing:.14em;
  color:var(--cyan);
  white-space:nowrap;
}
.header-actions{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.header-actions .social-icon{ width:30px; height:30px; }

.social-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--border-strong);
  color:var(--text-dim);
  transition:color .18s ease, border-color .18s ease, transform .18s ease;
}
.social-icon svg{ width:17px; height:17px; }
.social-icon:hover{
  color:var(--cyan-bright); border-color:var(--cyan);
  transform:translateY(-2px);
}

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; border-radius:8px; border:1px solid var(--border-strong);
  background:transparent;
}
.nav-toggle span{ height:2px; background:var(--text); border-radius:2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
/* The key art sits as its own full-width band, sized by its natural aspect
   ratio (not forced to fill the viewport height). That keeps the game
   title baked into the artwork at a consistent, readable size on every
   screen, instead of being blown up to cover an arbitrarily tall mobile
   viewport. All hero text lives BELOW the art, on the page's own dark
   background, so it never has to compete with the image for legibility. */
.hero{
  position:relative;
  display:flex; flex-direction:column; align-items:center;
  text-align:center;
  padding-top:88px;
  overflow:hidden;
}

/* L'illustration mesure 1536 x 1024 : au-delà de cette largeur elle est agrandie
   et devient floue, d'autant plus sur un écran à 125 %. On la borne donc à sa
   taille native ET à la hauteur de la fenêtre, pour qu'elle tienne en entier
   sans défiler. */
.hero-art{
  position:relative;
  width:100%;
  display:flex;
  justify-content:center;
}
.hero-art picture{ display:block; max-width:100%; }
.hero-art img{
  display:block;
  width:auto; height:auto;
  max-width:min(100%,1536px);
  max-height:100vh;
}
.hero-art-fade{
  position:absolute; left:0; right:0; bottom:0; height:35%;
  background:linear-gradient(180deg, transparent, var(--bg) 92%);
  pointer-events:none;
}

.hero-inner{ position:relative; z-index:1; max-width:820px; padding:8px 24px 80px; margin-top:-28px; }

.eyebrow{
  text-transform:uppercase; letter-spacing:.3em; font-size:.72rem;
  color:var(--cyan-bright); font-weight:600; margin-bottom:18px;
  text-shadow:0 0 16px rgba(255,176,46,.5), 0 2px 10px rgba(0,0,0,.85);
}

.hero-sub{
  margin:12px auto 0;
  max-width:640px;
  text-wrap:pretty;
  color:var(--text-dim);
  font-size:1.05rem;
  text-shadow:0 2px 12px rgba(0,0,0,.8);
}

.hero-cta{
  margin-top:22px;
  display:flex; align-items:center; justify-content:center; gap:16px;
  flex-wrap:wrap;
}

.hero-stats{
  margin-top:30px;
  display:flex; gap:56px; justify-content:center; flex-wrap:wrap;
}
.stat{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.stat-num{ font-family:'Silkscreen','Inter',sans-serif; font-size:2rem; color:var(--cyan-bright); }
.stat-label{ font-size:.78rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:.08em; }

.scroll-cue{
  position:absolute; bottom:34px; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border:1px solid var(--border-strong); border-radius:20px;
  z-index:1;
}
.scroll-cue span{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px; background:var(--cyan-bright);
  animation:scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ opacity:1; top:8px; }
  70%{ opacity:0; top:22px; }
  100%{ opacity:0; top:8px; }
}

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section{ position:relative; padding:110px 0; }
#features{ padding-top:64px; }
#roadmap{ padding-top:28px; }
.section-alt{ background:var(--bg-soft); }

/* sections that sit over one of the game's real background paintings */
.section-scenebg{ background-size:cover; background-position:center; position:relative; }
/* The scene paintings are purple; this layer re-tints them to the orange theme. */
.section-scenebg::after{
  content:''; position:absolute; inset:0; z-index:0;
  background-image:inherit; background-size:cover; background-position:center;
  filter:sepia(.85) hue-rotate(-14deg) saturate(1.6) brightness(.78);
}
.section-scenebg > .section-inner{ position:relative; z-index:2; }
.section-scenebg::before{
  content:''; position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, var(--bg) 0%, rgba(0,0,0,.82) 12%, rgba(0,0,0,.88) 88%, var(--bg) 100%);
}
.world-bg{ background-image:url('../assets/scenes/world-map.webp'); }
/* Lighter overlay than the default scenebg so the map actually reads */
.section-scenebg.world-bg::before{
  background:linear-gradient(180deg, var(--bg) 0%, rgba(0,0,0,.45) 14%, rgba(0,0,0,.55) 86%, var(--bg) 100%);
}
.texture-bg{
  background-image:
    linear-gradient(rgba(6,5,4,.93), rgba(6,5,4,.93)),
    url('../assets/textures/eye-texture.png');
  background-size:auto, 480px;
  background-repeat:no-repeat, repeat;
}

.section-eyebrow{
  font-family:'Dogica','Inter',monospace;
  text-transform:uppercase; letter-spacing:.22em; font-size:.68rem;
  color:var(--ember-bright); font-weight:400; margin-bottom:14px;
}
.section-title{
  font-size:clamp(1.9rem,4vw,2.7rem);
  color:var(--text);
  margin-bottom:18px;
  /* the wordmark is one long unbreakable word; balance keeps headings
     from leaving a single short word on the last line. */
  text-wrap:balance;
}
.section-lead{
  max-width:680px; color:var(--text-dim); font-size:1.05rem;
  text-wrap:pretty;
}
.section-lead-body p + p{ margin-top:14px; }
.section-lead-body strong{ color:var(--text); font-weight:600; }

/* Content is visible by default — no JS-gated fade-in, so nothing ever
   depends on a scroll/IntersectionObserver event firing correctly. */

/* honesty card */
.honesty-card{
  margin-top:44px;
  display:flex; gap:20px; align-items:flex-start;
  background:transparent;
  border:1px solid var(--border);
  border-left:3px solid var(--cyan);
  border-radius:var(--radius-md);
  padding:26px 28px;
  max-width:760px;
}
.honesty-icon{ font-size:1.4rem; color:var(--cyan-bright); line-height:1; margin-top:2px; }
.honesty-card h3{ font-size:1.1rem; margin-bottom:8px; color:var(--text); }
.honesty-card p{ color:var(--text-dim); font-size:.95rem; }
.honesty-card p + p{ margin-top:10px; }

/* ==========================================================================
   Feature grid
   ========================================================================== */
.feature-grid{
  margin-top:48px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.feature-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:28px 26px;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover{
  transform:translateY(-4px);
  border-color:var(--border-strong);
  box-shadow:var(--shadow-md);
}
.feature-icon{ font-size:1.7rem; margin-bottom:14px; }
.feature-card h3{ font-size:1.08rem; margin-bottom:8px; color:var(--text); }
.feature-card p{ color:var(--text-dim); font-size:.92rem; }
.feature-card p + p{ margin-top:10px; }

.feature-link{
  display:inline-block; margin-top:14px; font-size:.86rem; font-weight:600;
  color:var(--ember-bright);
}

/* ==========================================================================
   Community / final CTA
   ========================================================================== */
.cta-section{ text-align:center; }
.cta-inner{ display:flex; flex-direction:column; align-items:center; }
.cta-inner .section-lead{ margin:0 auto; }
.cta-buttons{ margin-top:34px; display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  border-top:1px solid var(--border);
  padding:36px 0;
  background:var(--bg-soft);
}
.footer-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
}
.footer-brand{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.footer-brand-ligne{ display:flex; align-items:center; gap:8px; }
.footer-pitch{
  font-family:'Dogica','Inter',monospace;
  font-size:.68rem; letter-spacing:.03em; color:var(--text-dim);
}
.footer-pitch:hover{ color:var(--gold-bright); }
.footer-nav{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-nav a{
  font-family:'Dogica','Inter',monospace;
  font-size:.68rem; letter-spacing:.03em; color:var(--text-dim);
}
.footer-nav a:hover{ color:var(--gold-bright); }
.footer-social{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.footer-social .social-icon{ color:var(--text); }
.footer-social .social-icon:hover{ color:var(--ember); border-color:var(--ember); }
.footer-copy{ font-size:.8rem; color:var(--text-faint); width:100%; text-align:center; margin-top:18px; }
/* Liens legaux : volontairement discrets, sur la ligne de copyright. */
.footer-legal a{ color:var(--text-faint); margin-left:14px; text-decoration:underline; text-underline-offset:3px; }
.footer-legal a:hover{ color:var(--text-dim); }

/* Pages legales */
.legal{ max-width:72ch; margin-top:10px; color:var(--text-dim); }
.legal h2{
  font-family:'Dogica','Inter',monospace; font-size:.74rem; letter-spacing:.05em;
  color:var(--ember-bright); margin:34px 0 12px; line-height:1.7;
}
.legal h2:first-child{ margin-top:0; }
.legal-date{
  font-family:'Dogica','Inter',monospace; font-size:.62rem;
  letter-spacing:.06em; color:var(--text-faint); margin-bottom:22px;
}
.legal p{ font-size:.98rem; line-height:1.75; margin-bottom:12px; }
.legal a{ color:var(--gold-bright); text-decoration:underline; text-underline-offset:2px; word-break:break-word; }
.legal .legal-points{ list-style:none; padding:0; margin:0 0 12px; display:flex; flex-direction:column; gap:10px; }
.legal .legal-points li{ padding-left:22px; position:relative; font-size:.98rem; line-height:1.7; }
.legal .legal-points li::before{ content:'◈'; position:absolute; left:0; top:1px; color:var(--gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:960px){
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
}

/* Switches the nav to the hamburger menu earlier than the general mobile
   breakpoint below — the nav links plus the logo and header actions don't
   comfortably fit at common laptop widths, and without this the brand name
   gets squeezed to near-nothing. */
@media (max-width:1140px){
  .main-nav{
    position:fixed; top:70px; left:16px; right:16px;
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:8px;
    transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:all .2s ease;
  }
  .main-nav.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .main-nav a{ padding:12px 10px; width:100%; }
  .header-actions{ display:none; }        /* les reseaux sont dans le menu burger */
  .header-bas{ justify-content:center; padding:6px 16px; }
  .header-accroche{ font-size:.56rem; letter-spacing:.1em; }
  .nav-social{
    display:flex; justify-content:center; gap:10px; flex-wrap:wrap;
    width:100%; margin-top:8px; padding:12px 6px 4px;
    border-top:1px solid var(--border);
  }
  .nav-social .social-icon{
    width:38px; height:38px; padding:0; flex:0 0 auto;
    color:var(--text);
  }
  .nav-social .social-icon:hover{ color:var(--ember); border-color:var(--ember); }
  .nav-toggle{ display:flex; }
}

@media (max-width:760px){
  .header-inner{ padding:14px 16px; gap:8px; }
  .header-inner .brand-mark{ width:44px; height:auto; }
  .brand-name{ font-size:1rem; letter-spacing:.03em; }
  /* « RiseOfSomethingElse » fait 19 lettres contre 13 a l ancien nom : a 1,25rem
     il poussait le bandeau a 478px de large sur un ecran de 375 et la page entiere
     debordait lateralement. La taille suit maintenant la largeur de l ecran, et le
     nom se tronque proprement s il ne tient toujours pas. */
  .site-header .brand-name{ font-size:clamp(.9rem, 4.4vw, 1.45rem); min-width:0; }
  .header-actions{ gap:8px; }
  .header-actions .btn{ padding:10px 16px; font-size:.7rem; }
  .nav-toggle{ width:34px; height:34px; }

  .hero-stats{ gap:32px; }
  .feature-grid{ grid-template-columns:1fr; }
  .footer-inner{ flex-direction:column; text-align:center; }
  .footer-nav{ justify-content:center; }
  .footer-social{ justify-content:center; }

}

/* Tres petits ecrans (iPhone SE et compagnie) : le nom est trop long pour la
   taille agrandie du 21/11, il se tronquait avec des points de suspension.
   On garde ici une taille plus fine pour qu il tienne en entier. */
@media (max-width:360px){
  .site-header .brand-name{ font-size:clamp(.72rem, 3.9vw, 1rem); }
}

@media (max-width:460px){
  .hero-cta{ flex-direction:column; width:100%; }
  .hero-cta .btn{ width:100%; }
  /* the wordmark cannot be hyphenated; on narrow phones the heading has
     to shrink or that single word would run past the screen edge. */
  .section-title{ font-size:clamp(1.25rem,6.4vw,1.9rem); }
}

/* ==========================================================================
   Page Economy (en essai, non liee depuis l accueil)
   ========================================================================== */
.eco-hero{ padding-bottom:40px; }
.eco-claim{
  font-family:'Dogica','Inter',monospace;
  font-size:.92rem; line-height:1.6; color:var(--gold-bright);
  margin-bottom:22px; text-wrap:balance;
}
.eco-claim-strong{
  margin-top:34px; margin-bottom:0;
  font-size:1rem; letter-spacing:.02em;
}
.eco-hero .honesty-card{ margin-top:34px; }

.eco-duo{
  margin-top:40px;
  display:grid; grid-template-columns:repeat(2,1fr); gap:22px;
}
.eco-duo .feature-card h3{ color:var(--ember-bright); }
.eco-duo .feature-card p + p{ margin-top:12px; }

/* La chaine Play -> Loot -> Craft -> Trade : une sequence, d ou la liste ordonnee. */
.eco-flow{
  list-style:none; padding:0;
  margin:36px 0 30px;
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
}
.eco-flow li{
  font-family:'Dogica','Inter',monospace;
  font-size:.74rem; letter-spacing:.04em;
  padding:10px 16px; border-radius:999px;
  border:1px solid var(--border-strong);
  background:var(--panel);
  color:var(--text);
}
.eco-flow li + li::before{
  content:'→';
  color:var(--accent-fleche, var(--gold-bright));
  margin-right:14px; margin-left:-4px;
  font-family:'Inter',sans-serif;
}

.eco-fee{
  margin-top:16px; padding:14px 16px;
  border:1px solid var(--border-strong); border-radius:var(--radius-sm);
  background:var(--bg-soft);
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  font-family:'Dogica','Inter',monospace; font-size:.72rem; letter-spacing:.03em;
}
.eco-fee-from{ color:var(--text-dim); }
.eco-fee-arrow{ color:var(--gold-bright); }
.eco-fee-to{ color:var(--gold-bright); }

@media (max-width:760px){
  .eco-duo{ grid-template-columns:1fr; }
  .eco-flow li + li::before{ margin-right:10px; }
}

/* Page de texte : les titres de l accueil (jusqu a 2.7rem) ecrasent une page
   qui enchaine six sections. On les ramene a une echelle de lecture. */
.page-economy .section-title{ font-size:clamp(1.25rem,2.3vw,1.7rem); margin-bottom:14px; }
.page-economy h1.section-title{ font-size:clamp(1.6rem,3.2vw,2.2rem); }
.page-economy .section{ padding:72px 0; }

/* ==========================================================================
   Pages Economy en essai : trois mises en page, meme texte
   ========================================================================== */
.page-eco .section-title{ font-size:clamp(1.2rem,2.1vw,1.55rem); margin-bottom:14px; }
.page-eco h1.section-title{ font-size:clamp(1.6rem,3.2vw,2.2rem); margin-bottom:10px; }
.page-eco h3{ font-size:.86rem; color:var(--ember-bright); margin-bottom:8px; }
.page-eco p{ color:var(--text-dim); }
.page-eco strong{ color:var(--text); }
.eco-accroche{
  font-family:'Dogica','Inter',monospace;
  font-size:.86rem; line-height:1.7; color:var(--gold-bright);
  text-wrap:balance;
}
.eco-accroche-forte{ font-size:.95rem; margin-top:30px; }
.eco-chaine-ligne{
  font-family:'Dogica','Inter',monospace;
  font-size:.74rem; letter-spacing:.04em; color:var(--text);
  line-height:2.1;
}
.eco-chaine-ligne span{ color:var(--gold-bright); margin:0 .35em; }
.eco-exemple{
  font-family:'Dogica','Inter',monospace;
  font-size:.68rem; letter-spacing:.03em; color:var(--gold-bright);
  white-space:nowrap;
}

/* --- A : une colonne de lecture, aucun encadre --- */
.eco-colonne{
  max-width:62ch;
  margin:0 auto;
  padding:96px 24px 120px;
  display:flex; flex-direction:column; gap:52px;
}
.page-eco-a .eco-ouverture{ display:flex; flex-direction:column; gap:14px; }
.page-eco-a .eco-bloc{
  display:flex; flex-direction:column; gap:14px;
  padding-top:44px; border-top:1px solid var(--line-eco, var(--border));
}
.page-eco-a .eco-bloc-fin{ padding-bottom:0; }
.page-eco-a .eco-souligne{
  border-left:2px solid var(--gold);
  padding-left:16px; color:var(--text);
}
.page-eco-a p{ font-size:1rem; line-height:1.75; }

/* --- B : reperes chiffres, puis detail avec sommaire --- */
.page-eco-b .eco-tete{ padding-bottom:30px; }
.page-eco-b .eco-intro{ margin-bottom:6px; }
.eco-reperes{
  margin:34px 0 0;
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}
.eco-reperes > div{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:16px 18px; min-width:0;
}
.eco-reperes dt{
  font-family:'Dogica','Inter',monospace;
  font-size:.6rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint);
}
.eco-reperes dd{
  margin:8px 0 0; font-size:1.6rem; font-weight:600; color:var(--gold-bright);
  font-variant-numeric:tabular-nums; line-height:1.1;
}
.eco-reperes dd span{
  display:block; font-size:.78rem; font-weight:400; color:var(--text-dim);
  margin-top:6px; line-height:1.5;
}
.eco-corps{ padding-top:20px; }
.eco-corps-inner{ display:grid; grid-template-columns:200px 1fr; gap:48px; align-items:start; }
.eco-sommaire{ position:sticky; top:100px; display:flex; flex-direction:column; gap:8px; }
.eco-sommaire a{
  font-family:'Dogica','Inter',monospace;
  font-size:.66rem; letter-spacing:.03em; color:var(--text-dim);
  padding:4px 0;
}
.eco-sommaire a:hover{ color:var(--gold-bright); }
.eco-contenu{ display:flex; flex-direction:column; gap:48px; min-width:0; }
.eco-qa{
  display:flex; flex-direction:column; gap:12px;
  padding-left:20px; border-left:2px solid var(--border);
  scroll-margin-top:110px;
}
.eco-qa p{ max-width:60ch; line-height:1.7; }

/* --- C : fiche, tableaux et chiffres --- */
.page-eco-c .eco-tete .section-lead{ margin-bottom:10px; }
.eco-bandeau{
  margin-top:24px; padding:14px 18px;
  border-left:3px solid var(--gold); border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  background:var(--panel);
  font-family:'Dogica','Inter',monospace; font-size:.7rem; letter-spacing:.03em;
  line-height:1.9; color:var(--text);
}
.eco-tableau-cadre{ margin-top:30px; overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius-sm); }
.eco-tableau{ border-collapse:collapse; width:100%; min-width:38rem; }
.eco-tableau th, .eco-tableau td{
  text-align:left; vertical-align:top;
  padding:14px 16px; border-bottom:1px solid var(--border);
  font-size:.92rem; color:var(--text-dim);
}
.eco-tableau thead th{
  font-family:'Dogica','Inter',monospace;
  font-size:.66rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--gold-bright); background:var(--panel);
}
.eco-tableau tbody th{
  font-family:'Dogica','Inter',monospace;
  font-size:.62rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-faint); white-space:nowrap; width:1%;
}
.eco-tableau tr:last-child th, .eco-tableau tr:last-child td{ border-bottom:0; }
.eco-chiffre{
  margin-top:28px; display:flex; align-items:center; gap:22px; flex-wrap:wrap;
}
.eco-chiffre-valeur{
  font-size:3rem; font-weight:700; color:var(--gold-bright);
  font-variant-numeric:tabular-nums; line-height:1;
}
.eco-chiffre-texte{ color:var(--text); font-size:1rem; max-width:44ch; }
.eco-avertissements{
  margin:26px 0 0; padding:0; list-style:none;
  display:flex; flex-direction:column; gap:2px; max-width:68ch;
}
.eco-avertissements li{
  padding:14px 0 14px 26px; border-bottom:1px solid var(--border);
  color:var(--text-dim); position:relative; line-height:1.65;
}
.eco-avertissements li:last-child{ border-bottom:0; }
.eco-avertissements li::before{
  content:'◈'; position:absolute; left:0; top:14px; color:var(--gold);
}

@media (max-width:860px){
  .eco-reperes{ grid-template-columns:repeat(2,1fr); }
  .eco-corps-inner{ grid-template-columns:1fr; gap:28px; }
  .eco-sommaire{ position:static; flex-direction:row; flex-wrap:wrap; gap:14px; }
  .eco-colonne{ padding:72px 20px 90px; gap:40px; }
  .eco-chiffre-valeur{ font-size:2.2rem; }
}

/* ==========================================================================
   Game Overview : une suite de slides qui se lisent en defilant
   ========================================================================== */
.page-overview{ scroll-behavior:smooth; --container:1440px; }
.page-overview .pont{ scroll-snap-type:none; }

.pdf-bouton{
  position:fixed; top:92px; right:24px; z-index:90;
  font-family:'Dogica','Inter',monospace; font-size:.66rem; letter-spacing:.06em;
  padding:11px 18px; border-radius:999px;
  background:linear-gradient(135deg,var(--gold-bright),var(--gold));
  color:#1a0b00; box-shadow:0 12px 30px -10px rgba(239,108,0,.5);
}
.pdf-bouton:hover{ box-shadow:0 16px 36px -8px rgba(239,108,0,.68); }

.slide{
  min-height:0;
  display:flex; align-items:center;
  padding-block:36px;
  border-bottom:1px solid var(--border);
  position:relative;
}
.slide-fin{ border-bottom:0; }
.slide-inner{
  max-width:var(--container); width:100%;
  margin:0 auto;
  padding-left:max(24px,env(safe-area-inset-left,0px));
  padding-right:max(24px,env(safe-area-inset-right,0px));
  display:flex; flex-direction:column; gap:20px;
}
.slide-numero{
  font-family:'Dogica','Inter',monospace;
  font-size:.62rem; letter-spacing:.2em; color:var(--text-faint);
}
.slide-titre{
  font-size:clamp(1.5rem,3.6vw,3.1rem);
  color:var(--text); text-wrap:balance; max-width:20ch;
}
.slide-sous-titre{
  font-family:'Dogica','Inter',monospace;
  font-size:.82rem; line-height:1.8; color:var(--gold-bright);
}
.slide-texte{ font-size:clamp(1.02rem,1.35vw,1.22rem); line-height:1.7; color:var(--text-dim); max-width:62ch; }
.slide-texte-second{ font-size:.98rem; color:var(--text-faint); }
.slide-note{
  font-family:'Dogica','Inter',monospace;
  font-size:.68rem; letter-spacing:.04em; color:var(--text-faint);
}

.slide-points{ list-style:none; padding:0; margin:8px 0 0; display:flex; flex-direction:column; gap:22px; max-width:66ch; }
.slide-points li{
  padding-left:28px; position:relative;
  font-size:clamp(1.02rem,1.35vw,1.22rem); line-height:1.65; color:var(--text-dim);
}
.slide-points li::before{ content:'◈'; position:absolute; left:0; top:1px; color:var(--gold); }

.slide-badges{ list-style:none; padding:0; margin:10px 0 0; display:flex; flex-wrap:wrap; gap:12px; }
.slide-badges li{
  font-family:'Dogica','Inter',monospace; font-size:.66rem; letter-spacing:.05em;
  padding:10px 16px; border-radius:999px;
  border:1px solid var(--border-strong); background:var(--panel); color:var(--text);
}

.slide-tuiles{
  list-style:none; padding:0; margin:14px 0 0;
  display:grid; grid-template-columns:repeat(5,1fr); gap:16px;
}
.slide-tuiles li{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:28px 22px;
  display:flex; flex-direction:column; gap:12px;
  font-size:.95rem; line-height:1.6; color:var(--text-dim); min-width:0;
}
.tuile-icone{ font-size:2rem; }
.slide-tuiles strong{
  font-family:'Dogica','Inter',monospace; font-size:.68rem;
  letter-spacing:.03em; color:var(--ember-bright); line-height:1.6;
}

.slide-chiffres{ margin:10px 0 0; display:flex; flex-wrap:wrap; gap:48px; }
.slide-chiffres dt{
  font-size:clamp(2rem,4.4vw,3.2rem); font-weight:700; line-height:1;
  color:var(--gold-bright); font-variant-numeric:tabular-nums;
}
.slide-chiffres dd{
  margin:10px 0 0;
  font-family:'Dogica','Inter',monospace; font-size:.62rem;
  letter-spacing:.08em; color:var(--text-dim);
}

.slide-liens{ list-style:none; padding:0; margin:6px 0 0; display:flex; flex-direction:column; gap:10px; }
.slide-liens a{
  font-family:'Dogica','Inter',monospace; font-size:.7rem; letter-spacing:.03em;
  color:var(--gold-bright);
}

/* Captures : bornees en hauteur (--h), jamais rognees, jamais etirees.
   La largeur suit le rapport de l image, donc rien n est deforme. */
figure.slide-visuel{
  margin:10px 0 0; min-width:0;
  display:flex; flex-direction:column; align-items:flex-start; gap:10px;
}
figure.slide-visuel picture{ display:block; max-width:100%; }
figure.slide-visuel img{
  display:block; width:auto; height:auto;
  max-width:100%;
  /* hauteur : voir les regles par contexte plus bas */
  border:1px solid var(--border-strong); border-radius:var(--radius-md);
  background:var(--panel);
}
figure.slide-visuel figcaption{
  font-family:'Dogica','Inter',monospace; font-size:.58rem;
  letter-spacing:.06em; color:var(--text-faint);
}
.slide-vignettes .vignettes-rangee{
  display:flex; flex-wrap:wrap; gap:16px; max-width:100%;
}

/* Deux colonnes : le texte a gauche, la capture a droite. Sur une page 16:9
   une capture 16:9 posee sous le texte laisse la moitie droite vide. */
.slide-duo{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  gap:48px; align-items:center;
}
.slide-duo .duo-texte{ display:flex; flex-direction:column; gap:18px; min-width:0; }
.slide-duo .slide-titre{ max-width:none; }
.slide-duo .slide-texte, .slide-duo .slide-points{ max-width:none; }
.slide-duo figure.slide-visuel{ margin:0; align-items:stretch; }
/* Une rangee sur deux est inversee : l image passe a gauche. Cela imbrique les
   blocs au lieu d aligner cinq fois le meme gabarit. */
.slide-duo--inverse .duo-texte{ order:2; }
.slide-duo--inverse figure.slide-visuel{ order:1; }
.slide-duo--inverse{ grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); }
/* La capture du post X est une interface, pas un decor : elle n a pas besoin de
   la moitie de la page. Colonne dediee, deux fois plus etroite. */
.slide-duo--post{ grid-template-columns:minmax(0,420px) minmax(0,1fr); }
.slide-duo figure.slide-visuel picture{ max-width:none; }
/* Ecran etroit : on empile, le texte d abord. */
@media screen and (max-width:900px){
  .slide-duo{ grid-template-columns:1fr; gap:22px; }
  .slide-duo--post{ grid-template-columns:1fr; }
  .slide-duo--post figure.slide-visuel img{ max-width:min(420px,100%); }
  .slide-duo figure.slide-visuel{ align-items:flex-start; }
}

/* Grand ecran : la capture remplit la slide. Ecran plus bas : on la reduit par
   paliers, sinon la slide deborde et le lecteur doit faire defiler. */
/* Dans une colonne, c est la largeur qui dimensionne la capture ; la hauteur
   n est qu un garde-fou, resserre quand la fenetre est basse. */
.slide-duo figure.slide-visuel img{ max-height:60vh; }
@media screen and (max-height:860px){ .slide-duo figure.slide-visuel img{ max-height:56vh; } }
/* Fenetre basse (portable, fenetre reduite) : on resserre encore, sinon la slide
   deborde et il faut faire defiler a l interieur. */
@media screen and (max-height:720px){
  .slide-duo figure.slide-visuel img{ max-height:54vh; }
  .slide-titre{ font-size:clamp(1.4rem,3vw,2.15rem); }
  .slide-texte, .slide-points li{ font-size:1rem; }
  .slide-chiffres dt{ font-size:1.8rem; }
  .slide-points{ gap:16px; }
  .slide-visuel.manque{ min-height:60px; height:11vh; }
  .slide-tuiles li{ padding:18px 16px; font-size:.86rem; }
  .tuile-icone{ font-size:1.4rem; }
}

/* Emplacements encore vides : visibles, pour qu aucun trou ne passe en ligne. */
.slide-visuel.manque{
  margin-top:10px; height:22vh; min-height:120px;
  border:2px dashed var(--border-strong); border-radius:var(--radius-md);
  background:repeating-linear-gradient(135deg,transparent,transparent 12px,rgba(255,140,33,.05) 12px,rgba(255,140,33,.05) 24px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  padding:20px; text-align:center;
}
.manque-etiquette{
  font-family:'Dogica','Inter',monospace; font-size:.68rem; letter-spacing:.1em;
  color:var(--gold-bright);
}
.manque-texte{ font-size:.86rem; color:var(--text-faint); max-width:52ch; }

/* La couverture : le key art en fond, assombri pour que le titre reste lisible. */
/* Couverture : un peu moins haute, et un voile moins lourd en bas, pour que le
   key art se voie jusqu en bas au lieu de finir en bande noire. */
.slide-cover{ min-height:62svh; padding-block:92px 26px; overflow:hidden; }
.slide-cover .slide-fond{
  position:absolute; inset:0; z-index:0;
  background:url('../assets/scenes/hero-key-art-deck.webp') center/cover no-repeat;
  opacity:.68;
}
.slide-cover::after{
  content:''; position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(5,5,5,.38) 0%, rgba(5,5,5,.54) 55%, rgba(5,5,5,.84) 100%);
}
.slide-cover .slide-inner{ position:relative; z-index:2; align-items:flex-start; gap:12px; }
.cover-titre{ font-size:clamp(2.1rem,5.4vw,3.8rem); max-width:none; }

/* Les etincelles qui entouraient l ancien logo, reportees autour du titre. */
.cover-surtitre{
  font-family:'Dogica','Inter',monospace;
  text-transform:uppercase; letter-spacing:.34em; font-size:.68rem;
  color:var(--gold-bright); margin-bottom:4px;
  text-shadow:0 2px 12px rgba(0,0,0,.9);
}
.cover-titre-zone{ position:relative; display:inline-block; }
.cover-etincelles{ position:absolute; inset:0; pointer-events:none; }
.cover-etincelles i{
  position:absolute; display:block; background:var(--text);
  clip-path:polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.cover-etincelles i:nth-child(1){ width:19px; height:19px; left:-14px;  top:-26px; }
.cover-etincelles i:nth-child(2){ width:11px; height:11px; left:18%;   top:-38px; }
.cover-etincelles i:nth-child(3){ width:14px; height:14px; left:52%;   top:-22px; opacity:.85; }
.cover-etincelles i:nth-child(4){ width:22px; height:22px; right:-18px; top:6%; }
.cover-etincelles i:nth-child(5){ width:12px; height:12px; right:14%;  bottom:-26px; opacity:.9; }
.cover-etincelles i:nth-child(6){ width:15px; height:15px; left:6%;    bottom:-30px; }
.cover-etincelles i:nth-child(7){ width:9px;  height:9px;  left:76%;   bottom:-18px; opacity:.75; }
@media (max-width:640px){
  .cover-etincelles i{ transform:scale(.72); }
  .cover-etincelles i:nth-child(1){ left:-8px; }
  .cover-etincelles i:nth-child(4){ right:-8px; }
}
.cover-pied{
  margin-top:28px;
  font-family:'Dogica','Inter',monospace; font-size:.62rem;
  letter-spacing:.12em; color:var(--text-faint);
}

/* Ecrans peu hauts (portables 1366x768 et fenetres reduites) : on resserre
   pour qu une slide tienne quand meme dans un ecran. */
@media screen and (max-height:860px){
  .slide-inner{ gap:14px; }
  .slide-points{ gap:14px; }
  .slide-chiffres dt{ font-size:2.1rem; }
  .slide-chiffres dd{ margin-top:6px; }
  .slide-visuel.manque{ min-height:110px; }
  figure.slide-visuel{ gap:7px; }
  .slide-duo .duo-texte{ gap:14px; }
}

@media (max-width:960px){
  .slide-tuiles{ grid-template-columns:repeat(2,1fr); }
  .slide-chiffres{ gap:28px; }
  .pdf-bouton{ top:auto; bottom:18px; right:16px; }
}
@media (max-width:560px){
  .slide-tuiles{ grid-template-columns:1fr; }
}

/* --- Export PDF : 10 pages paysage 16:9, une slide par page --- */
@media print{
  @page{ size:338mm 190mm; margin:0; }
  .site-header, .site-footer, .pdf-bouton, .bg-noise, .nav-toggle{ display:none !important; }
  body{ background:#050505 !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .pont{ scroll-snap-type:none; }
  .slide{
    min-height:0; height:190mm; padding:22mm 24mm;
    border-bottom:0; break-after:page; page-break-after:always;
    display:flex; align-items:center;
  }
  .slide-fin{ break-after:auto; page-break-after:auto; }
  .slide-inner{ max-width:none; }
  .slide-visuel.manque{ height:auto; min-height:38mm; }
  /* A l impression les vh ne valent plus rien : on borne en millimetres. */
  figure.slide-visuel img{ max-height:92mm; }
  figure.slide-visuel figcaption{ font-size:7pt; }
  /* Vignettes : jamais de retour a la ligne a l impression, sinon la 3e deborde
     sur la page suivante. Hauteur posee en dur, sans variable. */
  .slide-vignettes .vignettes-rangee{ gap:8mm; flex-wrap:nowrap; }
  .slide-vignettes img{ max-height:30mm; }
  /* Edge evalue les requetes de largeur sur un papier etroit a l impression :
     on redit ici la mise en page voulue pour la page 16:9. */
  .slide-duo{
    display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
    gap:16mm; align-items:center;
  }
  .slide-duo figure.slide-visuel img{ max-height:92mm; }
  .slide-duo .duo-texte{ gap:6mm; }
  .slide-duo--post{ grid-template-columns:minmax(0,78mm) minmax(0,1fr); }
  .slide-tuiles{ grid-template-columns:repeat(2,1fr); gap:5mm; }
  /* Les tuiles sont plus genereuses a l ecran ; sur la page il faut les resserrer,
     sinon les 3 rangees debordent sur les pages voisines. */
  .slide-tuiles li{ padding:4mm 4.5mm; gap:1.5mm; }
  .tuile-icone{ font-size:11pt; }
  .slide-titre{ font-size:26pt; }
  .cover-titre{ font-size:40pt; }
  .slide-texte{ font-size:11pt; }
  .slide-points li{ font-size:11pt; }
  .slide-tuiles li{ font-size:9pt; }
  .slide-chiffres{ gap:8mm; flex-wrap:nowrap; }
  .slide-chiffres dt{ font-size:26pt; }
}


/* ==========================================================================
   Page Beta (/beta)
   ========================================================================== */
.beta-visuel{ margin:40px 0 0; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.beta-visuel picture{ display:block; width:100%; max-width:1280px; }
.beta-visuel video{
  display:block; width:100%; height:auto; max-width:1280px;
  border:1px solid var(--border-strong); border-radius:var(--radius-md);
  background:#000;
  image-rendering:pixelated;
}
.beta-visuel img{
  display:block; width:100%; height:auto; max-width:1280px;
  border:1px solid var(--border-strong); border-radius:var(--radius-md);
  /* Occikat veut le pixel art net, sans lissage. */
  image-rendering:pixelated;
}
.beta-visuel figcaption{
  font-family:'Dogica','Inter',monospace; font-size:.58rem;
  letter-spacing:.06em; color:var(--text-faint);
}

.beta-colonnes{
  margin-top:48px;
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px;
}
.beta-bloc{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:28px 26px;
}
.beta-bloc h2{
  font-family:'Dogica','Inter',monospace; font-size:.76rem;
  letter-spacing:.06em; color:var(--ember-bright); margin-bottom:18px; line-height:1.6;
}
.beta-bloc .slide-points{ margin:0; gap:16px; max-width:none; }

.beta-cta{ margin-top:52px; display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.beta-note{
  font-family:'Dogica','Inter',monospace; font-size:.62rem;
  letter-spacing:.05em; color:var(--text-faint);
}

@media (max-width:760px){
  .beta-colonnes{ grid-template-columns:1fr; }
  .beta-cta .btn{ width:100%; text-align:center; }
}
