body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    color: #222;
}

#form1 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.entete-site {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 12px;
    margin-bottom: 12px;
}

.logo-europesoftwares {
    display: block;
    max-width: 100%;
    height: auto;
}

.top-banner {
    width: 100%;
    background: #1e3a5f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.top-banner-content {
    max-width: 800px;
    margin: 0 auto;
    height: 70px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.top-banner .btn-primary {
    background: #ff8c42;
    font-weight: 600;
    transition: background-color .2s;
}

.top-banner .btn-primary:hover {
    background: #e6772f;
}

.site-title {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-nav > a:not(.btn) {
    color: #dbe4ee;
    font-weight: 500;
    text-decoration: none;
}

.site-nav > a:not(.btn):hover {
    color: #fff;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
    flex: 1;
}

.site-footer {
    background: #1e3a5f;
    color: #cbd5e1;
    text-align: center;
    padding: 18px 0;
    font-size: 13px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.header h1 {
    margin: 0;
    font-size: 26px;
    color: #1f2d3d;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #1f2d3d;
}

.card h3 {
    margin-top: 0;
}

.desc {
    color: #555;
}

.meta {
    color: #888;
    font-size: 13px;
}

.actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: #e2e6ea;
    color: #333;
    font-family: inherit;
}

.btn-primary {
    background: #2f6fed;
    color: #fff;
}

.btn-secondary {
    background: #eef1f5;
    color: #333;
}

.btn-danger {
    background: #fdeceb;
    color: #c0392b;
}

.input {
    width: 100%;
    padding: 9px 12px;
    margin: 6px 0 16px;
    border: 1px solid #d7dce1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}

label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

.error {
    color: #c0392b;
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.empty {
    text-align: center;
    color: #888;
    padding: 40px;
}

.question-preview {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.question-preview:last-child {
    border-bottom: none;
}

.question-preview ul {
    margin: 6px 0 0;
    padding-left: 20px;
    color: #555;
}

.result-row {
    margin-bottom: 14px;
}

.result-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
}

.bar-bg {
    background: #eef1f5;
    border-radius: 6px;
    height: 14px;
    overflow: hidden;
}

.bar-fill {
    background: #2f6fed;
    height: 100%;
    border-radius: 6px;
    transition: width .3s ease;
}

.alert {
    background: #eafaf1;
    color: #1e824c;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.rblChoices label {
    font-weight: normal;
    display: block;
    margin: 4px 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 28, 38, 0.55);
}

.modal-box {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}

.modal-box h2 {
    margin: 0 0 8px;
    color: #1f2d3d;
}

@media (max-width: 560px) {
    .top-banner-content {
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        font-size: 22px;
    }

    .site-nav {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .result-label {
        display: block;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}
