
:root {
    --orange: #f18701;
    --blue-dark: #0f0149;
    --blue-light: #8a99ed;
    --white: #ffffff;
    --black: #000000;
  
    --bg-main: #05030f;
    --text-main: #f5f5f5;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.25s ease-out;
    
  }
  
  /* LAYOUT */
  
  .container {
    width: min(1200px, 100% - 2rem);
    margin-inline: auto;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-alt {
    background: #08061a;
  }
  
  .section h2 {
    font-family: "Oswald", sans-serif;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--orange);
  }
  
  .section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
  }
  
  /* HEADER */
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 3, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(138, 153, 237, 0.3);
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  
  .logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }
  
  .logo span {
    font-family: "Oswald", sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
  }
  
  /* NAV */
  
  .nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-link {
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d0d3ff;
    transition: color 0.2s ease;
  }
  
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--blue-light));
    transition: width 0.3s ease;
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  .nav-link.active {
    color: var(--orange);
  }
  
  /* Burger menu (mobile) */
  
  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 4px;
  }
  
  /* HERO */
  
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4.5rem; /* pour dégager le header */
    background: radial-gradient(circle at top, #262b72 0%, #05030f 55%, #02010c 100%);
    overflow: hidden;
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 20%, rgba(248, 137, 1, 0.25), transparent 55%),
      radial-gradient(circle at 80% 80%, rgba(138, 153, 237, 0.25), transparent 55%);
    pointer-events: none;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    padding: 2rem 1rem;
  }
  
  .hero-logo-wrap img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
  }
  
  .hero-title {
    font-family: "Oswald", sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.8rem;
    color: var(--white);
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    color: #e2e4ff;
    margin-bottom: 1.8rem;
  }
  
  /* BUTTONS */
  
  .btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--orange), var(--blue-light));
    text-decoration: none;
    border: none;
    cursor: pointer;
    color: var(--black);
    overflow: hidden; /* important pour découper proprement le pseudo-élément */
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(241, 135, 1, 0.7);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(241, 135, 1, 0.7);
  }
  
  .btn-outline {
    border-color: var(--orange);
    color: var(--orange);
    background: transparent;
  }
  
  .btn-outline:hover {
    background: var(--orange);
    color: var(--black);
  }
  
  /* SECTIONS */
  
  .section-text p {
    margin-bottom: 1rem;
    color: #d6d8f5;
  }
  
  /* IMAGE FRAME */
  
  .section-media {
    display: flex;
    justify-content: center;
  }
  
  .img-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(138, 153, 237, 0.6);
    box-shadow: 0 0 40px rgba(10, 6, 35, 0.9);
  }
  
  .img-frame::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: conic-gradient(from 180deg, rgba(241, 135, 1, 0.2), transparent, rgba(138, 153, 237, 0.3), transparent);
    z-index: -1;
  }
  
  .img-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* SPONSORS */
  
  .sponsors {
    border-top: 1px solid rgba(138, 153, 237, 0.3);
  }
  
  .sponsors-title {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #989de0;
    margin-bottom: 1.5rem;
  }
  
  .sponsors-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .sponsor-item {
    flex: 1 1 120px;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(138, 153, 237, 0.5);
    text-align: center;
    font-size: 0.9rem;
    color: #c5c8ff;
    background: linear-gradient(145deg, #0b0920, #120f35);
  }
  
  /* CONTACT */
  
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 2.5rem;
  }
  
  .contact-info p {
    margin-bottom: 0.4rem;
  }
  
  /* FOOTER */
  
  .footer {
    border-top: 1px solid rgba(138, 153, 237, 0.3);
    padding: 1.2rem 0;
    background: #040312;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #a5a7cc;
  }
  
  .back-to-top {
    color: #a5a7cc;
    text-decoration: none;
    font-size: 0.85rem;
  }
  
  .back-to-top:hover {
    color: var(--orange);
  }
  
  /* PAGES INTERNES */
  
  .page-inner {
    padding-top: 5rem;
  }
  
  /* ANIMATIONS AU SCROLL */
  
  .js-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  
  .js-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
  }
  
  .fade-in-left {
    transform: translateX(-40px);
  }
  
  .fade-in-right {
    transform: translateX(40px);
  }
  
  .fade-in-left.scrolled,
  .fade-in-right.scrolled {
    transform: translateX(0);
  }
  
  .fade-in-up {
    transform: translateY(40px);
  }
  
  .fade-in-up.scrolled {
    transform: translateY(0);
  }
  
  /* KEYFRAMES */
  
  @keyframes rotate-glow {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* RESPONSIVE */
  
  @media (max-width: 900px) {
    .section-grid,
    .contact-grid {
      grid-template-columns: 1fr;
    }
  
    .section-grid {
      text-align: left;
    }
  
    .section-media {
      order: -1;
    }
  
    .hero {
      padding-top: 5.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .nav {
      position: fixed;
      inset: 4rem 1rem auto 1rem;
      background: #05030f;
      border-radius: 12px;
      border: 1px solid rgba(138, 153, 237, 0.4);
      padding: 0.8rem 1.2rem;
      transform: translateY(-150%);
      opacity: 0;
      pointer-events: none;
      transition: all 0.25s ease;
    }
  
    .nav.open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
  
    .nav ul {
      flex-direction: column;
      gap: 0.75rem;
    }
  
    .nav-toggle {
      display: flex;
    }
  
    .footer-content {
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }
  }
/* PLANNING */

.planning-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .planning-card {
    background: radial-gradient(circle at top left, rgba(241, 135, 1, 0.12), transparent 60%),
                radial-gradient(circle at bottom right, rgba(138, 153, 237, 0.18), transparent 55%);
    border-radius: 16px;
    border: 1px solid rgba(138, 153, 237, 0.5);
    padding: 1.3rem 1.4rem;
    box-shadow: 0 0 24px rgba(3, 1, 14, 0.9);
  }
  
  .planning-card h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 0.4rem;
  }
  
  .planning-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a5a7cc;
    margin-bottom: 0.6rem;
  }
  
  .planning-date {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
  }
  
  .planning-vs {
    color: #d6d8f5;
    margin-bottom: 0.3rem;
  }
  
  .planning-extra {
    font-size: 0.85rem;
    color: #9ea1dd;
  }
  .sponsor-item img {
    max-width: 200%;
    max-height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  @media (max-width: 900px) {
    .planning-grid {
      grid-template-columns: 1fr;
    }
  }  
  /* TEAMS LOGOS GRID losange */

.teams-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 380px;
  }
  
  .team-logo-item {
    position: relative;
    background: radial-gradient(circle at top left, rgba(241, 135, 1, 0.12), transparent 60%),
                radial-gradient(circle at bottom right, rgba(138, 153, 237, 0.2), transparent 55%);
    border-radius: 16px;
    border: 1px solid rgba(138, 153, 237, 0.6);
    padding: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* positions pour le losange */
  .team-logo-1 {
    grid-column: 1 / 3;        /* tout en haut centré */
    justify-content: center;
  }
  
  .team-logo-2 {
    grid-column: 1 / 2;        /* milieu gauche */
  }
  
  .team-logo-3 {
    grid-column: 2 / 3;        /* milieu droit */
  }
  
  .team-logo-4 {
    grid-column: 1 / 3;        /* en bas centré */
  }
  
  .team-logo-item img {
    display: block;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
  }
  
  .team-logo-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
  }
  
