/*
Theme Name: Spike Arena
Author: Angelo Bosetti
Author URI: en cours de production
Description: Ce thème a été créer dan sle cadre d'un exercice de ma formation de mmi.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Angelo Bosetti
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Version: 1.0
*/
@font-face {
    font-family: 'Valorant';
    src: url('fonts/valorant.woff2') format('woff2'),
         url('fonts/valorant.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/* Application globale pour les paragraphes et les titres */
body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Valorant', sans-serif;
}

/* Si tu veux appliquer spécifiquement la police Valorant à certains éléments */
.valorant-font {
    font-family: 'Valorant', sans-serif;
}

/* Inter pour le reste */
.inter-font {
    font-family: 'Inter', sans-serif;
}


h1{
  color: #F54450;
  text-decoration: none;
  font-size: 26px;
  text-align: center;
}

h2{
  color: #F54450;
  text-decoration: none;
  font-size: 1.5rem;
}
h3²{
  color: #F54450;
  text-decoration: none;
  font-size: 1.5rem;
}
p{
  color: #f8f8f8;
  text-decoration: none;
  font-size: 1.5rem;
}

body {
  margin: 0;
  padding: 0;
  background-color: #050505;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0E0E0E;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}
*

.menu-toggle {
  display: none;
}

.menu-icon {
  cursor: pointer;
  padding: 10px;
}

.custom-logo {
  width: 48px;
  height: auto;
}







.burger-icon,
.burger-icon::before,
.burger-icon::after {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #F9F9F9;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
}

.burger-icon::before {
  top: -8px;
}

.burger-icon::after {
  bottom: -8px;
}

.site-navigation {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(248, 248, 248, 0.95);
  padding: 2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-items li {
  margin-bottom: 1rem;
}

.menu-items a {
  text-decoration: none;
  color: #F9F9F9;
  font-size: 1.2rem;
}

.menu-toggle:checked ~ .site-navigation {
  display: block;
}

.menu-toggle:checked ~ .menu-icon .burger-icon {
  background-color: transparent;
}

.menu-toggle:checked ~ .menu-icon .burger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle:checked ~ .menu-icon .burger-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}


/* Cache le menu par défaut en mode mobile */
.site-navigation {
  display: none;
}

/* Affiche le menu lorsque la checkbox est cochée */
.menu-toggle:checked ~ .site-navigation {
  display: block;
}

/* Media query pour les appareils mobiles */
@media (max-width: 768px) {
  .site-navigation {
    display: none; /* Cache le menu par défaut */
  }

  .menu-toggle:checked ~ .site-navigation {
    display: block; /* Affiche le menu lorsque la checkbox est cochée */
  }

  .menu-items {
    display: flex;
    flex-direction: column;
  }
}



.menu-toggle:checked ~ .content-wrapper {
  display: none;
}

body.menu-open {
  overflow: hidden;
}

.content-wrapper {
  margin-top: 120px; /* Ajustez cette valeur en fonction de la hauteur de votre header */
}

@media screen and (min-width: 768px) {
  .menu-icon {
    display: none;
  }

  .site-navigation {
    display: block;
    position: static;
    height: auto;
    padding: 0;
    background-color: transparent;
    overflow-y: visible;
  }

  .menu-items {
    display: flex;
  }

  .menu-items li {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}














/* Styles de base pour la page classement  */
/* Styles de base pour la page classement  */ 
.ranking-container {
    padding: 60px;
    margin: 0 20px; /* Ajoute des marges de 20px des deux côtés de la page */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement les éléments */
}

.top-three, .other-players {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; /* Centrer les joueurs au sein de leur conteneur */
}

.ranking-card {
    background: #252B39;
    padding: 15px;
    width: 100%;
    max-width: 300px; /* Ajoute une largeur maximale pour les cartes */
    margin-bottom: 20px;
    text-align: center;
    color: #F8F8F8;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* Carte verticale */
    align-items: center; /* Centre tout dans la carte */
    margin-left: 20px; /* Ajoute un écart à gauche */
    margin-right: 20px; /* Ajoute un écart à droite */
}

.ranking-card .ranking-link {
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.header-card-player {
    display: flex;
    justify-content: center; /* Aligne horizontalement les éléments */
    gap: 20px;
    align-items: center; /* Aligne verticalement les éléments */
    width: 100%;
    margin-bottom: 10px;
}

.ranking-card .ranking-position {
    font-size: 28px; /* Taille du numéro de classement */
    font-weight: bold;
    color: #FFD700; /* Or couleur pour le 1er, modifiable selon la place */
}

.ranking-card .profile-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ranking-card .profile-info img {
    border-radius: 50%;
    margin-bottom: 10px;
}

.ranking-card .profile-info h2 {
    font-size: 20px; /* Taille du pseudo */
    margin: 5px 0;
}

.ranking-card .stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.ranking-card .stats .stat-item {
    text-align: center;
    flex-grow: 1;
}

.ranking-card .stats .stat-item span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px; /* Taille du titre des statistiques */
}

/* Ajouter un fond et de l'espace pour les 3 premiers */
.rank-1 .ranking-position {
    color: #FFD700; /* Or couleur pour le 1er */
}

.rank-2 .ranking-position {
    color: #C0C0C0; /* Argent couleur pour le 2e */
}

.rank-3 .ranking-position {
    color: #CD7F32; /* Bronze couleur pour le 3e */
}






/* Styles de base pour la page archive equipe  */
.title-equipe {
    text-align: center;
    margin: 20px 0;
}
.equipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.equipe-link {
    text-decoration: none;
    color: inherit;
}

.equipe-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.equipe-line {
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background-color: #007bff; /* Couleur de la ligne verticale */
}

.equipe-card:hover {
    transform: translateY(-5px);
}

.equipe-image {
    width: 48px;
    height: 48px;
    margin: 10px;
    overflow: hidden;
}

.equipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipe-name {
    margin: 0;
    padding: 10px;
    font-size: 1.2em;
    color: #333;
}


/* Version mobile : 1 colonne */
@media screen and (max-width: 767px) {
  .equipes-grid {
    grid-template-columns: 5fr;
  }
}


/* Version desktop : 3 colonnes ou plus */
@media screen and (min-width: 1024px) {
  .equipes-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 12fr));
  }
}





