/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.3.0
	Stable tag: 3.3.0
	Requires at least: 6.0
	Tested up to: 6.7
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/
/**
 * Loading first in the style.scss & classic-editor.scss
 */
/**
* Document basic styling
* Inspired by Normalize.css, HTML5 Boilerplate & Bootstrap Reboot Projects under MIT License
 */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 * 3. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

*,
*::before,
*::after {
  box-sizing: border-box; /* 3 */
}

/* Sections
 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1, h2, h3, h4, h5, h6 {
  margin-block-start: 0.5rem;
  margin-block-end: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-block-start: 0;
  margin-block-end: 0.9rem;
}

/* Grouping content
 */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
  white-space: pre-wrap;
}

/* Text-level semantics
 */
a {
  background-color: transparent;
  text-decoration: none;
  color: #CC3366;
}
a:hover, a:active {
  color: #333366;
}
a:not([href]):not([tabindex]) {
  color: inherit;
  text-decoration: none;
}
a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
  color: inherit;
  text-decoration: none;
}
a:not([href]):not([tabindex]):focus {
  outline: 0;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-block-end: none; /* 1 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
 */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
  height: auto;
  max-width: 100%;
}

/* Interactive
 */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

figcaption {
  font-size: 16px;
  color: #333333;
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
}

/* Misc
 */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* Print
 */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    -moz-column-break-inside: avoid;
         break-inside: avoid;
    border: 1px solid #cccccc;
  }
  thead {
    display: table-header-group;
  }
  tr,
  img {
    -moz-column-break-inside: avoid;
         break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    -moz-column-break-after: avoid;
         break-after: avoid;
  }
}
/**
 * Form styling
 */
label {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 1rem; /* 1 */
  line-height: 1.5; /* 1 */
  margin: 0; /* 2 */
}

input[type=text],
input[type=date],
input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=url],
select,
textarea {
  width: 100%;
  border: solid 1px #666666;
  border-radius: 3px;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}
input[type=text]:focus,
input[type=date]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=url]:focus,
select:focus,
textarea:focus {
  border-color: #333333;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  width: auto;
  -webkit-appearance: button;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button,
[type=submit],
[type=button] {
  display: inline-block;
  font-weight: 400;
  color: #CC3366;
  text-align: center;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  background-color: transparent;
  border: 1px solid #CC3366;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 3px;
  transition: all 0.3s;
}
button:focus:not(:focus-visible),
[type=submit]:focus:not(:focus-visible),
[type=button]:focus:not(:focus-visible) {
  outline: none;
}
button:hover, button:focus,
[type=submit]:hover,
[type=submit]:focus,
[type=button]:hover,
[type=button]:focus {
  color: #ffffff;
  background-color: #CC3366;
  text-decoration: none;
}
button:not(:disabled),
[type=submit]:not(:disabled),
[type=button]:not(:disabled) {
  cursor: pointer;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
  resize: vertical;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

select {
  display: block;
}

/**
 * Table styling
 */
table {
  background-color: transparent;
  width: 100%;
  margin-block-end: 15px;
  font-size: 0.9em;
  border-spacing: 0;
  border-collapse: collapse;
}
table th,
table td {
  padding: 15px;
  line-height: 1.5;
  vertical-align: top;
  border: 1px solid rgba(128, 128, 128, 0.5019607843);
}
table th {
  font-weight: bold;
}
table thead th,
table tfoot th {
  font-size: 1em;
}
table caption + thead tr:first-child th,
table caption + thead tr:first-child td,
table colgroup + thead tr:first-child th,
table colgroup + thead tr:first-child td,
table thead:first-child tr:first-child th,
table thead:first-child tr:first-child td {
  border-block-start: 1px solid rgba(128, 128, 128, 0.5019607843);
}
table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
  background-color: rgba(128, 128, 128, 0.0705882353);
}
table tbody tr:hover > td,
table tbody tr:hover > th {
  background-color: rgba(128, 128, 128, 0.1019607843);
}
table tbody + tbody {
  border-block-start: 2px solid rgba(128, 128, 128, 0.5019607843);
}
@media (max-width: 767px) {
  table table {
    font-size: 0.8em;
  }
  table table th,
  table table td {
    padding: 7px;
    line-height: 1.3;
  }
  table table th {
    font-weight: 400;
  }
}

/**
 * List styling
 */
dl,
dt,
dd,
ol,
ul,
li {
  margin-block-start: 0;
  margin-block-end: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

/* Theme-specific Variables */
:root {
  --primary-color: #1A2C4F;
  --secondary-color: #34495e;
  --accent-color: #3498db;
  --background-light: #ecf0f1;
  --text-color: #333;
  --transition-speed: 0.3s;
}

/* Responsive Top Controls */
#top-controls {
  display: grid;
  grid-template-columns: 
    minmax(150px, 1fr)   /* Page size */
    minmax(250px, 2fr)   /* Search */
    minmax(300px, 3fr);  /* Filters */
  gap: 15px;
  margin-bottom: 20px;
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 15px;
}

/* Filters */
#filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.filter-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 
    background-color var(--transition-speed),
    transform var(--transition-speed);
}

