.tcqir-wrap {
max-width: 820px;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: #1a1a2e;
line-height: 1.6;
} .tcqir-title {
font-size: 1.6rem;
color: #1e3a5f;
margin-bottom: 12px;
border-bottom: 3px solid #1e3a5f;
padding-bottom: 8px;
}
.tcqir-intro {
background: #f0f4ff;
border-left: 4px solid #1e3a5f;
padding: 16px 20px;
border-radius: 6px;
margin-bottom: 28px;
}
.tcqir-intro p { margin: 0; font-size: 0.95rem; } .tcqir-pre-section {
background: #fefce8;
border: 1px solid #fde68a;
border-radius: 8px;
padding: 20px;
margin-bottom: 24px;
}
.tcqir-pre-label { margin: 0 0 14px; font-size: 1rem; }
.tcqir-slider-wrap {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.tcqir-slider-label {
font-size: 0.8rem;
color: #92400e;
white-space: nowrap;
}
.tcqir-pre-buttons {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.tcqir-pre-btn {
cursor: pointer;
}
.tcqir-pre-btn input[type="radio"] {
position: absolute;
opacity: 0;
width: 0;
}
.tcqir-pre-btn span {
display: flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
border: 2px solid #d97706;
border-radius: 50%;
font-weight: 700;
font-size: 0.9rem;
color: #92400e;
transition: all 0.15s ease;
cursor: pointer;
background: #fff;
}
.tcqir-pre-btn input[type="radio"]:checked + span {
background: #d97706;
color: #fff;
border-color: #d97706;
transform: scale(1.1);
}
.tcqir-pre-btn span:hover {
background: #fef3c7;
} .tcqir-instructions {
margin-bottom: 16px;
font-size: 0.9rem;
color: #374151;
}
.tcqir-stem {
margin-top: 8px;
font-size: 1rem;
color: #1e3a5f;
} .tcqir-col-headers {
display: grid;
grid-template-columns: 1fr repeat(4, 70px);
text-align: center;
font-size: 0.75rem;
font-weight: 700;
color: #6b7280;
text-transform: uppercase;
letter-spacing: 0.04em;
padding: 0 0 6px 0;
border-bottom: 2px solid #e5e7eb;
margin-bottom: 4px;
} .tcqir-col-headers span:first-child { text-align: left; } .tcqir-items { margin-bottom: 24px; }
.tcqir-item {
display: grid;
grid-template-columns: 1fr repeat(4, 70px);
align-items: center;
padding: 10px 4px;
border-bottom: 1px solid #f3f4f6;
transition: background 0.1s;
}
.tcqir-item:nth-child(even) { background: #f9fafb; }
.tcqir-item:hover           { background: #eff6ff; }
.tcqir-item.tcqir-unanswered {
background: #fff1f2 !important;
border-left: 3px solid #ef4444;
}
.tcqir-item-text {
font-size: 0.9rem;
padding-right: 12px;
}
.tcqir-item-num {
font-weight: 700;
color: #1e3a5f;
margin-right: 6px;
font-size: 0.85rem;
}
.tcqir-item-options {
display: contents;
}
.tcqir-option {
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.tcqir-option input[type="radio"] {
position: absolute;
opacity: 0;
width: 0;
}
.tcqir-radio-label { display: none; }
.tcqir-radio-custom {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: 2px solid #d1d5db;
border-radius: 50%;
transition: all 0.15s ease;
background: #fff;
cursor: pointer;
position: relative;
}
.tcqir-radio-custom::after {
content: '';
width: 12px;
height: 12px;
border-radius: 50%;
background: transparent;
transition: background 0.15s;
}
.tcqir-option input[type="radio"]:checked + .tcqir-radio-custom {
border-color: #1e3a5f;
}
.tcqir-option input[type="radio"]:checked + .tcqir-radio-custom::after {
background: #1e3a5f;
}
.tcqir-option input[type="radio"][value="4"]:checked + .tcqir-radio-custom {
border-color: #dc2626;
}
.tcqir-option input[type="radio"][value="4"]:checked + .tcqir-radio-custom::after {
background: #dc2626;
}
.tcqir-option input[type="radio"][value="3"]:checked + .tcqir-radio-custom {
border-color: #ea580c;
}
.tcqir-option input[type="radio"][value="3"]:checked + .tcqir-radio-custom::after {
background: #ea580c;
}
.tcqir-option input[type="radio"][value="2"]:checked + .tcqir-radio-custom {
border-color: #d97706;
}
.tcqir-option input[type="radio"][value="2"]:checked + .tcqir-radio-custom::after {
background: #d97706;
}
.tcqir-radio-custom:hover { border-color: #1e3a5f; background: #eff6ff; } .tcqir-error {
background: #fee2e2;
border: 1px solid #fca5a5;
border-radius: 6px;
padding: 12px 16px;
color: #991b1b;
font-size: 0.9rem;
margin-bottom: 16px;
} .tcqir-submit-wrap { text-align: center; margin: 24px 0; }
.tcqir-btn-submit {
background: #1e3a5f;
color: #fff;
border: none;
padding: 14px 40px;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s, transform 0.1s;
font-family: inherit;
}
.tcqir-btn-submit:hover   { background: #1d4ed8; }
.tcqir-btn-submit:active  { transform: scale(0.98); }
.tcqir-btn-submit:disabled {
background: #9ca3af;
cursor: not-allowed;
} .tcqir-results {
margin-top: 32px;
padding-top: 24px;
border-top: 3px solid #1e3a5f;
animation: tcqirFadeIn 0.4s ease;
}
@keyframes tcqirFadeIn {
from { opacity: 0; transform: translateY(10px); }
to   { opacity: 1; transform: translateY(0);    }
}
.tcqir-results-title {
font-size: 1.4rem;
color: #1e3a5f;
margin-bottom: 20px;
} .tcqir-result-pre {
display: flex;
align-items: center;
gap: 16px;
background: #fefce8;
border: 1px solid #fde68a;
border-radius: 8px;
padding: 14px 18px;
margin-bottom: 24px;
font-size: 0.95rem;
}
.tcqir-pre-val {
font-size: 2rem;
font-weight: 700;
color: #d97706;
min-width: 56px;
text-align: center;
} .tcqir-subscales { display: grid; gap: 14px; margin-bottom: 24px; }
.tcqir-subscale-card {
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 14px 16px;
}
.tcqir-subscale-head {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 8px;
}
.tcqir-subscale-name  { font-weight: 700; font-size: 1rem; }
.tcqir-subscale-score { font-size: 0.85rem; color: #6b7280; }
.tcqir-bar-bg {
background: #e5e7eb;
border-radius: 4px;
height: 10px;
margin-bottom: 8px;
overflow: hidden;
}
.tcqir-bar-fill {
height: 10px;
border-radius: 4px;
transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.tcqir-badge {
display: inline-block;
padding: 2px 10px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 700;
margin-bottom: 8px;
}
.tcqir-badge-faible { background: #dcfce7; color: #166534; }
.tcqir-badge-modere { background: #fef9c3; color: #854d0e; }
.tcqir-badge-eleve  { background: #fee2e2; color: #991b1b; }
.tcqir-interp {
font-size: 0.88rem;
color: #374151;
line-height: 1.55;
} .tcqir-global-box {
background: #eff6ff;
border: 1px solid #bfdbfe;
border-radius: 8px;
padding: 16px 20px;
margin-bottom: 24px;
}
.tcqir-global-box h3 {
color: #1e3a5f;
margin-bottom: 10px;
font-size: 1rem;
}
.tcqir-global-box p {
font-size: 0.9rem;
line-height: 1.6;
margin-bottom: 10px;
color: #1e3a5f;
}
.tcqir-global-box p:last-child { margin-bottom: 0; } .tcqir-download-wrap { text-align: center; margin: 20px 0; }
.tcqir-btn-download {
display: inline-block;
background: #10b981;
color: #fff;
padding: 12px 32px;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
transition: background 0.2s;
}
.tcqir-btn-download:hover {
background: #059669;
color: #fff;
text-decoration: none;
}
.tcqir-disclaimer {
font-size: 0.8rem;
color: #9ca3af;
text-align: center;
font-style: italic;
margin-top: 12px;
} @media (max-width: 600px) {
.tcqir-col-headers {
display: none;
}
.tcqir-item {
display: block;
padding: 12px 8px;
}
.tcqir-item-options {
display: flex;
justify-content: space-around;
margin-top: 10px;
}
.tcqir-option {
flex-direction: column;
gap: 4px;
}
.tcqir-radio-label {
display: block;
font-size: 0.7rem;
text-align: center;
color: #6b7280;
}
.tcqir-pre-buttons { justify-content: center; }
.tcqir-btn-submit { width: 100%; }
}