body { font-family: Arial, sans-serif; margin:0; }

/* Contenu principal avec marge pour playlist flottante */
#main {
  flex:1;
  padding:20px;
  margin-right:340px; /* largeur playlist + marge */
}

/* Tableau */
table { width:100%; border-collapse:collapse; }
th, td { border:1px solid #ccc; padding:8px; text-align:left; }
th { background:#f0f0f0; }
tbody tr:nth-child(even) { background:#f9f9f9; }
tbody tr:hover { background:#f1f1f1; }
input[type="text"] { width:100%; box-sizing:border-box; }


/* Centrer la colonne NUM (première colonne) */
#tableau thead tr:nth-child(2) th:first-child,
#tableau tbody tr td:first-child {
    text-align: center;
}


/* Liens */
a { text-decoration:underline; margin-right:5px; cursor:pointer; }
a.paroles { color:green; font-size:0.9em; margin-left:5px; }
a.chords { color:blue; font-size:0.9em; margin-left:5px; }
a.mp3 { text-decoration:none; margin-right:5px; color:#d9534f; }
a.mp3:hover { color:#b52b27; }

/* Cantique */
#cantique-display { border:1px solid #ccc; padding:10px; margin-top:10px; min-height:150px; overflow:auto; }
img.cantique-img { max-width:100%; display:block; margin-top:5px; }

.tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
  position: sticky;
  top: 0;          /* fixe en haut */
  background: #f9f9f9; /* arrière-plan pour qu’il ne soit pas transparent */
  z-index: 100;    /* pour rester au-dessus du contenu */
}


/* Playlist flottante */
#playlist {
  width:300px;
  padding:15px;
  border:1px solid #aaa;
  background:#f9f9f9;
  position:fixed;
  top:20px;
  right:20px;
  max-height:90vh;
  overflow:auto;
  z-index:1000;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Boutons de la playlist */
#playlist-items button {
  cursor: pointer;
  padding: 2px 5px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #f0f0f0;
  transition: all 0.2s ease;
}

#playlist-items button:hover {
  background: #d9534f;
  color: white;
  border-color: #b52b27;
}


#playlist h2 { margin-top:0; }
#playlist ul { list-style:none; padding:0; max-height:300px; overflow-y:auto; }
#playlist li { display:flex; justify-content:space-between; margin:5px 0; align-items:center; }
#playlist button { margin-left:10px; }
#playlist-controls { margin-top:10px; }
#playlist-audio { margin-top:10px; }
/* Onglets */
.tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}

.tablink {
  flex: 1;
  padding: 10px;
  cursor: pointer;
  background: #f9f9f9;
  border: none;
  outline: none;
  font-size: 1rem;
  transition: background 0.3s;
}

.tablink:hover {
  background: #eee;
}

.tablink.active {
  background: #d9534f;
  color: white;
}

.tabcontent {
  display: none;
}

.tabcontent.active {
  display: block;
}
/* Centrer la première colonne NUM */
#tableau tbody tr td:first-child {
    text-align: center;
}