.filter-btn:hover {
  background-color: var(--accent-color);
  transform: scale(1.05);
}

.filter-btn.active {
  background-color: var(--accent-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Table Styling */
#classement {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#classement thead {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

#classement th, 
#classement td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--background-light);
}

#classement tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.1);
  transition: background-color var(--transition-speed);
}

/* Custom Pagination */
.custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-pagination-btn {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  margin: 2px;
}

.custom-pagination-btn:hover:not(:disabled) {
  background-color: #3498db;
  transform: scale(1.05);
}

.custom-pagination-btn.active {
  background-color: #3498db;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.custom-pagination-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  #top-controls {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "entries"
      "search"
      "filters";
  }

  #top-controls > div {
    margin-bottom: 10px;
  }

  #filters-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-pagination-btn {
    padding: 6px 10px;
    font-size: 0.9em;
  }

  /* Hide Category column on small screens */
  #classement th:nth-child(5),
  #classement td:nth-child(5) {
    display: none;
  }
}

/* Masquer complètement les éléments par défaut de DataTables */
#classement_wrapper .dataTables_filter,
#classement_wrapper .dataTables_length,
#classement_wrapper .dataTables_paginate {
    display: none !important;
}



/********* TOURNOI *******************/
/* Styles pour la liste des tournois */
.tournois-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tournois-search {
    margin-bottom: 30px;
}

.tournois-search input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tournois-search input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.tournois-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tournoi-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tournoi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tournoi-card h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
}

.tournoi-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-size: 0.9em;
    color: var(--secondary-color);
}

.tournoi-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Styles pour la page détaillée du tournoi */
.tournoi-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tournoi-header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.tournoi-header h1 {
    margin: 0;
    font-size: 2em;
}

.tournoi-header .date {
    opacity: 0.8;
    margin-top: 10px;
}

.serie-bloc {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.serie-titre {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 20px;
}

.partie-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.joueur {
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.joueur:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.joueur-blanc {
    text-align: right;
}

.joueur-noir {
    text-align: left;
}

.resultat {
    background-color: var(--background-light);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 15px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tournois-grid {
        grid-template-columns: 1fr;
    }
    
    .partie-item {
        font-size: 0.9em;
    }
    
    .resultat {
        margin: 0 10px;
        padding: 6px 10px;
        min-width: 60px;
    }
}

.ronde-bloc {
    margin: 20px 0;
    background-color: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
}

.ronde-titre {
    background-color: #f9f9f9;
    padding: 8px 15px;
    color: var(--primary-color);;
    padding: 10px 20px;
    margin: 0;
    font-size: 1.rem;
}

.parties-liste {
    padding: 15px;
}

.serie-titre {
    background-color: #f5f5f5; /* Couleur plus légère */
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0; /* Suppression des bords arrondis */
}

.serie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 10px 15px; /* Padding réduit */
	color: black;
}

.serie-header h2 {
	font-size: 1.2rem; /* Titre plus petit */
    margin: 0;
    flex: 1;
	color: black;
}

.serie-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    text-align: center;
    background: none; /* Suppression du fond */
    padding: 0 10px;
    border-radius: 4px;
}

.stat-value {
    font-size: 1rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.serie-bloc,
.ronde-bloc,
.tableau-scores,
.serie-content,
.joueur {
    border-radius: 0;
}


/*********TABLEAU***************/


/********* TOURNOI *******************/
/* Styles pour la liste des tournois */
.tournois-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tournois-search {
    margin-bottom: 30px;
}

.tournois-search input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tournois-search input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.tournois-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tournoi-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tournoi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tournoi-card h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
}

.tournoi-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-size: 0.9em;
    color: var(--secondary-color);
}

