/* ========================================
   STYLES POUR LES PAGES DE GAMMES ET MODES
   ======================================== */

/* Styles pour les tableaux de gammes */
.scale-table { 
  border-collapse: collapse; 
  border-spacing: 0; 
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3); 
  overflow: hidden; 
  border-radius: 20px; 
}

.scale-table th, .scale-table td { 
  width: 50px; 
  height: 50px; 
  text-align: center; 
  padding: 10px; 
  transition: background-color .3s ease; 
}

.scale-table thead th { 
  height: 30px; 
  background-color: var(--eti-red); 
  font-weight: bold; 
  color: white; 
}

.scale-table thead th:hover { 
  background-color: var(--eti-red-hover); 
}

/* Masquer tous les modes sauf celui de la page par défaut */
#gammesTable tr[data-type]:not([data-type="ionien"]) {
  display: none;
}

/* Règles spécifiques pour chaque mode */
#dorien #gammesTable tr[data-type]:not([data-type="dorien"]) {
  display: none;
}

#dorien #gammesTable tr[data-type="dorien"] {
  display: table-row;
}

/* Masquer ionien sur la page dorien */
#dorien #gammesTable tr[data-type="ionien"] {
  display: none;
}

/* Règles pour le mode phrygien */
#phrygien #gammesTable tr[data-type]:not([data-type="phrygien"]) {
  display: none;
}

#phrygien #gammesTable tr[data-type="phrygien"] {
  display: table-row;
}

/* Masquer ionien et dorien sur la page phrygien */
#phrygien #gammesTable tr[data-type="ionien"],
#phrygien #gammesTable tr[data-type="dorien"] {
  display: none;
}

/* Règles pour le mode lydien */
#lydien #gammesTable tr[data-type]:not([data-type="lydien"]) {
  display: none;
}

#lydien #gammesTable tr[data-type="lydien"] {
  display: table-row;
}

/* Masquer ionien, dorien et phrygien sur la page lydien */
#lydien #gammesTable tr[data-type="ionien"],
#lydien #gammesTable tr[data-type="dorien"],
#lydien #gammesTable tr[data-type="phrygien"] {
  display: none;
}

/* Règles pour le mode mixolydien */
#mixolydien #gammesTable tr[data-type]:not([data-type="mixolydien"]) {
  display: none;
}

#mixolydien #gammesTable tr[data-type="mixolydien"] {
  display: table-row;
}

/* Masquer ionien, dorien, phrygien et lydien sur la page mixolydien */
#mixolydien #gammesTable tr[data-type="ionien"],
#mixolydien #gammesTable tr[data-type="dorien"],
#mixolydien #gammesTable tr[data-type="phrygien"],
#mixolydien #gammesTable tr[data-type="lydien"] {
  display: none;
}

/* Règles pour le mode éolien */
#eolien #gammesTable tr[data-type]:not([data-type="eolien"]) {
  display: none;
}

#eolien #gammesTable tr[data-type="eolien"] {
  display: table-row;
}

/* Masquer ionien, dorien, phrygien, lydien et mixolydien sur la page éolien */
#eolien #gammesTable tr[data-type="ionien"],
#eolien #gammesTable tr[data-type="dorien"],
#eolien #gammesTable tr[data-type="phrygien"],
#eolien #gammesTable tr[data-type="lydien"],
#eolien #gammesTable tr[data-type="mixolydien"] {
  display: none;
}

/* Règles pour le mode locrien */
#locrien #gammesTable tr[data-type]:not([data-type="locrien"]) {
  display: none;
}

#locrien #gammesTable tr[data-type="locrien"] {
  display: table-row;
}

/* Masquer ionien, dorien, phrygien, lydien, mixolydien et éolien sur la page locrien */
#locrien #gammesTable tr[data-type="ionien"],
#locrien #gammesTable tr[data-type="dorien"],
#locrien #gammesTable tr[data-type="phrygien"],
#locrien #gammesTable tr[data-type="lydien"],
#locrien #gammesTable tr[data-type="mixolydien"],
#locrien #gammesTable tr[data-type="eolien"] {
  display: none;
}

/* Règles pour le mode mineur harmonique */
#mineur-harmonique #gammesTable tr[data-type]:not([data-type="mineur-harmonique"]) {
  display: none;
}

