/* Quiz Score — Frontend CSS */

.qs-frontend {
    max-width: 560px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111;
}

/* Header */
.qs-f-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #e3c83e;
    background: #fee0421a;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
}
.qs-f-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.3;
}
.qs-f-sub {
    font-size: 14px;
    color: #666;
    margin: 0 0 22px;
    line-height: 1.6;
}

/* Progress */
.qs-f-progress-wrap { margin-bottom: 28px; }
.qs-f-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 7px;
}
.qs-f-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.qs-f-fill {
    height: 100%;
    background: #167572;
    border-radius: 99px;
    transition: width .4s ease;
}

/* Steps */
.qs-f-step { display: none; }
.qs-f-step.active { display: block; }

.qs-f-qlabel {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #1b7a76;
    margin: 0 0 8px;
}
.qs-f-qtitle {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    margin: 0 0 18px;
    line-height: 1.45;
}

/* Options */
.qs-f-options { display: flex; flex-direction: column; gap: 10px; }
.qs-f-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}
.qs-f-option:hover {     border-color: #177773;
    background: #1a79752b; }
.qs-f-option.selected {
    border-color: #177773;
    background: #1a79752b;
}
.qs-f-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all .15s;
    position: relative;
}
.qs-f-option.selected .qs-f-dot {
    border-color: #146a68;
    background: #1c7b76;
}
.qs-f-option.selected .qs-f-dot::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.qs-f-opt-text { font-size: 14px; color: #111; line-height: 1.45; }

/* Navigation */
.qs-f-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
}
.qs-f-btn-next {
    background: #fee042;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    margin-left: auto;
}
.qs-f-btn-next:hover { opacity: .87; }
.qs-f-btn-next:disabled { opacity: .35; cursor: not-allowed; }
.qs-f-btn-back {
    background: transparent;
    color: #9ca3af;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.qs-f-btn-back:hover { color: #374151; }

/* Contact form */
.qs-f-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.qs-f-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.qs-f-field label { font-size: 12px; font-weight: 600; color: #555; }
.qs-f-field input {
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    outline: none;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.qs-f-field input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.qs-f-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
}
.qs-f-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.qs-f-trust span { font-size: 11px; color: #9ca3af; }

/* Résultat */
.qs-f-result { text-align: center; padding: 8px 0; }
.qs-f-ring-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    transition: opacity .3s;
}
.qs-f-ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.qs-f-score-num { font-size: 28px; font-weight: 800; color: #111; line-height: 1; }
.qs-f-score-of  { font-size: 10px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.qs-f-rtag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.qs-f-rtitle {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    line-height: 1.4;
}
.qs-f-message {
    text-align: left;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 16px;
    min-height: 20px;
}
.qs-f-cta-btn {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
    margin-top: 4px;
}
.qs-f-cta-btn:hover { opacity: .87; color: #fff; }

/* Loading dots */
.qs-f-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 13px;
    padding: 10px 0;
}
.qs-f-dots { display: flex; gap: 6px; }
.qs-f-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    animation: qs-bounce .9s infinite;
    display: inline-block;
}
.qs-f-dots span:nth-child(2) { animation-delay: .15s; }
.qs-f-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes qs-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: .4; }
    40%            { transform: scale(1);   opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
    .qs-f-title { font-size: 19px; }
    .qs-f-contact-grid { grid-template-columns: 1fr; }
}