/* Style pour la section d'accueil avec image de fond et dégradé */
.welcome-section {
    position: relative;
    height: 60vh;
    background: url('media/images/backgtound_accueil.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.welcome-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-section h1 {
    font-size: 3rem;
    font-weight: bold;
}

.welcome-section p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Style pour la carte du tournoi */
.tournament-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    color: #fff;
    margin: 20px auto;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
}

.tournament-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tournament-card p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.tournament-card .btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background: #007bff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.tournament-card .sponsors {
    margin-top: 15px;
}

.tournament-card .sponsors img {
    width: 50px;
    margin: 0 10px;
    vertical-align: middle;
}










/* Style pour la section de présentation des match */

.matches-container {
    padding: 20px;
}

.match-card {
    padding: 10px;
    margin-bottom: 20px;
    background: #252B39;
}

.match-header, .match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teams {
    display: flex;
    align-items: center;
    gap: 5px;
}

.teams .score {
    font-weight: bold;
    color: #F8F8F8;
}

.match-time, .match-footer {
    text-align: center;
    font-size: 14px;
    color: #F8F8F8;
}
.match-footer {
    font-size: 14px;
    color: #222834;
}

.vs {
    font-weight: bold;
    color: #ff0000;
}



/* Styles pour le Footer */

/* Footer global styling */
.site-footer {
    padding: 40px 20px;
    background-color: #252B39;
    color: #F8F8F8;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    max-width: 100px;
    margin-bottom: 20px;
}

.legal-section, .quick-links {
    width: 45%;
    text-align: left;
}

/* Remove dots/bullets from list items in the footer */
.legal-links, .footer-menu {
    list-style-type: none;
    padding: 0;
}

.legal-links li, .footer-menu li {
    margin-bottom: 8px;
}

.legal-links a, .footer-menu a {
    color: #F8F8F8;
    text-decoration: none;
}

.legal-links a:hover, .footer-menu a:hover {
    color: #FFD700; /* Couleur hover */
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: #444;
    margin: 20px 0;
}

/* Styling for social icons and copyright */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
}

.copyright {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

