:root {
  --colorL: #003366;
  --colorC: #FFFFFF;
  --colorR: #CC0000;
}
/* HEAD */
/*
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
*/
* {
    box-sizing: border-box; /* Permet de garder la largeur intacte en incluant le padding */
}
body{
  user-select: none; /* Empêche la sélection du texte */
  font-size: 16px;
  margin: 0;
  background: linear-gradient(
    to right,
    var(--colorL) 0,
    var(--colorL) calc(50% - 350px), 
    var(--colorC) calc(50% - 350px),
    var(--colorC) calc(50% + 350px), 
    var(--colorR) calc(50% + 350px),
    var(--colorR) 100%
  );
}
body.theme-royalist {
  /*background: white; /* Fond blanc */
  background-image: url('../images/votes/lys.jpg');
  background-repeat: repeat; /* Motif répété */
  /*background-size: 100px 100px; /* Très grandes fleurs */
  color: blue; /* Texte en bleu royal */
}
footer {
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir transparent */
    color: white; /* Texte en blanc */
    text-align: center;
    padding: 20px;
    width: 100%; /* S'assure que le footer prend toute la largeur */
    position: relative;
    left: 0;
}
footer span {
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px; /* Ajoute un espacement horizontal entre le texte et les lignes */
}

footer a {
    display: inline-block;
    vertical-align: middle;
    margin-top: 10px;
}
.line {
    display: inline-block;
    width: 30%; /* Ajustez la largeur de la ligne */
    height: 1px;
    background: white; /* Couleur de la ligne blanche */
    margin: 0 10px; /* Espace entre les lignes et le texte */
    vertical-align: middle; /* Aligne correctement la ligne avec le texte */
    position: relative;
    top: -5px; /* Ajustez la position verticale */
}
a{
  color: #555;
}
.warning{
  color: var(--colorR);
}
.checkbox-container {
  display: flex;
  gap: 15px; /* Espacement entre les options */
  margin: 10px 0;
}
.OutlineText {
  color: var(--colorL);
  text-shadow:
  -1px -1px 0 var(--colorC),
  1px -1px 0 var(--colorC),
  -1px 1px 0 var(--colorC),
  1px 1px 0 var(--colorC),  
  -2px 0 0 var(--colorC),
  2px 0 0 var(--colorC),
  0 2px 0 var(--colorC),
  0 -2px 0 var(--colorC);
}
#mode{
  color: var(--colorC);
  text-shadow:
  -1px -1px 0 var(--colorL),
  1px -1px 0 var(--colorL),
  -1px 1px 0 var(--colorL),
  1px 1px 0 var(--colorL),  
  -2px 0 0 var(--colorL),
  2px 0 0 var(--colorL),
  0 2px 0 var(--colorL),
  0 -2px 0 var(--colorL);
}
.title{
  font-size: 20px;
  text-align: center;
  color: var(--colorR);
  background-color: var(--colorL);
  border-radius: 20px;
  display: inline-block;  /* L'élément prend la taille du texte */
  min-width: fit-content; /* La largeur minimale s'ajuste à la taille du texte */
  padding: 10px;
}

/* FLAGS */
.flag-list {
  position: fixed;
  left: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flag {
  cursor: pointer;
  font-size: 30px;
  /*padding: 10px 20px;*/
  background-color: transparent;
  border: 0px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}
.flag:hover {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}
/* EXPLAIN */
.explain-container {
  width: 600px;
}
.explain-header {
  display: flex; /* Utilisation de Flexbox pour aligner les éléments */
  justify-content: space-between; /* Espacement entre le texte et la flèche */
  align-items: center; /* Alignement vertical */
  cursor: pointer; /* Rendre cliquable */
}
.toggle-arrow {
  font-weight: bold;
  transition: transform 0.3s ease, color 0.3s ease;
}
.explain-content {
  display: none; /* Caché par défaut */
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-top: 5px;
  margin-left: 0;
  font-size: 12px;
  color: #999;
}

.otherPages{
  text-align: left;
}
#game-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
}
.feedback {
    font-size: 1.2em;
    margin: 10px 0;
}
input, button {
    margin: 5px;
    padding: 10px;
    font-size: 1em;
}

/* Style pour personnaliser les cases à cocher */
input[type="checkbox"] {
  /* Masquer la case par défaut */
  appearance: none; 
  -webkit-appearance: none; /* Pour Safari */
  background-color: white; /* Fond blanc */
  border: 2px solid #ccc; /* Bord de la case */
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 3px; /* Optionnel : coins arrondis */
}
input[type="checkbox"]:checked {
  background-color: #28a745; /* Fond vert */
  /*border-color: #28a745; /* Bord vert */
}
input[type="checkbox"]:checked::after {
  content: "✔";
  color: white;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: center;
  transform: translateY(-50%);
  /*
  align-items: center;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 0;
  left: 0;
  transform: none; /* Supprime le centrage excessif si appliqué */
}

/* modal */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}
.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.modal-buttons button {
  padding: 10px 20px;
  cursor: pointer;
}
.confirm-btn {
  background-color: green;
  color: white;
}
.cancel-btn {
  background-color: red;
  color: white;
}

/* image candidats */
.inline-image {
    vertical-align: middle;
    height: 50px;
    width: 50px;
}

/* list candidats */
.container {
    width: 620px;
    margin: 0px auto;
    padding: 20px;
    background-color: var(--colorC);
}
.item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    /*cursor: move;*/
    transition: all 0.2s;
    cursor: move;
}
._item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.item:hover {
    border-color: #90caf9;
}
.item.dragging {
    opacity: 0.5;
    border: 1px dashed #2196f3;
}
.item.item-hidden {
    opacity: 0.3;
}
.handle {
    color: #999;
    margin-right: 10px;
}
._handle {
    color: #999;
    margin-right: 10px;
}
.text {
    flex-grow: 1;
}
.textR{
  text-align: right;
  margin-right: 10px;
}
.toggle-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}
._toggle-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}
.toggle-btn:hover {
    background: #f5f5f5;
}
.drag-icon {
    width: 20px;
    height: 20px;
}

/* bouton de validation */
.validate-btn-container {
    position: sticky;
    bottom: 20px;
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(transparent, white 20%);
}
.validate-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.3);
}
.validate-btn:hover {
    background: #1976d2;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
    transform: translateY(-1px);
}
.validate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.4);
}

/* Animation pour le feedback de validation */
@keyframes validate-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}