/* ===== MODALE PLEIN ÉCRAN ===== */

.capo-fullscreen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(0, 0, 0, 0.7);
    padding: var(--padding-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.capo-fullscreen-overlay.active {
    display: flex;
    align-items: stretch;
}

.capo-fullscreen-modal {
    position: relative;
    background: #fffef5;
    border: 1px solid #d4cc88;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 4rem);
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    animation: slideIn var(--transition-normale) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.capo-fullscreen-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: #fff;
    border: 1px solid #d4cc88;
    border-radius: 50%;
    color: #808000;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
    z-index: calc(var(--z-modal) + 2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.capo-fullscreen-close:hover {
    background: #f5f0d0;
}

.capo-fullscreen-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    position: relative;
    border-radius: 10px;
}

#capoFullscreenContent {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

#capoFullscreenContent .capo-chord-highlight {
    color: #5a7a00;
    font-weight: 700;
}

/* ===== WIDGET DÉFILEMENT AUTOMATIQUE ===== */

.capo-scroll-widget {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #d4cc88;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: calc(var(--z-modal) + 1);
}

.capo-scroll-btn {
    background: #f5f0d0;
    border: none;
    color: #808000;
    font-size: 18px;
    font-weight: 700;
    width: 2.2rem;
    height: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.capo-scroll-btn:hover { background: #e8e0a0; }
.capo-scroll-btn:active { background: #d4cc88; }

.capo-scroll-speed {
    width: 2.2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #808000;
    background: #fffef5;
    border-top: 1px solid #e8e0a0;
    border-bottom: 1px solid #e8e0a0;
}

/* ===== BOUTON PLEIN ÉCRAN ===== */

.capo-btn-fullscreen {
    background: transparent;
    border: 1px solid #d4cc88;
    border-radius: 6px;
    color: #808000;
    font-size: 13px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s, border-color 0.15s;
}

.capo-btn-fullscreen:hover {
    background: #f5f0d0;
    border-color: #808000;
}
