/* LONG READ */

.long-read-photo-full {
    width: 100%;
	height: auto;

}
.long-read-img-full-txt {
    position: fixed;
    left: 20px;
    bottom: 20px;
    max-width: 500px;
    z-index: 99999999999999;
    background-color: #111;
}
.long-read-img-full-txt p {
    color: #fff;
    text-align: left;
    padding: 10px 20px 0px 20px;
    letter-spacing: 1.5px;
    font-size: 10px;
    line-height: 20px;
}


.fixed-audio-player figcaption {
    font-size: 14px;
    font-weight: bold;
}

.fixed-audio-player audio {
    width: 250px;
}
/* Player principal - État par défaut (VISIBLE) */
.main-audio-player {
    text-align: center;
    margin-bottom: 50px;
    height: auto; /* Laissez le contenu définir la hauteur ou mettez min-height: 60px */
min-height: 60px; /* IMPORTANT : garde l'espace même quand le player part */
    transition: opacity 0.3s;
    opacity: 1;
    transform: translateY(0);
}

/* Classe pour cacher le player principal */
.main-audio-player.hidden {
opacity: 0;
    /* Ne pas mettre display: none ici */
    transform: translateY(-20px);
    pointer-events: none;
}

@keyframes slideIn {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 20px;
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        bottom: 20px;
        opacity: 1;
    }
    to {
        bottom: -100px;
        opacity: 0;
    }
}

/* Player flottant */
.fixed-audio-player {
display: none;
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 7;
background: white;
padding: 10px;
border-radius: 10px;
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Apparition fluide */
.fixed-audio-player.show {
    animation: slideIn 0.4s ease-out forwards;
    pointer-events: auto; /* Active les interactions */
}

/* Disparition fluide */
.fixed-audio-player.hide {
    animation: slideOut 0.4s ease-out forwards;
    pointer-events: none; /* Désactive les interactions */
}
/* Styles pour le volume */
input[type="range"] {
    width: 100px;
    margin-left: 10px;
}
.long-read-audio {
    position: relative;
}


/* --- Bouton Détail en bas à droite --- */
.project-detail-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 50;
    
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0;
    
    mix-blend-mode: difference;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-detail-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* --- Panneau latéral (Drawer) --- */
.project-sidebar {
    position: fixed;
    top: 0;
    right: -450px; /* Caché par défaut hors de l'écran */
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background-color: #ffffff;
    color: #000000;
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.project-sidebar.is-open {
    right: 0; /* Apparaît à l'écran */
}

/* Contenu interne du panneau */
.project-sidebar-content {
    padding: 60px 40px;
    overflow-y: auto;
    height: 100%;
    font-size: 15px;
    line-height: 1.6;
}

/* Bouton fermer (croix) */
.close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #000000;
    z-index: 10;
    line-height: 1;
}

.close-sidebar:hover {
    opacity: 0.6;
}

/* Fond semi-transparent derrière le panneau */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}