/* otp_enroll.css — styles pour la page d'enrôlement OTP.
   Fichier externe requis par la CSP du site (default-src 'self' bloque
   les <style> inline sans 'unsafe-inline'). */

body {
    background-color: #f5f6f8;
}

.otp-wrapper {
    max-width: 960px;
    margin: 4rem auto;
}

.otp-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.otp-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.otp-back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.otp-back-link:hover {
    color: #333;
    text-decoration: underline;
}

.otp-card p.lead {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.otp-card .form-label {
    font-weight: 600;
}

.otp-card .btn-primary {
    width: 100%;
    margin-top: 1.5rem;
}

.otp-error {
    color: #b00020;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.otp-success {
    color: #0a7a2f;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.otp-qr-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
}

.otp-qr-container svg {
    max-width: 100%;
    height: auto;
}

.otp-secret {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    padding: 0.6rem 0.8rem;
    word-break: break-all;
    color: #333;
}

.otp-hint {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.4rem;
}

/* Modal QR — overlay fermable */
.otp-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
}

.otp-modal {
    position: relative;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.otp-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
}

.otp-modal-close:hover {
    color: #333;
}

.otp-modal-hidden {
    display: none;
}

.otp-danger-title {
    color: #b00020;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.otp-rules-banner {
    background: #eef6fc;
    border: 1px solid #cfe4f5;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: #2c5a78;
}

.otp-rules-banner ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.otp-rules-banner li {
    margin-bottom: 0.25rem;
}

/* --- Onglets du portail unifié (v3.1.0) --- */
.otp-tabs {
    margin-top: 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid #dee2e6;
}

.otp-tabs .nav-link {
    color: #555;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.otp-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: none;
}

.otp-tab-panel {
    padding-top: 0.5rem;
}
