/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Verdana', sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

/* VIDÉO DE FOND */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* CONTENU PAR-DESSUS LA VIDÉO */
.content {
    position: relative;
    z-index: 1;
}

/* BLOCS PRINCIPAUX */
header, nav, footer {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 1200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* TITRE */
header h1 {
    font-size: 2.5rem;
    color: #ffcb05;
    text-shadow: 2px 2px 0 #3b4cca;
}

/* MENU */
.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
}

.menu > li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: #3b4cca;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: #ffcb05;
    color: white;
}

/* SOUS-MENU */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-width: 150px;
    z-index: 10;
    padding: 0.5rem 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.menu li:hover .submenu {
    display: flex;
}

.submenu li {
    list-style: none;
}

/* Liens sous-menu */
.submenu li a {
    padding: 0.7rem 1rem;
    display: block;
    white-space: nowrap;
    font-size: 1rem;
    color: #3b4cca;
    transition: background-color 0.3s;
}

.submenu li a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.submenu li + li {
    margin-top: 5px;
}

/* PIED DE PAGE */
footer {
    font-size: 0.9rem;
    color: #666;
}

/* SECTION TRAILER */
.trailer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 960px;
    margin: 2rem auto 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.trailer-text {
    flex: 1 1 300px;
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333;
}

.trailer-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3b4cca;
    text-shadow: 1px 1px 0 #ffcb05;
}

.trailer-text p {
    font-size: 1.1rem;
    line-height: 1.4;
}

.video-container {
    flex: 1 1 300px;
    position: relative;
    padding-bottom: 56.25%; /* ratio 16:9 */
    height: 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    max-width: 560px;
    width: 100%;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .trailer {
        flex-direction: column;
    }
    .trailer-text, .video-container {
        flex: none;
        width: 100%;
    }
}

.reseaux {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;   /* Pour limiter la largeur totale */
  margin-left: auto;
  margin-right: auto;
}

.rectangle {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  width: 100%;        /* Pour prendre toute la largeur disponible */
  max-width: 1100px;  /* Largeur max comme les autres sections */
  padding: 30px 40px;
  text-align: left;
  margin: 1rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column; /* pour que titre, texte, bouton soient bien empilés */
}

.rectangle:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 28px rgba(0,0,0,0.3);
}

.rectangle h3 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #333;
}

.rectangle p {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.4;
}

.rectangle .btn {
  align-self: flex-start;  /* bouton à gauche */
  display: inline-block;
  background-color: #3b4cca;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(59, 76, 202, 0.7);
  transition: background-color 0.3s ease;
}

.rectangle .btn:hover {
  background-color: #ffcb05;
  color: #000;
}

.discord-aside {
  position: fixed;
  top: 120px; /* ajustable selon ton header */
  right: 20px;
  width: 350px;
  max-width: 90vw;
  z-index: 2;
}

@media (max-width: 1000px) {
  .discord-aside {
    position: static;
    width: 100%;
    margin: 2rem auto;
  }
}

/* Style spécifique pour la page scoreboard.html */

.scoreboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.scoreboard-frame {
    flex: 1 1 350px;
    height: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: none;
}

@media (max-width: 800px) {
    .scoreboard-frame {
        height: 400px;
    }
}

.scoreboard-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.scoreboard-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scoreboard-title {
    background-color: #2e2ed1; /* même bleu que l’image */
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.scoreboard-frame {
    width: 360px;           /* élargir pour éviter le crop */
    height: 520px;          /* ajuster la hauteur si besoin */
    border: none;
    overflow: visible;      /* s’assurer que rien ne soit caché */
    transform: scale(1.05); /* zoom optionnel pour lisibilité */
    transform-origin: top left;
}
 