/* Import Google Font - A professional, slightly techy font for better readability */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Montserrat:wght@400;700&display=swap');
/* Styles pour l'affichage du KDA post-game */
/* Styles spécifiques pour les différents types de cartes */


.howling-abyss-map {
    border: 2px solid #4a90e2;
}

.summoners-rift-map {
    border: 2px solid #2d5a27;
}

/* Amélioration des avatars de participants pour ARAM */
.participant-map-avatar {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px;
    margin: 4px;
    background: rgba(0, 0, 0, 0.1);
}
.timeline-slider {
  margin-bottom: 8%;
}
.participant-map-avatar:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.participant-map-avatar.active-path {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

/* Contrôles de timeline améliorés */
.participant-timeline-control {
    margin-top: 8px;
 
    align-items: center;
    gap: 8px;
}

.timeline-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.timeline-slider:hover {
    opacity: 1;
}

.timeline-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
}

.timeline-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    border: none;
}

/* Affichage du temps */
.current-time, .max-time {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #666;
}

/* Légende de la carte améliorée */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9em;
}

.map-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Marqueurs de carte plus visibles pour ARAM */
.howling-abyss-map .map-marker {
    width: 12px !important;
    height: 12px !important;
    font-size: 10px !important;
    border: 1px solid #000;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Conteneur des sélecteurs de participants */
.match-participants-map-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.match-participants-map-selector h4 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 10px;
}

#page-preloader {
    display: flex; /* Rendre le préchargeur visible par défaut au chargement de la page */
    position: fixed; /* Le positionner de manière fixe par rapport à la fenêtre */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent noir */
    z-index: 9999; /* Assure qu'il est au-dessus de tout le reste */
    justify-content: center; /* Centre le contenu (spinner, texte) horizontalement */
    align-items: center; /* Centre le contenu verticalement */
    flex-direction: column; /* Organise le contenu en colonne (spinner au-dessus du texte) */
    color: white; /* Couleur du texte "Chargement..." */
    /* Ajoutez ici les styles pour .spinner si ce n'est pas déjà fait */
    /* Exemple pour .spinner (peut varier selon votre design) : */
    /* .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin-bottom: 10px;
    } */
    /* @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    } */
}
/* Style pour le header principal avec image de fond */
.main-header-hero {
    /* REMPLACEZ 'path/to/your/header-image.jpg' par l'URL de votre image de header */
    background-image: url('https://lol.pokmovies.com/image/header.jpg');
    background-size: cover; /* L'image couvrira toute la zone disponible */
    background-position: center; /* Centre l'image dans la section */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    height: 400px; /* Définit la hauteur de votre header. Ajustez cette valeur si nécessaire. */
    display: flex; /* Utilise Flexbox pour centrer le contenu */
    align-items: center; /* Centre le contenu verticalement */
    justify-content: center; /* Centre le contenu horizontalement */
    text-align: center; /* Assure que le texte est centré */
    color: white; /* Couleur du texte pour un bon contraste avec l'image */
    position: relative; /* Permet de positionner des éléments enfants par rapport à lui (comme l'overlay) */
    overflow: hidden; /* S'assure que rien ne dépasse */
}

/* Un overlay semi-transparent (optionnel) pour améliorer la lisibilité du texte sur l'image */
.main-header-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Un voile noir avec 40% d'opacité */
    z-index: 1; /* Place l'overlay sous le texte du header */
}

/* Style pour le conteneur du texte */
.main-header-hero .header-content {
    position: relative; /* Place le texte au-dessus de l'overlay */
    z-index: 2;
    max-width: 800px; /* Limite la largeur du texte pour une meilleure lecture sur de grands écrans */
    padding: 20px; /* Rembourrage autour du texte */
}

/* Style pour le titre principal (H1) */
.main-header-hero h1 {
    font-family: 'Montserrat', sans-serif; /* Utilise la police Montserrat pour un look pro */
    font-size: 3.5em; /* Taille de police importante pour le titre principal */
    margin: 0; /* Supprime les marges par défaut du H1 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Ajoute une ombre au texte pour le faire ressortir */
    line-height: 1.2; /* Ajuste l'espacement des lignes pour la lisibilité */
}

/* Media Queries pour la responsivité (affichage sur mobile) */
@media (max-width: 768px) {
    .main-header-hero {
        height: 300px; /* Réduire la hauteur du header sur les tablettes */
    }
    .main-header-hero h1 {
        font-size: 2.5em; /* Réduire la taille du texte sur les tablettes */
    }
}

@media (max-width: 480px) {
    .main-header-hero {
        height: 250px; /* Réduire encore la hauteur sur les smartphones */
    }
    .main-header-hero h1 {
        font-size: 1.8em; /* Réduire encore la taille du texte sur les smartphones */
    }
}

