/* ==========================================
   1. CONFIGURATION DES POLICES (CLASSES)
   ========================================== */
.playwrite-au-tas {
  font-family: "Playwrite AU TAS", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.bricolage-grotesque {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.montenegrin-gothic-one-regular {
  font-family: "Montenegrin Gothic One", serif;
  font-weight: 400;
  font-style: normal;
}

.changa-one-regular {
  font-family: "Changa One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.changa-one-regular-italic {
  font-family: "Changa One", sans-serif;
  font-weight: 400;
  font-style: italic;
}

/* ==========================================
   2. STYLES GÉNÉRAUX & STRUCTURE
   ========================================== */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0f1021 0%, #2a0f4f 45%, #6a00ff 100%);
  color: #f7f2ff;
  font-family: "Bricolage Grotesque", sans-serif;
  min-height: 100vh;
}

header {
  background: linear-gradient(120deg, rgba(10, 12, 24, 0.95) 0%, rgba(93, 19, 176, 0.95) 100%);
  padding: 28px 20px 36px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  width: 11%;
  min-width: 120px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ==========================================
   3. NAVIGATION (MENU NAV)
   ========================================== */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0 0 22px 0;
  padding: 0;
  gap: 12px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 16px;
  text-align: center;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.nav-link:hover {
  background-color: #ffffff;
  color: #140f2d;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   4. TYPOGRAPHIES (TITRES & TEXTES)
   ========================================== */
h1 {
  font-family: "Changa One", sans-serif;
  font-size: 72px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  margin: 8px 0 0;
}

.tournoi, h2 {
  font-family: "Changa One", sans-serif;
  font-size: 40px;
  color: #ffd166;
  text-align: center;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
}

h3 {
  font-family: "Changa One", sans-serif;
  font-size: 28px;
  color: #ffe79a;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.about-text,
main p,
main li,
main form label {
  font-family: "Bricolage Grotesque", sans-serif;
  color: #fd7f7f;
  line-height: 1.7;
  font-size: 18px;
}

.about-text {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 24px 28px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.content-panel,
.hero-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffe79a;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-actions .nav-link {
  background: linear-gradient(135deg, #ffffff 0%, #e8dbff 100%);
  color: #4b1f94;
}

.hero-actions .nav-link:hover {
  background: #ffffff;
  color: #140f2d;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea,
.auth-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(123, 92, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================
   5. PAGE DE CONNEXION / CRÉATION DE COMPTE
   ========================================== */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px 60px;
}

.auth-card {
  width: min(100%, 480px);
  background: rgba(255, 255, 255, 0.94);
  color: #140f2d;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  padding: 24px;
}

.auth-toggle-group {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-toggle {
  flex: 1;
  border: none;
  border-radius: 999px;
  background: #ece6ff;
  color: #4b1f94;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

.auth-toggle.active {
  background: linear-gradient(135deg, #6a00ff 0%, #9b3cff 100%);
  color: #fff;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.auth-form.active {
  display: flex;
}

.auth-form h2 {
  font-size: 28px;
  margin: 0 0 8px;
  text-align: left;
  color: #6a00ff;
  text-shadow: none;
}

.auth-form label {
  font-weight: 700;
}

.submit-btn,
.logout-btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827 0%, #6a00ff 100%);
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 8px 16px rgba(106, 0, 255, 0.25);
}

.submit-btn:hover,
.logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(106, 0, 255, 0.35);
}

.auth-message {
  min-height: 24px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #6a00ff;
}

.auth-message.success {
  color: #0a7a2f;
}

.auth-message.error {
  color: #b30000;
}

.nav-link--active {
  background-color: #000000;
  color: #ffffff;
}

#account-state {
  text-align: center;
}

#account-state h2 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #6a00ff;
  text-shadow: none;
}

#account-state p {
  font-size: 18px;
  margin-bottom: 12px;
}

.admin-badge {
  color: #0a7a2f;
  font-weight: 700;
}

.admin-panel {
  background: rgba(255, 255, 255, 0.95);
  color: #140f2d;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 24px;
  max-width: 680px;
  margin: 30px auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.admin-panel h2 {
  font-size: 32px;
  color: #6a00ff;
  text-shadow: none;
  margin-bottom: 10px;
}

.admin-panel p {
  font-size: 18px;
  line-height: 1.6;
}