.pao-app {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2933;
}

.pao-upload-zone {
    border: 2px dashed #c3cbd4;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    background: #fafbfc;
}
.pao-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #2d5be3;
    width: 100%;
}
/* légère indication visuelle au survol de toute la zone */
.pao-upload-zone:hover .pao-file-label {
    color: #234abd;
}
.pao-file-icon img{
	height: 2em !important;
	width: 2em !important;
}

.pao-file-icon {
    font-size: 37px;
}
.pao-file-text{
    font-size: 22px;
}

.pao-file-input {
    display: none;
}

.pao-file-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #6b7684;
}

.pao-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.pao-btn:active {
    transform: scale(0.98);
}

.pao-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pao-btn-verify {
    background: #2d5be3;
    color: #fff;
	font-size: 16px;
    display: flex;
    margin: 15px auto;
    gap: 12px;
    align-items: center;
}

.pao-btn-verify:hover:not(:disabled) {
    background: #234abd;
}

.pao-btn-correct {
    background: #e3812d;
    color: #fff;
}

.pao-btn-correct:hover:not(:disabled) {
    background: #c76a1d;
}

.pao-loading {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 14px;
    color: #4b5563;
}

.pao-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #d8dde3;
    border-top-color: #2d5be3;
    border-radius: 50%;
    animation: pao-spin 0.8s linear infinite;
}

@keyframes pao-spin {
    to { transform: rotate(360deg); }
}

.pao-notification {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pao-notification.pao-success {
    background: #e7f7ee;
    color: #1c7c40;
    border: 1px solid #b6ecc9;
}

.pao-notification.pao-error {
    background: #fdecec;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

.pao-notification.pao-warning {
    background: #fff4e5;
    color: #94510f;
    border: 1px solid #ffdcab;
}

.pao-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e3e7eb;
    font-size: 14px;
}

.pao-result h4 {
    margin: 0 0 10px;
    font-size: 15px;
}

.pao-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 10px;
}

.pao-check {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pao-check-ok { color: #1c7c40; }
.pao-check-ko { color: #b3261e; }

.pao-result ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.pao-result ul li {
    margin-bottom: 4px;
}

.pao-correct-section {
    margin-top: 20px;
    padding: 18px;
    border-radius: 8px;
    background: #fff8f0;
    border: 1px solid #ffdcab;
}

.pao-correct-section h4 {
    margin: 0 0 6px;
}

.pao-hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7684;
}

.pao-correct-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}

.pao-correct-options label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    gap: 4px;
    color: #4b5563;
}

.pao-correct-options input[type="number"] {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
}

.pao-checkbox-label {
    flex-direction: row !important;
    align-items: center;
    gap: 6px !important;
}

.pao-download-frame {
    display: none;
}
.pao-file-preview {
    display: block;
    max-width: 100%;
    max-height: 220px;
    margin: 12px auto 0;
    border-radius: 8px;
    border: 1px solid #e3e7eb;
    object-fit: contain;
}
.pao-hidden {
    display: none !important;
}
.pao-btn-verify[hidden] {
    display: none;
}