.user-data-section {
  background-image: url('https://lol.pokmovies.com/image/mission/CelebrationBg_Arcade_2019.png');
  background-size: cover; /* L'image couvrira toute la section */
  background-position: center; /* Centre l'image */
  background-repeat: no-repeat; /* Empêche la répétition de l'image */
  background-color: white; /* Fond de secours pour si l'image ne charge pas */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  flex: none; /* Supprime le comportement flex pour qu'il ne prenne pas de l'espace en ligne */
  width: 100%; /* Prend toute la largeur disponible */
  min-width: unset; /* Supprime la contrainte de largeur minimale */
  margin-bottom: 20px; /* Ajoute un espace sous la première section */
}

.live-game-section {
  background-image: url('https://lol.pokmovies.com/image/mission/trials2019_generic_celebration.png');
  background-size: cover; /* L'image couvrira toute la section */
  background-position: center; /* Centre l'image */
  background-repeat: no-repeat; /* Empêche la répétition de l'image */
  background-color: white; /* Fond de secours pour si l'image ne charge pas */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  flex: none; /* Supprime le comportement flex */
  width: 100%; /* Prend toute la largeur disponible */
  min-width: unset; /* Supprime la contrainte de largeur minimale */
}

.replay-button {
    display: block; /* Makes the button take its own line */
    margin-top: 15px; /* Adds space above the button */
    padding: 10px 20px;
    background-color: #007bff; /* Example background color (blue) */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    text-decoration: none; /* In case it's styled like a link */
	display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10%;
}

.replay-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.team-total-score {
  width: 100%;
}

.map-stats-container {
  width: 100%;
}

.match-map-container {
    flex: 0 0 400px; /* Map takes a fixed width, doesn't grow or shrink */
    max-width: 100%;
}

.match-participants-map-selector {
    flex: 1; /* Selector takes up remaining space */
    min-width: 300px;
}

.participant-map-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin: 5px;
    padding: 5px;
    border: 1px solid transparent; /* Pour l'effet de survol/actif */
    border-radius: 5px;
}

.participant-map-avatar:hover {
    border-color: #007bff; /* Couleur de survol */
}

.participant-map-avatar.active-path {
    border-color: #28a745; /* Couleur de bordure pour le joueur actif */
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

.participant-map-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.participant-map-avatar span {
    font-size: 0.8em;
    text-align: center;
}

.player-timer {
    font-size: 0.7em;
    color: #f8f9fa; /* Ou une couleur visible */
    margin-top: 3px;
}
.match-participants-map-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px;
    background-color: #1a1a2e; /* Couleur de fond similaire à votre thème */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.match-participants-map-selector h4 {
    width: 100%;
    text-align: center;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.participant-map-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
	width: 44%;
}

.participant-map-avatar:hover {
    background-color: #2a2a4a; /* Légèrement plus clair au survol */
}

.participant-map-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid transparent; /* Bordure transparente par défaut */
    transition: border-color 0.2s ease;
}

.participant-map-avatar:hover img {
    border-color: #007bff; /* Couleur de bordure au survol */
}

.participant-map-avatar span {
    font-size: 0.8em;
    color: #f0f0f0;
    margin-top: 5px;
    text-align: center;
    max-width: 80px; /* Limite la largeur du nom */
    white-space: nowrap; /* Empêche le retour à la ligne */
    overflow: hidden; /* Cache le texte qui dépasse */
    text-overflow: ellipsis; /* Ajoute des points de suspension */
}


.fas.fa-times-circle.ward-icon {
  color: #f0ff3b;
}
.fas.fa-times-circle.ward-ennemis-icon {
  color: rgba(0, 255, 255, 0.8);
}

.map-legend {
  text-align: center;
  margin-top: 2%;
}
.fas.fa-times-circle.death-icon {
  color: #7ae779;
}
/* Styles pour le conteneur des statistiques de la carte */

/* Ajoutez ou modifiez cette section dans votre style.css */
.map-marker {
    position: absolute;
    width: 12px;        /* Taille du marqueur */
    height: 12px;       /* Taille du marqueur */
    border-radius: 50%; /* Pour faire un cercle */
    border: 1px solid rgba(255, 255, 255, 0.7); /* Petite bordure blanche */
    transform: translate(-50%, -50%); /* Centre le marqueur sur les coordonnées exactes */
    z-index: 10;        /* Assure que les marqueurs sont au-dessus de l'image de la carte */
    cursor: help;       /* Indique qu'il y a un titre au survol */
    background-color: #808080; /* Couleur par défaut si aucune classe spécifique ne s'applique */
}

/* Vos styles existants pour les couleurs spécifiques des marqueurs (assurez-vous qu'ils sont corrects) */
.kill-death-marker.ally-kill {
    background-color: rgba(121, 242, 121, 0.9) !important; /* Vert */
}
.kill-death-marker.ally-death {
    background-color: rgba(233, 69, 96, 0.9) !important; /* Rouge */
}
.kill-death-marker.enemy-kill {
    background-color: rgba(255, 215, 0, 0.9) !important; /* Jaune/Or */
}
.kill-death-marker.enemy-death {
    background-color: rgba(220, 53, 69, 0.9) !important; /* Rouge */
}
.ward-marker.control-ward {
    background-color: rgba(255, 165, 0, 0.8); /* Orange */
}
.ward-marker.sight-ward {
    background-color: rgba(0, 255, 255, 0.8); /* Cyan */
}

