/* =========================================================
   Archipelle — style.css (clean)
   - Fond global (bg.jpg) sur toutes les pages
   - Navbar responsive (scroll horizontal mobile)
   - Landing (index) + Pages (vote/aide/grades/reglement)
   - Vote UI + Panels + Tables responsive
   - Accordion Aide
   ========================================================= */

/* ---------- Variables ---------- */
:root{
  --bg: #1b1b1b;
  --bg2:#2a2a2a;
  --text:#f5f6fa;
  --muted:#cfcfcf;
  --accent:#39b54a;
  --border:#3a3a3a;

  --title: #f3d6b7;

  --glass: rgba(10,10,10,0.45);
  --glassBorder: rgba(255,170,95,0.18);
  --glassShadow: 0 14px 30px rgba(0,0,0,0.30);

  --chipBg: rgba(0,0,0,0.25);
  --chipBorder: rgba(255,255,255,0.14);
}

/* ---------- Base / Reset ---------- */
*{ box-sizing: border-box; }
html, body{ min-height: 100%; }
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:#111; /* fallback */
  overflow-x: hidden;
  position: relative;
}
img, svg, video{ max-width:100%; height:auto; }
a{ color: inherit; }
code{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 2px 8px;
  border-radius: 10px;
  color: #f5f6fa;
}

/* ---------- Fond global (assets/bg.jpg) ---------- */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("bg.jpg") center/cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05);
}
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.20), rgba(0,0,0,0.72) 70%),
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
}

