/* --- STRUCTURE GLOBALE --- */
.labo-body { 
    background-color: #071525;
    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: #071220;
    padding: 25px;
    color: white;
    overflow-y: auto;
    border-right: 1px solid #382c1a;
    z-index: 10;
}

/* --- ZONE DE DROITE (Fond gris clair) --- */
.preview-area {
    flex-grow: 1;
    background-color: #0d2137; 
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: 3px solid #e8820c; padding-bottom: 20px; margin-bottom: 30px; }
.cert-tag {
    background: #071525;
    color: #e8820c;
    padding: 5px 14px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 5px;
    border: 1px solid #e8820c;
    text-transform: uppercase;
    font-family: 'Oswald','Rajdhani',sans-serif;
}
.cert-main-title {
    font-size: 26px;
    margin: 0;
    color: #071525;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
    font-family: 'Oswald','Rajdhani',sans-serif;
}
.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: #382c1a; 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 #c8b07a; min-width: 250px; padding-top: 10px; font-weight: bold; font-style: italic; text-align: left;}
.round-stamp { border: 2px solid #e8820c; border-radius: 4px; padding: 8px; text-align: center; font-size: 10px; font-weight: 900; color: #071525; width: 130px; background: #f0f4f8; box-shadow: 0 0 8px rgba(232,130,12,0.2); }
.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: 20px; font-weight: 900; margin-bottom: 25px; text-transform: uppercase; color: #e8820c !important; letter-spacing: 3px; font-family: 'Oswald','Rajdhani',sans-serif; }
.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: #0d2137; border: 1px solid #382c1a; 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: #0a1929; padding: 25px; border-radius: 10px; width: 500px; text-align: center; border: 1px solid #f5a030; color: white; }
#direct-link { margin: 15px 0; background: #071525; border: 1px solid #143050; color: #f5a030; text-align: center; width: 100%; padding: 8px; box-sizing: border-box;}
.btn-copy { background: #f5a030; color: #071525; border: none; padding: 10px; border-radius: 4px; cursor: pointer; font-weight: bold; width: 48%;}
.btn-close { background: #5a4830; 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;}