.kill-death-marker.ally-kill {
    background-color: rgba(121, 242, 121, 0.9) !important;
}

.kill-death-marker.ally-death {
    background-color: rgba(233, 69, 96, 0.9) !important;
}

.kill-death-marker.enemy-kill {
    background-color: rgba(255, 165, 0, 0.8);
}

.kill-death-marker.enemy-death {
    background-color: rgba(220, 53, 69, 0.9)!important;
}


/* Styles pour le conteneur global des statistiques et du graphique */
.kill-death-chart-section {
    display: flex; /* Utilise Flexbox */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur petits écrans */
    gap: 20px; /* Espace entre la liste et le graphique */
    justify-content: center; /* Centre les éléments */
    align-items: flex-start; /* Align les éléments en haut */
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #16213e; /* Séparateur visuel */
}

.kill-death-intervals-list {
    flex: 1; /* Prend l'espace disponible */
    min-width: 280px; /* Taille minimale pour la liste */
    max-width: 40%; /* Ne prend pas plus de 40% de la largeur du parent */
    box-sizing: border-box; /* Inclut padding et border dans la largeur */
}

.chart-container {
    flex: 2; /* Prend deux fois plus d'espace que la liste */
    min-width: 350px; /* Taille minimale pour le graphique */
    max-width: 55%; /* Ne prend pas plus de 55% de la largeur du parent */
    height: 300px; /* Hauteur fixe pour le graphique */
    position: relative; /* Nécessaire pour que le canvas réactif fonctionne */
    box-sizing: border-box;
}

/* Assurez-vous que le canvas prend toute la place de son conteneur */
#killDeathChart {
    width: 100% !important;
    height: 100% !important;
}

/* Styles existants pour .map-stats-container et ses éléments, assurez-vous qu'ils s'intègrent bien */
.map-stats-container h4 {
    /* ... (vos styles existants pour les titres) ... */
    margin-bottom: 10px; /* Ajustez si nécessaire */
}