/* ---------- Navbar ---------- */
.navbar{
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.navbar .inner{
  max-width: 1100px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  gap: 18px;
  padding: 14px 16px;
}

/* Nav: scrollable sur mobile (propre, sans burger) */
.nav{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 26px;
  margin:0;
  padding:0;

  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar{ display:none; }

.nav a, .nav button{
  color: var(--text);
  text-decoration:none;
  font-weight:700;
  letter-spacing: .5px;
  background:transparent;
  border:0;
  padding: 6px 0;
  cursor:pointer;
  flex: 0 0 auto;
}
.nav a.active, .nav button.active{ color: var(--accent); }

/* Dropdown (si tu l’utilises ailleurs) */
.dropdown{ position:relative; }
.dropdown-btn{ display:flex; align-items:center; gap:10px; }
.chev{
  display:inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -2px;
}
.dropdown-panel{
  position:absolute;
  top: 36px;
  left:0;
  background: var(--bg2);
  border: 1px solid var(--border);
  min-width: 220px;
  padding: 8px;
  display:none;
  z-index: 1000;
}
.dropdown-panel a{
  display:block;
  padding: 10px 10px;
  border-radius: 6px;
  color: var(--text);
  font-weight:700;
}
.dropdown-panel a:hover{ background:#333; }
.dropdown.open .dropdown-panel{ display:block; }

/* ---------- Layout page ---------- */
.page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 16px 64px;
}
.page-footer{
  text-align:center;
  margin-top: 22px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

/* ---------- Hero (pages) ---------- */
.page-hero{
  text-align:center;
  margin: 18px 0 22px;
}
.page-title{
  margin: 0;
  font-size: clamp(28px, 3.8vw, 46px);
  color: var(--title);
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
}
.page-subtitle{
  margin: 10px auto 0;
  max-width: 760px;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}

/* ---------- Tags / couleurs ---------- */
.tag{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--chipBorder);
  background: var(--chipBg);
}
.green{ color:#2ecc71; font-weight:900; }
.gold{ color:#f1c40f; font-weight:900; }
.blue{ color:#00a8ff; font-weight:900; }
.purple{ color:#b37aff; font-weight:900; }

/* ---------- Panels / grilles ---------- */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

.panel{
  background: var(--glass);
  border: 1px solid var(--glassBorder);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--glassShadow);
}
.panel h2{
  margin: 0 0 10px;
  font-size: 18px;
  color: rgba(255,255,255,0.95);
}
.panel-sub{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.75);
}
.list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.84);
  line-height: 1.55;
}
.cmd{
  margin: 10px 0;
  color: rgba(255,255,255,0.86);
}
.note{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

/* ---------- Vote buttons ---------- */
.vote-row{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}
.vote-btn{
  position: relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 6px;
  width: 180px;
  padding: 14px 14px;
  border-radius: 16px;
  text-decoration:none;

  background: rgba(30,18,10,0.55);
  border: 1px solid rgba(255,170,95,0.25);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);

  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.vote-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}
.vote-name{
  font-weight: 1000;
  letter-spacing: .4px;
  color: rgba(255,255,255,0.94);
}
.vote-meta{
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}
.vote-timer{
  margin-top: 2px;
  font-weight: 900;
  font-size: 13px;
  color: var(--title);
}
.vote-btn.locked .vote-timer{ color: rgba(255,255,255,0.85); }

/* Mobile vote: full width */
@media (max-width: 768px){
  .vote-row{
    display:grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .vote-btn{
    width: 100%;
    text-align:center;
  }
}

/* ---------- Tables responsive (important) ---------- */
.table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  display:block;
}

/* Le point clé : min-width => swipe sur mobile */
.table{
  width: 100%;
  min-width: 720px; /* ajuste si tu ajoutes/enlèves des colonnes */
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  white-space: nowrap;
}
.table thead th{
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.table tfoot th{
  border-top: 1px solid rgba(255,255,255,0.14);
  font-weight: 700;
}

/* ---------- Landing (index) ---------- */
/* Tu peux garder tes div landing-bg / landing-vignette : elles ne gênent pas,
   mais elles sont optionnelles maintenant que le fond est global. */
.landing{
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}
.landing-bg{
  position:absolute;
  inset:0;
  background: url("bg.jpg") center/cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05);
}
.landing-vignette{
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.20), rgba(0,0,0,0.72) 70%),
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
}
.landing-center{
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 64px);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  padding: 24px 16px;
}
.landing-title{
  margin: 0;
  font-size: clamp(44px, 6vw, 86px);
  letter-spacing: 2px;
  color: var(--title);
  text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.landing-subtitle{
  margin: 10px 0 22px;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 6px 22px rgba(0,0,0,0.55);
}
.landing-actions{
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:center;
}

/* IP pill (index) */
.ip-pill{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30,18,10,0.55);
  border: 1px solid rgba(255,170,95,0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}
.ip-text{ font-weight: 800; color: rgba(255,255,255,0.92); }
.ip-copy{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  background: rgba(255,170,95,0.22);
  color: rgba(255,255,255,0.92);
}
.ip-copy:hover{ filter: brightness(1.12); }

/* Discord button (index) */
.btn-discord{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  min-width: 260px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 900;
  letter-spacing: .2px;

  color: rgba(255,255,255,0.92);
  background: rgba(18, 22, 45, 0.55);
  border: 1px solid rgba(88, 101, 242, 0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.38);
  backdrop-filter: blur(10px);

  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-discord .btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 999px;

  background: rgba(88,101,242,0.16);
  border: 1px solid rgba(88,101,242,0.28);
  color: rgba(255,255,255,0.92);
}
.btn-discord:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.48);
  filter: brightness(1.06);
}
.btn-discord:active{ transform: translateY(0px); }