#mineur-harmonique #gammesTable tr[data-type="mineur-harmonique"] {
  display: table-row;
}

/* Masquer tous les autres modes sur la page mineur harmonique */
#mineur-harmonique #gammesTable tr[data-type="locrien-♮13"],
#mineur-harmonique #gammesTable tr[data-type="ionien-#5"],
#mineur-harmonique #gammesTable tr[data-type="dorien-#11"],
#mineur-harmonique #gammesTable tr[data-type="phrygien-dominant"],
#mineur-harmonique #gammesTable tr[data-type="lydien-#9"],
#mineur-harmonique #gammesTable tr[data-type="altere-bb7"] {
  display: none;
}

/* Règles pour le mode phrygien dominant */
#phrygien-dominant #gammesTable tr[data-type]:not([data-type="phrygien-dominant"]) {
  display: none;
}

#phrygien-dominant #gammesTable tr[data-type="phrygien-dominant"] {
  display: table-row;
}

/* Masquer tous les autres modes sur la page phrygien dominant */
#phrygien-dominant #gammesTable tr[data-type="mineur-harmonique"],
#phrygien-dominant #gammesTable tr[data-type="locrien-♮13"],
#phrygien-dominant #gammesTable tr[data-type="ionien-#5"],
#phrygien-dominant #gammesTable tr[data-type="dorien-#11"],
#phrygien-dominant #gammesTable tr[data-type="lydien-#9"],
#phrygien-dominant #gammesTable tr[data-type="altere-bb7"] {
  display: none;
}

/* Règles pour le mode mineur mélodique */
#mineur-melodique #gammesTable tr[data-type]:not([data-type="mineur-melodique"]) {
  display: none;
}

#mineur-melodique #gammesTable tr[data-type="mineur-melodique"] {
  display: table-row;
}

/* Masquer tous les autres modes sur la page mineur mélodique */
#mineur-melodique #gammesTable tr[data-type="locrien-b9"],
#mineur-melodique #gammesTable tr[data-type="lydien-#5"],
#mineur-melodique #gammesTable tr[data-type="lydien-b7"],
#mineur-melodique #gammesTable tr[data-type="mixolydien-b13"],
#mineur-melodique #gammesTable tr[data-type="locrien-♮9"],
#mineur-melodique #gammesTable tr[data-type="altere"] {
  display: none;
}

/* Afficher tous les modes quand la classe show-all est présente */
.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

/* Surcharger les règles spécifiques quand show-all est actif */
#dorien.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

#phrygien.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

#lydien.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

#mixolydien.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

#eolien.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

#locrien.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

#mineur-harmonique.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

#phrygien-dominant.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

#mineur-melodique.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

/* Règles pour le mode majeur double harmonique */
#majeur-double-harmonique #gammesTable tr[data-type]:not([data-type="majeur-double-harmonique"]) {
  display: none;
}

#majeur-double-harmonique #gammesTable tr[data-type="majeur-double-harmonique"] {
  display: table-row;
}

/* Masquer tous les autres modes sur la page majeur double harmonique */
#majeur-double-harmonique #gammesTable tr[data-type="lydien-#2-#6"],
#majeur-double-harmonique #gammesTable tr[data-type="ultraphrygien"],
#majeur-double-harmonique #gammesTable tr[data-type="mineur-double-harmonique"],
#majeur-double-harmonique #gammesTable tr[data-type="oriental"],
#majeur-double-harmonique #gammesTable tr[data-type="ionien-#2-#5"],
#majeur-double-harmonique #gammesTable tr[data-type="locrien-bb3-bb7"] {
  display: none;
}

#majeur-double-harmonique.show-all #gammesTable tr[data-type] {
  display: table-row !important;
}

/* Première colonne en rouge avec texte blanc */
.scale-table th:first-child,
.scale-table td:first-child {
  background-color: var(--eti-red) !important;
  color: #fff !important;
}

.scale-table tbody td:first-child { 
  font-weight: bold; 
}

.scale-table td:first-child:hover { 
  background-color: var(--eti-red-hover) !important; 
}

/* Classes pour les tableaux de modes */
.table-first-row { 
  background-color: var(--eti-red); 
  color: #fff; 
}