.kill-death-intervals {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kill-death-intervals li {
    background-color: #1a1a2e; /* Fond pour les éléments de la liste d'intervalle */
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
}


.map-stats-container {
    background-color: #0f3460; /* Un fond sombre élégant */
    border-radius: 10px; /* Coins arrondis pour un look moderne */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Ombre légère pour la profondeur */
    padding: 20px; /* Espacement interne confortable */
    margin-top: 30px; /* Marge au-dessus du conteneur */
    color: #e0e0e0; /* Couleur de texte claire */
    font-family: 'Roboto', sans-serif; /* Utilise la police Roboto importée */
}

.map-stats-container h4 {
    text-align: center;
    color: #e94560; /* Couleur d'accentuation pour les titres */
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #16213e; /* Ligne de séparation sous le titre */
    padding-bottom: 10px;
}

/* Styles pour les listes de statistiques à l'intérieur du conteneur */
.map-stats-container ul {
    list-style: none; /* Supprime les puces par défaut des listes */
    padding: 0;
    margin: 0;
}

.map-stats-container ul li {
    background-color: #161628; /* Fond légèrement plus clair pour chaque élément de liste */
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between; /* Aligne le texte à gauche et les valeurs à droite */
    align-items: center;
    transition: background-color 0.3s ease; /* Transition douce au survol */
}

.map-stats-container ul li:last-child {
    margin-bottom: 0; /* Pas de marge après le dernier élément */
}

.map-stats-container ul li:hover {
    background-color: #2c394b; /* Changement de couleur au survol */
}

/* Styles pour le texte de l'élément de liste (si vous avez des spans ou autres) */
.map-stats-container ul li span {
    font-weight: 400; /* Poids de police normal pour les descriptions */
}

.map-stats-container ul li strong {
    color: #e94560; /* Couleur d'accentuation pour les valeurs importantes */
    font-weight: 700; /* Rendre les valeurs plus grasses */
}

/* Si vous avez des paragraphes ou autres éléments textuels */
.map-stats-container p {
    text-align: center;
    font-style: italic;
    color: #a0a0a0;
    margin-top: 15px;
}
.main-nav {
  background-color: #16213e;
}

.live-stats {
    display: flex;
    flex-direction: column;
    /* Optionnel: Ajoutez un peu d'espace entre les éléments si nécessaire */
    gap: 5px; /* Ajoute 5px d'espace vertical entre les éléments */
}
#post-game-kda {
    background-color: #0f3460;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

#post-game-kda h3 {
    text-align: center;
    color: #e94560;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.kda-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Styles pour tous les marqueurs de carte */
.map-marker {
    position: absolute; /* Important pour le positionnement par 'left' et 'top' */
    width: 10px; /* Taille du marqueur */
    height: 10px; /* Taille du marqueur */
    border-radius: 50%; /* Pour rendre les marqueurs ronds */
    z-index: 10; /* Assurez-vous qu'ils sont au-dessus de la carte */
    transform: translate(-50%, -50%); /* Centre le marqueur sur la coordonnée */
    /* Vous pouvez ajouter une bordure ou une ombre pour les rendre plus visibles */
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Styles spécifiques pour les marqueurs de kills/morts */
.kill-death-marker {
    background-color: rgba(255, 0, 0, 0.8); /* Rouge transparent */
}

/* Styles spécifiques pour les marqueurs de wards */
.ward-marker {
    background-color: rgba(0, 255, 255, 0.8); /* Cyan transparent par défaut */
}

/* Styles spécifiques pour les différents types de wards (ajustez les couleurs si besoin) */
.ward-marker.control-ward {
    background-color: rgba(255, 165, 0, 0.8); /* Orange pour les Balises de Contrôle */
}
.ward-marker.sight-ward {
    background-color: rgba(0, 255, 255, 0.8); /* Cyan pour les Balises de Vision */
}
.ward-marker.undefined { /* Pour les types de wards non spécifiés */
    background-color: rgba(150, 150, 150, 0.8); /* Gris */
}


/* Optionnel : Rendre l'icône de la carte légèrement en arrière-plan */
.game-map {
    z-index: 1; /* S'assurer que la carte est en dessous des marqueurs */
}



.map-legend span {
    margin: 0 5px;
}

.map-legend .kill-icon {
    color: red;
}

.map-legend .ward-icon {
    color: cyan;
}

.main-nav {
  background-color: #16213e;
}

.live-stats {
    display: flex;
    flex-direction: column;
    /* Optionnel: Ajoutez un peu d'espace entre les éléments si nécessaire */
    gap: 5px; /* Ajoute 5px d'espace vertical entre les éléments */
}
#post-game-kda {
    background-color: #0f3460;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

#post-game-kda h3 {
    text-align: center;
    color: #e94560;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.kda-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Styles pour tous les marqueurs de carte */
.map-marker {
    position: absolute; /* Important pour le positionnement par 'left' et 'top' */
    width: 10px; /* Taille du marqueur */
    height: 10px; /* Taille du marqueur */
    border-radius: 50%; /* Pour rendre les marqueurs ronds */
    z-index: 10; /* Assurez-vous qu'ils sont au-dessus de la carte */
    transform: translate(-50%, -50%); /* Centre le marqueur sur la coordonnée */
    /* Vous pouvez ajouter une bordure ou une ombre pour les rendre plus visibles */
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Styles spécifiques pour les marqueurs de kills/morts */

/* Styles pour le tableau des statistiques (exemple) */
.stats-table {
    width: 100%;
    border-collapse: collapse; /* Permet des bordures simples */
    margin-top: 20px;
    background-color: #1a1a2e; /* Fond sombre */
    color: #e0e0e0; /* Texte clair */
    border-radius: 8px;
    overflow: hidden; /* Assure que les coins arrondis sont respectés */
}

.stats-table th,
.stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #0f3460; /* Ligne de séparation subtile */
}

.stats-table th {
    background-color: #0f3460; /* Fond pour les en-têtes */
    color: #e94560; /* Couleur d'accentuation pour les en-têtes */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* Effet de rayures sur les lignes pour une meilleure lisibilité */
.stats-table tbody tr:nth-child(even) {
    background-color: #161628;
}

/* Effet au survol des lignes */
.stats-table tbody tr:hover {
    background-color: #2c394b; /* Changement de couleur au survol */
    cursor: pointer;
}

/* Styles spécifiques pour les cellules KDA si elles sont dans ce tableau */
.stats-table .kda-score {
    font-weight: 700;
}

.stats-table .kda-score.has-deaths {
    color: #e94560; /* Rouge pour les morts, si vous l'avez déjà */
}
.kill-death-marker {
    background-color: rgba(255, 0, 0, 0.8); /* Rouge transparent */
}

/* Styles spécifiques pour les marqueurs de wards */
.ward-marker {
    background-color: rgba(0, 255, 255, 0.8); /* Cyan transparent */
}




.map-legend span {
    margin: 0 5px;
}

.map-legend .kill-icon {
    color: #e04d62;
}

.map-legend .ward-icon {
    color: cyan;
}

.main-nav {
  background-color: #16213e;
}

.live-stats {
    display: flex;
    flex-direction: column;
    /* Optionnel: Ajoutez un peu d'espace entre les éléments si nécessaire */
    gap: 5px; /* Ajoute 5px d'espace vertical entre les éléments */
}
#post-game-kda {
    background-color: #0f3460;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

#post-game-kda h3 {
    text-align: center;
    color: #e94560;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.kda-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.team-kda {
    background-color: #1b2a41;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 300px;
    max-width: 48%; /* Adjust for two columns */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.team-kda h4 {
    text-align: center;
    color: #b8c4c2;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #3e5c76;
    padding-bottom: 10px;
}

.player-kda-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #283a5e;
    color: #e0e0e0;
}

.player-kda-item:last-child {
    border-bottom: none;
}

.player-kda-item .player-name {
    font-weight: bold;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-kda-item .champion-name {
    font-style: italic;
    color: #a4b0be;
    flex: 1.5;
    text-align: center;
}

.player-kda-item .kda-score {
    font-weight: bold;
    color: #79f279; /* Vert pour le KDA */
    flex: 1;
    text-align: right;
}

.kda-score.has-deaths {
    color: #e94560; /* Rouge si des morts */
}

.player-kda-item .win-status {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 10px;
}

.win-status.win {
    background-color: #28a745; /* Vert pour victoire */
    color: white;
}

.win-status.lose {
    background-color: #dc3545; /* Rouge pour défaite */
    color: white;
}

/* Media Queries pour la responsivité */
@media (max-width: 768px) {
    .team-kda {
        max-width: 100%;
    }
}

.faq-question h3 {
  font-size: 15px !important;
}

.footer-content p {
  text-align: center;
}

.main-nav li {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Container for the two forms */
.forms-container {
    display: flex;
    flex-wrap: wrap; /* Allows sections to wrap to the next line on smaller screens */
    justify-content: space-around; /* Distributes space around items */
    gap: 20px; /* Space between the two sections */
    margin-top: 20px;
}

/* Styling for each individual section */
.user-data-section,
.live-game-section {
    flex: 1; /* Allows both sections to grow and shrink */
    min-width: 300px; /* Minimum width before wrapping */
   
    padding: 20px;
    border-radius: 8px;
 
    display: flex; /* Use flexbox for content within each section */
    flex-direction: column; /* Stack content vertically */
}

/* Ensure forms within these sections take full width */
.user-data-section form,
.live-game-section form {
    display: flex;
    flex-direction: column;
    width: 83%;
}

/* Adjustments for labels and inputs within forms */
.user-data-section label,
.live-game-section label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #a0a0a0;
}

.user-data-section input,
.user-data-section select,
.live-game-section input,
.live-game-section select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: #eee;
}

.user-data-section button,
.live-game-section button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.user-data-section button:hover,
.live-game-section button:hover {
    background-color: #0056b3;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .forms-container {
        flex-direction: column; /* Stack vertically on small screens */
        align-items: center;
    }

    .user-data-section,
    .live-game-section {
        width: 90%; /* Take more width on small screens */
        margin-bottom: 20px; /* Add space between stacked sections */
    }
}
/* Add these to your existing style.css */

.live-game-info {
    background-color: #0d0e12; /* Light cyan */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-align: center;
}

.live-game-info h3 {
    color: #00796b; /* Darker teal */
    margin-top: 0;
    margin-bottom: 15px;
    
    padding-bottom: 10px;
}

.live-game-info p {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #FFF;
}

.live-game-teams .team-block {
    background-color: #0d0e12; /* Lighter blue for live blocks */
    border-color: #cce7ff;
}

.live-game-teams .team-block.live-enemies {
    background-color: #0d0e12; /* Lighter red for live enemies */
    border-color: #ffdada;
}

.live-stats {
    flex-grow: 1;
    text-align: right;
    font-weight: bold;
    color: #0056b3;
}

/* Banned Champions Section */
.banned-champions {
    background-color: #0d0e12;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #eee;
    text-align: center;
}

.banned-champions h3 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ban-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.ban-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background-color: #0d0e12;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 100px; /* Fixed width for ban items */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.banned-champion-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #dc3545; /* Red border for banned champs */
    object-fit: cover;
}

