/* --- STRUCTURE GLOBALE --- */
.labo-body { 
    background-color: #0d1117;
    margin: 0;
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.interface-container { 
    display: flex; 
    width: 100%; 
    height: 100%;
} 

/* --- SIDEBAR (Bloc gauche foncé) --- */
.sidebar {
    width: 420px;
    min-width: 420px;
    background-color: #0a1324;
    padding: 25px;
    color: white;
    overflow-y: auto;
    border-right: 1px solid #1e293b;
    z-index: 10;
}

/* --- ZONE DE DROITE (Fond gris clair) --- */
.preview-area {
    flex-grow: 1;
    background-color: #d1d5db; 
display: flex;
    justify-content: center; 
    align-items: center;     
    height: 100vh;
    overflow-y: auto;
}

/* --- LE DOCUMENT (La feuille blanche centrée) --- */
#document {
    width: 800px !important;
    min-width: 800px !important;
    height: auto !important;      
    min-height: 0 !important;     
    background: white !important;
    padding: 40px !important;
    color: #111 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    box-sizing: border-box;
    margin: 0;
}
/* --- ELEMENTS DU DOCUMENT --- */
.header-cert { display: flex; align-items: center; gap: 20px; border-bottom: 2px solid #eee; padding-bottom: 20px; margin-bottom: 30px; }
.cert-tag { 
    background: #0a1324; 
    color: white; 
    padding: 6px 15px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: bold; 
    letter-spacing: 2px; 
    display: inline-block;
    margin-bottom: 5px;
}
.cert-main-title { 
    font-size: 28px; 
    margin: 0; 
    color: #0a1324; 
    text-transform: uppercase; 
    font-weight: 900; 
    line-height: 1;
}
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.cert-box { border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; background: #fff; }
.cert-box label { color: #64748b; font-size: 10px; text-transform: uppercase; font-weight: bold; margin-bottom: 5px; display: block; text-align: left;}
.cert-val { font-size: 16px; font-weight: 600; color: #1e293b; min-height: 1.2em; text-align: left;}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px; 
}.cert-signature { border-top: 1px solid #cbd5e1; min-width: 250px; padding-top: 10px; font-weight: bold; font-style: italic; text-align: left;}
.round-stamp { border: 2px solid #0a1324; border-radius: 15px; padding: 10px; text-align: center; font-size: 10px; font-weight: bold; color: #0a1324; width: 120px; }
.qr-code { width: 100px; height: 100px; margin-bottom: 5px; display: block; margin: 0 auto;}

.legal-text {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 30px;
    margin-bottom: 0 !important; 
    padding-top: 15px;
    border-top: 1px dotted #e2e8f0;
    text-align: justify;
}
/* --- BOUTONS SIDEBAR --- */
.sidebar-title { font-size: 22px; font-weight: bold; margin-bottom: 25px; text-transform: uppercase; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 11px; font-weight: bold; color: #94a3b8; text-transform: uppercase; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px; background: #121c2f; border: 1px solid #1e293b; color: white; border-radius: 4px; box-sizing: border-box;
}

.btn-image { background: white; color: black; border: 1px solid #ccc; font-weight: bold; cursor: pointer; padding: 12px; width: 100%; margin-top: 20px; text-transform: uppercase; font-size: 11px;}
.btn-discord { background: #5865F2; color: white; border: none; font-weight: bold; cursor: pointer; padding: 12px; width: 100%; margin-top: 10px; text-transform: uppercase; font-size: 11px; border-radius: 4px;}

/* --- POPUP --- */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.popup-content { background: #112240; padding: 25px; border-radius: 10px; width: 500px; text-align: center; border: 1px solid #64ffda; color: white; }
#direct-link { margin: 15px 0; background: #0a192f; border: 1px solid #233554; color: #64ffda; text-align: center; width: 100%; padding: 8px; box-sizing: border-box;}
.btn-copy { background: #64ffda; color: #0a192f; border: none; padding: 10px; border-radius: 4px; cursor: pointer; font-weight: bold; width: 48%;}
.btn-close { background: #4b5563; color: white; border: none; padding: 10px; border-radius: 4px; cursor: pointer; width: 48%;}

.radio-nav-classic { display: flex; flex-wrap: wrap; gap: 15px; padding: 10px 0; }
.radio-nav-classic label { color: white !important; font-size: 13px !important; display: flex; align-items: center; gap: 5px; cursor: pointer; text-transform: none !important;}
