/* Styles pour les pages de cadences */

/* Styles pour la page de la cadence parfaite */
.header-section {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: var(--eti-orange);
  border-radius: 20px;
  color: white;
}

.header-section h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-decoration {
  width: 80px;
  height: 4px;
  background: white;
  margin: 20px auto;
  border-radius: 2px;
}

.subtitle {
  font-size: 1.3em;
  opacity: 0.9;
  margin: 0;
}

/* Style 70s pour les sections de théorie */
.theory-section.seventies {
  background: white;
  margin: 30px 0;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  border: none;
}

.theory-section.seventies h2 {
  color: var(--eti-orange);
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 50px;
}

.theory-section.seventies h2::before {
  content: counter(section-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--eti-orange);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.theory-section.seventies h3 {
  color: var(--eti-red);
  font-size: 1.4em;
  margin: 20px 0 15px 0;
  font-weight: bold;
}

.theory-section.seventies p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1rem;
}

.theory-section.seventies ul {
  margin: 20px 0;
  padding-left: 0;
  font-size: 1rem;
}

.theory-section.seventies li {
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
  position: relative;
  font-size: 1rem;
  padding-left: 0;
}

/* Suppression des puces des listes */
.theory-section.seventies ul {
  list-style: none;
  padding-left: 0;
}

.theory-section.seventies ul li {
  padding-left: 0;
}

.theory-section.seventies ol {
  margin: 20px 0;
  padding-left: 0;
  font-size: 1rem;
  list-style: none;
}

.theory-section.seventies ol li {
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 1rem;
  padding-left: 0;
}

/* Styles pour les encadrés de progression */
.progression-display {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.chord-progression {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.chord {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.4em;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-family: 'Courier New', monospace;
}

.chord-subdominant {
  background: var(--eti-yellow);
}

.chord-dominant {
  background: var(--eti-orange);
}

.chord-tonic {
  background: var(--eti-red);
}

.chord-major {
  background: var(--eti-green);
  color: white;
}

.chord-minor {
  background: var(--eti-blue);
  color: white;
}

.chord-transition {
  background: var(--eti-green);
  color: white;
}

.arrow {
  font-size: 1.5em;
  color: var(--eti-orange);
  font-weight: bold;
}

.progression-explanation {
  text-align: center;
  font-style: italic;
  color: #666;
  font-size: 1rem;
}

/* Styles pour le sélecteur de cadence */
.cadence-selector {
  margin: 20px 0;
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.cadence-dropdown {
  padding: 10px 15px;
  border: 2px solid var(--eti-orange);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cadence-dropdown:hover {
  border-color: var(--eti-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cadence-dropdown:focus {
  outline: none;
  border-color: var(--eti-red);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Responsive pour le sélecteur */
@media (max-width: 768px) {
  .cadence-selector {
    margin: 15px 0;
    text-align: center;
  }
  
  .cadence-dropdown {
    padding: 8px 12px;
    font-size: 0.9rem;
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .cadence-selector {
    margin: 10px 0;
  }
  
  .cadence-dropdown {
    padding: 6px 10px;
    font-size: 0.85rem;
    max-width: 100%;
  }
}

/* Styles pour l'exemple de cadence */
.cadence-example {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 1px solid #e0e0e0;
}

.cadence-example h3 {
  color: var(--eti-orange);
  margin-bottom: 10px;
  font-size: 1.3em;
}

.cadence-example p {
  color: #666;
  margin-bottom: 20px;
  font-style: italic;
}

/* Styles pour les tablatures alphaTab */
.tab-container {
  width: 100%;
  margin: 20px 0;
}

#alphatab-container {
  width: 100%;
}

.alphatab-player-container {
  width: 100% !important;
}

/* S'assurer que alphaTab prend toute la largeur */
.alphatab-player-container .at-wrap {
  width: 100% !important;
  max-width: none !important;
}

.alphatab-player-container .at-content {
  width: 100% !important;
}

.alphatab-player-container .at-viewport {
  width: 100% !important;
}

/* Numérotation automatique des sections */
.theory-section.seventies {
  counter-increment: section-counter;
}

.theory-section.seventies h2 {
  position: relative;
  padding-left: 50px;
}

/* Amélioration de l'apparence des numéros */
.theory-section.seventies h2::before {
  z-index: 1;
  border: 2px solid white;
}

/* Espacement pour les sections numérotées */
.theory-section.seventies {
  margin-bottom: 30px;
  padding: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 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;
}

@media (max-width: 768px) {
  .compact-songs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Styles pour les sources */
.sources-list {
  list-style: none;
  padding: 0;
}

.sources-list li {
  list-style: none;
}

.sources-list li::before {
  content: none;
}

.source-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.source-link i {
  color: var(--eti-orange);
}

.source-link i:last-child {
  margin-left: auto;
  color: var(--eti-orange);
}

.source-link:hover {
  background: rgba(255, 165, 0, 0.1);
  transform: translateX(5px);
}

/* Styles spécifiques pour la cadence Christophe */
.christophe-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.variant-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.variant-card h3 {
  color: var(--eti-orange);
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: bold;
}

.progression-with-bass {
  margin: 15px 0;
}

.bass-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  font-size: 0.9em;
}

.bass-note {
  padding: 5px 10px;
  background: var(--eti-blue);
  color: white;
  border-radius: 5px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.variant-description {
  font-style: italic;
  color: #666;
  margin-top: 10px;
  font-size: 0.9em;
}

.progression-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.progression-box h3 {
  color: var(--eti-orange);
  margin-bottom: 15px;
  font-size: 1.3em;
  font-weight: bold;
}

.progression-table {
  margin: 15px 0;
  overflow-x: auto;
}

.progression-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progression-table th,
.progression-table td {
  padding: 12px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.progression-table th {
  background: var(--eti-orange);
  color: white;
  font-weight: bold;
}

.progression-table td {
  background: white;
  color: #333;
  font-weight: 500;
}

.info-box {
  background: #e8f4fd;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 4px solid var(--eti-blue);
}

.info-box h3 {
  color: var(--eti-blue);
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: bold;
}

.info-box p {
  color: #333;
  margin-bottom: 10px;
}

.info-box ul {
  margin: 15px 0;
  padding-left: 20px;
}

.info-box li {
  color: #444;
  margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-section h1 {
    font-size: 2.2em;
  }
  
  .theory-section.seventies h2 {
    font-size: 1.5em;
    padding-left: 40px;
  }
  
  .theory-section.seventies h2::before {
    width: 30px;
    height: 30px;
    font-size: 0.8em;
  }
  
  .chord-progression {
    flex-direction: column;
    gap: 10px;
  }
  
  .chord {
    font-size: 1.2em;
    padding: 8px 16px;
  }
  
  .christophe-variants {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .progression-table {
    font-size: 0.9em;
  }
  
  .progression-table th,
  .progression-table td {
    padding: 8px;
  }
}

/* Styles spécifiques pour la cadence phrygienne */
.info-box {
  background-color: var(--eti-yellow);
  border-left: 4px solid var(--eti-orange);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.info-box h3 {
  color: var(--eti-orange);
  margin-top: 0;
}

.info-box p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

/* Timeline historique */
.historical-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.timeline-item {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--eti-orange);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-item h4 {
  color: var(--eti-red);
  margin-bottom: 10px;
  font-size: 1.2em;
}

.timeline-item p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

/* Responsive pour la timeline */
@media (max-width: 768px) {
  .historical-timeline {
    gap: 15px;
  }

  .timeline-item {
    padding: 15px;
  }

  .timeline-item::before {
    left: -8px;
    width: 16px;
    height: 16px;
  }
}