.ban-item span {
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    word-break: break-word; /* Handle long champion names */
}

/* Responsive adjustments for live game */
@media (max-width: 768px) {
    .live-game-info {
        padding: 15px;
    }

    .ban-item {
        width: 80px;
    }

    .banned-champion-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .live-game-info p {
        font-size: 1em;
    }

    .ban-item {
        width: 70px;
        padding: 8px;
    }

    .banned-champion-icon {
        width: 40px;
        height: 40px;
    }
}
/* style.css */

/* Styling for the overall team score container */
.team-total-score {
    background-color: #1a1a2e; /* A neutral dark background for the bar */
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a4a5a;
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack items vertically */
    gap: 10px; /* Space between score lines */
}

.team-total-score h4 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.team-total-score p {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
    display: flex; /* Allow text and score to be aligned */
    justify-content: center; /* Center content within each paragraph */
    align-items: center;
}

/* Specific styling for Blue Team Score */
.team-total-score p:first-of-type { /* Targets the first <p> which is "Votre Équipe (Bleue)" or "Équipe Ennemie (Bleue)" */
    color: #87CEEB; /* Sky Blue */
}

/* Specific styling for Red Team Score */
.team-total-score p:last-of-type { /* Targets the second <p> which is "Équipe Ennemie (Rouge)" or "Votre Équipe (Rouge)" */
    color: #FF6347; /* Tomato Red */
}

