/**
 * TROUVE ACCORD - Manche simplifié
 * Positionnement absolu : lignes + ronds
 */

:root {
    --color-background: #FFF8DC;
    --color-string: black;
    --color-fret: black;
    --color-nut: black;
    --color-dot: #1F2937;
    --color-dot-selected: #F59E0B;
    --color-dot-text: white;
    
    --string-spacing: 50px;  /* Distance entre les cordes */
    --fret-spacing: 90px;    /* Distance entre les frettes */
}

/* ============================================
   RÉGLAGES PAR INSTRUMENT
   ============================================ */
.fretboard-guitare {
    --string-spacing: 50px;
}

.fretboard-ukulele {
    --string-spacing: 55px;
}

.fretboard-charango {
    --string-spacing: 52px;
}

/* ============================================
   CONTENEUR DU MANCHE
   ============================================ */
.fretboard-interactive {
    background: var(--color-background);
    padding: 20px;
    display: inline-block;
    position: relative;
    margin-left: 70px;
    margin-top : 40px;
    margin-bottom : 50px;
    
    
    
}

/* ============================================
   CORDES (lignes horizontales)
   ============================================ */
.fretboard-string {
    position: absolute;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--color-string);
    z-index: 5;
}

/* ============================================
   FRETTES (lignes verticales)
   ============================================ */
.fretboard-fret {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: grey;
}

/* Sillet (frette 0) plus épaisse */
.fretboard-fret.nut {
    width: 10px;
    background: var(--color-nut);
}

/* ============================================
   NOTES (ronds sur les intersections)
   ============================================ */
.fretboard-dot {
    position: absolute;
    width: 35px;
    height: 35px;
    background: var(--color-dot);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dot-text);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    transform: translate(-180%, -50%);
    z-index: 10;
}

.fretboard-dot:hover {
    transform: translate(-180%, -50%) scale(1.1);
}

.fretboard-dot.selected {
    background: var(--color-dot-selected);
}

/* ============================================
   REPÈRES DE FRETTES
   ============================================ */
.fretboard-markers {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    margin-top: 10px;
}

.fretboard-marker {
    width: var(--fret-spacing);
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    color: black;
}

.fretboard-marker.empty {
    color: transparent;
}