.fretboard-container {
    overflow-x: auto;
    border: 4px solid #2a1d15;
    background: #3d2b1f;
    border-radius: 12px;
    padding-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.fretboard {
    display: flex;
    position: relative;
    min-width: 1000px;
    height: 200px;
    margin-top: 20px;
    transition: transform 0.3s ease;
}
.fretboard.left-handed { transform: scaleX(-1); }
.fret-space { flex: 1; position: relative; border-right: 4px solid #bc9d5d; height: 100%; }
.fret-space-0 { flex: 0 0 60px; position: relative; background: #f3f4f6; border-right: 8px solid #d1d5db; }
.string-line { position: absolute; left: 0; right: 0; background: linear-gradient(to bottom, #999, #666, #999); height: 3px; z-index: 1; pointer-events: none; }
.fret-num { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #94a3b8; font-weight: 800; }
.fretboard.left-handed .fret-num { transform: translateX(-50%) scaleX(-1); }

/* Inlays (Repères) */
.inlay { 
    position: absolute; 
    background: #cbd5e1; 
    border-radius: 50%; 
    width: 18px; 
    height: 18px; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    opacity: 0.3; 
    z-index: 0; 
}
/* Centré entre cordes 3 et 4 */
.fret-space .inlay { top: 105px; }

/* Double repère case 12 */
.fret-space-12 .inlay-1 { top: 73px; }
.fret-space-12 .inlay-2 { top: 137px; }

/* Piano */
.keyboard-container { overflow-x: auto; background: #111; border-radius: 12px; padding: 10px; border: 2px solid #333; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.keyboard { display: flex; position: relative; min-width: 900px; height: 120px; }
.key { position: relative; box-sizing: border-box; border: 1px solid #000; cursor: pointer; }
.key.white { height: 100%; width: 30px; background: #fff; border-radius: 0 0 4px 4px; z-index: 1; }
.key.black { height: 60%; width: 20px; background: #000; margin-left: -10px; margin-right: -10px; z-index: 2; border-radius: 0 0 2px 2px; }

/* Marqueurs de notes */
.note-marker { border-radius: 50%; z-index: 10; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; position: absolute; box-shadow: 0 4px 8px rgba(0,0,0,0.6); border: 2px solid #fff; pointer-events: none; }
.fretboard .note-marker { width: 30px; height: 30px; font-size: 12px; left: 50%; transform: translate(-50%, -50%); }
.fretboard.left-handed .note-marker { transform: translate(-50%, -50%) scaleX(-1); }
.keyboard .note-marker { width: 24px; height: 24px; font-size: 10px; bottom: 10px; left: 50%; transform: translateX(-50%); }
.ref-note { background: #3b82f6; }
.target-note { background: #ef4444; }

/* UI Extras */
input[type=range] { accent-color: #3b82f6; }
.success-flash { animation: flash 0.6s ease-out; }
@keyframes flash { 0% { background-color: rgba(34, 197, 94, 0.4); } 100% { background-color: transparent; } }
.toggle-bg:after { content: ''; position: absolute; top: 2px; left: 2px; background: white; border-radius: 99px; height: 20px; width: 20px; transition: all .3s; }
input:checked + .toggle-bg:after { transform: translateX(24px); }
input:checked + .toggle-bg { background-color: #3b82f6; }

/* Styles spécifiques au mode clair pour la lisibilité */
.light-mode-card {
    background-color: #f8fafc !important; /* slate-50 */
    border-color: #e2e8f0 !important; /* slate-200 */
    color: #0f172a !important; /* slate-900 */
}

body.bg-white #cents-display {
    background-color: #f1f5f9; /* slate-100 */
    border-color: #cbd5e1; /* slate-300 */
    color: #1e293b;
}

body.bg-white select, 
body.bg-white .bg-slate-800 {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
}

body.bg-white #interval-display {
    color: #1e293b;
    text-shadow: none;
}

/* À ajouter à la fin du fichier style.css */
body.bg-white #next-btn {
    border: 1px solid #cbd5e1; /* slate-300 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Switch à deux positions pour le sens de la guitare */
#hand-right.active, #hand-left.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#hand-right:not(.active), #hand-left:not(.active) {
    background-color: transparent;
    color: #94a3b8;
}

#hand-right:hover:not(.active), #hand-left:hover:not(.active) {
    color: #cbd5e1;
}