/* Optional: Add a subtle text shadow for better readability */
.team-total-score p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
/* Variables CSS pour une gestion facile des couleurs */
:root {
    --primary-bg: #1a1a2e; /* Bleu nuit foncé pour l'arrière-plan principal */
    --secondary-bg: #16213e; /* Bleu légèrement plus clair pour les sections */
    --accent-color: #e94560; /* Rouge-rose vif pour les accents et les boutons */
    --text-color: #e0e0e0; /* Texte clair pour le contraste */
    --light-text-color: #a0a0a0; /* Texte plus clair pour les détails */
    --border-color: #0f3460; /* Bordures subtiles */
    --shadow-color: rgba(0, 0, 0, 0.3); /* Ombre légère */
    --success-color: #28a745; /* Vert pour les succès/victoires */
    --danger-color: #dc3545; /* Rouge pour les échecs/défaites */
    --warning-color: #ffc107; /* Jaune pour les avertissements */
    --info-color: #17a2b8; /* Bleu clair pour les informations */
    --current-page-color: #007bff; /* Couleur pour la page actuelle de pagination */
    --gold-accent: #ffd700; /* Or pour les éléments "gold" */
}

/* General Body Styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #0d0e12;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Permet au footer de rester en bas */
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    flex-grow: 1; /* Permet au contenu de prendre l'espace disponible */
}

/* Site Header */
.site-header {

    text-align: center;
}

.site-logo {
    max-width: 250px;
    height: auto;
}

/* Main Navigation */
.main-nav {

    padding: 15px 0;

    
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-nav li a {

  background-color: transparent;
  color: var(--secondary-color);

  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.main-nav li a:hover,
.main-nav li a.active {
    background-color: #6366f1;
    color: white;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #fff !important;
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: center;
	font-size: 20px !important;
}

h1 { font-size: 2.5em; color: var(--gold-accent); }
h2 { font-size: 2em; }
h3 { font-size: 1.7em; }
h4 { font-size: 1.4em; }

/* Forms */
form {

    padding: 30px;
    border-radius: 8px;

    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center; /* Center form elements horizontally */
}

form label {
    font-weight: 700;
    color: var(--accent-color);
    width: 100%; /* Take full width for better stacking on small screens */
    text-align: center;
    margin-bottom: 5px;
}

form input[type="text"],
form select {
    width: calc(100% - 40px); /* Adjust width considering padding */
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px; /* Limit max width for inputs */
}

form input[type="text"]:focus,
form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.5);
    outline: none;
}

form button[type="submit"] {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
}

form button[type="submit"]:hover {
    background-color: #c93b51; /* Slightly darker accent */
    transform: translateY(-2px);
}

/* Messages */
.error-message {
    background-color: var(--danger-color);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

/* Profile Card (index.php) */
.profile-card {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center items when wrapped */
}

.profile-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    object-fit: cover;
    flex-shrink: 0; /* Prevent shrinking on smaller screens */
}

.profile-info {
    flex-grow: 1;
    text-align: center; /* Default for mobile */
}

.profile-info h2 {
    color: var(--gold-accent);
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.profile-info p {
    margin: 5px 0;
    color: var(--light-text-color);
    font-size: 0.95em;
}

.ranked-tier-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 8px;
}

.region-display {
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 10px;
}

/* Profile Details */
.profile-details {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin-bottom: 30px;
}

.profile-details h3 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.profile-details p {
    margin: 10px 0;
    font-size: 1em;
    color: var(--text-color);
}

.profile-details strong {
    color: #ece9db;
    margin-right: 10px;
}

.profile-details span {
    color: var(--light-text-color);
}


/* Champion Mastery (Carousel) */
.champion-mastery {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative; /* For carousel buttons */
}

.champion-mastery h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0; /* Add padding for buttons */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    justify-content: flex-start; /* Align items to the start initially */
}

.mastery-item {
    flex: 0 0 auto; /* Prevent items from shrinking/growing */
    width: 150px; /* Fixed width for each item */
    margin: 0 15px; /* Spacing between items */
    text-align: center;
    background-color: var(--primary-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.mastery-champion-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold-accent);
    object-fit: cover;
    margin-bottom: 10px;
}

.mastery-info strong {
    color: var(--accent-color);
    font-size: 1.1em;
}

.mastery-info {
    font-size: 0.9em;
    color: var(--light-text-color);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2em;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel-button:hover {
    opacity: 1;
    background-color: #c93b51;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}


/* Match History */
.match-history {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin-bottom: 30px;
}

.match-history h3 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.match-item {
    background-color: var(--primary-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.match-item.win {
    border-left: 5px solid var(--success-color);
}

.match-item.loss {
    border-left: 5px solid var(--danger-color);
}

.match-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px;
}

.match-item-header:hover {
    background-color: #1f2a4a;
}

.match-item-header > div {
    flex-basis: auto; /* Adjust based on content */
    text-align: center;
    color: var(--text-color);
    font-size: 0.95em;
}

.match-item-header .champion-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--gold-accent);
    vertical-align: middle;
}

.match-item-header .kda {
    font-weight: 700;
    color: var(--accent-color);
}

.match-item-header .outcome {
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
}

.match-item-header .outcome.win {
    background-color: var(--success-color);
    color: white;
}

.match-item-header .outcome.loss {
    background-color: var(--danger-color);
    color: white;
}

.match-item-header .accordion-icon {
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.match-details-accordion {
    max-height: 0;
	 display: flex; /* Arranges children in a row */
    justify-content: space-between; /* Pushes children to opposite ends */
    align-items: flex-start; /* Aligns children to the top */
    gap: 20px; /* Adds space between them */
    flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--primary-bg);
    padding: 0 20px; /* Initially no vertical padding */
}

.match-details-accordion.active {
    max-height: 100% !important;
    padding: 20px;
}

.participant-list {
    margin-top: 15px;
}

.participant-list h4 {
    color: var(--accent-color);
    text-align: left;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.participant-item {
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.9em;
    gap: 10px;
}

.participant-item.self {
    background-color: #2b3a5a; /* Slightly different background for the main player */
    border: 1px solid var(--accent-color);
}

.participant-item img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--light-text-color);
    flex-shrink: 0;
}

