.elementor-737 .elementor-element.elementor-element-2fa1dfd{--display:flex;}body.elementor-page-737:not(.elementor-motion-effects-element-type-background), body.elementor-page-737 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:var( --e-global-color-primary );background-image:url("https://cbdle.pikzzy.fr/wp-content/uploads/2025/06/Cholet-Basket-scaled.jpg");}/* Start custom CSS for html, class: .elementor-element-b0342e0 */#suggestions {
  max-height: 270px;
  overflow-y: auto;
  position: absolute;
  background: white;
  width: 100%;
  z-index: 9999 !important;
}

#suggestions div {
  padding: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

#suggestions div img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

#suggestions div:hover {
  background-color: #f0f0f0;
}

.input-wrapper {
  position: relative;
  z-index: 1000;
}

.suggestions-container {
  position: relative;
  z-index: 1000; /* plus élevé que le reste */
}

#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 270px;
  overflow-y: auto;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1001; /* doit passer au-dessus du bouton */
}

p#nbJoueurs.note{
    margin-top: 0px;
}

#btnReveal {
  background-color: red;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
}

.game-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.intro-parchemin {
  background: #f4efe4;
  max-width: 400px;
  margin: 0 auto 30px auto; /* 👈 centré horizontalement */
  border: 3px solid #b53a3a;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.intro-parchemin h2 {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.intro-parchemin p {
  margin: 12px 0px 4px 0px!important;
}

.intro-parchemin .note {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
}

#guess {
  all: unset;
  width: 100%;
  max-width: 400px;
  padding: 12px 14px;
  font-size: 16px;
  background: white;
  border: 2px solid #c8102e;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  text-align: left;
  font-style: normal;
}

#guess::placeholder {
  color: #999;
  font-style: italic;
}

input::placeholder {
  font-style: italic;
  color: #aaa;
  text-align: left;
}

#guess:focus {
  border-color: #a00;
}

#suggestions {
  background: #f8f5ed;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  border-radius: 8px;
  position: absolute;
  z-index: 1000;
  top: 100%;
left: 0;
right: 0;
margin: 8px auto 0 auto;
  display: block;
  margin-top: 8px;
}

#suggestions div {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 15px;
  color: #222;
  border: 1px solid #c8102e;
  background: transparent;
  transition: background 0.2s ease;
}

#suggestions div:hover,
#suggestions .active {
  background: #f0e9df;
}

#suggestions div img {
  width: 36px;
  height: 36px;
  margin-right: 12px;
  object-fit: cover;
  border-radius: 4px;
}

#suggestions div:hover,
#suggestions .active {
  background-color: #eee;
}

