/* IMPERIAL - feuille de style
   Principe : la page est une descente dans le monde. Chaque section est une couche
   sombre aux bords decoupes en blocs ; entre deux couches on voit le decor. */
@font-face{font-family:Pix;src:url(../assets/pixel.ttf) format("truetype");font-display:block}
@font-face{font-family:Barlow;font-weight:400;src:url(../assets/barlow-latin-400-normal.woff2) format("woff2");font-display:swap}
@font-face{font-family:Barlow;font-weight:500;src:url(../assets/barlow-latin-500-normal.woff2) format("woff2");font-display:swap}
@font-face{font-family:Barlow;font-weight:600;src:url(../assets/barlow-latin-600-normal.woff2) format("woff2");font-display:swap}
:root{
  --herbe:#58b03a;--herbe-sombre:#3c8527;--herbe-claire:#8ee86a;
  --braise:#e8704a;--survol:#ffffa0;
  --couche:rgba(11,14,19,.88);--couche-braise:rgba(30,15,10,.96);
  --txt:#ecedf0;--mut:#aeb4bf;--trait:rgba(255,255,255,.1);
  /* anciens noms, encore utilises par les pages */
  --g:var(--herbe-sombre);--g2:var(--herbe);--or:var(--herbe);--or2:var(--herbe-claire);--line:var(--trait);
  --sw:clamp(13.125rem,17vw,16.25rem);
  --gout:clamp(1.125rem,4vw,3.5rem);--large:60rem;
  --bloc:12px;
  --body:Barlow,"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
  --head:Pix,Barlow,"Segoe UI",system-ui,sans-serif;
  --bord-haut:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 2' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Crect x='-0.01' y='0' width='1.02' height='2'/%3E%3Crect x='0.99' y='0' width='1.02' height='2'/%3E%3Crect x='1.99' y='1' width='1.02' height='1'/%3E%3Crect x='2.99' y='1' width='1.02' height='1'/%3E%3Crect x='3.99' y='0' width='1.02' height='2'/%3E%3Crect x='4.99' y='0' width='1.02' height='2'/%3E%3Crect x='5.99' y='0' width='1.02' height='2'/%3E%3Crect x='8.99' y='1' width='1.02' height='1'/%3E%3Crect x='9.99' y='0' width='1.02' height='2'/%3E%3Crect x='10.99' y='0' width='1.02' height='2'/%3E%3Crect x='11.99' y='0' width='1.02' height='2'/%3E%3Crect x='12.99' y='0' width='1.02' height='2'/%3E%3Crect x='13.99' y='1' width='1.02' height='1'/%3E%3Crect x='14.99' y='0' width='1.02' height='2'/%3E%3Crect x='15.99' y='0' width='1.02' height='2'/%3E%3Crect x='16.99' y='1' width='1.02' height='1'/%3E%3Crect x='17.99' y='1' width='1.02' height='1'/%3E%3Crect x='19.99' y='1' width='1.02' height='1'/%3E%3Crect x='20.99' y='0' width='1.02' height='2'/%3E%3Crect x='21.99' y='0' width='1.02' height='2'/%3E%3Crect x='22.99' y='1' width='1.02' height='1'/%3E%3C/svg%3E");
  --bord-bas:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 2' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Crect x='1.99' y='0' width='1.02' height='1'/%3E%3Crect x='2.99' y='0' width='1.02' height='2'/%3E%3Crect x='3.99' y='0' width='1.02' height='2'/%3E%3Crect x='4.99' y='0' width='1.02' height='2'/%3E%3Crect x='5.99' y='0' width='1.02' height='2'/%3E%3Crect x='6.99' y='0' width='1.02' height='1'/%3E%3Crect x='7.99' y='0' width='1.02' height='2'/%3E%3Crect x='8.99' y='0' width='1.02' height='2'/%3E%3Crect x='9.99' y='0' width='1.02' height='1'/%3E%3Crect x='10.99' y='0' width='1.02' height='1'/%3E%3Crect x='12.99' y='0' width='1.02' height='1'/%3E%3Crect x='13.99' y='0' width='1.02' height='2'/%3E%3Crect x='14.99' y='0' width='1.02' height='2'/%3E%3Crect x='15.99' y='0' width='1.02' height='1'/%3E%3Crect x='16.99' y='0' width='1.02' height='2'/%3E%3Crect x='17.99' y='0' width='1.02' height='2'/%3E%3Crect x='18.99' y='0' width='1.02' height='1'/%3E%3Crect x='19.99' y='0' width='1.02' height='1'/%3E%3Crect x='20.99' y='0' width='1.02' height='2'/%3E%3Crect x='21.99' y='0' width='1.02' height='2'/%3E%3Crect x='22.99' y='0' width='1.02' height='2'/%3E%3C/svg%3E")}
*{box-sizing:border-box;font-synthesis:none}
html{font-size:clamp(16px,.3vw + 10.5px,22px);scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font:400 1rem/1.6 var(--body);color:var(--txt);background:#101113;min-height:100dvh;display:flex;overflow-x:hidden}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--survol);outline-offset:2px}
a{color:var(--herbe-claire);text-underline-offset:.18em}
strong{font-weight:600;color:#fff}

/* ---- Decor fixe qui descend avec la page ---- */
.bg{position:fixed;inset:0;z-index:-1;overflow:hidden;background:#05070a;contain:strict}
.bg::before{content:"";position:absolute;left:50%;top:0;width:max(100vw,calc(100vh * 33 / 48));aspect-ratio:33/48;background:url(../assets/bg-pixel.png) center/100% 100% no-repeat;image-rendering:pixelated;transform:translate3d(-50%,calc(var(--p,0) * (100vh - var(--fh,0px) - 100%)),0);will-change:transform}
.p-home .bg::before{width:max(100vw,calc(260vh * 33 / 48))}

/* ---- Barre laterale ---- */
aside{flex:0 0 var(--sw);align-self:flex-start;position:sticky;top:0;height:100dvh;overflow:hidden auto;display:flex;flex-direction:column;padding:1.125rem .875rem;z-index:5;border-right:3px solid #000;background:#07090d url(../assets/side-poster.jpg) center/cover;view-transition-name:side}
aside>*{position:relative;z-index:1}
.side-video{position:absolute!important;inset:0;width:100%;height:100%;object-fit:cover;z-index:0!important;opacity:.8;pointer-events:none;background:#07090d}
aside::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.7));z-index:0}
.brand{display:flex;align-items:center;gap:.75rem;margin-bottom:1.75rem;color:#fff;text-decoration:none;font:400 1.25rem var(--head);letter-spacing:.04em}
.brand img{width:2.75rem;height:2.75rem;image-rendering:pixelated}
aside nav a{display:block;padding:.75rem 1rem;margin-bottom:.25rem;font:400 .9375rem var(--head);letter-spacing:.05em;text-transform:uppercase;color:#fff;text-decoration:none;text-shadow:0 2px 0 rgba(0,0,0,.6)}
aside nav a:hover{color:var(--survol);background:rgba(255,255,255,.08)}
aside nav a[aria-current=page]{background:var(--herbe-sombre);box-shadow:inset -3px -4px 0 rgba(0,0,0,.35),inset 3px 3px 0 rgba(255,255,255,.22),0 0 0 2px #000}
aside nav a[aria-current=page]:hover{color:#fff}
.legal-links{margin-top:auto;display:flex;flex-direction:column;gap:.3rem;padding-top:.875rem;font-size:.75rem}
.legal-links a{color:#d6e4f0;text-decoration:none}
.legal-links a:hover{color:var(--survol);text-decoration:underline}
.legal-links span{opacity:.6;font-size:.6875rem}
.menu{display:none}

/* ---- Colonne principale et barre de terre ---- */
.col{flex:1;min-width:0;display:flex;flex-direction:column;min-height:100dvh}
.top{position:sticky;top:0;z-index:4;display:flex;overflow-x:auto;scrollbar-width:none;border-bottom:3px solid #000;image-rendering:pixelated;background:linear-gradient(rgba(0,0,0,.12),rgba(0,0,0,.55)),url(../assets/dirt-bar.jpg) 0 0/4000px 96px no-repeat #5b3f28}
.top::-webkit-scrollbar{display:none}
.top button,.top a{flex:1 0 auto;min-height:3.75rem;padding:1.5rem clamp(.875rem,2vw,1.875rem) .5rem;font:400 .9375rem var(--head);letter-spacing:.05em;text-transform:uppercase;color:#fff;text-align:center;text-decoration:none;text-shadow:0 2px 0 rgba(0,0,0,.75);white-space:nowrap;background:none;border:0;cursor:pointer}
.top button:hover,.top a:hover{color:var(--survol)}
/* onglet actif : creuse dans la terre, texte jaune comme un bouton survole en jeu */
.top button[aria-selected=true],.top a.on{color:var(--survol);background:rgba(0,0,0,.42);box-shadow:inset 3px 0 0 rgba(0,0,0,.35),inset -3px 0 0 rgba(0,0,0,.35)}

/* ---- Couches (sections) ---- */
main{flex:1 0 auto;width:100%;padding:clamp(1.5rem,5vh,3rem) 0 clamp(2.5rem,8vh,5rem)}
.panel{display:none;position:relative;padding:calc(var(--bloc) * 2 + clamp(1.75rem,4vw,3rem)) max(var(--gout),calc((100% - var(--large)) / 2));background:var(--couche);
  -webkit-mask:var(--bord-haut) 0 0/calc(var(--bloc) * 24) calc(var(--bloc) * 2) repeat-x,var(--bord-bas) 0 100%/calc(var(--bloc) * 24) calc(var(--bloc) * 2) repeat-x,linear-gradient(#000,#000) 0 calc(var(--bloc) * 2 - 1px)/100% calc(100% - var(--bloc) * 4 + 2px) no-repeat;
  mask:var(--bord-haut) 0 0/calc(var(--bloc) * 24) calc(var(--bloc) * 2) repeat-x,var(--bord-bas) 0 100%/calc(var(--bloc) * 24) calc(var(--bloc) * 2) repeat-x,linear-gradient(#000,#000) 0 calc(var(--bloc) * 2 - 1px)/100% calc(100% - var(--bloc) * 4 + 2px) no-repeat}
.panel.on{display:block}
.panel>:first-child{margin-top:0}.panel>:last-child{margin-bottom:0}
.panel>p,.panel>ul,.panel>ol:not(.regles){max-width:44rem}

h1,.titre{margin:0 0 1rem;font:400 clamp(1.75rem,4.2vw,2.625rem)/1.15 var(--head);letter-spacing:.04em;text-transform:uppercase;color:#fff;text-shadow:.12em .12em 0 rgba(0,0,0,.6)}
h2{margin:2.25rem 0 .5rem;font:600 1.1875rem/1.3 var(--body);color:#fff}
h3{margin:0 0 .25rem;font:600 1.0625rem/1.35 var(--body);color:#fff}
p{margin:0 0 1rem}
.note{font-size:.875rem;color:var(--mut)}.ok{color:var(--herbe-claire)}
ol,ul{padding-left:1.375rem}li{margin:.5rem 0}
code{padding:.05em .4em;font:.9em ui-monospace,"Cascadia Mono",Consolas,monospace;color:#c6f5ae;background:rgba(255,255,255,.08);overflow-wrap:anywhere}

/* ---- Boutons : le relief d'un bouton du jeu ---- */
.ip{display:flex;flex-wrap:wrap;gap:.875rem;margin:1.25rem 0}
.ip button,.btn,footer .l a,.menu{font:400 1rem var(--head);letter-spacing:.05em;text-transform:uppercase;color:#fff;text-decoration:none;text-shadow:0 2px 0 rgba(0,0,0,.45);border:0;cursor:pointer;box-shadow:inset -3px -4px 0 rgba(0,0,0,.35),inset 3px 3px 0 rgba(255,255,255,.22),0 0 0 2px #000}
.ip button{min-height:3.75rem;padding:.7rem 1.375rem .8rem;text-align:left;background:var(--herbe-sombre);overflow-wrap:anywhere}
.ip button:hover{background:var(--herbe);color:var(--survol)}
.ip button:active,.btn:active,footer .l a:active{box-shadow:inset 3px 4px 0 rgba(0,0,0,.35),0 0 0 2px #000}
.ip small{display:block;margin-top:.2rem;font:500 .875rem var(--body);letter-spacing:0;text-transform:none;color:#fff;text-shadow:none;opacity:.95}
.btn{display:inline-block;padding:.8rem 1.375rem;background:#5865f2}
.btn:hover,footer .l a:hover{color:var(--survol)}
.panel a.btn{color:#fff}.panel a.btn:hover{color:var(--survol)}

/* ---- Listes "nom / explication" (fonctionnalites, sanctions, questions) ---- */
.faits{display:grid;grid-template-columns:minmax(8rem,auto) 1fr;gap:.7rem 1.75rem;margin:0;max-width:46rem}
.faits dt{font-weight:600;color:#fff}
.faits dd{margin:0;color:var(--mut)}
.faits dt.grave{color:var(--braise)}
.plug{color:#7f8590;font-size:.875em;white-space:nowrap}

/* ---- Accueil ---- */
.p-home main{padding:0 0 clamp(2rem,6vh,4rem)}
.p-home .panel{display:block;margin:0 0 clamp(7rem,34vh,16rem);scroll-margin-top:5.5rem}
.p-home .panel:last-child{margin-bottom:0}
/* le paysage : decoupe en blocs en bas, comme le reste */
.intro{--bloc:24px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:min(46rem,calc(100svh - 3.75rem));padding:clamp(4rem,12vh,7rem) max(var(--gout),calc((100% - var(--large)) / 2)) calc(var(--bloc) * 2 + clamp(3rem,9vh,5.5rem));margin-bottom:clamp(6rem,26vh,13rem);scroll-margin-top:5.5rem;
  background:linear-gradient(rgba(0,0,0,0) 30%,rgba(0,0,0,.55)),linear-gradient(90deg,rgba(0,0,0,.6),rgba(0,0,0,.15) 60%,rgba(0,0,0,0)),url(../assets/vue.jpg) 70% 40%/cover;
  -webkit-mask:var(--bord-bas) 0 100%/calc(var(--bloc) * 24) calc(var(--bloc) * 2) repeat-x,linear-gradient(#000,#000) 0 0/100% calc(100% - var(--bloc) * 2 + 1px) no-repeat;
  mask:var(--bord-bas) 0 100%/calc(var(--bloc) * 24) calc(var(--bloc) * 2) repeat-x,linear-gradient(#000,#000) 0 0/100% calc(100% - var(--bloc) * 2 + 1px) no-repeat}
.intro h1{margin:0 0 1.25rem;font-size:clamp(3rem,10.5vw,7rem);line-height:.95;letter-spacing:.03em;text-shadow:.07em .07em 0 rgba(0,0,0,.65)}
.intro p{max-width:35rem;margin:0 0 .5rem;font-size:1.125rem;line-height:1.55;text-shadow:0 1px 6px rgba(0,0,0,.9)}
.intro .ip{margin:1.5rem 0 1rem}
.intro .note{font-size:.9375rem;color:#dfe2e8}
.intro .note a{color:var(--survol)}

/* Unsafe Event : couche brulee, le desert rouge visible a droite */
#unsafe{background:linear-gradient(90deg,#1e0f0a 46%,rgba(30,15,10,.55) 78%,rgba(30,15,10,.3)),url(../assets/desert.jpg) 100% 30%/auto 130% no-repeat,var(--couche-braise)}
#unsafe .titre{color:#ffd9c9}
#unsafe .faits dt{color:var(--braise)}
#unsafe .faits dd{color:#d9cdc7}
.chapo{max-width:34rem;margin:0 0 1.75rem;font-size:1.25rem;line-height:1.45;color:#fff}
#unsafe .faits{max-width:36rem;margin-bottom:1.75rem}
#unsafe>p:not(.chapo){max-width:34rem;color:#d9cdc7}

.feat{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));gap:2.75rem 3.5rem;margin-top:2rem}
.feat h3{display:flex;align-items:center;gap:.875rem;margin:0 0 1rem;font:400 1.0625rem var(--head);letter-spacing:.05em;text-transform:uppercase}
.feat h3 img{width:2.5rem;height:2.5rem;image-rendering:pixelated}
.feat h3 img.smooth{image-rendering:auto}
.feat .faits{grid-template-columns:8.5rem 1fr;gap:.65rem 1.25rem;font-size:.9688rem}
.feat+.note{margin-top:2.25rem}

/* ---- Reglement : six regles numerotees ---- */
.regles{list-style:none;counter-reset:r;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));gap:1.75rem 3.5rem;margin:2rem 0 0;padding:0}
.regles li{counter-increment:r;position:relative;margin:0;padding-left:3.25rem}
.regles li::before{content:counter(r);position:absolute;left:0;top:-.05em;font:400 2.5rem/1 var(--head);color:var(--herbe);text-shadow:.1em .1em 0 rgba(0,0,0,.6)}
.regles p{margin:0;color:var(--mut)}

/* ---- Rejoindre : etapes ---- */
.panel>ol:not(.regles){list-style:none;counter-reset:e;padding:0;margin:1.5rem 0}
.panel>ol:not(.regles)>li{counter-increment:e;position:relative;padding-left:2.75rem;margin:.9rem 0}
.panel>ol:not(.regles)>li::before{content:counter(e);position:absolute;left:0;top:-.1em;font:400 1.5rem/1.2 var(--head);color:var(--herbe)}

/* ---- Commandes ---- */
.outil{padding:0 max(var(--gout),calc((100% - var(--large)) / 2));margin-bottom:1.25rem}
#q{display:block;width:100%;max-width:34rem;min-height:3.25rem;padding:.75rem 1rem;margin-bottom:.75rem;font:1rem var(--body);color:#fff;background:rgba(0,0,0,.72);border:0;box-shadow:inset 3px 3px 0 rgba(0,0,0,.6),0 0 0 2px #000,0 0 0 4px rgba(255,255,255,.28)}
#q::placeholder{color:#9aa0ab}
.outil .note{margin:0;text-shadow:0 1px 4px #000;color:#e3e6eb}
.cmd{display:grid;align-items:baseline;grid-template-columns:minmax(0,19rem) 1fr;gap:.25rem 1.5rem;padding:.5rem 0;max-width:50rem}
.cmd code{justify-self:start;background:none;padding:0;font-size:.95em}
.cmd span{color:var(--mut)}
.cmd:hover span{color:var(--txt)}

/* ---- Avertissement Bedrock ---- */
.alert{max-width:40rem;margin:0 0 1rem;padding:.75rem 1rem;font-size:.9375rem;color:#fbe9e2;background:rgba(40,16,10,.88);box-shadow:0 0 0 2px #000}
main>.alert{margin:0 max(var(--gout),calc((100% - var(--large)) / 2)) 1.25rem;max-width:44rem}
.alert summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .75rem}
.alert summary::-webkit-details-marker{display:none}
.alert summary strong{color:#ffb9a3}
.alert summary span{margin-left:auto;color:var(--survol);text-decoration:underline;white-space:nowrap}
.alert[open] summary span{display:none}
.alert p{margin:.6rem 0 0;color:#e4d6d0}
.alert a{color:var(--survol)}

/* ---- Pied de page ---- */
footer{position:relative;padding:2.25rem max(var(--gout),calc((100% - var(--large)) / 2)) 1.5rem;font-size:.875rem;color:var(--mut);background:#0b0c0e}
footer::before{content:"";position:absolute;inset:0 0 auto;height:.875rem;image-rendering:pixelated;background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.5)),url(../assets/dirt-foot.jpg) 0 0/4000px 16px no-repeat}
footer .l{display:flex;flex-wrap:wrap;gap:.875rem;margin-bottom:1.125rem}
footer .l a{padding:.7rem 1.375rem;font-size:.9375rem}
.dc{background:#5865f2}.yt{background:#c62222}
footer p{margin:.3rem 0;max-width:none}

/* ---- Telephone ---- */
@media(max-width:900px){
  body{flex-direction:column}
  aside{flex:0 0 auto;align-self:stretch;height:auto;max-height:100dvh;flex-direction:row;flex-wrap:wrap;align-items:center;padding:.625rem .875rem;padding-top:max(.625rem,env(safe-area-inset-top));border-right:0;background:#07090d}
  .side-video,aside::after{display:none}
  .brand{margin:0;font-size:1.125rem}
  .menu{display:block;margin-left:auto;padding:.7rem 1.125rem;font-size:.9375rem;background:var(--herbe-sombre)}
  aside nav{display:none;width:100%;margin-top:.75rem}aside nav.open{display:block}
  aside nav:not(.open)+.legal-links{display:none}
  .legal-links{flex-direction:row;flex-wrap:wrap;width:100%;gap:.375rem 1rem;margin-top:.25rem}
  .col{flex:1 0 auto;min-height:0}.top{position:static}
  .intro{--bloc:16px;min-height:0;background:linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.7)),url(../assets/vue.jpg) 70% 40%/cover}
  #unsafe{background:linear-gradient(var(--couche-braise) 55%,rgba(30,15,10,.6)),url(../assets/desert.jpg) 50% 100%/cover no-repeat,var(--couche-braise);padding-bottom:calc(var(--bloc) * 2 + 9rem)}
}
@media(max-width:560px){
  .ip button{width:100%}
  footer .l a{flex:1 1 40%;text-align:center}
  .faits,.feat .faits{grid-template-columns:1fr;gap:0}
  .faits dd{margin-bottom:.8rem}
  .cmd{grid-template-columns:1fr}
  .regles li{padding-left:2.5rem}.regles li::before{font-size:1.875rem}
}

/* ---- Mouvement ---- */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.15s}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}html{scroll-behavior:auto}
  .side-video{display:none}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}