.participant-item span {
    flex-grow: 1;
    color: var(--text-color);
}

.participant-stats {
    text-align: right;
    font-size: 0.85em;
    color: var(--light-text-color);
    flex-shrink: 0; /* Prevent stats from shrinking */
}

.participant-stats .kda {
    font-weight: 700;
    color: var(--gold-accent);
}

/* Items in Match History */
.match-item-header .item-icon-small {
    width: 30px; /* Taille réduite */
    height: 30px;
    vertical-align: middle;
    margin-right: 2px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.participant-item .item-icon-normal {
    width: 36px;
    height: 36px;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.item-icon-small.empty-slot,
.item-icon-normal.empty-slot {
    background-color: #333;
    border: 1px solid #555;
    display: inline-block; /* Ensure it takes space */
}

.items-list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    justify-content: center; /* Center items under heading on mobile */
}

.items-list-header strong {
    color: var(--accent-color);
    margin-right: 5px;
    font-size: 1em;
}


/* Top Players Table (top_players.php) */
.top-players-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: var(--text-color);
    background-color: var(--secondary-bg);
    box-shadow: 0 4px 10px var(--shadow-color);
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners apply to content */
}

.top-players-table th,
.top-players-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.top-players-table th {
    background-color: var(--primary-bg);
    color: var(--gold-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
}

.top-players-table tr:nth-child(even) {
    background-color: #1e2a47; /* Slightly different shade for even rows */
}

.player-row:hover {
  background-color: #0a1428 !important; /* Darker on hover for player rows */
  cursor: pointer  !important;
}

.tier-icon-small {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 50%; /* Make tier icons circular for a modern look */
}

.summoner-icon-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 8px;
    flex-wrap: wrap; /* Allow pagination items to wrap */
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--secondary-bg);
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: white;
}

.pagination span.current-page {
    background-color: var(--current-page-color);
    border-color: var(--current-page-color);
    font-weight: bold;
    color: white;
}

/* Status Page (status.php) */
.status-section {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin-bottom: 30px;
}