.tournoi-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Styles pour la page détaillée du tournoi */
.tournoi-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tournoi-header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.tournoi-header h1 {
    margin: 0;
    font-size: 2em;
}

.tournoi-header .date {
    opacity: 0.8;
    margin-top: 10px;
}

.serie-bloc {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.serie-titre {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 20px;
}

.partie-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.joueur {
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.joueur:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.joueur-blanc {
    text-align: right;
}

.joueur-noir {
    text-align: left;
}

.resultat {
    background-color: var(--background-light);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 15px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tournois-grid {
        grid-template-columns: 1fr;
    }
    
    .partie-item {
        font-size: 0.9em;
    }
    
    .resultat {
        margin: 0 10px;
        padding: 6px 10px;
        min-width: 60px;
    }
}

.ronde-bloc {
    margin: 20px 0;
    background-color: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
}

.ronde-titre {
    background-color: #f9f9f9;
    padding: 8px 15px;
    color: white;
    padding: 10px 20px;
    margin: 0;
    font-size: 1.rem;
}

.parties-liste {
    padding: 15px;
}

.serie-titre {
    background-color: #f5f5f5; /* Couleur plus légère */
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0; /* Suppression des bords arrondis */
}

.serie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 10px 15px; /* Padding réduit */
}

.serie-header h2 {
	font-size: 1.2rem; /* Titre plus petit */
    margin: 0;
    flex: 1;
}

.serie-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    text-align: center;
    background: none; /* Suppression du fond */
    padding: 0 10px;
    border-radius: 4px;
}

.stat-value {
    font-size: 1rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.serie-bloc,
.ronde-bloc,
.tableau-scores,
.serie-content,
.joueur {
    border-radius: 0;
}


/*********TABLEAU***************/
.tableau-scores {
    overflow-x: auto;
    margin: 10px 0;
    box-shadow: none;
    border: 1px solid #eee;
}

.tableau-scores table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
}

.tableau-scores th,
.tableau-scores td {
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    font-size: 0.9rem;
    text-align: center;
}

.tableau-scores .nom-joueur {
    text-align: left;
    min-width: 200px;
}

.tableau-scores .numero {
    width: 50px;
    text-align: center;
}

.tableau-scores .resultat-cell {
    width: 40px;
    text-align: center;
}

.tableau-scores .diagonal {
    background-color: var(--background-light);
}

.tableau-scores .points {
    font-weight: bold;
    background-color: var(--background-light);
}

.tableau-scores thead th {
    background-color: var(--primary-color);
    color: white;
}


.serie-titre {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.serie-header {
    position: relative;
    padding-right: 30px; /* Espace pour l'icône */
}

.accordion-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
	margin-left: 10px;
}