/* Grille des essais */
.guess-grid {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guess-row {
  display: flex;
  gap: 5px;
}

.guess-cell {
  transform: rotateY(90deg);
  opacity: 0;
  transition: transform 1.4s ease, opacity 1.4s ease;
  backface-visibility: hidden;
  flex: 1;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  border-radius: 8px;
  color: white;
  text-align: center;
  padding: 4px;
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  box-sizing: border-box;
  user-select: none;
  caret-color: transparent;
}

.guess-cell.flip-in {
  transform: rotateY(0deg);
  opacity: 1;
}

.photo-cell:hover::after {
  content: attr(title);
  position: absolute;
  background: #222;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 8px;
  white-space: nowrap;
  z-index: 999;
  transform: translateY(-100%);
}

.photo-cell {
  position: relative;
  border: 3px solid white !important;
  padding-bottom: 0px!important;
}

.player-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.correct {
  background: linear-gradient(#44BB6A, #2e9951); /* fond interne */
  border: 3px solid transparent;
  border-radius: 8px;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image: 
    linear-gradient(#44BB6A, #2e9951), 
    linear-gradient(45deg, #44BB6A, #2e9951);
}

.partial {
  background: linear-gradient(#E9931B, #cc7a10);
  border: 3px solid transparent;
  border-radius: 8px;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image: 
    linear-gradient(#E9931B, #cc7a10), 
    linear-gradient(45deg, #E9931B, #cc7a10);
}

.wrong {
  background: linear-gradient(#D53633, #b72c29);
  border: 3px solid transparent;
  border-radius: 8px;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image: 
    linear-gradient(#D53633, #b72c29), 
    linear-gradient(45deg, #D53633, #b72c29);
}


#hints {
  margin-top: 20px;
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.victoire-box {
  margin-top: 30px;
  background: #d5f3c3; /* couleur conservée */
  border: 2px solid #70b85d;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

.victoire-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #2f6e21;
}

.victoire-box p {
  font-size: 15px;
  margin: 8px 0;
  color: #2d2d2d;
}

/* Ajout pour mise en page à gauche-droite */
.victoire-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
  margin: 16px 0;
}

.victory-photo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid #70b85d;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  display: block;
}

.victoire-texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: calc(100% - 72px);
}

.victoire-texte p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

.victoire-texte span {
  margin: 0;
  font-size: 22px;
  line-height: 1.6;
  text-align: center;
}

.victoire-box input[type="text"],
.victoire-box input[type="password"] {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #70b85d;
  margin: 5px;
  width: 90%;
  max-width: 240px;
  font-size: 14px;
  box-sizing: border-box;
}

.victoire-box button {
  background-color: #70b85d;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  max-width: 240px;
  width: 100%;
}

.BoutonScore{
  margin-top: 10px;
}

.BoutonGuest {
    margin-bottom: 12px;
}

.victoire-box button:hover {
  background-color: #5ca44a;
}

.next-joueur{
    font-size: 20px!important;
}

#countdown {
  font-weight: bold;
  color: #333;
  font-size: 18px;
}

/* Bloc "mode suivant" */
.mode-suivant {
  margin-top: 24px;
  text-align: left;
}

.mode-suivant h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #333;
  text-align: center;
}

/* Carte mode suivant (reprend ton style) */
.carte-jeu {
  display: flex;
  align-items: center;
  background: #111;
  border-left: 6px solid #28a745;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carte-jeu:hover {
  transform: scale(1.03);
}

.carte-jeu .icone {
  font-size: 1.8rem;
  margin-right: 12px;
}

.carte-jeu .texte h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.carte-jeu .texte p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #ccc;
}


.input-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto; /* centre horizontalement */
}

#joueurHierCbdle {
  background: #f8f1e4;
  border: 2px solid #b53a3a;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #222;
  display: inline-block;
  margin: 24px auto 0 auto;
  text-align: center;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  user-select: none;
  caret-color: transparent;
}

#joueurHierCbdle strong {
  color: #e25a17;
}

.guess-header {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 14px;
  color: #111;
  padding: 8px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  border-bottom: 2px solid #222;
  text-align: center;
}

.guess-header > div {
  flex: 1;
}

.guess-header {
  user-select: none;
  caret-color: transparent;
}

.glass-background {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.indice-box {
  background: rgba(255,255,255,0.7);
  border: 2px solid #ccc;
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.indice-carte {
  background: #e8dfc8;
  border: 2px solid #5f4635;
  border-radius: 6px;
  padding: 8px 12px;
  position: relative;
  text-align: center;
  width: 160px;
  font-family: sans-serif;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.indice-carte .emoji {
  font-size: 24px;
  color: #e25a17;
  margin-bottom: 4px;
}

.legend-cbdle {
  background: #fff;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 24px auto;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 3px solid #b53a3a;
  background: #f4efe4;
}

.legend-cbdle h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: bold;
}

.legend-items {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.correct { background: #28a745; }
.legend-color.partial { background: #f0ad4e; }
.legend-color.wrong { background: #d9534f; }

.legend-arrows {
  font-size: 13px;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.cbdle-buttons-container {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  background: #f8f1e4;
  border: 2px solid #b53a3a;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #222;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  user-select: none;
  caret-color: transparent;
}

/* Alignement du contenu des popups */
#helpPopupContent,
#classementsPopup {
  text-align: left;
}

/* ===== Bouton "?" ===== */
#helpWidget button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===== Overlay popup commun ===== */
#helpOverlay,
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

/* ===== Popup AIDE ===== */
#helpPopup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 90%;
  max-width: 600px;
  max-height: 90%;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  font-family: sans-serif;
}

#helpPopupHeader {
  background: #dc3545;
  color: white;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#helpPopupContent {
  padding: 16px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

#helpPopupClose {
  position: absolute;
  top: -1px;
  right: 14px;
  background: none;
  border: none;
  font-size: 36px;
  color: white;
  cursor: pointer;
  padding: 0 !important;
}

/* ===== Popup CLASSEMENTS ===== */
.popup-content,
#classementsPopup {
  background-color: #fff;
  border-radius: 12px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

#classementsPopupHeader {
  background: #dc3545;
  color: white;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: center;
}

.popup-close {
  position: absolute;
  top: -6px;
  right: 14px;
  background: none;
  border: none;
  font-size: 36px;
  color: white;
  cursor: pointer;
  padding: 0 !important;
}

.popup-close:hover {
  background-color: #dc3545;
}

#jourCbdlePopup h3,
#hebdoCbdlePopup h3,
#mensuelCbdlePopup h3,
#alltimeCbdlePopup h3,
.popup-white h4,
.popup-white ol,
.popup-white ul,
.popup-white li {
  color: #000;
}

#classementListPopup,
#classementHebdoListPopup,
#classementMensuelListPopup,
#classementAllTimeListPopup {
  list-style: none;
  padding: 0;
  margin: 0;
}

#classementsPopup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

/* ===== Boutons sans style ===== */
.no-style-btn {
  all: unset;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid black;
  border-radius: 8px;
  font-size: 20px;
  color: black;
}

.no-style-btn:hover {
  all: unset;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid black;
  border-radius: 8px;
  font-size: 20px;
  color: black;
}

/* ===== Boutons d’onglets du popup classement ===== */
.popup-white .onglet-btn-cbdle,
.popup-white .onglet-btn-popup {
  background: #eee;
  color: #333;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.popup-white .onglet-btn-cbdle:hover,
.popup-white .onglet-btn-popup:hover {
  background: #ddd;
}

.popup-white .onglet-btn-cbdle.active,
.popup-white .onglet-btn-popup.active {
  background: #c8102e;
  border-color: #c8102e;
  color: white;
}

.carte-jeu.indispo {
  position: relative;
  pointer-events: none; /* désactive le clic */
  opacity: 0.6;
}

.carte-jeu.indispo .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.4), rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  z-index: 10;
  border-radius: 1rem;
  text-shadow: 1px 1px 2px #000;
  transition: background 0.3s ease;
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-50ff319 */.onglet-btn-cbdle {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s;
}

.onglet-btn-cbdle:hover {
  background: rgba(255, 255, 255, 0.35);
}

.onglet-btn-cbdle.active {
  background: #c8102e;
  border-color: #c8102e;
  color: white;
}

.onglets-classement{
      display: flex;
  justify-content: center; /* ✅ centre horizontalement */
  gap: 10px;
  margin-bottom: 10px;
}

#classementList,
#classementHebdoList,
#classementMensuelList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glass-medium {
  background: rgba(30, 30, 30, 0.35); /* gris très foncé mais semi-transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 16px;
  color: #f1f1f1;
}

#classementsCbdle{
    margin: 0 auto;
    max-width: 600px;
}

.contenu-classement-cbdle h3{
    color: #fff;
    margin-top: 16px!important;
}/* End custom CSS */