.status-section h2 {
    text-align: left;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.status-section h3, .status-section h4, .status-section h5 {
    text-align: left;
    color: var(--gold-accent);
    margin-top: 15px;
    margin-bottom: 10px;
}

.status-item {
    background-color: var(--primary-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.status-item p {
    margin: 5px 0;
    color: var(--light-text-color);
    font-size: 0.95em;
}

.status-item strong {
    color: var(--text-color);
    margin-right: 5px;
}

.status-severity-low { background-color: #5cb85c; color: white; padding: 3px 8px; border-radius: 3px; font-size: 0.8em; }
.status-severity-medium { background-color: #f0ad4e; color: white; padding: 3px 8px; border-radius: 3px; font-size: 0.8em; }
.status-severity-high { background-color: #d9534f; color: white; padding: 3px 8px; border-radius: 3px; font-size: 0.8em; }
.status-severity-info { background-color: #5bc0de; color: white; padding: 3px 8px; border-radius: 3px; font-size: 0.8em; }

.status-message {
    font-style: italic;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    margin-top: 10px;
    color: var(--light-text-color);
}

/* Footer */
.site-footer {
    background-color: var(--secondary-bg);
    color: var(--light-text-color);
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    box-shadow: 0 -5px 15px var(--shadow-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold-accent);
}

.social-links {
    margin-top: 15px;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        text-align: center;
    }

    .match-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .match-item-header > div {
        width: 100%;
        text-align: left;
    }

    .match-item-header .outcome {
        align-self: flex-end; /* Align outcome to the right within the column */
    }

    .participant-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .participant-item span {
        flex-basis: 100%; /* Make name span full width */
        text-align: center;
    }

    .participant-stats {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    .top-players-table th, .top-players-table td {
        padding: 8px 10px;
        font-size: 0.85em;
    }

    /* Make table scrollable on small screens if content overflows */
    .top-players-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* for smoother scrolling on iOS */
    }

    /* Ensure horizontal scroll works effectively */
    .top-players-table th, .top-players-table td {
        width: auto; /* Reset explicit widths if any were set */
        min-width: 100px; /* Give a minimum width to each column to ensure content visibility */
    }

    /* For specific columns if you want to make them smaller or hide them on smaller screens: */
    /* Example: To make 'LP' column smaller */
    .top-players-table th:nth-child(4),
    .top-players-table td:nth-child(4) {
        min-width: 70px; /* Smaller min-width for LP */
    }

    .summoner-icon-small, .tier-icon-small {
        width: 25px; /* Slightly smaller icons on mobile */
        height: 25px;
    }
}

/* MEDIA QUERY POUR LA PAGE RESULTS (results.php) */
@media (max-width: 600px) {
    /* Adjustments for the team total score on smaller screens */
    .team-total-score {
        padding: 10px 15px; /* Reduce padding */
        margin-bottom: 15px; /* Reduce bottom margin */
    }
	.match-participants-map-selector {
  flex: 1;
  min-width: 221px;
}

    .team-total-score h4 {
        font-size: 1em; /* Smaller font for heading */
        margin-bottom: 8px;
    }

    .team-total-score p {
        font-size: 0.95em; /* Smaller font for scores */
        flex-direction: column; /* Stack score text and value vertically */
        gap: 3px; /* Smaller gap */
    }

    /* Further adjustments for match history items if needed on results page */
    .match-item-header {
        padding: 10px 15px; /* Smaller padding for match headers */
        font-size: 0.9em;
    }

    .match-item-header .champion-image {
        width: 45px; /* Slightly smaller champion image */
        height: 45px;
    }

    .participant-item {
        padding: 8px 10px; /* Smaller padding for participant items */
        font-size: 0.85em;
    }

    .participant-item img {
        width: 30px; /* Smaller participant images */
        height: 30px;
    }

    .items-list-header .item-icon-small {
        width: 28px;
        height: 28px;
    }
}

/* For very small screens (e.g., older phones) */
@media (max-width: 480px) {
    .container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .site-logo {
        max-width: 200px;
    }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }

    form {
        padding: 20px;
    }

    form input[type="text"],
    form select,
    form button[type="submit"] {
        width: 100%; /* Full width for better tap targets */
        max-width: none;
    }

    .profile-card {
        padding: 15px;
        gap: 15px;
    }

    .profile-icon {
        width: 90px;
        height: 90px;
    }

    .profile-info h2 {
        font-size: 1.5em;
    }

    .match-item-header .champion-image {
        width: 40px;
        height: 40px;
    }

    .mastery-item {
        width: 120px; /* Smaller items for very small screens */
        margin: 0 10px;
        padding: 10px;
    }

    .mastery-champion-image {
        width: 60px;
        height: 60px;
    }

    .carousel-button {
        padding: 8px 12px;
        font-size: 1em;
    }

    .item-icon-small, .participant-item .item-icon-normal {
        width: 20px;
        height: 20px;
    }

    /* Specific adjustments for results page on very small screens */
    .team-total-score {
        padding: 8px 10px; /* Even smaller padding */
    }

    .team-total-score h4 {
        font-size: 0.9em; /* Even smaller font */
    }

    .team-total-score p {
        font-size: 0.85em; /* Even smaller font for scores */
    }
}
@media (max-width: 800px) {
	.container {
  max-width: 90% !important;
  
}
.header {
  width: 80%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5%;
}

.user-data-section, .live-game-section {

  width: 86% !important;
}
.team-block {
  flex: 1;
  min-width: 90%!important;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
}
.participant-item {
 width: 89% !important;
}
.participant-stats {
  flex-grow: 1;
  text-align: center !important;
  font-size: 0.9em !important;
  margin-right: auto !important;
  margin-left: auto !important;
}}

.participant-list {
    display: flex; /* Makes the child elements (team-block) arrange horizontally */
    gap: 20px; /* Adds some space between the two team blocks */
    flex-wrap: wrap; /* Allows the blocks to wrap if the screen is too narrow */
}

.team-block {
    flex: 1; /* Allows each team block to take up equal available space */
    min-width: 300px; /* Ensures they don't get too squeezed on smaller screens */
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
}

.team-block.allies {
    background-color: #161628; /* Light blue for allies */
}

.team-block.enemies {
    background-color: #161628; /* Light red for enemies */
}

.team-block h4 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

/* You might need to adjust other styles within participant-item
   to ensure content within them flows correctly after this change. */
.participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 5px;
  
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.participant-item span {
    flex-shrink: 0; /* Prevent text from shrinking too much */
}

.participant-stats {
    flex-grow: 1; /* Allows stats to take up remaining space */
    text-align: right;
    font-size: 0.9em;
	margin-right: 3%;
	margin-left: -30%;
}

.participant-items-display {
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    gap: 2px;
    margin-top: 5px;
}

.item-icon-normal {
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 3px;
}


@media (max-width: 768px) { /* For tablets and smaller */
    .game-map-container {
        width: 95%; /* Make it take up more width on smaller screens */
        padding: 5px;
    }
}

@media (max-width: 480px) { /* For mobile phones */
    .game-map-container {
        width: 100%; /* Full width on very small screens */
        margin: 0; /* No margin on mobile */
        padding: 0; /* No padding on mobile */
        overflow-x: auto; /* If map is very wide, allow horizontal scrolling */
    }
    /* You might also adjust font sizes or other elements within the map */
}



