/* Vitrine Julien : style « verre » sur fond Minecraft flouté */
:root{
  --ink:#16171b; --ink-2:#33353b; --muted:#44464d;
  --green:#2096781f; --green-solid:rgba(32,150,120,.86); --green-ink:#135c47;
  --orange-ink:#7a4708;
  --f-display:"Sora",system-ui,sans-serif;
  --f-body:"DM Sans",system-ui,sans-serif;
  --f-mc:"VT323",ui-monospace,monospace;
  --f-code:ui-monospace,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#b89a72;color:var(--ink);font:16px/1.5 var(--f-body)}
img{max-width:100%}
a{color:var(--ink)} a:hover{color:#000}
button{font-family:inherit;color:inherit}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
h1,h2{margin:0}
p{margin:0}

/* Fond */
.page{position:relative;overflow:hidden;min-height:100vh}
.bg{position:fixed;inset:-60px;background:url(../img/fond.png) center/cover;image-rendering:pixelated;filter:blur(16px) saturate(1.1) brightness(1.05);transform:scale(1.05);z-index:0}
.bg::after{content:"";position:absolute;inset:0;background:rgba(255,246,232,.12)}
.wrap{position:relative;z-index:1;max-width:1340px;margin:0 auto;padding:24px 24px 48px;display:flex;flex-direction:column;gap:22px}
@media (max-width:600px){.wrap{padding:16px 16px 40px}}

/* Verre */
.glass{background:rgba(255,255,255,.56);-webkit-backdrop-filter:blur(30px) saturate(160%);backdrop-filter:blur(30px) saturate(160%);border:1px solid rgba(255,255,255,.7);box-shadow:0 12px 40px rgba(60,40,20,.14)}
.glass-soft{background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.8)}
.card{border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0}
.tile{border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}
.tile img{width:34px;height:34px;image-rendering:pixelated;border-radius:6px}
.tile strong{font-weight:600}
.tile small{font-size:13px;color:var(--ink-2)}
.teal{background:var(--green-solid);-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);border:1px solid rgba(255,255,255,.45);color:#fff}
.row{display:flex;flex-wrap:wrap;gap:18px;align-items:stretch}
.between{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.muted{font-size:13px;color:var(--muted)}
.title{font-weight:600}
.span2{grid-column:1/-1}

/* Pastilles */
.pill{display:inline-block;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600;background:rgba(22,23,27,.07)}
.pill.ok{background:rgba(32,150,120,.16);color:var(--green-ink)}
.pill.devis{background:rgba(224,138,30,.18);color:var(--orange-ink)}
.pill.light{background:rgba(255,255,255,.22);font-weight:400}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border-radius:999px;padding:6px 12px;font-size:13px;font-weight:500}

/* Boutons */
.btn{display:inline-flex;justify-content:center;align-items:center;border:0;cursor:pointer;border-radius:999px;padding:12px 18px;font-weight:600;font-size:14px;text-decoration:none;background:#fff;color:var(--ink)}
.btn.dark{background:var(--ink);color:#fff}
.btn.dark:hover{background:#000;color:#fff}
.btn.small{padding:8px 14px;font-size:13px;border:1px solid rgba(255,255,255,.8)}

/* En-tête */
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.brand{border-radius:999px;padding:6px 18px 6px 6px;display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:600;font-size:15px}
.brand img{width:38px;height:38px;border-radius:50%;object-fit:cover;image-rendering:pixelated;display:block}
.head-link{border-radius:50%;transition:transform .15s}
.head-link:hover{transform:scale(1.08)}
.status{border-radius:999px;padding:6px 16px 6px 6px;display:flex;align-items:center;gap:10px;font-size:14px;cursor:default;margin:0}
.status > span:first-child{width:30px;height:30px;border-radius:50%;background:#2fae8a;display:grid;place-items:center}
.round{width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.8);background:#fff;cursor:pointer;display:grid;place-items:center}
.segs{border-radius:999px;padding:5px;display:flex;gap:4px}
.seg{border:0;background:transparent;cursor:pointer;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:500;text-decoration:none;color:var(--ink)}
.seg:hover{background:rgba(255,255,255,.6)}
.seg.on{background:var(--ink);color:#fff;font-weight:600}

/* Barre latérale */
.layout{display:flex;flex-wrap:wrap;gap:22px}
.rail{border-radius:999px;padding:8px;display:flex;flex-direction:column;gap:8px;align-self:flex-start}
.ri{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--ink);text-decoration:none;border:0;background:transparent;cursor:pointer}
.ri:hover{background:rgba(255,255,255,.7)}
.ri.on{background:var(--ink);color:#fff}
main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:20px}
@media (max-width:760px){
  .rail{flex-direction:row;flex-wrap:wrap;justify-content:center;align-self:stretch}
  main{flex-basis:100%}
}

/* Titre de page */
.hero{display:flex;flex-direction:column;gap:6px;padding:4px 4px 2px}
.hero h1{font-family:var(--f-display);font-weight:700;font-size:clamp(34px,4.4vw,52px);letter-spacing:-.025em;line-height:1.05;color:#fff;text-shadow:0 2px 18px rgba(60,35,10,.45)}
.hero h1.mc{font-family:var(--f-mc);font-weight:400;font-size:clamp(56px,7vw,88px);line-height:.9;letter-spacing:0;text-shadow:4px 4px 0 rgba(60,35,10,.45)}
.hero h1.gold{color:#ffcf3a;text-shadow:4px 4px 0 rgba(90,50,0,.55)}
.hero p{font-size:17px;color:#fff;text-shadow:0 1px 10px rgba(60,35,10,.55);max-width:62ch}
footer{align-self:flex-start;font-size:11px;color:rgba(255,255,255,.85);text-shadow:0 1px 4px rgba(60,35,10,.5)}

/* Contact */
.contact{flex-direction:row;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;padding:16px 20px}
.contact[hidden]{display:none}
.contact > strong{font-family:var(--f-display);font-weight:600;font-size:18px}
.contact .chip{padding:10px 16px;font-size:14px;text-decoration:none}
.contact-form{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.contact-form .wide{grid-column:1/-1}
.contact-form label{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;font-size:13px;font-weight:600;color:var(--ink-2)}
.contact-form .requis{color:#b3261e}
.contact-form input,.contact-form textarea{font:15px var(--f-body);color:var(--ink);background:rgba(255,255,255,.85);border:1px solid rgba(22,23,27,.18);border-radius:12px;padding:10px 12px;width:100%;resize:vertical}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--ink);outline-offset:1px}
.contact-form .piege{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-status{font-size:14px;font-weight:600;min-height:1.4em}
.form-status.ok{color:var(--green-ink)} .form-status.err{color:#8a2216}
.copy{border:0;background:var(--ink);color:#fff;border-radius:999px;padding:4px 10px;margin-left:6px;font-size:12px;cursor:pointer}

/* Accueil */
.profile .name{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.profile .name b{font-family:var(--f-display);font-size:38px;font-weight:700;letter-spacing:-.02em;line-height:1}
.profile .tag{align-self:flex-start;border-radius:999px;padding:4px 10px;background:rgba(47,174,138,.18);color:var(--green-ink);font-size:12px;font-weight:600}
.profile .btns{display:flex;gap:10px;flex-wrap:wrap}
.profile .btns > *{flex:1 1 120px}
.socials{border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:12px}
.socials .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.socials .grid > *{display:flex;flex-direction:column;gap:6px;min-width:0;text-decoration:none}
.socials .ic{width:26px;height:26px;border-radius:50%;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:700}
.socials small{font-size:12px;color:var(--muted)}
.socials b{font-size:13px;overflow-wrap:anywhere}
.stats{flex:1 1 320px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.stat{border-radius:22px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}
.stat > span:first-child{font-size:14px}
.stat.glass > span:first-child{color:var(--muted)}
.stat b{font-family:var(--f-display);font-size:36px;font-weight:700}
.stat .pill{align-self:flex-start;font-weight:400}
.side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:14px}
.cta-card{flex:1;text-decoration:none;border-radius:24px;padding:20px;background:#1c1d22;color:#fff;display:flex;flex-direction:column;justify-content:space-between;gap:22px;min-height:140px}
.cta-card:hover{color:#fff;background:#25262c}
.cta-card .sw{width:34px;height:24px;border-radius:6px;background:#d9b25a}
.cta-card b{font-family:var(--f-display);font-size:22px;font-weight:600;display:block}
.cta-card small{font-size:13px;color:#c9cad0}
.cta-card .arrow{width:40px;height:40px;border-radius:50%;background:#fff;color:var(--ink);display:grid;place-items:center;font-size:18px;flex:none}

/* Tableaux */
.table-box{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
thead tr{background:rgba(255,255,255,.55);text-align:left;color:var(--muted);font-size:13px}
th{font-weight:500;padding:10px 12px}
th:first-child{border-radius:12px 0 0 12px} th:last-child{border-radius:0 12px 12px 0}
td{padding:12px;color:var(--ink-2)}
td:first-child{color:var(--ink);font-weight:600}
td.code{font-family:var(--f-code);font-size:13px;font-weight:400;white-space:nowrap}
tbody tr:not(:last-child){border-bottom:1px solid rgba(22,23,27,.08)}
code.block{display:block;border-radius:12px;padding:10px 12px;background:#1c1d22;color:#e8e8ea;font-size:13px}

/* Démos Minecraft */
.demo{flex:1.5 1 520px}
.demo-body{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
.demo-side{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;gap:10px}
.gui{flex:1 1 340px;min-width:0;max-width:470px;background:#c6c6c6;border:3px solid #000;border-radius:6px;box-shadow:inset 3px 3px 0 #fff,inset -3px -3px 0 #555;padding:10px 12px 12px}
.gui-title{font-family:var(--f-mc);font-size:26px;line-height:1;color:#3f3f3f;margin:2px 2px 8px}
.grid9{display:grid;grid-template-columns:repeat(9,minmax(0,1fr))}
.slot{aspect-ratio:1;border:0;padding:0;margin:0;background:#8b8b8b;box-shadow:inset 2px 2px 0 #373737,inset -2px -2px 0 #fff;display:grid;place-items:center}
.slot img{width:82%;height:82%;image-rendering:pixelated;pointer-events:none}
.slot.full img{width:100%;height:100%}
button.slot{cursor:pointer}
button.slot:hover{background:#a9a9a9}
.slot.sel{background:#c9c9c9;outline:3px solid #fff;outline-offset:-2px}
.slot.tool-on{background:#b4b4b4}
.slot.dark{background:#555;box-shadow:inset 2px 2px 0 #2a2a2a,inset -2px -2px 0 #7a7a7a}
.tip{background:rgba(16,0,16,.94);border:2px solid #2a0a5e;border-radius:6px;padding:10px 12px;font:21px/1.15 var(--f-mc);color:#aaa;min-height:2.3em}
.chat{background:rgba(0,0,0,.78);border-radius:6px;padding:8px 10px;font:20px/1.2 var(--f-mc);color:#fff;min-height:196px;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;overflow-wrap:anywhere}
.chat div{text-shadow:2px 2px 0 #222}
.mcbtn{flex:1;border:2px solid #000;cursor:pointer;background:#6f6f6f;color:#fff;font:22px var(--f-mc);padding:6px 10px;box-shadow:inset 2px 2px 0 #a8a8a8,inset -2px -3px 0 #4a4a4a;text-shadow:2px 2px 0 #3f3f3f}
.mcbtn:hover{background:#7c86c0}
.mcbtn.buy{background:#3c8527;box-shadow:inset 2px 2px 0 #6fbf55,inset -2px -3px 0 #24561a}
.mcbtn.buy:hover{background:#4a9a33}
.npc-closed{position:relative;border-radius:14px;overflow:hidden;border:3px solid #000}
.npc-closed img{display:block;width:100%;aspect-ratio:1/.98;object-fit:cover}
.npc-closed .mcbtn{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);flex:none;font-size:24px;padding:6px 18px}
.features{flex:1 1 300px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-content:start}
.shot{width:100%;border-radius:14px;image-rendering:pixelated}
.steps{display:flex;flex-direction:column;gap:10px}
.step{border-radius:16px;padding:14px;display:flex;gap:12px;align-items:flex-start;font-size:14px}
.step b.n{flex:none;width:30px;height:30px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:14px}
figure{margin:0;display:flex;flex-direction:column;gap:8px;flex:1 1 220px;min-width:0}
figcaption{font-size:13px;color:var(--ink-2)}
ul.list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--ink-2)}

/* Jeu caché */
.game{position:fixed;inset:0;z-index:20;background:rgba(30,20,8,.45);display:flex;justify-content:center;align-items:flex-start;padding:110px 16px 16px}
.game[hidden]{display:none}
.game-box{width:100%;max-width:680px;border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:14px;background:rgba(255,255,255,.82);-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);border:1px solid rgba(255,255,255,.9);box-shadow:0 20px 60px rgba(40,25,10,.35)}
.game-box .mc{font:34px/1 var(--f-mc);color:#2f7d1f}
.game-box .x{width:40px;height:40px;border-radius:50%;border:0;cursor:pointer;background:var(--ink);color:#fff;font-size:20px;line-height:1}
.game canvas{width:100%;aspect-ratio:640/200;border:3px solid #000;border-radius:6px;image-rendering:pixelated;cursor:pointer;touch-action:manipulation;background:#9fd3ff}

/* Espace admin */
.admin{max-width:980px}
.admin h1{font-family:var(--f-display);font-size:26px}
.admin h2{font-family:var(--f-display);font-size:18px;font-weight:600}
.admin label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink-2);min-width:0}
.admin input,.admin textarea,.admin select{font:15px var(--f-body);color:var(--ink);background:rgba(255,255,255,.85);border:1px solid rgba(22,23,27,.18);border-radius:12px;padding:10px 12px;width:100%;min-width:0}
.admin textarea{resize:vertical}
.admin input:focus,.admin textarea:focus,.admin select:focus{outline:2px solid var(--ink);outline-offset:1px}
.admin fieldset{border-radius:16px;padding:12px;margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.admin legend{font-weight:600;font-size:13px;padding:0 4px}
.login{max-width:440px;width:100%;margin:40px auto 0;gap:16px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.fields .wide{grid-column:1/-1}
.admin-form{display:flex;flex-direction:column;gap:18px}
.stat-edit{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.srv-list{display:flex;flex-direction:column;gap:10px}
.srv{flex-direction:row!important;flex-wrap:wrap;align-items:flex-end}
.srv label{flex:1 1 180px}
.save-bar{position:sticky;bottom:12px;z-index:5;border-radius:999px;padding:8px;display:flex;justify-content:flex-end;gap:8px}
.admin-tabs{align-self:flex-start;flex-wrap:wrap;position:sticky;top:12px;z-index:6}
.badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#c8352a;color:#fff;font-size:12px;font-weight:700;margin-left:4px}
.msg-list{display:flex;flex-direction:column;gap:10px}
.msg{border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px}
.msg.new{border-left:0;box-shadow:inset 0 0 0 2px #2fae8a}
.msg-text{font-size:14px;color:var(--ink-2);overflow-wrap:anywhere}
.msg form{align-self:flex-end}
#messages,#discord,#accueil,#mdp{scroll-margin-top:80px}
.steps-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:14px}
.bot-box{border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;font-size:14px}
.bot-box summary{cursor:pointer;font-weight:600}
/* Statistiques */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
@media (max-width:600px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis b{font-size:24px}}
.segs{flex-wrap:wrap}
.seg{white-space:nowrap}
.kpis b{font-family:var(--f-display);font-size:30px;font-weight:700}
.kpis small{font-size:13px;color:var(--muted)}
.stat-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.barres{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:14px}
.barre{display:block;height:6px;border-radius:999px;background:#2fae8a;margin-top:4px;min-width:4px}
.courbe{display:flex;align-items:flex-end;gap:4px;height:180px;overflow-x:auto;padding-bottom:4px}
.courbe .col{flex:1 0 22px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.courbe .b{width:100%;max-width:28px;background:#2fae8a;border-radius:6px 6px 0 0;min-height:2px}
.courbe .n{font-size:11px;color:var(--muted)}
.courbe .k{font-size:10px;color:var(--muted);white-space:nowrap}
.notice{border-radius:14px;padding:12px 16px;font-weight:600;margin:0}
.notice.ok{background:#e3f4ec;color:var(--green-ink)}
.notice.err{background:#fbe4e1;color:#8a2216}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