.table-first-row:hover { 
  background-color: var(--eti-red-hover); 
}

.table-highlight-1 { 
  background-color: var(--eti-orange); 
  font-weight: bold; 
}

.table-highlight-2 { 
  background-color: var(--eti-yellow); 
  font-weight: bold; 
}

.table-hide { 
  color: darkgray; 
  font-weight: bold; 
}

.show-all .table-hide { 
  display: table-cell; 
  color: #666; 
}

/* Styles pour les boutons et contrôles */
.styled-button { 
  border: none; 
  background: var(--eti-orange); 
  color: #000; 
  padding: .5rem .9rem; 
  border-radius: .5rem; 
  font-weight: 600; 
}

.styled-button:hover { 
  background: var(--eti-red); 
  color: #fff; 
}

/* Styles pour les exemples et conteneurs */
.example {
  background: var(--eti-yellow);
  padding: .5rem .75rem;
  border-radius: .5rem;
  display: inline-block;
}

.table-container { 
  width: 100%; 
  overflow-x: auto; 
  padding: 20px; 
  box-sizing: border-box; 
  -webkit-overflow-scrolling: touch; 
}

/* Styles pour les cartes de morceaux compactes */
.compact-songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.song-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.song-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.song-header {
  padding: 15px;
  color: white;
  text-align: center;
}

.song-header h4 {
  margin: 0 0 5px 0;
  font-size: 1.3em;
  font-weight: bold;
}

/* Style spécial pour le titre sur fond jaune */
.song-header[style*="background-color:var(--eti-yellow)"] h4 {
  color: #333;
}

.song-header[style*="background-color:var(--eti-yellow)"] .artist {
  color: #555;
}

.song-header .artist {
  font-size: 0.9em;
  opacity: 0.9;
}

.song-details {
  padding: 15px;
  background: #f8f9fa;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item i {
  color: var(--eti-orange);
  width: 16px;
  text-align: center;
}

.play-button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 5px 8px;
  border-radius: 6px;
  margin: -5px -8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.play-button:hover {
  background-color: var(--eti-orange);
  color: white;
  transform: scale(1.05);
}

.play-button:hover i {
  color: white;
}

/* Style pour les liens de grille */
.grille-link {
  color: var(--eti-orange);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.grille-link:hover {
  color: var(--eti-red);
  text-decoration: underline;
}

/* Styles pour la section vidéo intégrée */
.video-section {
  background: #000;
  padding: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-section iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .video-section iframe {
    height: 150px;
  }
}

.song-description {
  padding: 15px;
}

.song-description p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.4;
  color: #666;
}

/* Styles pour les conteneurs d'image et de tablature */
.image-gamme-container {
  display: flex;
  flex-direction: column; /* Pour les écrans de petite taille */
  gap: 15px; /* Espacement entre l'image et la tablature */
  margin-top: 20px;
  margin-bottom: 30px; /* Espacement supplémentaire en bas du conteneur d'images */
}

