/*BASE*/
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    font-family: sans-serif; /* Ajout d'une police par défaut */
}

/*BLOC : FLUX VIDÉO*/
.flux-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: scaleX(-1); /* Effet miroir */
    opacity: 1;
    z-index: 0;
    transition: opacity 1s ease;
}

/*BLOC : CONTENEUR CANVAS*/
.conteneur-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/*BLOC : INDICATEUR D'ENREGISTREMENT*/
.indicateur-rec {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    color: red;
    font-family: monospace;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicateur-rec__point {
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    animation: clignotement 1s infinite;
}

@keyframes clignotement {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/*BLOC : INTERFACE (Barre du bas)*/
.interface {
    position: fixed;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
}

.interface__groupe-boutons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1rem;
    pointer-events: auto;
}

/*BLOC : BOUTON (Styles communs)*/
.bouton {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.bouton__icone {
    width: 20px;
    height: 20px;
}

/*Modifieurs*/
.bouton--bleu:hover {
    background-color: #2563eb; 
    border-color: #2563eb;
}

.bouton--jaune:hover {
    background-color: #ca8a04; 
    border-color: #ca8a04;
}

.bouton--rouge:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/*BLOC : MODALE (Popup)*/
.modale {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Modifieur pour l'état ouvert */
.modale--ouverte {
    visibility: visible;
    opacity: 1;
}

.modale__contenu {
    background-color: white;
    color: black;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 24rem;
    width: 100%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* Quand la modale est ouverte, le contenu grandit */
.modale--ouverte .modale__contenu {
    transform: scale(1);
}

.modale__titre {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1f2937;
}

.modale__nom-fichier {
    font-family: monospace;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    word-break: break-all;
}

.modale__conteneur-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modale__qr {
    padding: 0.5rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.modale__bouton-fermer {
    width: 100%;
    background-color: #111827;
    color: white;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modale__bouton-fermer:hover {
    background-color: #374151;
}