:root {
    --tmq-bg: #f5f7fb;
    --tmq-card: #ffffff;
    --tmq-primary: #0b7dbe;
    --tmq-primary-dark: #085f90;
    --tmq-accent: #ff7f11;
    --tmq-text: #1e293b;
    --tmq-muted: #64748b;
    --tmq-border: #dbe3ef;
    --tmq-success: #147c4f;
}

#top_metier_quiz,
.top_metier_quiz2 {
    background: linear-gradient(180deg, #ffffff 0%, var(--tmq-bg) 100%);
    border: 1px solid var(--tmq-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(2, 36, 70, 0.08);
}

.tmq-title {
    margin: 0 0 12px;
    color: var(--tmq-text);
    letter-spacing: 0.2px;
}

.tmq-progress {
    height: 10px;
    border-radius: 999px;
    background: #e8eef8;
    overflow: hidden;
    margin-bottom: 8px;
}

.tmq-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--tmq-primary), var(--tmq-accent));
    transition: width 240ms ease;
}

.tmq-progress-label {
    margin: 0 0 16px;
    color: var(--tmq-muted);
    font-size: 14px;
}

.tmq-question-card {
    margin: 0 0 14px;
    background: var(--tmq-card);
    border: 1px solid var(--tmq-border);
    border-radius: 12px;
    overflow: hidden;
}

.top_metier_quiz_question h3 {
    margin: 0;
    padding: 12px 14px;
    background: #f1f6ff;
    border-bottom: 1px solid var(--tmq-border);
    color: var(--tmq-text);
}

.top_metier_quiz_question_num {
    display: inline-block;
    min-width: 54px;
    color: var(--tmq-primary);
    font-weight: 700;
}

.top_metier_quiz_question_text {
    font-size: 15px;
    color: var(--tmq-text);
}

.top_metier_quiz_question > div {
    text-align: center;
    padding: 8px;
}

.top_metier_quiz_question table {
    width: 100%;
    border-collapse: collapse;
}

.top_metier_quiz_question td {
    border-bottom: 1px dashed #edf1f7;
    padding: 9px 8px;
    vertical-align: middle;
}

.top_metier_quiz_question td:first-child {
    text-align: left;
    width: 90%;
}

.top_metier_quiz_question .text_plus,
.top_metier_quiz_question .text_moins {
    font-weight: 700;
    color: var(--tmq-muted);
}

.top_metier_quiz_question input[type='radio'] {
    transform: scale(1.2);
}

.tmq-submit {
    margin-top: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--tmq-primary), var(--tmq-primary-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
}

.tmq-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

#metiers_list .zigzag {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--tmq-border);
    border-radius: 12px;
    overflow: hidden;
}

#metiers_list .zigzag th,
#metiers_list .zigzag td {
    padding: 10px;
    border-bottom: 1px solid #edf2fa;
}

#metiers_list .zigzag thead th {
    background: #eef5ff;
    color: #123456;
    text-align: left;
}

#metiers_list .zigzag tbody tr:hover {
    background: #f9fbff;
}

.tmq-ad-block {
    margin: 16px 0;
    padding: 12px;
    border: 1px dashed #c7d3e7;
    border-radius: 10px;
    background: #fbfdff;
    text-align: center;
}

.tmq-ad-label {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--tmq-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tmq-ad-placeholder {
    padding: 10px;
    background: #f3f7ff;
    color: #475569;
    border-radius: 8px;
}

.quiz-share-buttons {
    margin: 20px 0;
    text-align: center;
}

.quiz-share-buttons button {
    margin: 5px;
    padding: 8px 14px;
    font-size: 14px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.facebook-button {
    background-color: #3b5998;
}
.twitter-button {
    background-color: #1da1f2;
}
.whatsapp-button {
    background-color: #25d366;
}
.linkedin-button {
    background-color: #0077b5;
}
.instagram-button {
    background-color: #c13584;
}
.sms-button {
    background-color: #6c757d;
}

@media (max-width: 800px) {
    #top_metier_quiz,
    .top_metier_quiz2 {
        padding: 14px;
        border-radius: 12px;
    }

    .top_metier_quiz_question td:first-child {
        width: 80%;
    }

    #metiers_list .zigzag th,
    #metiers_list .zigzag td {
        font-size: 13px;
        padding: 8px 6px;
    }
}