.gamme-image-wrapper {
  width: 100%;
  max-width: 600px; /* Largeur maximale pour l'image */
  margin: 0 auto; /* Centrer l'image */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* Augmenter la taille des images sur ordinateur */
@media (min-width: 768px) {
  .gamme-image-wrapper {
    max-width: 700px; /* Largeur maximale augmentée sur ordinateur */
  }
}

@media (min-width: 1200px) {
  .gamme-image-wrapper {
    max-width: 800px; /* Largeur maximale encore plus importante sur très grands écrans */
  }
}

.gamme-image-responsive {
  width: 100%;
  height: auto;
  display: block;
}

/* Forcer les images à la même hauteur et permettre l'étirement */
.image-gamme-container .gamme-image-wrapper {
  display: flex;
  align-items: stretch; /* Étire les éléments enfants à la même hauteur */
}

.image-gamme-container .gamme-image-responsive {
  width: 100%; /* Largeur complète du conteneur */
  height: 100%; /* Hauteur complète du conteneur */
  object-fit: contain; /* Contient l'image entière sans la couper */
  object-position: center; /* Centre l'image dans son conteneur */
}

.tab-container {
  width: 100%;
  margin: 0 auto; /* Centrer la tablature */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive pour les conteneurs d'image et de tablature */
@media (min-width: 768px) {
  .image-gamme-container {
    flex-direction: row; /* Pour les écrans de taille moyenne et plus */
    justify-content: space-between;
    align-items: stretch; /* Étire tous les éléments à la même hauteur */
  }

  .gamme-image-wrapper {
    width: 45%; /* Largeur augmentée pour l'image sur ordinateur */
    max-width: 500px; /* Largeur maximale pour éviter que l'image soit trop grande */
    display: flex; /* Permet aux images de s'étirer */
    align-items: stretch; /* Étire les images à la hauteur du conteneur */
  }
}

/* Pour les très grands écrans, augmenter encore la taille des images */
@media (min-width: 1200px) {
  .gamme-image-wrapper {
    width: 50%; /* Largeur encore plus importante sur très grands écrans */
    max-width: 600px; /* Largeur maximale augmentée */
  }


}

/* Espacement spécifique pour les arpèges entre images et tablatures */
.arpege-content-wrapper .image-gamme-container {
  margin-bottom: 40px; /* Espacement plus important pour les arpèges */
}

.arpege-content-wrapper .tab-container {
  margin-top: 20px; /* Espacement supplémentaire au-dessus des tablatures */
}

/* Responsive design pour les cartes de morceaux */
@media (max-width: 768px) {
  .compact-songs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Animation d'apparition progressive pour le sommaire */
.sommaire-item {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.sommaire-item:nth-child(1) { animation-delay: 0.1s; }
.sommaire-item:nth-child(2) { animation-delay: 0.2s; }
.sommaire-item:nth-child(3) { animation-delay: 0.3s; }
.sommaire-item:nth-child(4) { animation-delay: 0.4s; }
.sommaire-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SOMMAIRE ACADÉMIQUE RÉUTILISABLE
   ======================================== */

.sommaire-academique {
  margin: 2rem 0;
}

.sommaire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sommaire-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.sommaire-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--eti-orange);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sommaire-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: var(--eti-orange);
}

.sommaire-item:hover::before {
  transform: scaleY(1);
}

.sommaire-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--eti-orange) 0%, var(--eti-red) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(241, 149, 20, 0.3);
}

.sommaire-content {
  flex: 1;
  min-width: 0;
}