/* ---------- Aide: Accordion ---------- */
.help-accordion{
  display:flex;
  flex-direction:column;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.acc-item{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,170,95,0.18);
  background: rgba(14,10,7,0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

.acc-head{
  width:100%;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 16px;
  border:0;
  cursor:pointer;
  background: rgba(255,170,95,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  text-align:left;
}

.acc-emoji{ width: 26px; text-align:center; opacity:.95; }
.acc-title{ flex:1; }
.acc-chevron{ opacity:.8; transition: transform .18s ease; }

.acc-panel{
  display:none;
  padding: 12px 16px 16px;
  color: rgba(255,255,255,0.88);
}
.acc-item.open .acc-panel{ display:block; }
.acc-item.open .acc-chevron{ transform: rotate(180deg); }

.cmd-list{ display:flex; flex-direction:column; gap: 8px; }
.sep{ opacity:.7; }

.bullets{ margin: 6px 0 10px; padding-left: 18px; }
.bullets li{ margin: 6px 0; color: rgba(255,255,255,0.86); }

.subttl{
  margin: 12px 0 8px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  opacity: .95;
}

/* ===== CLASSEMENT VOTES ===== */
.podium { margin: 10px 0 16px; }
.podium-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items:end;
}
.podium-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  padding: 12px 12px 14px;
  border-radius: 18px;
  background: rgba(10,10,10,0.42);
  border: 1px solid rgba(255,170,95,0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.30);
  text-align:center;
}
.podium-skin{
  width: 66px;
  height: 66px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
}
.podium-name{
  font-weight: 900;
  opacity: .95;
}
.podium-box{
  width: 100%;
  border-radius: 14px;
  padding: 10px 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
}
.podium-rank{ font-weight: 900; }
.podium-votes{ opacity: .85; margin-top: 2px; }

/* tailles podium */
.podium-1{ transform: translateY(-10px); }
.podium-1 .podium-box{ border-color: rgba(241,196,15,0.35); }
.podium-2 .podium-box{ border-color: rgba(160,160,160,0.25); }
.podium-3 .podium-box{ border-color: rgba(205,127,50,0.25); }

.ranklist{ display:flex; flex-direction:column; gap: 10px; }
.rankrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10,10,10,0.42);
  border: 1px solid rgba(255,170,95,0.14);
  backdrop-filter: blur(10px);
}
.rankleft{ display:flex; align-items:center; gap: 12px; min-width: 0; }
.ranknum{ font-weight: 900; opacity: .9; width: 58px; }
.rankavatar{
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
}
.rankname{
  font-weight: 900;
  opacity: .95;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rankvotes{ font-weight: 900; opacity: .9; }

/* ===== Accordion "Top votes" en pleine largeur + typo plus grosse ===== */
.help-accordion--wide{
  max-width: 100%;
}

/* Uniquement pour le bloc top votes */
#votes-accordion .acc-head{
  font-size: 18px;     /* plus gros */
  padding: 16px 18px;  /* un peu plus "premium" */
}

#votes-accordion .acc-title{
  font-size: 18px;     /* au cas où ton navigateur ignore acc-head */
}

#votes-accordion .acc-emoji{
  font-size: 18px;     /* icône alignée avec la taille */
}

#votes-accordion .acc-chevron{
  font-size: 18px;     /* chevron plus visible */
}

/* ✅ Ré-ordonnancement VISUEL en desktop (2 - 1 - 3) sans casser mobile */
.podium-wrap{
  grid-template-areas: "second first third";
}

.podium-1{ grid-area: first; }
.podium-2{ grid-area: second; }
.podium-3{ grid-area: third; }

/* placeholder si un top manque */
.podium-empty{
  min-height: 10px;
}

/* ===== Rangée votes + cloche à droite ===== */
.vote-row-wrap{
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap: 12px;
  margin: 18px 0 20px;
}

/* On garde tes règles .vote-row, mais on retire son margin pour éviter double marge */
.vote-row{
  margin: 0;
}

/* Cloche = même vibe que vote-btn */
/* ✅ Notif plus compact (même style, moins encombrant) */
.vote-bell{
  width: 86px;            /* ↓ moins large */
  min-height: 86px;       /* carré compact */
  padding: 10px 8px;      /* ↓ moins de padding */
  gap: 6px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  border-radius: 16px;
  font-weight: 1000;
  letter-spacing: .4px;
  font-family: inherit;

  background: rgba(30,18,10,0.55);
  border: 1px solid rgba(255,170,95,0.25);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);

  color: rgba(255,255,255,0.92);
  cursor: pointer;

  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.vote-bell:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}

.vote-bell .bell-ico{
  font-size: 18px;        /* un poil plus petit */
  line-height: 1;
}

.vote-bell .bell-txt{
  font-size: 12px;        /* ↓ texte plus petit */
  font-weight: 1000;
  color: rgba(255,255,255,0.94);
}

.vote-bell.is-on{
  background: rgba(57,181,74,0.18);
  border-color: rgba(57,181,74,0.40);
}

/* ✅ Reglement: note "Validation en jeu" plus grosse + alignée sur les accordéons */
.note-validate{
  max-width: 920px;      /* même largeur que .help-accordion */
  margin: 0 auto 14px;   /* centrée + marge dessous */
  font-size: 15px;       /* plus gros */
  padding: 14px 16px;    /* plus “premium” */
}

