/* ===== BASE ===== */
body {
  margin: 0;
  background: radial-gradient(circle, rgba(72,198,239,1) 0%, rgba(111,134,214,1) 100%);
  font-family: Arial, sans-serif;
  color: white;
  padding-bottom: 100px;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.img-stack {
  position: relative;
  width: clamp(60px, 10vw, 120px);
  aspect-ratio: 120 / 216;
}

.img-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
}


.grid .item img {
  width: clamp(80px, 10vw, 120px);
  height: auto;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

p, td, li {
  color: #0b1b2b;
}


iframe {
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.item {
  text-align: center;
}

.item img {
  width: 100%;
  height: auto;
  max-width: 120px;
}

/* MENU PRINCIPAL */
.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  display: flex;
  gap: 12px;

  padding: 10px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  overflow-x: auto;
  white-space: nowrap;

  -webkit-overflow-scrolling: touch;
}

/* cacher scrollbar mais garder swipe */
.top-menu::-webkit-scrollbar {
  display: none;
}

.top-menu a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  font-weight: bold;
  transition: 0.2s;
}

.top-menu a:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* espace pour éviter que le menu cache le contenu */
body {
  padding-top: 60px;
}

section {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  .container {
    padding-top: 70px;
  }

  .nav {
    justify-content: flex-start;
  }
}

/* ===== GRADIENT GLOBAL ===== */
:root {
  --grad: linear-gradient(135deg, #6dd5ff, #ff7ac6);
}

/* ===== MENU FIXE ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  gap: 10px;
  padding: 10px;

  background: rgba(10, 12, 25, 0.6);
  backdrop-filter: blur(12px);

  overflow-x: auto;
  white-space: nowrap;

  z-index: 999;
}
.nav a {
  flex: 0 0 auto;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;

  padding: 8px 12px;
  border-radius: 10px;

  background: rgba(255,255,255,0.08);
}
.nav a:hover {
  background: linear-gradient(135deg, #4fc3ff, #8a5cff);
}

/* ===== CONTAINER ===== */
.container {
  width: min(1200px, 95%);
  margin: auto;
  padding-top: 80px; /* espace menu */
}

/* ===== SECTIONS ===== */
.section {
  margin: 60px 0;
  text-align: center;
}

.section-title {
  width: 100%;
  max-width: 600px;
}

/* ===== CARDS ===== */
.card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

  padding: 16px;
  color: #0b1b2b;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ===== TITRES GRADIENT ===== */
h1, h2, h3 {
  background: linear-gradient(135deg, #3bbcff, #ff6fb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== TWITCH RESPONSIVE ===== */
.twitch-container {
  width: 100%;
  aspect-ratio: 16/9;
}

.twitch-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
}

/* ===== TABLE ===== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table td, .table th {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== INPUTS ===== */
input, button {
  padding: 10px;
  border-radius: 10px;
  border: none;
}

button {
  background: var(--grad);
  color: black;
  font-weight: bold;
  cursor: pointer;
}

/* ===== GRIDS ===== */
.grid-pins,
.grid-hats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

/* ===== SMOOTH ANCHOR OFFSET (important menu fixe) ===== */
section {
  scroll-margin-top: 90px;
}

/* ===== FOOTER ===== */
.bottom-footer {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;

  z-index: 2147483647; /* max safe */

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 15px;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);

  color: white;
}
.footer-logo {
  height: 40px;
}
.footer-center {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: white !important;
}

.footer-center p {
  margin: 0;
  color: white !important;
}
.footer-right {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.footer-right a {
  display: flex;
  align-items: center;
  gap: 5px;

  padding: 6px 10px;
  border-radius: 12px;

  background: rgba(255,255,255,0.12);
  color: white;
  text-decoration: none;

  font-size: 12px;
  white-space: nowrap;
}

.footer-right a:hover {
  background: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .bottom-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 5px;
  }

  .footer-right::-webkit-scrollbar {
    display: none;
  }
}


.custom-slider { display: none; }
.slide-container {
    max-width: 600px;
    position: relative;
    margin: auto;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    background-color: rgba(0,0,0,0);
    transition: background-color 0.6s ease;
}
.prev{ left: 15px; }
.next { right: 15px; }
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.5);
}
.slide-text {
    position: absolute;
    color: #ffffff;
    font-size: 20px;
    padding: 15px;
    bottom: 15px;
    width: 570px;
    text-align: center;
    background-color: black
}
.slide-index {
    color: #ffffff;
    font-size: 15px;
    padding: 15px;
    position: absolute;
    top: 0;
    background-color: black
}
.slide-img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}
.slide-dot{ text-align: center; }
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #999999;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.active, .dot:hover { background-color: #111111; }
.fade {
    animation-name: fade;
    animation-duration: 1s;
}
@keyframes fade {
    from {opacity: 0}
    to {opacity: 1}
}