.sommaire-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--eti-red);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.sommaire-description {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

.sommaire-arrow {
  color: var(--eti-orange);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sommaire-item:hover .sommaire-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Responsive design pour le sommaire */
@media (max-width: 768px) {
  .sommaire-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sommaire-item {
    padding: 1rem;
  }
  
  .sommaire-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .sommaire-title {
    font-size: 0.95rem;
  }
  
  .sommaire-description {
    font-size: 0.8rem;
  }
}

/* Animation d'apparition progressive */
.sommaire-item {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.sommaire-item:nth-child(1) { animation-delay: 0.1s; }
.sommaire-item:nth-child(2) { animation-delay: 0.2s; }
.sommaire-item:nth-child(3) { animation-delay: 0.3s; }
.sommaire-item:nth-child(4) { animation-delay: 0.4s; }
.sommaire-item:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   STYLES POUR LES ARPÈGES
   ======================================== */

/* Styles pour le contenu des arpèges */
.arpege-content-wrapper {
    padding: 20px;
    max-width: 100%;
    line-height: 1.6;
}

.arpege-content-wrapper h1 {
    color: var(--eti-red);
    margin-bottom: 20px;
    font-size: 2em;
}

.arpege-content-wrapper h2 {
    color: var(--eti-orange);
    margin: 25px 0 15px 0;
    font-size: 1.5em;
}

.arpege-content-wrapper h3 {
    color: var(--eti-red);
    margin: 20px 0 10px 0;
    font-size: 1.3em;
}

.arpege-content-wrapper p {
    margin-bottom: 15px;
    text-align: justify;
}

.arpege-content-wrapper ul, .arpege-content-wrapper ol {
    margin: 15px 0;
    padding-left: 20px;
}

.arpege-content-wrapper li {
    margin-bottom: 8px;
}

.arpege-content-wrapper a {
    text-decoration: none;
    font-weight: 500;
}

.arpege-content-wrapper .link {
    background: #f8f9fa;
    border-left: 4px solid var(--eti-orange);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

/* ========================================
   MARGES POUR LES TITRES DE FORMES
   ======================================== */

/* Marge supérieure pour tous les titres de formes */
h3:contains("Forme"),
h4:contains("Forme"),
h5:contains("Forme"),
h6:contains("Forme") {
  margin-top: 30px !important;
}

/* Alternative avec sélecteurs d'attributs pour plus de précision */
h3[id*="forme"],
h4[id*="forme"],
h5[id*="forme"],
h6[id*="forme"],
h3[class*="forme"],
h4[class*="forme"],
h5[class*="forme"],
h6[class*="forme"] {
  margin-top: 30px !important;
}

/* Cibler spécifiquement les titres "Forme X" avec regex-like matching */
h3, h4, h5, h6 {
  margin-top: 30px;
}

/* Règles spécifiques pour les titres de formes */
h3:first-of-type,
h4:first-of-type,
h5:first-of-type,
h6:first-of-type {
  margin-top: 0; /* Pas de marge pour le premier titre */
}

/* Espacement des titres de formes dans les gammes */
.scale-forms h3,
.scale-forms h4,
.scale-forms h5,
.scale-forms h6 {
  margin-top: 30px !important;
}

/* Règles spécifiques pour les titres de formes d'arpèges */
.arpege-content-wrapper h2[id*="forme"],
.arpege-content-wrapper h3[id*="forme"],
.arpege-content-wrapper h4[id*="forme"] {
  margin-top: 40px !important;
  margin-bottom: 20px !important;
}

/* Premier titre de forme sans marge supérieure */
.arpege-content-wrapper h2[id*="forme"]:first-of-type,
.arpege-content-wrapper h3[id*="forme"]:first-of-type,
.arpege-content-wrapper h4[id*="forme"]:first-of-type {
  margin-top: 20px !important;
}

/* ========================================
   STYLES POUR LES TABLEAUX D'ARPÈGES
   ======================================== */

/* Styles pour les tableaux d'arpèges - identiques aux gammes */
.arpege-content-wrapper .table-container { 
  width: 100%; 
  overflow-x: auto; 
  padding: 20px; 
  box-sizing: border-box; 
  -webkit-overflow-scrolling: touch; 
}

/* Styles pour les tableaux d'arpèges */
.arpege-content-wrapper table {
  border-collapse: collapse; 
  border-spacing: 0; 
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3); 
  overflow: hidden; 
  border-radius: 20px; 
  width: 100%;
}

.arpege-content-wrapper table th, 
.arpege-content-wrapper table td { 
  width: 50px; 
  height: 50px; 
  text-align: center; 
  padding: 10px; 
  transition: background-color .3s ease; 
}

.arpege-content-wrapper table thead th { 
  height: 30px; 
  background-color: var(--eti-red); 
  font-weight: bold; 
  color: white; 
}

.arpege-content-wrapper table thead th:hover { 
  background-color: var(--eti-red-hover); 
}

/* Première colonne en rouge avec texte blanc */
.arpege-content-wrapper table th:first-child,
.arpege-content-wrapper table td:first-child {
  background-color: var(--eti-red) !important;
  color: #fff !important;
}

.arpege-content-wrapper table tbody td:first-child { 
  font-weight: bold; 
}

.arpege-content-wrapper table td:first-child:hover { 
  background-color: var(--eti-red-hover) !important; 
}

/* Classes pour les tableaux d'arpèges */
.arpege-content-wrapper .table-first-row { 
  background-color: var(--eti-red); 
  color: #fff; 
}

.arpege-content-wrapper .table-first-row:hover { 
  background-color: var(--eti-red-hover); 
}

.arpege-content-wrapper .table-highlight-1 { 
  background-color: var(--eti-orange); 
  font-weight: bold; 
}

.arpege-content-wrapper .table-highlight-2 { 
  background-color: var(--eti-yellow); 
  font-weight: bold; 
}

.arpege-content-wrapper .table-hide { 
  color: darkgray; 
  font-weight: bold; 
}

/* ========================================
   SOMMAIRES D'ARPÈGES STYLISÉS
   ======================================== */

/* Sommaire académique pour les arpèges */
.arpege-content-wrapper .sommaire-academique {
  margin: 2rem 0;
}

.arpege-content-wrapper .sommaire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.arpege-content-wrapper .sommaire-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.arpege-content-wrapper .sommaire-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--eti-orange);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.arpege-content-wrapper .sommaire-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: var(--eti-orange);
}

.arpege-content-wrapper .sommaire-item:hover::before {
  transform: scaleY(1);
}

.arpege-content-wrapper .sommaire-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--eti-orange) 0%, var(--eti-red) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(241, 149, 20, 0.3);
}

