@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* ─────────────────────────────────────────
   NOVENEXT – Questionnaire Maturité IA
   Couleur principale : #314ac7
   Police : Inter
───────────────────────────────────────── */

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

#nv-app {
    font-family: 'Inter', Arial, sans-serif;
    background: #eef1fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 16px 60px;
}

/* ── Card ── */
#nv-card {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(49, 74, 199, 0.12);
}

/* ── Barre de progression ── */
#nv-progress-wrap {
    background: #dce3f8;
    height: 5px;
}

#nv-progress-bar {
    height: 5px;
    background: #314ac7;
    transition: width 0.4s ease;
    width: 0%;
}

/* ── Header ── */
#nv-header {
    background: #314ac7;
    padding: 28px 36px 24px;
}

#nv-header .nv-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

#nv-header h1 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

#nv-header .nv-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* ── Écran identité ── */
#nv-identity {
    padding: 32px 36px 28px;
}

.nv-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nv-field-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 6px;
}

.nv-field-group input {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    color: #111;
    background: #fff;
    border: 1.5px solid #ccd3ef;
    border-radius: 5px;
    transition: border-color 0.2s;
    appearance: none;
}

.nv-field-group input:focus {
    outline: none;
    border-color: #314ac7;
}

.nv-req  { color: #e03535; font-weight: 700; }
.nv-opt  { font-size: 11px; color: #888; font-weight: 400; letter-spacing: 0; text-transform: none; }

.nv-field-err {
    font-size: 12px;
    color: #e03535;
    margin-top: 5px;
    display: none;
}

/* ── Bouton démarrer ── */
#nv-start-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #314ac7;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 14px 28px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}

#nv-start-btn:hover  { background: #2339a8; }
#nv-start-btn:active { transform: scale(0.98); }

.nv-arrow { font-size: 18px; }

/* ── Corps questions ── */
#nv-body {
    display: none;
    padding: 32px 36px 28px;
}

.nv-question { display: none; }
.nv-question.active { display: block; }

.nv-q-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #314ac7;
    margin-bottom: 8px;
}

.nv-q-text {
    font-size: 18px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    margin-bottom: 6px;
}

.nv-q-hint {
    font-size: 13px;
    color: #777;
    margin-bottom: 16px;
}

.nv-q-text + .nv-pills,
.nv-q-text + .nv-q-err {
    margin-top: 16px;
}

/* ── Pills ── */
.nv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.nv-pill {
    border: 1.5px solid #ccd3ef;
    border-radius: 999px;
    padding: 9px 18px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.nv-pill:hover {
    border-color: #314ac7;
    background: #f0f3fd;
}

.nv-pill.selected {
    background: #314ac7;
    border-color: #314ac7;
    color: #fff;
}

.nv-q-err {
    font-size: 12px;
    color: #e03535;
    margin-top: 6px;
    display: none;
}

/* ── Textarea Q12 ── */
#nv-q12-text {
    width: 100%;
    min-height: 110px;
    border: 1.5px solid #ccd3ef;
    border-radius: 5px;
    padding: 12px 14px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #111;
    resize: vertical;
    margin-top: 16px;
    transition: border-color 0.2s;
}

#nv-q12-text:focus {
    outline: none;
    border-color: #314ac7;
}

/* ── Navigation ── */
#nv-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eef0f8;
}

#nv-btn-prev,
#nv-btn-next {
    border: 1.5px solid #ccd3ef;
    border-radius: 5px;
    padding: 11px 22px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
}

#nv-btn-prev:hover { background: #f5f6fc; }
#nv-btn-prev:disabled { opacity: 0.35; cursor: not-allowed; }

#nv-btn-next {
    background: #314ac7;
    color: #fff;
    border-color: #314ac7;
    font-weight: 700;
}

#nv-btn-next:hover { background: #2339a8; border-color: #2339a8; }

/* ── Écran validation ── */
#nv-validate {
    display: none;
    text-align: center;
    padding: 48px 36px;
}

.nv-check-icon {
    width: 64px;
    height: 64px;
    background: #314ac7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
    font-weight: 700;
}

#nv-validate h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

#nv-validate p {
    font-size: 14px;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.5;
}

#nv-validate-btn {
    background: #314ac7;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 15px 36px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

#nv-validate-btn:hover    { background: #2339a8; }
#nv-validate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Écran done ── */
#nv-done {
    display: none;
    text-align: center;
    padding: 48px 36px;
}

.nv-done-icon {
    width: 64px;
    height: 64px;
    background: #314ac7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
    font-weight: 700;
}

#nv-done h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

#nv-done p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.nv-timestamp {
    margin-top: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #314ac7;
    text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    #nv-app { padding: 16px 8px 40px; }
    #nv-header, #nv-identity, #nv-body { padding-left: 20px; padding-right: 20px; }
    #nv-validate, #nv-done { padding: 36px 20px; }
    .nv-pill { font-size: 13px; padding: 8px 14px; }
    #nv-header h1 { font-size: 20px; }
    .nv-q-text { font-size: 16px; }
}
