/*
 ========================================================================
 NOM DU FICHIER : style.css (Nom de développement : style_v8_19.css)
 VERSION        : v8
 SESSION        : 19
 INTERFACE      : Lecteur Vidéo Embarqué (Architecture des Espaces - Part 1)
 DESCRIPTIF     : Structure CSS v8. Aligne l'isolation des calques, 
                  neutralise les pointer-events du message d'aide pour le 
                  double-clic et configure le bouclier isolant de veille.
 ========================================================================
*/

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    overflow: hidden;
}

.player-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000000;
    overflow: hidden;
    font-family: Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

.player-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); 
    z-index: 8; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CORRECTION v8 : pointer-events none évite que le message bloque le double-clic */
.shield-message {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.shield-message.visible {
    opacity: 1;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    z-index: 10; 
}

.overlay-loader { background-color: rgba(0, 0, 0, 0.6); }
.overlay-error { background-color: rgba(0, 0, 0, 0.85); padding: 20px; text-align: center; }

.btn-retry {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

.end-interface {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    z-index: 4; 
}

.btn-center-replay, .btn-center-mute {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

/*
 ========================================================================
 NOM DU FICHIER : style.css (Nom de développement : style_v8_19.css)
 VERSION        : v8
 SESSION        : 19
 INTERFACE      : Lecteur Vidéo Embarqué (Architecture des Espaces - Part 2)
 DESCRIPTIF     : Structure CSS v8. Verrouille géométriquement la jauge 
                  à une hauteur fixe pour libérer les boutons avance/recul.
 ========================================================================
*/

.player-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    padding: 15px 15px 15px 15px;
    box-sizing: border-box;
    z-index: 6; 
}

/* CORRECTION v8 : zone isolée à 20px de hauteur maximum */
.progress-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
    margin-bottom: 15px;
    height: 20px;
}

.time-display {
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
}

.progress-container {
    flex-grow: 1;
    height: 100%; 
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.progress-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.progress-bar-filled {
    position: relative;
    height: 4px;
    background-color: #ff0000;
    border-radius: 2px;
    width: 0%;
    pointer-events: none; 
}

.progress-thumb {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
}

.controls-panel {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px; 
    width: 100%;
}

.btn-ctrl {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-repeat.enabled { color: #00ff00; font-weight: bold; }
.js-btn-mute.muted { color: #ffaa00; }

.js-player-container:not(.state-ended) .js-end-interface { display: none !important; }
.js-player-container.state-ended .js-player-controls-bar { display: none !important; }