.note-validate b{
  font-size: 16px;
}

.note-validate code{
  font-size: 14px;
}

/* Responsive : la cloche passe en dessous */
@media (max-width: 900px){
  .vote-row-wrap{ flex-direction: column; }
  .vote-bell{ width: 100%; }
}

/* ✅ Mobile : ordre naturel 1 -> 2 -> 3 */
@media (max-width: 860px){
  .podium-wrap{
    grid-template-columns: 1fr;
    grid-template-areas:
      "first"
      "second"
      "third";
  }
}

/* LOGO NAVBAR (remplace ACCUEIL) */
.nav-home a{
  display:flex;
  align-items:center;
  padding: 0;
}

/* Taille du logo */
.nav-logo{
  height: 28px;          /* ajuste si besoin */
  width: auto;
  display:block;
  opacity: .85;
  transition: opacity .15s ease, transform .15s ease, filter .15s ease;
}

/* Hover */
.nav-home a:hover .nav-logo{
  opacity: 1;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* État ACTIF (page accueil) */
.nav-home.active .nav-logo{
  opacity: 1;
  filter: brightness(1.15);
}

/* Mobile */
@media (max-width: 520px){
  .nav-logo{ height: 24px; }
}

/* mobile */
@media (max-width: 860px){
  .podium-wrap{ grid-template-columns: 1fr; }
  .podium-1{ transform:none; }
  .ranknum{ width: 52px; }
}

.steps{ margin: 6px 0 10px; padding-left: 18px; }
.steps li{ margin: 6px 0; }

/* ---------- Petits plus mobile ---------- */
@media (max-width: 520px){
  .navbar .inner{ padding: 12px 12px; }
  .panel{ padding: 14px; border-radius: 16px; }
  .page{ padding-top: 20px; }
}

/* ===== Brand (logo + Archipelle) dans la navbar ===== */
.nav-home{ margin-right: 6px; }

.nav-home-link{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 0;
  text-decoration: none;
}

.nav-logo{
  height: 28px;
  width: auto;
  display:block;
  opacity: .90;
  transition: opacity .15s ease, transform .15s ease, filter .15s ease;
}

.nav-brand{
  font-weight: 900;
  letter-spacing: .6px;
  color: var(--text);
  opacity: .92;
  transition: color .15s ease, opacity .15s ease;
}

/* Hover */
.nav-home-link:hover .nav-logo{
  opacity: 1;
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.nav-home-link:hover .nav-brand{
  opacity: 1;
}

/* Actif (page en cours) */
.nav-home-link.active .nav-brand{
  color: var(--accent);
  opacity: 1;
}
.nav-home-link.active .nav-logo{
  opacity: 1;
  filter: brightness(1.15);
}

/* Mobile */
@media (max-width: 520px){
  .nav-logo{ height: 24px; }
  .nav-brand{ font-size: 14px; }
}
/* ===== Aide Légende : tableau codes couleurs Minecraft ===== */
.mc-colors{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.mc-color{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}

.mc-swatch{
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--mc, #fff);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset;
  flex: 0 0 auto;
}

.mc-name{
  color: var(--mc, rgba(255,255,255,0.9));
  font-weight: 900;
}

/* couleurs MC (approximations “classiques”) */
.mc-0{ --mc:#000000; }
.mc-1{ --mc:#0000AA; }
.mc-2{ --mc:#00AA00; }
.mc-3{ --mc:#00AAAA; }
.mc-4{ --mc:#AA0000; }
.mc-5{ --mc:#AA00AA; }
.mc-6{ --mc:#FFAA00; }
.mc-7{ --mc:#AAAAAA; }
.mc-8{ --mc:#555555; }
.mc-9{ --mc:#5555FF; }
.mc-a{ --mc:#55FF55; }
.mc-b{ --mc:#55FFFF; }
.mc-c{ --mc:#FF5555; }
.mc-d{ --mc:#FF55FF; }
.mc-e{ --mc:#FFFF55; }
.mc-f{ --mc:#FFFFFF; }

/* styles: juste une teinte neutre */
.mc-style{ --mc: rgba(255,255,255,0.85); }