.serie-content {
    background: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
	transition: all 0.3s ease-out;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tableau-scores {
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ronde-bloc {
    margin: 10px 0;
    overflow: hidden;
    box-shadow: none; /* Suppression de l'ombre */
	border: 1px solid #eee; /* Bordure légère */
}

.serie-bloc {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.serie-titre:hover {
    background-color: rgba(0, 0, 0, 0.1);
}


/* Variables */
:root {
  --primary-color: #1A2C4F;
  --secondary-color: #34495e;
  --accent-color: #3498db;
  --light-gray: #f5f7fa;
  --border-color: #e0e6ed;
  --text-color: #333;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Structure mobile-first */
.tournoi-resultats {
  max-width: 100%;
  padding: 10px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* En-tête du tournoi */
.tournoi-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  text-align: center;
}

.tournoi-header h1 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.tournoi-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Filtres mobile */
.tournoi-filtres-mobile {
  margin-bottom: 15px;
}

.btn-filtre-mobile {
  width: 100%;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px;
  text-align: left;
  border-radius: var(--border-radius);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.filtres-panel {
  background-color: var(--light-gray);
  padding: 15px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  border: 1px solid var(--border-color);
  border-top: none;
}

.input-recherche-mobile {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 10px;
}

.filtres-buttons {
  display: flex;
  gap: 5px;
}

.btn-filtre {
  flex: 1;
  background-color: var(--light-gray);
  border: 1px solid var(--border-color);
  padding: 8px 5px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.btn-filtre.active {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Indicateur de navigation */
.tournoi-nav-indicator {
  background-color: var(--light-gray);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  font-weight: 500;
}

.count-badge {
  background-color: var(--accent-color);
  color: white;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Bloc de série */
.serie-bloc {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.serie-titre {
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.serie-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.serie-header h2 {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
  padding-right: 25px; /* Espace pour l'icône */
}

.accordion-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  transition: transform var(--transition-speed);
  color: var(--accent-color);
}

.serie-stats {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  flex: 1 0 100%;
}

.stat-item {
  text-align: center;
  padding: 0 5px;
}

.stat-value {
  font-weight: bold;
  font-size: 0.9rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

/* Contenu de la série */
.serie-content {
  background-color: white;
}

/* Onglets */
.serie-tabs {
  display: flex;
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary-color);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.tab-btn.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  background-color: white;
}

.tab-content {
  padding: 15px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Onglet classement */
.classement-simple table {
  width: 100%;
  border-collapse: collapse;
}

.classement-simple th,
.classement-simple td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.classement-simple th {
  background-color: var(--light-gray);
  font-weight: 500;
  font-size: 0.9rem;
}

.position {
  width: 40px;
  text-align: center;
}

.joueur-nom {
  text-align: left;
  font-weight: 500;
}

.points {
  width: 50px;
  text-align: center;
  font-weight: bold;
}

.ratio {
  width: 100px;
}

.top-three {
  background-color: rgba(52, 152, 219, 0.1);
}

.progress-bar {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 4px;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -7px;
  font-size: 0.75rem;
  color: var(--text-color);
}

/* Onglet rencontres */
.rondes-accordion {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.ronde-bloc {
  margin-bottom: 5px;
}

.ronde-titre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-gray);
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}

.ronde-titre h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-color);
}

.parties-count {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.accordion-icon-ronde {
  font-size: 0.8rem;
  color: var(--accent-color);
}

.ronde-content {
  padding: 10px;
}

.parties-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partie-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.joueur {
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

.joueur-blanc {
  text-align: right;
  background-color: #f8f9fa;
}

.joueur-noir {
  text-align: left;
}

.resultat {
  background-color: var(--light-gray);
  padding: 4px 8px;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
  font-size: 0.9rem;
}

/* Onglet tableau */
.tableau-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tableau-scores {
  margin: 0;
  box-shadow: none;
}

.tableau-scores table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
  font-size: 0.9rem;
}

.tableau-scores th,
.tableau-scores td {
  padding: 6px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.tableau-scores th {
  background-color: var(--light-gray);
  position: sticky;
  top: 0;
}

.tableau-scores .nom-joueur {
  text-align: left;
  white-space: nowrap;
}

.tableau-scores .numero {
  width: 40px;
  text-align: center;
}

.tableau-scores .resultat-cell {
  width: 30px;
  font-weight: 500;
}

.tableau-scores .diagonal {
  background-color: var(--light-gray);
}

/* Bouton retour en haut */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 100;
}

.back-to-top-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Utilitaires d'affichage responsive */
.d-none {
  display: none;
}

/* Message d'absence de données */
.no-data {
  padding: 20px;
  text-align: center;
  color: var(--secondary-color);
  font-style: italic;
}

/* Liens joueurs */
.joueur-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.joueur-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Adaptations pour tablettes */
@media (min-width: 768px) {
  .tournoi-resultats {
    padding: 20px;
    max-width: 90%;
  }
  
  .tournoi-header {
    padding: 20px;
    text-align: left;
  }
  
  .tournoi-header h1 {
    font-size: 1.8rem;
  }
  
  .tournoi-meta {
    justify-content: flex-start;
  }
  
  .d-md-block {
    display: block;
  }
  
  .d-md-table-cell {
    display: table-cell;
  }
  
  .serie-header {
    flex-wrap: nowrap;
  }
  
  .serie-stats {
    flex: 0 0 auto;
    margin-top: 0;
  }
  
  .partie-item {
    padding: 0;
  }
  
  .joueur {
    padding: 10px 15px;
    font-size: 1rem;
  }
  
  .resultat {
    min-width: 80px;
    padding: 6px 10px;
  }
}

/* Adaptations pour grands écrans */
@media (min-width: 1024px) {
  .tournoi-resultats {
    max-width: 1200px;
  }
  
  .tournoi-header h1 {
    font-size: 2.2rem;
  }
  
  .tournoi-meta {
    font-size: 1rem;
  }
  
  .serie-header h2 {
    font-size: 1.3rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .tab-btn {
    font-size: 1rem;
    padding: 12px 0;
  }
  
  .tableau-scores table {
    font-size: 1rem;
  }
  
  .classement-simple table {
    font-size: 1rem;
  }
}