/* CONTACT PAGE */

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 3rem;
    align-items: flex-start;
  }
  
  .contact-page-text h1 {
    font-family: "Oswald", sans-serif;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--orange);
    margin-bottom: 1.2rem;
  }
  
  .contact-page-text p {
    margin-bottom: 1rem;
    color: #d6d8f5;
  }
  
  .contact-page-infos p {
    margin-bottom: 0.4rem;
  }
  
  .contact-form {
    background: #08061a;
    border-radius: 18px;
    border: 1px solid rgba(138, 153, 237, 0.5);
    padding: 1.8rem 1.6rem;
    box-shadow: 0 0 30px rgba(3, 1, 15, 0.8);
  }
  
  .form-row {
    margin-bottom: 1rem;
  }
  
  .form-row label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a5a7cc;
    margin-bottom: 0.35rem;
  }
  
  .form-row input,
  .form-row textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(138, 153, 237, 0.6);
    background: #050316;
    color: #e2e4ff;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  
  .form-row input::placeholder,
  .form-row textarea::placeholder {
    color: #7b7fb2;
  }
  
  .form-row input:focus,
  .form-row textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px rgba(241, 135, 1, 0.4);
    background: #05061d;
  }
  
  @media (max-width: 900px) {
    .contact-page-grid {
      grid-template-columns: 1fr;
    }
  }

/* ---------- FADE ENTRE PAGES ---------- */

.page-fade {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
  }
  
  .page-fade.is-entering {
    animation: page-fade-in 0.3s ease-out forwards;
  }
  
  .page-fade.is-leaving {
    animation: page-fade-out 0.4s ease-in forwards;
  }
  
  @keyframes page-fade-in {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  @keyframes page-fade-out {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  /* PAGE EQUIPES */

.page-title {
  font-family: "Oswald", sans-serif;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 0.8rem;
}

.page-intro {
  max-width: 640px;
  color: #d6d8f5;
}

.game-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.game-header h2 {
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.game-description {
  color: #d0d2f2;
}

.game-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* grille joueurs */

.roster-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.roster-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-card {
  background: radial-gradient(circle at top left, rgba(241, 135, 1, 0.12), transparent 60%),
              radial-gradient(circle at bottom right, rgba(138, 153, 237, 0.2), transparent 55%);
  border-radius: 14px;
  border: 1px solid rgba(138, 153, 237, 0.6);
  padding: 0.9rem 1rem;
  box-shadow: 0 0 20px rgba(3, 1, 15, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 26px rgba(241, 135, 1, 0.4);
}

.player-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5a7cc;
  margin-bottom: 0.35rem;
}

.player-handle {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.player-name {
  font-size: 0.9rem;
  color: #d6d8f5;
}

/* responsive */

@media (max-width: 1000px) {
  .roster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roster-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .game-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .roster-grid,
  .roster-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .roster-grid,
  .roster-grid-3 {
    grid-template-columns: 1fr;
  }
}
