@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@400;700&family=Poppins:wght@400;600&display=swap');

:root {
  --color-bg: #121212;
  --color-primary: #9b5de5;
  --color-text: #ddd;
  --color-text-muted: #888;
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Inter', 'Montserrat', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover,
a:focus {
  color: var(--color-primary);
  outline: none;
}

.navbar {
  background-color: #181818;
border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* NAVBAR: symétrie parfaite */
.navbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

.nav-left,
.nav-right {
  display: flex;
  flex: 1;
  justify-content: space-between; /* espace égal entre chaque lien */
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-logo {
  flex: 0 0 auto;
  text-align: center;
  margin: 0 2rem;
  min-width: 60px;
}

.nav-logo img {
  max-height: 72px;
  cursor: pointer;
  filter: drop-shadow(0 0 3px var(--color-primary));
  transition: filter 0.3s ease;
}


.nav-logo img:hover,
.nav-logo img:focus {
  filter: drop-shadow(0 0 8px var(--color-primary));
}

.menu-toggle {
  display: none !important; /* Masque le burger sur tous les formats */
}

/* Liens: largeur identique pour tous */
.nav-left li a,
.nav-right li a {
  display: inline-block;
  min-width: 100px; /* largeur identique pour tous les liens */
  text-align: center;
  padding: 0.5rem 0;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

/* Responsive navbar: conserve la ligne sur mobile */
@media (max-width: 900px) {
  .navbar {
    width: 100%;
    margin: 0;
    padding: 0;
    left: unset;
    transform: unset;
    border-radius: 0;
  }
  .navbar nav {
    max-width: 100vw;
    padding: 0.5rem 1rem;
  }
  .nav-left,
  .nav-right {
    justify-content: space-evenly;
  }
  .nav-logo {
    margin: 0 1rem;
    min-width: 40px;
  }
  .nav-logo img {
    max-height: 40px;
  }
  .nav-left li a,
  .nav-right li a {
    min-width: 60px;
    font-size: clamp(0.7rem, 3vw, 1rem);
    padding: 0.4rem 0.2rem;
  }
  .footer {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    margin: 0;
    padding: 1rem 0;
    box-sizing: border-box;
  }
  .footer .social-icons {
    width: 100vw;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
    margin: 0;
    box-sizing: border-box;
  }
}

/* Optional: subtle hover effect on nav items */

.nav-left li a,
.nav-right li a {
  position: relative;
  transition: color var(--transition-speed);
}

.nav-left li a:hover,
.nav-right li a:hover {
  color: var(--color-primary);
}
.team-section {
  padding: 1.5rem 2rem;
}

.team-section h2 {
  margin-top: 0.5rem;
  font-size: 2rem;
  text-align: left;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem; /* réduit l'espace entre les cartes */
  padding: 1rem 0;
  align-items: stretch;
  justify-items: stretch; /* force les cartes à prendre toute la largeur de la colonne */
}

.card {
  background: #1c1c1c;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid #2a2a2a;
  transition: all 0.3s ease;
  max-width: unset;      /* retire la largeur max */
  margin: 0;             /* retire le centrage auto */
  width: 100%;           /* prend toute la colonne */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Réduit la largeur et améliore l'affichage de la carte partenaire */
.card.partner {
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 12px #9b5de522;
  background: #23202b;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card.partner img {
  max-width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

/* Responsive : sur mobile, tu peux garder la largeur max */
@media (max-width: 600px) {
  .card {
    max-width: 350px;
    width: calc(100vw - 2rem); /* espace à gauche et à droite */
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #9b5de5aa;
}

.card h3 {
  margin-bottom: 0.25rem;
  font-size: 2rem;
  color: white;
}

.card p {
  color: #bbb;
  margin: 0.25rem 0 1rem;
  font-size: 1.2rem;
}

.card .social-icons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.card .social-icons a i {
  font-size: 20px;
  color: #fff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card .social-icons a i:hover {
  transform: scale(1.2);
  color: #9b5de5;
}

.banner {
  width: 100%;
  height: 30vh; /* ou 60vh selon ta préférence */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.footer {
  margin-top: auto;
  padding: 2rem 0;
  background-color: #111;
  text-align: center;
}
footer {
  position: relative;
  z-index: 1;
}
.footer .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem;
}

.footer .social-icons a i {
  font-size: 24px;
  color: #fff;
  transition: transform 0.2s ease;
}

.footer .social-icons a i:hover {
  transform: scale(1.3);
  color: #9b5de5;
}
.profile-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: block;
  border: 2px solid #9b5de5;
}
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.cta-contact a {
  color: var(--color-primary);
  font-weight: 600;
}

.cta-contact a:hover {
  text-decoration: underline;
}
.footer .copyright {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}
.recruit-banner {
  background-color: #1e1e1e;
  border-left: 4px solid var(--color-primary);
  padding: 1rem 2rem;
  margin: 1.5rem auto 1.5rem auto; /* même espace haut/bas */
  max-width: 800px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(155, 93, 229, 0.3);
}

.recruit-banner p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
}

.recruit-banner a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.recruit-banner a:hover {
  color: #b678f0;
}
.hidden {
  display: none !important;
}
.tweet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1600px;
  margin: 2rem auto;
  padding: 1rem;
}

@media (max-width: 1200px) {
  .tweet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tweet-grid {
    grid-template-columns: 1fr;
  }
}



.twitter-tweet {
  flex: 1 1 300px;
  max-width: 400px;
}
.team-page {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.team-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/background-team.jpg") center center / cover no-repeat;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

.team-page > * {
  position: relative;
  z-index: 1;
}

#pixelArtOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  z-index: 9999;
  cursor: pointer;
  user-select: none;
  white-space: pre;
}

body.matches-body {
  background-image: url("images/background-result.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.matches-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
  pointer-events: none;
}

.matches-page > * {
  position: relative;
  z-index: 1;
}



.team-page .card h3 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
}
.game-logo {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}
.result-label {
  font-weight: 700;
  margin: 0 auto;
  font-size: 0.9rem;
  padding: 0.15rem 0.7rem;
  border-radius: 0.3rem;
  color: white;
  display: inline-block;
  width: 80px;       /* optionnel : largeur mini pour harmoniser */
  text-align: center;    /* centre le texte si min-width */
  box-sizing: border-box;
}

.result-label.win {
  background-color: #4caf50;
}

.result-label.lose {
  background-color: #f44336;
}
.about-image {
  max-width: 300px;
  height: auto;
  border-radius: 10px; /* coins arrondis */
  box-shadow: 0 4px 10px rgba(155, 93, 229, 0.3);
  display: block;
  margin: 1rem auto;
}
/* ✅ Responsive Enhancements */
/* -------------------------- */

/* Global container spacing for mobile */
@media (max-width: 768px) {
  body {
    padding: 0 1rem;
  }

  .team-section,
  .card-grid,
  .footer,
  .banner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .team-section h2 {
    font-size: 1.5rem;
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }

  .card h3 {
    font-size: 1.5rem;
  }

  .card p {
    font-size: 1rem;
  }

  .nav-logo img {
    max-height: 64px;
  }

  .footer .social-icons a i {
    font-size: 20px;
  }

  .about-image {
    max-width: 90%;
  }
}

/* Responsive footer layout */
@media (max-width: 500px) {
  .footer {
    padding: 1rem 0;
  }
  .footer .social-icons a i {
    font-size: 18px;
  }
}

/* Reduce banner height on smaller screens */
@media (max-width: 600px) {
  .banner {
    height: 20vh;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    width: 100%;
    box-sizing: border-box;
  }
  .card,
  .card.partner {
    max-width: 350px;
    width: calc(100vw - 2rem); /* espace à gauche et à droite */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .profile-img,
  .about-image {
    max-width: 100%;
    height: auto;
  }
  .team-section h2,
  .recruit-banner,
  .cta-contact {
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  .footer {
    padding: 1rem 0;
  }
  .footer .social-icons a i {
    font-size: 18px;
  }
}

/* Mobile: cartes toujours centrées et jamais coupées */
@media (max-width: 600px) {
  body {
    padding: 0; /* retire le padding horizontal sur mobile */
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    width: 100%;
    box-sizing: border-box;
  }
  .card,
  .card.partner {
    max-width: 95vw;      /* prend 95% de la largeur de l'écran */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* Pour les très petits écrans (<440px) */
@media (max-width: 440px) {
  .card,
  .card.partner {
    max-width: 98vw;      /* prend presque toute la largeur */
    padding: 0.5rem;
  }
  .team-section,
  .card-grid,
  .footer,
  .banner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Pour les très très petits écrans (<350px) */
@media (max-width: 350px) {
  .card,
  .card.partner {
    max-width: 100vw;
    padding: 0.2rem;
  }
}

.nav-left li a,
.nav-right li a {
  display: inline-block;
  min-width: 80px; /* Ajuste selon tes textes */
  text-align: center;
  padding: 0.5rem 0;
  white-space: nowrap; /* Empêche le retour à la ligne */
}

@media (max-width: 600px) {
  .nav-left li a,
  .nav-right li a {
    min-width: unset;
    max-width: unset;
    font-size: clamp(0.7rem, 3vw, 1rem); /* s’adapte à la largeur de l’écran */
    padding: 0.4rem 0.2rem;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
  }
}

body.demon-mode {
  background: linear-gradient(135deg, #2a0000 60%, #660000 100%);
  color: #ff2222;
}
body.demon-mode .card {
  background: #300;
  border-color: #900;
}
body.demon-mode .navbar {
  background: #200;
  border-bottom: 2px solid #ff2222;
}
body.demon-mode .nav-logo img {
  filter: drop-shadow(0 0 10px #ff2222);
}
.team-toggle {
  cursor: pointer;
  transition: color 0.2s;
}
.team-toggle:hover {
  color: var(--color-primary);
}



.spectra-switch-btn {
  background: linear-gradient(90deg, #9b5de5 0%, #f15bb5 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.7rem 2.2rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  box-shadow: 0 0 16px #9b5de5aa, 0 2px 8px #0008;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.spectra-switch-btn:hover, .spectra-switch-btn:focus {
  background: linear-gradient(90deg, #f15bb5 0%, #9b5de5 100%);
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 0 32px #f15bb5cc, 0 4px 16px #000a;
  outline: none;
}
.spectra-switch-btn::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, #fff6 0%, #fff0 100%);
  transform: skewX(-20deg);
  transition: left 0.4s;
  pointer-events: none;
}
.spectra-switch-btn:hover::after, .spectra-switch-btn:focus::after {
  left: 110%;
}
#demonModeBtn.insane-active {
  background: linear-gradient(90deg, #f15bb5 0%, #9b5de5 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.7rem 2.2rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  box-shadow: 0 0 24px #f15bb5cc, 0 2px 8px #0008;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  text-shadow: 0 2px 8px #9b5de5cc;
}
#demonModeBtn.insane-active:hover,
#demonModeBtn.insane-active:focus {
  background: linear-gradient(90deg, #9b5de5 0%, #f15bb5 100%);
  box-shadow: 0 0 40px #9b5de5cc, 0 4px 16px #000a;
}
.spectra-switch-btn.insane-active {
  background: linear-gradient(90deg, #f15bb5 0%, #9b5de5 100%);
  box-shadow: 0 0 32px #f15bb5cc, 0 4px 16px #9b5de5cc;
  text-shadow: 0 2px 8px #fff8;
}

/* Centrage du bouton Insane Mode */
#demonModeBtn.spectra-switch-btn {
  display: block;
  margin: 2rem auto 1.5rem auto;
  text-align: center;
}
.team-tabs {
  margin-top: 0 !important; /* force aucune marge haute */
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  background: #181818;
  border-radius: 32px;
  box-shadow: 0 4px 24px #0002;
  padding: 0.5rem 1rem;
}
.team-tabs .team-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 1rem 2.5rem;
  border-radius: 24px;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  box-shadow: none;
  position: relative;
  outline: none;
  min-width: 180px;
  justify-content: center;
}

.team-tabs .team-toggle img,
.team-tabs .team-toggle i {
  height: 28px;
  width: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px #0005);
}

.team-tabs .team-toggle.active,
.team-tabs .team-toggle:focus {
  background: linear-gradient(90deg, #9b5de5 0%, #f15bb5 100%);
  color: #fff;
  box-shadow: 0 4px 24px #9b5de5aa;
  transform: scale(1.06);
  z-index: 1;
}

.team-tabs .team-toggle:hover:not(.active) {
  background: #232323;
  color: #f15bb5;
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .team-tabs {
    gap: 0.5rem;
    padding: 0.3rem 0.2rem;
  }
  .team-tabs .team-toggle {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    min-width: 120px;
  }
  .team-tabs .team-toggle img,
  .team-tabs .team-toggle i {
    height: 22px;
    width: 22px;
  }
}

/* Matches page enhancements */
.matches-title {
  color: #9b5de5;
  font-size: 1.4rem;
  margin: 2rem 0 0.5rem 1rem;
  letter-spacing: 1px;
  font-weight: 700;
  text-align: left;
}

.match-card {
  padding: 1.2rem 1.5rem;
  border-radius: 1.2rem;
  background: #23202b;
  border: 2px solid #2a2a2a;
  box-shadow: 0 2px 12px #9b5de522;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
  max-width: 340px;
  margin: 0 auto;
  transition: box-shadow 0.2s, transform 0.2s;
}

.match-card.win { border-left: 6px solid #4caf50; }
.match-card.lose { border-left: 6px solid #f44336; }
.match-card.upcoming { border-left: 6px solid #9b5de5; }

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.match-date {
  font-size: 1rem;
  color: #bbb;
  font-weight: 600;
}

.result-label {
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.2rem 1rem;
  color: #fff;
  background: #444;
  min-width: 80px;
  text-align: center;
}
.result-label.win { background: #4caf50; }
.result-label.lose { background: #f44336; }
.result-label.upcoming { background: #9b5de5; }

.match-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.team-name {
  flex: 1;
  text-align: center;
}

.score {
  flex: 0 0 60px;
  text-align: center;
  font-size: 1.4rem;
  color: #f15bb5;
}

.match-footer {
  text-align: right;
  font-size: 0.95rem;
  color: #bbb;
  margin-top: 0.3rem;
}

@media (max-width: 700px) {
  .matches-title {
    font-size: 1.1rem;
    margin-left: 0.5rem;
  }
  .match-card {
    padding: 1rem 0.7rem;
    min-width: 0;
    max-width: 98vw;
  }
  .match-main {
    font-size: 1.1rem;
  }
}

/* Espace en haut des onglets sur la page matches */
.matches-page .team-tabs {
  margin-top: 1.5rem !important; /* ou la valeur que tu veux, ex: 2rem */
}

/* Pour les grilles de résultats sur la page matches */
.matches-page .card-grid {
  display: flex;
  flex-direction: row;
  gap: 0;              /* enlève tout l'espace entre les cartes */
  padding: 0;          /* enlève le padding autour */
  margin: 0;           /* enlève la marge autour */
  justify-content: flex-start;
  align-items: stretch;
}

.matches-page .card-grid .card {
  border-radius: 0;    /* coins carrés pour un effet collé */
  margin: 0;           /* enlève toute marge */
  max-width: none;     /* permet de prendre toute la largeur */
  min-width: 0;
  width: auto;
  border-right: 1px solid #222; /* fine séparation si tu veux, sinon retire cette ligne */
}

.matches-page .card-grid .card:last-child {
  border-right: none; /* pas de bordure à droite sur la dernière */
}

@media (max-width: 700px) {
  .matches-page .card-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .matches-page .card-grid .card {
    min-width: 250px;
  }
}
