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

/* ─────────────────────────────────────────
   SAPHEER – Styles formulaires internes
   Couleur principale : #294457
   Police : Lato
───────────────────────────────────────── */

/* ── Wrapper global ── */
#ch-app * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#ch-app {
    font-family: 'Lato', sans-serif;
    background: #0f1e2a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ── Card ── */
#ch-card {
    background: #f4f7f9;
    border-radius: 4px;
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
}

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

#ch-progress-bar {
    height: 5px;
    background: #294457;
    transition: width 0.4s ease;
    width: 0%;
}

/* ── Header ── */
#ch-header {
    background: #294457;
    padding: 20px 28px 18px;
}

#ch-header .label {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 4px;
}

#ch-header h1 {
    font-family: 'Lato', sans-serif;
    font-size: 22px;
    color: #fff;
    font-weight: 900;
}

/* ── Écran intro ── */
#ch-intro {
    padding: 32px 28px 28px;
}

#ch-intro .intro-date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #5a7a90;
    margin-bottom: 24px;
}

#ch-intro label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4a6a80;
    margin-bottom: 8px;
}

#ch-employee {
    width: 100%;
    padding: 13px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #0f1e2a;
    background: #fff;
    border: 2px solid #c5d3dc;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7a90' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 28px;
}

#ch-employee:focus {
    outline: none;
    border-color: #294457;
}

/* ── Bouton démarrer ── */
#ch-start-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #294457;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 14px 28px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
    opacity: 0.4;
    pointer-events: none;
}

#ch-start-btn.active {
    opacity: 1;
    pointer-events: all;
}

#ch-start-btn:hover { background: #1e3344; }
#ch-start-btn:active { transform: scale(0.98); }

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

#ch-counter {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #5a7a90;
    margin-bottom: 6px;
}

#ch-section-title {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #294457;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#ch-question {
    font-size: 20px;
    font-weight: 400;
    color: #0f1e2a;
    line-height: 1.4;
    margin-bottom: 32px;
    min-height: 56px;
}

/* ── Bouton C'est fait ── */
#ch-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #294457;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 14px 28px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

#ch-btn:hover { background: #1e3344; }
#ch-btn:active { transform: scale(0.98); }
#ch-btn .arrow { font-size: 18px; }

/* ── Écran validation ── */
#ch-validate {
    display: none;
    text-align: center;
    padding: 40px 28px;
}

#ch-validate .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

#ch-validate h2 {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #0f1e2a;
    margin-bottom: 8px;
}

#ch-validate p {
    font-size: 14px;
    color: #4a6a80;
    margin-bottom: 28px;
    line-height: 1.5;
}

#ch-validate-btn {
    background: #0f1e2a;
    color: #f4f7f9;
    border: none;
    border-radius: 3px;
    padding: 15px 36px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

#ch-validate-btn:hover { background: #1e3344; }

/* ── Écran done ── */
#ch-done {
    display: none;
    text-align: center;
    padding: 40px 28px;
}

#ch-done .checkmark {
    width: 64px;
    height: 64px;
    background: #294457;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
}

#ch-done h2 {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #0f1e2a;
    margin-bottom: 8px;
}

#ch-done p {
    font-size: 14px;
    color: #4a6a80;
    line-height: 1.5;
}

#ch-done .timestamp {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #5a7a90;
    text-transform: uppercase;
}

/* ── Footer ── */
#ch-footer {
    display: none;
    padding: 0 28px 20px;
    align-items: center;
    justify-content: space-between;
}

#ch-footer .steps {
    font-size: 12px;
    color: #5a7a90;
}

#ch-footer .dots {
    display: flex;
    gap: 4px;
}

#ch-footer .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b8ccd8;
    transition: background 0.3s;
}

#ch-footer .dot.done {
    background: #294457;
}