.arpege-content-wrapper .sommaire-content {
  flex: 1;
  min-width: 0;
}

.arpege-content-wrapper .sommaire-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--eti-red);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.arpege-content-wrapper .sommaire-description {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

.arpege-content-wrapper .sommaire-arrow {
  color: var(--eti-orange);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.arpege-content-wrapper .sommaire-item:hover .sommaire-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Responsive design pour le sommaire des arpèges */
@media (max-width: 768px) {
  .arpege-content-wrapper .sommaire-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .arpege-content-wrapper .sommaire-item {
    padding: 1rem;
  }
  
  .arpege-content-wrapper .sommaire-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .arpege-content-wrapper .sommaire-title {
    font-size: 0.95rem;
  }
  
  .arpege-content-wrapper .sommaire-description {
    font-size: 0.8rem;
  }
}

/* ========================================
   CORRECTION Z-INDEX ALPHATAB VS SIDEBAR ARPÈGES
   ======================================== */

/* Correction du z-index pour AlphaTab quand la sidebar des arpèges est ouverte */
body.sidebar-open .alphatab-player-container .at-sidebar {
  z-index: 998 !important;
}

body.sidebar-open .alphatab-player-container .at-controls {
  z-index: 998 !important;
}

body.sidebar-open .alphatab-player-container .at-zoom-menu,
body.sidebar-open .alphatab-player-container .at-layout-menu,
body.sidebar-open .alphatab-player-container .at-speed-menu {
  z-index: 997 !important;
}

/* Correction spécifique pour les pages d'arpèges */
.arpege-content-wrapper .alphatab-player-container .at-sidebar {
  z-index: 998 !important;
}

.arpege-content-wrapper .alphatab-player-container .at-controls {
  z-index: 998 !important;
}

.arpege-content-wrapper .alphatab-player-container .at-zoom-menu,
.arpege-content-wrapper .alphatab-player-container .at-layout-menu,
.arpege-content-wrapper .alphatab-player-container .at-speed-menu {
  z-index: 997 !important;
}

/* S'assurer que la sidebar des arpèges reste au-dessus d'AlphaTab */
.sidebar-container .sidebar-content {
  z-index: 1000 !important;
}

.sidebar-container .sidebar {
  z-index: 1000 !important;
}

/* Correction pour le bouton de toggle de la sidebar */
.main-tab {
  z-index: 1001 !important;
}

/* Correction pour l'overlay de la sidebar */
.sidebar-overlay {
  z-index: 999 !important;
}

/* Animation d'apparition progressive pour les sommaires d'arpèges */
.arpege-content-wrapper .sommaire-item {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.arpege-content-wrapper .sommaire-item:nth-child(1) { animation-delay: 0.1s; }
.arpege-content-wrapper .sommaire-item:nth-child(2) { animation-delay: 0.2s; }
.arpege-content-wrapper .sommaire-item:nth-child(3) { animation-delay: 0.3s; }
.arpege-content-wrapper .sommaire-item:nth-child(4) { animation-delay: 0.4s; }
.arpege-content-wrapper .sommaire-item:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   STYLES POUR LES POSITIONS DE GAMMES
   ======================================== */

/* Titres des positions */
.image-gamme-container h4 {
  color: var(--eti-red);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--eti-orange);
  display: inline-block;
}

/* Description des positions */
.image-gamme-container p {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.image-gamme-container p strong {
  color: var(--eti-red);
  font-weight: 600;
}

/* Liens vers positions équivalentes */
.image-gamme-container .link {
  margin: 0.75rem 0 1rem 0;
  font-size: 0.95rem;
}

.image-gamme-container .link a {
  color: var(--eti-orange);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.image-gamme-container .link a:hover {
  color: var(--eti-red);
  background-color: rgba(241, 149, 20, 0.1);
  text-decoration: underline;
}
