/* Domini Notaire Portal — Professional document access */
:root {
    --nt-text: #1a1a1a;
    --nt-text-sec: #555;
    --nt-text-muted: #888;
    --nt-border: #e0e0e0;
    --nt-bg: #fafafa;
    --nt-bg-white: #fff;
    --nt-accent: #1a365d;
    --nt-accent-light: #ebf0f7;
    --nt-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

#domini-notaire-app {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--nt-text);
    font-size: 15px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    -webkit-font-smoothing: antialiased;
}

.nt-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.nt-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--nt-border);
    border-top-color: var(--nt-accent);
    border-radius: 50%;
    animation: ntSpin 0.6s linear infinite;
}

@keyframes ntSpin { to { transform: rotate(360deg); } }

.nt-error {
    text-align: center;
    padding: 60px 20px;
}

.nt-error h2 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.nt-error p {
    color: var(--nt-text-sec);
}

/* Header */
.nt-header {
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--nt-accent);
    margin-bottom: 32px;
}

.nt-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--nt-radius);
    object-fit: cover;
    margin-bottom: 16px;
}

.nt-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--nt-accent);
    color: #fff;
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 3px;
    margin-bottom: 16px;
}

.nt-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.nt-meta {
    color: var(--nt-text-sec);
    font-size: 14px;
    font-family: -apple-system, sans-serif;
}

.nt-meta span {
    display: inline-block;
    margin: 0 6px;
    color: var(--nt-border);
}

/* Info box */
.nt-info {
    background: var(--nt-accent-light);
    border-left: 4px solid var(--nt-accent);
    padding: 16px 20px;
    margin-bottom: 32px;
    font-family: -apple-system, sans-serif;
    font-size: 13px;
    color: var(--nt-text-sec);
    line-height: 1.5;
    border-radius: 0 var(--nt-radius) var(--nt-radius) 0;
}

/* Files */
.nt-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--nt-border);
    font-family: -apple-system, sans-serif;
}

.nt-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nt-file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--nt-bg-white);
    border: 1px solid var(--nt-border);
    border-radius: var(--nt-radius);
    transition: box-shadow 0.2s;
}

.nt-file:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nt-file-icon {
    width: 40px;
    height: 40px;
    background: var(--nt-accent-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--nt-accent);
    flex-shrink: 0;
}

.nt-file-info {
    flex: 1;
    min-width: 0;
}

.nt-file-name {
    font-family: -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--nt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nt-file-size {
    font-family: -apple-system, sans-serif;
    font-size: 12px;
    color: var(--nt-text-muted);
    margin-top: 1px;
}

.nt-file-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--nt-accent);
    color: #fff;
    font-family: -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.nt-file-dl:hover {
    background: #142d4f;
    color: #fff;
}

.nt-empty {
    text-align: center;
    padding: 40px;
    color: var(--nt-text-muted);
    font-family: -apple-system, sans-serif;
    font-size: 14px;
}

/* Footer */
.nt-footer {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--nt-border);
    font-family: -apple-system, sans-serif;
    font-size: 12px;
    color: var(--nt-text-muted);
}

@media (max-width: 640px) {
    #domini-notaire-app {
        padding: 24px 16px 40px;
    }
    .nt-file {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .nt-file-icon {
        align-self: center;
    }
    .nt-file-dl {
        justify-content: center;
    }
}
